nanothief

- friends
1,212 link karma
5,284 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Three-Year Club

    Verified Email

reddit is a source for what's new and popular online. vote on links that you like or dislike and help decide what's popular, or submit your own!

Blizzard announces HoTS multiplayer replays, reconnect from replay, unranked ladder and global play by Kennigitin starcraft

[–]nanothief 0 points1 point ago

I wonder with the Multiplayer resume from replay, would it be possible to download a replay from a pro player, then resume it with you playing one side and either another friend or the ai playing the other? That would be really cool, to continue a game setup by 2 pro players.

Also would be good to replay your own games to see what you could change to win certain battles. Eg if you were floating 400 minerals and lost an engagement, see what effect and additional 4-8 marines would have had on the battle.

Douglas Crockford explains why he removed comments from JSON by eliseosotoin programming

[–]nanothief 0 points1 point ago

That is only true if there aren't already examples of the construct you need in the file. If there isn't, then you still need to lookup the docs to see what attributes are allowed.

Eg the equivalent YAML code of your example:

sequence:
 - min-occurs: 0
   max-occurs: unbounded 
   name: derp
 - min-occurs: 1
   max-occurs: 1 
   name: herp

(alternatively, completely equivalent to above)

sequence:
 - { min-occurs: 0, max-occurs: unbounded, name: derp }
 - { min-occurs: 1, max-occurs: 1, name: herp }

It is pretty easy to guess how to add another sequence element.

Online Haskell typechecker by gintasmin haskell

[–]nanothief 0 points1 point ago

Great, that is much better!

1 in 7 people think the end of the world will occur during their lifetime, with 1 in 10 fearing the Mayan prophecy will come true. by kelty04in offbeat

[–]nanothief 0 points1 point ago

From the website:

The silver-tongued DoD agent soon arrives and presents them each with an offer of 10 million dollars in exchange for their portion of the algorithmic solution. He attempts to deftly address their concerns and sway the opinions of the four.

Wow, 10 million dollars each for what would be the most important breakthrough in human history! 10 billion each would be more appropriate. Maybe even 100 billion each?

Online Haskell typechecker by gintasmin haskell

[–]nanothief 1 point2 points ago

Currently the tab key inserts a tab character. This makes editing code with this tool very difficult, as you get weird syntax problems due to code not having the correct indent (even if it appears correct on screen). It would be much better to have tab insert 2 spaces instead.

25 years of storage. What's next? by Wordcraftianin geek

[–]nanothief 0 points1 point ago

I agree, I'm a paid subscriber to spideroak and I've been having huge problems with it (it hasn't been syncing correctly since mid february, even after many emails back and forwards to support).

I'm about ready to give up on them, I might give Wuala a go.

"video drivers cheat like a Mississippi riverboat card sharp on a boat full of blind tourists" by Porgesin programming

[–]nanothief 44 points45 points ago

Another problem benchmarkers would face is it would be a valid optimisation to put program specific optimisations for popular games. Eg have a special mode for Skyrim that is optimised for how they structure their 3d code.

So you couldn't just benchmark a game instead of using a benchmark program, as one driver could be legitimately faster than the other for just that one game.

Douglas Crockford explains why he removed comments from JSON by eliseosotoin programming

[–]nanothief 6 points7 points ago

For data exchange, the complexity of the spec is a key indicator to the quality of a format. This is because a data exchange format is expected to be used by many different parties, so having a simple spec makes it more likely that there will be parsers for it for every conceivable situation.

The format used for a configuration file has completely different issues. 99.9% of the time, the only program that reads the file is your own, so the fact that YAML isn't as wide spread as JSON doesn't matter very much.

The key issue of a configuration format is readability and how easy it is to edit. YAML beats JSON hands down here, due to having comments, not requiring quotes surround attribute names, not requiring commas to separate keys, and lots of other features. As JSON is subset of YAML, it is also no harder to write (you could use it as JSON with comments if that is your thing).

Douglas Crockford explains why he removed comments from JSON by eliseosotoin programming

[–]nanothief 12 points13 points ago

It does help though to have comments. Eg apache's http.conf file from my computer:

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

There is no way listen could have been named that would have been as descriptive as the comment given above. Also, having comments lets you comment out old or default values when you replace them with your own. Leaving comments for yourself giving reasons as to why you set an option to some value is also useful.

Douglas Crockford explains why he removed comments from JSON by eliseosotoin programming

[–]nanothief 66 points67 points ago

This makes perfect sense to me. JSON is meant to be a data exchange format, not a configuration file format, so there is no need for comments.

For a configuration file, I would use YAML over JSON - it is primarily built for this purpose, and has a lot of features that JSON doesn't have that make editing it much easier.

Libre Office is taking off 'like a rocket' by linucsin linux

[–]nanothief 6 points7 points ago

I'm surprised by this. I thought that both microsoft office and libreoffice would be (slowly) losing market share to online suites such as google documents. For most simple usage cases, google docs seems better to me than libreoffice, and costs the same amount.

This camera doesn't take pictures. It prints descriptions. by OvidPerlin technology

[–]nanothief 3 points4 points ago

The reason it gets done in 3-6 minutes is the price is so relatively high. If it was lower, you might have to wait a long time before someone would decide to do it.

Why is Estimating so Hard? by vegittoss15in programming

[–]nanothief 2 points3 points ago

Sounds like he was teaching a class, so having to explain everything you are doing really slows you down. Also, if you had a real life need for such a function, rather than just solving it for that one example, you would have to make tests for edge cases to both test and document expected behaviour. That would be a good example to show to a class.

Matz: "How Emacs changed my life" (and influenced Ruby) by the-fritzin ruby

[–]nanothief 0 points1 point ago

I find they have different uses. When I want to quickly edit a file, I normally use vim from the command line. It starts instantly, its keyboard settings allow very fast non-mouse editing (especially over ssh), and it doesn't any configuration to be completely usable for me, which is good when working on a different computer.

Emacs is more an ide for me, I use that when working on some work for hours, rather than minutes.

I'm looking at taking part in ludum dare, having only known about it for a few days - any advice from people who have done it before? by nanothiefin ludumdare

[–]nanothief[S] 0 points1 point ago

Thanks. I ended up buying the ludum dare book, and it said many similar things to what you said. In any case, I decided to switch to doing a javascript canvas app, since I've got a lot more experience with canvas as compared to monogame (which I've only compiled a few demoes with).

Awesome javascript based data grid (handles 500K+ rows) by sidcool1234in programming

[–]nanothief 0 points1 point ago

If you start scrolling too fast, the table goes blank until the scroll slows down. Not a huge problem, but annoying if you have a free spinning mouse wheel, like on most of the new logitech mice.

Utopian Mining by futurefix5in WebGames

[–]nanothief 1 point2 points ago

Yeah, you just have to be conservative with mining (you can move along the top without using charge, doing small pits is really energy efficient for mining coal), and rely on job income initially.

Try Calligra 2.4 for a New Microsoft Office Alternative by r_schestowitzin kde

[–]nanothief 0 points1 point ago

At least for office 2007, it works pretty well under wine. Other products such as crossover linux improve the integration even more. So calligra is competing against office in linux, it just has an advantage of being much cheaper ($0 vs office $ + crossoverlinux $)

Utopian Mining by futurefix5in WebGames

[–]nanothief 2 points3 points ago

Yes it is - you can exploit the fact that you are fully recharged after buying a new battery.

Utopian Mining by futurefix5in WebGames

[–]nanothief 0 points1 point ago

To make it a bit more challenging, try beating the game without ever using the recharge station or repair station. Pretty easy otherwise, but still fun.

view more: next