Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Re:One of the advantages of Linux (Score 1) 433

If you're using a sensible DB (these are all Postgres examples), I may be able to make your life a little easier.

If you want to compare rows, don't bother with a slow and clumsy self-join, use a windowing function and the lead/lag functions. e.g. to list the interesting events and time between them:

select date, message, lead(date) over (order by date) - date as time_to_next from log where type='interesting';

That only shows 'interesting' events, of course. If you want to show all the other events between the interesting ones as well, add a partition by clause to the windowing function to highlight interesting events, and lose the where clause.

And yeah, vim is a good quick and easy way to explore data. So in postgres, add 'export PAGER="vim -"' to your ~/.psqlrc file, and your query results automatically pop up in vim (may want to switch to unaligned output in that case using the \a toggle).

Comment Holy shit (Score 1) 87

I know that slashdot is now pretty much famous for being behind the curve on geek news, but in this instance they got scooped by The Today Program on RADIO FUCKING FOUR.

For people not in the UK who don't know what that is...it's like showing off your new liquid Nitrogen GPU cooling system and your grandma saying "Oh that's nice dear, it's like the one the nurses put in the home last year".

Idle

Submission + - The RMS Rider (mysociety.org)

larry bagina writes: It's no secret that rock stars have riders — provisions on their contractual appearances that require a bowl of brown-free m&ms or specify the exact brand of bottled water, cocaine purity, etc. Well, Richard Stallman has his own list of provisions. Nothing about toe jam, oddly enough.

I can't wait to see Eric Raymond's rider!

Security

Prototyping Boards Make It Easier To Find Flaws in Specialized Hardware 56

wiredmikey writes "Author Robert Vamosi writes an interesting piece on how security researchers are using open source 'prototyping boards' and other open source tools now available via the Internet for rapid prototyping of tools used in hardware analysis. 'The days of saying it would take the resources of a nation-state to discover or exploit vulnerabilities in a particular piece of hardware in an industrial control system or a healthcare environment are rapidly fading,' he writes. Vendors who do not test their products before selling them into the field are doomed to be targets of future research and, perhaps, attacks."

Comment Re:Finally (Score 1) 274

I was using the same workaround. Just installed the new flash .so, and no longer need to. THANK FUCK. I was definitely with Linus that whatever the specification of memcpy, if your optimisations break a ubiquitous piece of software it's a regression. But it's also a good thing that Adobe fixed their broken code, of course.

I also had issues where periodically Flash would bring my system to a crawl - I've not seen anyone else mention that problem, but fingers crossed this'll solve that too.

Slashdot Top Deals

Real programs don't eat cache.

Working...