HNHacker News
TopNewBestAskShowJobs

stplsd

284 karma · joined April 18, 2013

submissionscomments
stplsd··on SpaceVim – Like Spacemacs, but for Vim
Or to be completely portable

:> ~/.vimrc

stplsd··on I Am Fully Capable of Entertaining Myself in Prison for Decades If Need Be
https://en.wikipedia.org/wiki/Barrett_Brown
stplsd··on The Nobel Prize in Literature 2016 awarded to Bob Dylan
To me it's "It's Alright, Ma (I'm Only Bleeding)"

"He not busy being born is busy dying" must be one of greatest lines ever.

stplsd··on Regular Expression That Checks If A Number Is Prime
Nobody is bashing PCRE.

>but they are definitely part of the traditional (UNIX) definition of regular expressions.

This is not exactly true. In 1968 or ealier Ken Thompson wrote first grep implementation using NFA simulation, an algorithm which is now known as Thompson Construction [1][2] There were no back-references in that grep.

In 1975 Al Aho wrote an egrep which used DFA instead of NFA [3] (both NFA and DFA accepts regular languages, but in some cases DFA will have exponentially more states than the same regular language accepting NFA automata [4]) This added features such as alternation and grouping which was not supported by grep, but it not supported back-references.

Current GNU grep have -E switch which accepts extended regular expressions as described in Posix standard. Theses extended regular expressions supports back-references as do PCRE available in grep with -P switch

So no, back-references are not in traditional Unix definition of regular language.

[1] https://en.wikipedia.org/wiki/Thompson%27s_construction

[2] http://dl.acm.org/citation.cfm?doid=363347.363387

[3] http://dl.acm.org/citation.cfm?id=55333

[4] http://cs.stackexchange.com/questions/3381/nfa-with-exponent...

stplsd··on Cache coherency primer (2014)
This is also a very good read: https://lagunita.stanford.edu/c4x/Engineering/CS316/asset/A_...
stplsd··on Four common mistakes in audio development
https://lagunita.stanford.edu/c4x/Engineering/CS316/asset/A_...
stplsd··on Scientist Engineers Bacterium That Inhales CO2, Produces Energy
How is even related to the points discussed by parent comment?
stplsd··on Effort to Expose Russia’s ‘Troll Army’ Draws Vicious Retaliation
Sir, I honestly think you do not know what you are talking about.

Disclaimer: I am from Lithuania, which was occupied by SSRS almost by 50 years, my grandmother was deported in Siberia for 10+ years and my mother was born there.

stplsd··on Scaling to 100M: MySQL Is a Better NoSQL
I wonder about this myself, anyone has experience using this? MySQL 5.6 brought many long awaited features, like schema update without locking tables https://dev.mysql.com/doc/refman/5.6/en/innodb-online-ddl.ht... (bye bye Percona tools).
stplsd··on Scaling to 100M: MySQL Is a Better NoSQL
Is it? MySQL improved a lot since 5.1 days, you know.
stplsd··on Does power really corrupt?
‘We must cease once and for all to describe the effects of power in negative terms: it ‘excludes’, it ‘represses’, it ‘censors’, it ‘abstracts’, it ‘masks’, it ‘conceals’. In fact power produces; it produces reality; it produces domains of objects and rituals of truth. The individual and the knowledge that may be gained of him belong to this production’

-- Foucault

stplsd··on Famous Photo of Chernobyl's Most Radioactive Material Was a Selfie
There is a very interesting documentary from 1991 made as

part of BBC Horizon series called "Inside Chernobyl

Sarcophagus" --> www.imdb.com/title/tt1607059

stplsd··on Why Anti-Authoritarians Are Diagnosed as Mentally Ill (2012)
Dissidents and human right activists were sent for mental institution mostly by diagnosing schizophrenia as a means to discredit them and as message to others. We should applaud those brave souls and not doubt their sanity.
stplsd··on Advanced Linux Programming – book with free PDF (2001)
In my opinion these are best two books on the subject. Stevens' book is classic and have been updated quite recently (3rd edition came out 3 years ago), LPI is very extensive and have some specific Linux info not present in Stevens' book and is clearly influenced by Stevens book.
stplsd··on A Truck the Russians Make for $50K
Well, you could get a new Ural 4320 for about 2 million roubles (25K USD):

http://uraltrucks.com/ural-4320-1031-truck/

https://www.youtube.com/watch?v=F0Ji7D2WT3I

stplsd··on Why a city should not build a stadium for an NFL team
I am from Europe and this looks almost surreal for me. It is unheard of here that team simply packs players and go to other city. Sport culture and sport business so different in USA.
stplsd··on The Tennis Racket
Common, Davydenko incident is already in betting folklore and have been excessively documented. Where are the other names in top 50?
stplsd··on David Bowie Has Died
http://www.scaruffi.com/vol3/bowie.html
stplsd··on Springer Textbooks More Than 10 Years Old Available for Free Legal Download
MPEG Video Compression Standard:

http://link.springer.com/book/10.1007/b115884

It says restricted to me and offers me to buy chapter for

$29.95 and whole book for $229.00

stplsd··on ListAndHash
It is interesting that hash is sometimes (incorrectly) used as a synonym or generic name for map/dictionaty/associative array, but Red-Black-Tree, AVL tree, etc. is not.
stplsd··on VLC contributor living in Aleppo writing about the Paris attacks
good read here --> http://amzn.com/0805082409
stplsd··on Beyond TCP: The evolution of Internet transport protocols
Maybe I misunderstood your first message about 'buffer bloat'. I was thinking about buffer bloat in routers/switches when many TCP connection start to send packet, router starts to buffer them, once packets are dropped, congestion avoidance in TCP connections is activated and synchronises - bandwidth goes down and once again increases in all TCP connections, and this cycle (more packets are sent/packet drops/congestion avoidance triggered) repeats again.
stplsd··on Beyond TCP: The evolution of Internet transport protocols
Shouldn't RED type algorithms in routers prevent buffer bloat?
stplsd··on Just Say No to Facebook's Internet.org, Says Inventor of World Wide Web
Well, internet.org is non-profit organisation, so...
stplsd··on The Yuri Gadyukin Wikipedia Hoax (2013)
This is hilarious:

"Following the controversy of Where the Tractor’s Roam, Gadyukin’s arrival in London was received with great expectations. His first production in the UK was Waiting… in 1956, a project born out of a desire to film Samuel Beckett’s stage play “Waiting for Godot”. Beckett however, was unhappy with the textual changes Gadyukin proposed and withheld permission for an adaptation. Gadyukin’s film is a testament to his ability to tread a fine line, being very close to Beckett’s play in places but always with sufficient alterations to avoid a lawsuit. Waiting… was both experimental in narrative and formal terms, much of the dialogue being a mix of English and Esperanto. Despite a warm reception from European festivals Waiting... met with mixed reviews from the British press and did little business."

stplsd··on Serving All Your Heroin Needs
I don't know, while I never used opiates or any other "hard" drugs (except nicotine and alcohol), I had/have gambling addiction, lost a fortune of money (myself and parents), now have huge debts, caused a huge emotional pain to my parents, now have to live very frugal, because have to cover my debts, etc, etc. So I think I imagine that full blown heroin addiction does to you, but the way you describe it sound like some virus, which affects your brain and make your a zombie (like some wasps do this to cockroaches). But in reality in just simple chemical with well understood action mechanism. Of course if you high all day, there is no motivation to do anything, but I think, we as humans beings, have to take responsibility for this and not blame some chemical.

When I said "gentle" and "harmless" I meant their psychical properties to human body. A roulette or deck of cards is also harmless to body, but they can ruin lives too.

But the main tragedy is when people lose health, money, commit crimes, prostitute themselves, etc. An as heroin is relative safe and harmless to body, legal heroin supplies to addicts would solve so much problems.

stplsd··on Serving All Your Heroin Needs
I hate when heroin is described as some terrible extremely dangerous drug, when in fact it is quite the opposite - it is very gentle and relatively harmless drug. Of course I am talking about medical grade pure heroin, not that Mexican black tar shit or white heroin mixed with god knows what. Even with street shitty heroin, 90% overdoses can be so easy avoidable: just don't mix with it alcohol or benzos, and have someone in your shooting gallery with shot of Naloxone.

I am not even talking about medical grade morphine/heroine, which is gentle and safe as milk (I mean constipation and some temporary hormone imbalance is the worst you can get, compare it with side affects of otc NSAID, which includes renal failure, myocardial infarction, Gastrointestinal bleeding).

And the solution is so simple - just provide addicts with pure heroin, other countries, like Switzerland do this with great success.

stplsd··on The Lisp Machine: Noble Experiment or Fabulous Failure? (1991) [pdf]
Yeah, "it even had 16-bit digital stereo sound".
stplsd··on Semaphores are surprisingly versatile
I think the main source of confusion is that mutexes and semaphores have different semantics, and people tend to forget that. You cannot easily (in userspace) implement mutex with semaphore(s) or semaphore with mutexe(s), because they by design have different semantics, i.e. mutexes have owners and semaphores do not, mutex can be unlocked only by thread who locked it, ant semaphore does not have this feature/limitation - any process/thread who have rights to access semaphore can unlock previously locked (by any thread/process) semaphore, trying this with mutexes will give you undefined behaviour, etc.
stplsd··on Why animals eat psychoactive plants
So true. I am sure that after 100 years or so we will see these senseless drug prohibition laws and "war on drugs" in the same light as we see segregation laws now.

So many lives, even whole countries ruined due this nonsense.

← PreviousPage 2 of 4Next →