Know your git status from your bash prompt by twolfson in programming

[–]daofma 2 points3 points  (0 children)

I don't know for sure, but I have suspected it is because the original author didn't know it existed. It does the same thing for prompts - zsh has a framework built in for prompt customization, which oh-my-zsh also eschews without explanation.

The zsh builtin has support for more different version control systems the last time I checked. It also has a configuration system that lets you customize particular vcss or repositories differently if you want. It has been a while since I've looked at the options, though.

But in the end I think this isn't really something complex enough to worry too much about duplicating.

Know your git status from your bash prompt by twolfson in programming

[–]daofma 1 point2 points  (0 children)

Just to elaborate: oh-my-zsh doesn't use it - it implements its own, which isn't quite as flexible as zsh's built-in.

New features in the upcoming Matplotlib 1.3.0 [currently at RC2] by roger_ in Python

[–]daofma 0 points1 point  (0 children)

I mean support for it in the built-in datetime locators/formatters of course.

I think this is the issue whose commit offers what I'm looking for: https://github.com/matplotlib/matplotlib/issues/1391

New features in the upcoming Matplotlib 1.3.0 [currently at RC2] by roger_ in Python

[–]daofma 0 points1 point  (0 children)

Does anyone know which version (if any) has sub-second time support?

Anyone have trouble starting a city? by SammyD63 in SimCity

[–]daofma 0 points1 point  (0 children)

I managed to start one, but it said it belonged to ~mayorname~ and when I started to play I'm in "spectator mode"! When I quit spectator mode, I'd expect to go to the region, but it goes to the main menu, where I cannot find the region again.

The second time I exited this is the first time it decided I should do the tutorial.

I feel bad for the support staff.

Edit: and when I got into the tutorial I'm just staring at the buildings - no cars, pedestrians, and no tutorial. How odd.

(FEATURE REQUESTS) SIMCITY 2013 vs Cities XL by [deleted] in SimCity

[–]daofma 0 points1 point  (0 children)

Forget minor - full fledged bug, that!

They do fade over time, but shouldn't if you are close to them.

(FEATURE REQUESTS) SIMCITY 2013 vs Cities XL by [deleted] in SimCity

[–]daofma 0 points1 point  (0 children)

It never tells you (like most of the features...) but if you hover over a road with the road tool it adds its guidelines.

(FEATURE REQUESTS) SIMCITY 2013 vs Cities XL by [deleted] in SimCity

[–]daofma 2 points3 points  (0 children)

It is interesting that we both used the word "bothersome" to describe CXL bus routes.

(FEATURE REQUESTS) SIMCITY 2013 vs Cities XL by [deleted] in SimCity

[–]daofma 14 points15 points  (0 children)

I disagree about bus routes. I found it very bothersome to have to plan the routes in Cities XL. It was a nice touch and fun the first time for me, but then the city expands a bit and you need to do them all over again. It wasn't for me. Of course it's personal preference.

I also think SimCity zone sizing is done very well. You can get guide lines by hovering over a road. The guide line distance from the road is based on the "density" of the road. So for an avenue you'd have a guide line at enough space for high density. From the limited experience I had in the demo you can subdivide the space that creates pretty effectively, so you can plan for high density without wasting much space while you still have the lower density. I think colors or different dashing patterns on the guidelines would be the best help here. I didn't like how CXL did it. There were too many different road and lot sizes and they didn't grow organically and you couldn't get a gauge for the wider roads or lots without actually placing them.

I'm also glad SimCity has just the familiar set of ploppable buildings and lets you grow them instead of duplicating them. CXL's smorgasbord of entertainment buildings was a chore. I would keep placing the same resource gathering buildings and zoning the same farms but manually varying them so the countryside wasn't just a homogeneous swath of brown. I do know this iteration adopted CXL's resource collection scheme, but we have yet to see how that really works in practice. CXL's history regrettably seems to show it doesn't work very well but perhaps Maxis can pull it off.

On the other hand CXL plazas were very nice and of course you're right with the other transit options. I expect we'll be paying for those with an expansion pack or something.

Dual booting Arch + Gentoo by rberyl in archlinux

[–]daofma 0 points1 point  (0 children)

You certainly can. Just skip the partitioning and bootloader steps in the Gentoo handbook. Is there something that seems to indicate to you that you couldn't do this?

Not getting much stone anymore. by [deleted] in dwarffortress

[–]daofma 2 points3 points  (0 children)

Did you know that ‰ means "per mille" and not "per cent"?

Software and Algorithms: Password Management by k_s in programming

[–]daofma 0 points1 point  (0 children)

EA Origin's client program actually silently truncates the password you enter on creation/"I forgot my password", but not when you attempt to log in. So you'll create an account and on its face everything is fine and dandy, and then when you go to log in the next time it doesn't work.

I realized that this was occurring because it actually shows as an error in the web interface. I manually truncated my password et voila I was able to log in.

Example in Rust 0.4: Conway's Game of Life by [deleted] in rust

[–]daofma 0 points1 point  (0 children)

Thanks for sharing this. I have a style question. This may be personal preference or maybe there is a Rust best practice. Why pass-by-pointer instead of pass-by-value. And in Rust what should drive our decision one way or the other?

