My brain Definitely! Has! Opinions! on what different languages look like and how their syntax highlighting should reflect this.
For example, Ruby is not green. Absolutely not green except perhaps in very exceptional situations. Ruby is red and blue and magenta and a bit of orange. It must be soft and somewhat bright and quite gentle. I like purple, and I like Ruby, but I don’t know if purple has a place in Ruby. If Ruby was to have a “primary” color it might be magenta or red, but it’s not the color that would be the most common.
Python is probably mostly blue-green but I’m not sure yet. Haven’t really used it.
Lisp is NOT RED. It’s likely to be cyan, but red belongs absolutely nowhere in Lisp. Magenta too. I don’t know if it’s a coincidence that a McCarthy is important to Lisp, and that reds must absolutely keep away from the language (nothing is ever a coincidence). Cyan and green and some orange and perhaps yellow.
ZSH is purple and blue. It’s quite subdued, with not much color to it.
Coffeescript is orange and it compiles to dark green javascript. Yellow is not a coffeescript color.
Julia seems to be purple and green and orange. It’s a very beautiful colorscheme with a slight strangeness and a feeling of power that’s not quite controlled. It elicits respect like a prototype nuclear reactor.
Golang? I don’t know. Orange might be important in it, but it’s not overwhelmingly orange like coffeescript.
C, unlike coffeescript, seems like a language yellow and orange would get along in.
Html I don’t really know much about. It’s mostly about the rainbow colors of the tag hierarchy, and I prefer to write it with coffeekup anyway.
And it’s not like the colors are just any of those colors. Bright green is unnatural but not searing while dark green is almost but not quite comforting.
Blue wants to tinge towards purple a bit. I’m not sure if the color between dark red and strong magenta is actually the red or the magenta, but it’s an important color. Orange and purple are especially difficult colors to get right. I don’t know if reality contains the right purple anywhere in it; it might have an ultraviolet component to it. Orange must be a true orange without degrading to brown, but it may not be too bright. Yellow feels like it might have a slight goldish tinge to it but then again it should contain some green too perhaps.
And it isn’t helping that one of my screens is a glossy IPS and another is an old matte TN. At least I noticed to switch off f.lux before I went completely crazy over colors not being anything like each other ever.
I want a dieselpunk alternative history tank commander RPG videogame. With cute girls as crew members, and increasingly weird designs diverging from real-life ones in the 1920s, and the good guys being the Comintern (USSR + Germany + Eastern Europe) fighting against the tyranny of the Atlantic Pact and the Greater East Asia Co-Prosperity Sphere. (With weird Tesla shit for the former, and walker designs for the latter.)
Turn-based simulation, fairly realistic (AP calculations, etc), but with anachronistic technology and RPG style controls and special abilities, and detailed crew actions like in the Armoured Commander roguelike. That would be so great.
Goddamnit. I could program this. I can totally see how this could possibly work. The game engine. The AP. The classes and the game objects and the calculations. The New Turn. The crew actions. Everything. I am a wizard. I can write marvellous spells. I know kung fu.
Now the only question is: does the market have the demand to incentivize the supply? I don’t know graphics, I don’t know tanks and stuff, I don’t know UI, and I don’t feel like playtesting too much (that’s what Rspec and TDD is for). But I could make this into a Project because I know code and I’d learn.
Basically I’m saying that I’m totally willing to be convinced to write that game, or at least the engine to write the game on.
I just learned that now, when I unplug my laptop, it dies. Even though it’s supposed to be mostly charged. I didn’t know this was a type of problem that could happen.
It’s probably not battery overuse because, until today, the battery could last for about 5 hours. I was using the laptop, while charging it, for about three hours now (after having used it chargerless right before that). Then I pulled the plug, because the battery was mostly full anyway, and it died.
Then I tried turning it on chargerless and it wouldn’t responded. I started it up while plugged in, then unplugged it again, and it died again. I tried this three more times with minor variations before concluding that, yes, it’s a problem. So now I’m running it while it’s “”“charging”“”.
This is an Acer Aspire running Ubuntu 14.04 LTS, which I bought in September 2015. The battery is not easily removable, otherwise I’d remove it and put it back, since that works well for some other things.
Does anyone know what I should do?
Ohhhhhhh…. thissssss…..
Lithium batteries are temperamental, and there are sometimes various controls to treat them in different ways such as “do not charge more than 80 percent, or discharge less than 20 percent, or whatever arbitrary limits you choose”.
This is most common on business style laptops but yours might have it too.
On Linux, the control of these may be broken or you might have set it accidentally. Do you have any battery buttons on your keyboard? I had this problem with the Dell they gave me at my old job which had an unlabelled button for “just don’t charge the battery ever” for some reason.
As far as actually solving your problem, I can’t help. It’s a rabbit hole. Possibly @thirqual may have ideas. But it’s a place to look.
(Oh, and this may not instantly recover if you boot with a linux thumb drive.)
try “acpi -b” in the terminal when the charger is in place; copypaste results below
Do you know that feeling in an RPG when your character is all twinked-out and you’re just utterly destroying all the low-level content with your optimized build and great gear?
Because that’s what doing Project Euler with Julia feels like.
It’s amazing. The language knows what I want to do, it already has a tool to do it efficiently and easily and move on to the next problem, and pretty much everything in the syntax is easy to understand and bugs and mistakes are never counter-intuitive. Figuring out that the variable i needs to be typed to i::Int64 to deal with big numbers on my 32-bit ARM is exactly as obvious and quick to backtrack as it should be and makes perfect sense once noticed.
5/5 highly recommended.
omfg lol number 10 (sum of all primes under 2 million)
Do you know that feeling in an RPG when your character is all twinked-out and you’re just utterly destroying all the low-level content with your optimized build and great gear?
Because that’s what doing Project Euler with Julia feels like.
It’s amazing. The language knows what I want to do, it already has a tool to do it efficiently and easily and move on to the next problem, and pretty much everything in the syntax is easy to understand and bugs and mistakes are never counter-intuitive. Figuring out that the variable i needs to be typed to i::Int64 to deal with big numbers on my 32-bit ARM is exactly as obvious and quick to backtrack as it should be and makes perfect sense once noticed.
“video games linked to adhd” gee i wonder why ppl with adhd would be drawn to an interactive medium that fully engages your brain and gives your hands something to do at the same time. it is a mystery
#it me
also: REPL, so much REPL
or in fact programming in general
think about puzzles and have something to fingertwitch at
I had previously been under the impression that babies don’t have object permanence– the knowledge that things continue to exist when you’re not looking at them. However, I recently learned that the balance of the evidence in developmental psychology is that babies have object permanence from an extremely young age. If babies perceived the world as a series of images rather than a set of stable…
There’s something delightfully geeky in these studies, something that made my brain return “ah yes, it would be silly to refactor the entire perception system on the fly from procedural to object-oriented, but the "Item::fetch” method needs to be debugged to deal properly with a changing environment…“
Okay so prop 8 was kind of dick move but nothing to fire a guy over, but could we discuss the Actually Problematic things Eich has done, like javascript? It has too many semicolons and curlybrackets so I now I’m procrastinating learning javascript by learning lisp and julia instead and while this is definitely intriguing (lisp has this certain fascinating purity, and julia just seems incredibly awesome) it isn’t exactly what I’m supposed to be doing right now
Coffeescript.
It fixes the syntax problems with javascript decently, but doesn’t do much for the lack of type system or the impurity.
Wait wait wait my idea of “I’d rather write a program to convert ruby to javascript…” _has actually been done_?
Okay so prop 8 was kind of dick move but nothing to fire a guy over, but could we discuss the Actually Problematic things Eich has done, like javascript? It has too many semicolons and curlybrackets so I now I’m procrastinating learning javascript by learning lisp and julia instead and while this is definitely intriguing (lisp has this certain fascinating purity, and julia just seems incredibly awesome) it isn’t exactly what I’m supposed to be doing right now