News for hackers. Stuff that matters.
Re:PHP in a Tweet by eksith on Tuesday October 08, 2013 @03:56PM (#6517414)
At the risk of arousing some people's ire, I really like these tidbits that try to squeeze maximum functionality (albeit a bit dangerous) into a minimum span of characters. It feels a bit like the underhanded C contest in a way since there are so many magnificent ways to self-destruct doing this, but at the same time it's a fun challenge.

A while ago, I put together a dirt-simple URL shortener https://twitter.com/eksith/statuses/275709375665037312

A bit of background: http://eksith.wordpress.com/2012/12/03/id-obfuscation

Re:PHP in a Tweet by draegtun on Wednesday October 09, 2013 @12:43PM (#6522312)
You might find Rebmu interesting, its a Rebol dialect designed for code golfing - https://github.com/hostilefork/rebmu

Here's a fun(!) presentation of Rebmu given by Dr. Rebmuthalamonious Golfstanipetrovitch (!!) given at the recent Rebol/Red conference - http://www.youtube.com/watch?v=iDKaz1iB9wQ

Enjoy! :)

Re:PHP in a Tweet by eksith on Wednesday October 09, 2013 @02:45PM (#6523033)
That was wonderful. Thank you! :D
Re:PHP in a Tweet by mappu on Tuesday October 08, 2013 @04:15PM (#6517536)
About ID obfuscation: i like to use a small-width block cipher (e.g. 32-bit skipjack). A reversible int->int transform means you don't need an extra DB column, you're never prone to CRC32 collisions, you can still use base36 (why not case-sensitive base62?) for URLs, and with an application secret key there's no chance of reversal.

Well, maybe someone could aim to get many sequential keys and then reverse-engineer the state of the cipher, but that's also possible with your method.

Re:PHP in a Tweet by k3n on Tuesday October 08, 2013 @04:22PM (#6517577)
Re:PHP in a Tweet by eksith on Tuesday October 08, 2013 @04:35PM (#6517662)
Wow! I do also like that. I like that very much! Thank you for pointing me to that.
Re:PHP in a Tweet by icebraining on Tuesday October 08, 2013 @06:18PM (#6518216)
The Code Golf SE site is fun too: http://codegolf.stackexchange.com/