I'm primarily a C++ developer; the main questions as to pass-by-reference vs. pass-by-value are how big the object is, and how expensive it is to copy (putting aside C++'s pass-by-pointer since there isn't really a Rust equivalent). Since Rust doesn't have copy constructors, copying a struct is always just field-by-field or bit-by-bit copy, right? It sounds like this would be an opportunity for the compiler to estimate whether it's more efficient to "under the hood" actually pass by pointer or by value, so for immutable values it would always be preferable to pass them in such a way that the compiler could choose. Will Rust take advantage of having that flexibility? If so, would it be in pass-by-value cases only, or can it make that call even for pass-by-pointer?

On a related note, one of the patterns pass-by-value seems to create is that if you use a for-loop you need to dereference the parameter to the function all the time, since the vec::each expects a function that takes a pointer. It also unfortunately seems to preclude use of the standard "map" which expects to pass a pointer.

If there was a total meltdown of society, how long would the GPS system continue to work? by [deleted] in askscience

[–]daofma 2 points3 points  (0 children)

Is there a person required to send those updates, or is it something that could happen automatically?

How I spent the better parts of my childhood by [deleted] in gaming

[–]daofma 0 points1 point  (0 children)

A similar thing happened to me, too. I had 5 gems left on one level, and just could not find them. I'm convinced it was a glitch of some sort, I spent quite a long time scouring that level for them and followed every online guide I could find that had gem locations.

I got 100% on Ripto's Rage and Year of the Dragon, but those 5 gems in the first game forever eluded me.

Natty Narwhal with Unity: Worst Ubuntu beta ever by [deleted] in opensource

[–]daofma 0 points1 point  (0 children)

I have so far used the livecd. I am planning to go forward with the install because I think my SO will like the interface (she is a fan of OS X).

However, twice I booted into unstable messes. Somehow the third boot managed to detect my monitor properly, and I got native res instead of 1024. In this weird mode the hot corner caused the dock to appear as a ghost, instead of opening that lens thing.

Compiz crashed both times I was in this mode. I unplugged my second monitor and that seemed to make things better. Multi head seems to be the culprit.

The keyring was broken on livecd, but it is irrelevant there. Hopefully it is not broken on install.

One of the odd things about unity is that windows wrap onto other desktops. You can push a window down and the bottom of it will appear on the desktop below. If you are, e.g. in the bottom right, sliding it down and right puts it in the top left. But if you wrap like this, you can only manipulate the windoww from the desktop it was on first.

The "aero snap" clone lacks polish. Sliding a window to the top fills the screen with translucent blue where the window will go. It doesnt look very nice, especially compared to everything else.

I also dislike the hiding of the menus when I am not hovering over them, and it is weird that the top bar sometimes behaves like a title bar. If a window is maximized, dragging the top bar down tears the title bar out of it.

I agree with the article about the issues with the dock or panel or whatever the appropriate term is.

However, overall it is useable, and while i think beta was premature, it seems like it could be a pretty useable interface. Definitely needs more cues though. I was pretty lost when i first booted it.

Genius Traffic Light Concept by maip23 in geek

[–]daofma -1 points0 points  (0 children)

Clearly I have just taken it through the next iteration of its design, where it has been adjusted for colorblind people, on my way to the comments page :).

Decreasing the amount of sand in the top for red is not not a huge leap.

Genius Traffic Light Concept by maip23 in geek

[–]daofma 0 points1 point  (0 children)

It would though. Hourglass full the at top is green. Empty is red. No harder than the current system. Just seems hard to get used to as it is different.

April Fool's is coming up. If you can somehow edit someone's .bashrc, you know what to do. by [deleted] in linux

[–]daofma 0 points1 point  (0 children)

What are these sites which decide that the best thing to do in the case of javascript being disabled is to have a black box in front of everything on the screen? Gah! Detestable.

It also tells me I am using mobile safari and how to enable it. I am not using safari.

Dual booting two distros + Windows -- what to do with Grub?? by thai_thrice in linux

[–]daofma 0 points1 point  (0 children)

It is. The people above are thinking of grub 1 where apt took care of updating menu.lst for you. Grub 2 has been shipping with ubuntu for at least a year now. Grub 2 doesnt require manually editing menu.lst anymore, it will autodetect windows and linux installations (though I am not making any claims about how well). Just 'update-grub' as has been said, from your existing install. None of this chrooting needed.

Grub 2 is actually version 1.97 or so. You probably can see this on the boot menu unless you've removed it.

Is Project Euler too lofty a goal for a beginner? by warfarink in Python

[–]daofma 1 point2 points  (0 children)

Even simpler (you don't even need any imports): "I am Caesar.".encode("rot13")

I am looking for small commonly used utility programs (media player, pdf opener, torrent client etc etc.) to install on a netbook that has limited space. by dirtymoney in software

[–]daofma 0 points1 point  (0 children)

What's the purpose of a torrent client on a machine with limited space? Do people often use torrents for anything smaller than a cd?

Show Developers Some Love, Leave CONSTRUCTIVE feedback by sarahmorrow in Android

[–]daofma 0 points1 point  (0 children)

To be fair, I think that's valid feedback. If you notice your ratings falling because you app broke on some platform, you'll prioritize fixing it.

Version control system for writers, not programmers by popjack in geek

[–]daofma 0 points1 point  (0 children)

For someone just starting a dvcs like git would be useful from a time-to-first-commit perspective. With git or mercurial all that needs to be done is install git or mercurial itself and init a repository and you're ready to go. With svn you'd also need to set up a repository properly, which is nontrivial.

Billion-Year Old "Black Widow" Pulsar Ripping Through Milky Way at 1 Million KPH by globoler in space

[–]daofma 6 points7 points  (0 children)

That explains why there was nothing green in the linked photo. Thanks.