Profile cover photo
Profile photo
funcptr
5 followers -
typedef void (*funcptr)(char *, int)
typedef void (*funcptr)(char *, int)

5 followers
About
funcptr's posts

Post has attachment

Post has attachment
It's been a long time coming, but it is finally here... a follow-up to my last post regarding what you should and should not store in a session.

This time we are covering how to store the session ID in a cookie, and how to tamper proof the cookie so that a malicious user can not modify it.

http://funcptr.net/2014/06/10/tamper-proof-session-cookies-and-session-storage/

Post has attachment

Post has attachment

Post has attachment

Post has attachment
I was doing some work on embedding #ZeroMQ within another event loop, more specifically the libev event loop and wanted to document some of my findings as well as explain the difference between edge and level triggered events.

http://funcptr.net/2012/09/10/zeromq---edge-triggered-notification/

Looking forward to feedback on the article, and hopefully those of you also implementing software with ZeroMQ will have another resource!

Post has attachment
Been a busy day today, mostly upgrading from FreeBSD 8.2-RELEASE to FreeBSD 9.0-RELEASE and re-installing all the appropriate software as required.

Since I am running FreeBSD with ZFS on root there are couple gotcha's that I had to watch out for during my upgrade, so I made sure to document them in the latest entry to the technical notebook!

http://funcptr.net/2012/04/24/freebsd-8.2-to-9.0-update-with-zfs-on-root-(mirror)/

Post has shared content
Little projects like this are absolutely fantastic, and the end result is awesome!
Average all of the fonts on your computer and what will you get? Most likely not a whole lot, but take it one step further and do some math and you may get something similar to this guy:

http://iotic.com/averia/

Very, very cool project. Love the look of the font, and the thought process and idea behind it is fantastic.

Post has attachment
http://funcptr.net/2012/04/08/openssl-as-a-filter-(or-non-blocking-openssl)/

New blog post out (as of two days ago, just got around to uploading it). This is a trick I found online on how to use OpenSSL as a filter. This allows one to easily hook OpenSSL into an event library, such as for example libev.

The code sample is written in C++, but it should be fairly simple to translate it into C if so desired. If you have any questions feel free to post here!

Post has attachment
Wait while more posts are being loaded