News for hackers. Stuff that matters.

Lozzer

Re:Lisp in Small Pieces of Clojure, part 3 on Friday April 27, 2018 @03:00PM (#16943335)
I'd add Let over Lambda (LOL) to that list.
If you belive Wikipedia https://en.wikipedia.org/wiki/Atomic_radius then the atomic radius of Helium has never been measured, but it is predicted to be smaller than Hydrogen.
Re:Falling Chinese Space Station to Crash This Weekend on Sunday April 01, 2018 @09:47AM (#16728224)
I think you'd enjoy the book "The Newtonian Casino".
Re:Implement table partitioning on Thursday December 08, 2016 @08:12AM (#13130051)
Metadata operations on partitions can be very fast. One simple example is date based housekeeping. Deleting a month of data will be quite intensive on most databases, whereby dropping a partition from the table is effectively instant.

Partion switching is also fast. Say you have a summary table that is rolled up by month, but you want to recalculate the summaries every so often. You can build a month into a new table and then switch the new table for a partition in the summary table.

Firstly there are vastly more positions in Go. Secondly, it's very hard to evaluate a Go position, especially at the start of the game when there are few stones on the board. In chess you can get a long way using a simple evaluation (K=99, Q=9, R=5, B=3, N=3, P=1).
Re:Announcing SQL Server on Linux on Tuesday March 08, 2016 @06:08AM (#11244632)
The last one might be heped by trace flag 4199. You can apply it to individual queries with option (querytraceon 4199):

https://blogs.msdn.microsoft.com/psssql/2010/09/01/slow-quer...

I expect you have enough hardware to factor widely deployed primes. Compound numbers might be a different story.
Re:John Nash Has Died on Sunday May 24, 2015 @10:59AM (#9596435)
Didn't wear a seatbelt and headbutted the person in front, snapping their neck. Sucks to be them, I guess. But at least you stuck it to the man.
Re:Anti-Patterns Every Programmer Should Be Aware Of on Monday May 11, 2015 @05:21AM (#9523506)
design
I thought https://gist.github.com/anonymous/cfe03f2ddb0052b38081 was kind of neat, as you still have to solve the puzzle a bit after using it.
Admittedly in the UK, but the ISP I use don't have a problem with people running servers: http://www.aa.net.uk/
Re:How our users exploited concurrency and how we fixed it on Friday January 11, 2013 @06:44PM (#5045706)
For a lot of RDBMS, transaction semantics can be later with different transaction isolation levels. There levels like repeatable read which work in this way, but the default level is usually weaker.
Re:UK still has 13,000 black-and-white TVs on Thursday January 10, 2013 @06:58AM (#5036489)
If you're watching live (or nearly live) broadcast on iPlayer, you still legally require a license: http://iplayerhelp.external.bbc.co.uk/help/playing_tv_progs/...
Re:Linux brings over €10 million savings for Munich on Saturday November 24, 2012 @05:06PM (#4826582)

    CTRL + V
    CTRL
    T
Re:Why you should not be displaying relative dates. on Thursday August 23, 2012 @07:00PM (#4425328)
If you're parsing from a real time feed, then that's fair enough. But if not $now isn't appropriate.
Re:Tesco Discount Barcodes, Cracked on Monday July 23, 2012 @03:19PM (#4282603)
Funnily enough if you buy Tesco's electrical goods online and pick up at store you don't get a paper receipt. The security guard (through lack of training) wasn't keen on letting me out without one.
Re:Building a Bejeweled Bot on Monday April 16, 2012 @06:46AM (#3846817)
I had a go at something similar for the Facebook version a couple of years ago. My main goal was to stop playing the game, but it was also an excuse to try Clojure. At the time it absolutely thrashed my best scores, though I'm sure it won't work with the updates the developers have made since then.

I think it was the first thing I wrote that drove home the power of having a REPL for exploratory programming:

https://gist.github.com/490689

Re:Linus Torvalds: Programs exist for their users on Friday March 09, 2012 @09:29AM (#3684140)
More likely HURD
Re:"I've isolated the bug to a database query" on Wednesday November 09, 2011 @07:57PM (#3218323)
We have a legacy database we support that creates a new dynamic stored procedure (with the same body) every time it performs a particular operation. How you can have enough knowledge to do this, but not to use a single procedure is beyond me.
Re:Public market newcomers getting crushed in sell-off on Monday August 08, 2011 @06:05PM (#2861776)
Have the counter-parties insuring Greek debt paid up?
I don't think governments are going to be bailing out advertisers just yet.
Re:War on Urchin on Saturday June 11, 2011 @08:00AM (#2643691)
No, because you would reasonably requests with different parameters to return different pages.
Sounds like your network is suffering from http://www.bufferbloat.net/ .If your OS supports traffic shaping, you can probably fix this by limiting the upload speed there to a fraction under your actual bandwidth. E.g in Linux by using the tc command.
Re:My Lisp Experiences and the Development of GNU Emacs on Monday June 06, 2011 @08:18AM (#2624427)
It's probably irrelevant, but maybe http://www.method-combination.net/blog/archives/2011/03/11/s... will help
Re:C to Go: Could Go replace C? on Wednesday May 11, 2011 @05:42AM (#2535784)
From the first line of the man page for yes:

yes - output a string repeatedly until killed

Re:It is good to have friends on Tuesday May 10, 2011 @09:46AM (#2532432)
I've used an offset mortgage to keep a large cash reserve, but to pay off real estate if I'm not using it.

That's for personal stuff, not sure if there are corporate options.

Older »