HNHacker News
TopNewBestAskShowJobs

d0ugal

1,103 karma · joined October 10, 2011

submissionscomments
d0ugal··on CarDroid: Android built into cars. Please vote so we can get funding
It would drain your battery before a full day is up though ;)

I've often thought a similar thing like this would work well for entertainment systems on flights too.

d0ugal··on Show HN: I'm building a webapp for serious cyclists
Relevant: http://thereisnopagefold.com/
d0ugal··on GIMP is Now a Self-Contained Native App for Mac OS X
Why?
d0ugal··on Amazon Glacier
http://www.haystacksoftware.com/arq/

I assume they will support Glacier soonish.

d0ugal··on New York Underground
The to scale version is better: http://www.nationalgeographic.com/nyunderground/docs/scale.h...
d0ugal··on FoundationDB: A new generation of NoSQL database
Switching all my production code to use their alpha as we speak.
d0ugal··on FoundationDB: A new generation of NoSQL database
noSQL and YesACID. It's that easy.
d0ugal··on FoundationDB: A new generation of NoSQL database
What exactly is "YesACID" ?
d0ugal··on Caching AJAX calls with local storage
Browsers cache many things each time you go to a website - all the html and assets (js/css/images) will be potentially cached (depending on headers). Often you will not go to that website again. They are optimised for this.
d0ugal··on Caching AJAX calls with local storage
This is better.
d0ugal··on Caching AJAX calls with local storage
Hi, Author of locache.js (http://locachejs.org/) here.

I think there is a good use case for something like this in certain situations, but using the browser cache for Ajax requests is generally a better idea.

I wrote locache as a more general client-side cache mechanism for all sorts of objects rather than just caching requests. I was caching lots of backbone models and user actions - it generally worked quite well. I also actually used it quite a bit for caching third party API's that I had no control over (more specifically I was working on a mashup using three different API's and often fetching the same content). When being lazy I tried once to cache my own API and regretted it after as its basically a poor mans browser cache.

Your going to run into a bunch of issues with localStorage if you have not already - specifically to do with memory limits, the blocking API and some strange support on mobile browsers. You may find some useful things in my code, or you may want to drop me a line to discuss it further.

d0ugal··on Glue: Command line tool to generate CSS sprites [lightning talk video]
Other related links;

Documentation: http://glue.readthedocs.org/en/latest/index.html

GitHub: https://github.com/jorgebastida/glue

d0ugal··on Django People has returned
It contains the original database, thus its everybody that registered over the last few years. I can't remember when it first appeared.
d0ugal··on PyCon UK 2012
Brighton? That doesn't seem like an easier location for people generally across the UK.
d0ugal··on LibreOffice 3.5.4 released with up to 100% performance improvements
Since somethings are bound to have not changed at all in terms of speed it would probably have to be 0%-100% (Or, well, up to 100%.)
d0ugal··on PyCon UK 2012
I would assume so, they do a good job of keeping the costs low and using the same venue will probably mean that.
d0ugal··on JavaScript caching framework for client side caching in the browser
Head to this page with a browser, if its all green then its fully supported on that browser. Otherwise, open an issue on github :) http://d0ugal.github.com/locache/tests/index.html
d0ugal··on JavaScript caching framework for client side caching in the browser
Yup, this also need to be documented or worked on. I've only been using it to cache content from a public 3rd party API so not had to tackle this yet.
d0ugal··on JavaScript caching framework for client side caching in the browser
I agree, its not a good approach in general. Correct cache headers on the server is probably the way to go in many cases.

I originally created this handle working with an external API in a simple static files only app. It works really well for that usecase and solved my issues. It was then easy to make in a general way, so I decided to chuck it out in the wild and see if I can help anybody else.

Perhaps I should add an area to the README to define when you should (and maybe more importantly when you shouldn't) use this.

d0ugal··on JavaScript caching framework for client side caching in the browser
Sure - I'll do that.
d0ugal··on JavaScript caching framework for client side caching in the browser
Hmm. Good points. 1) I made them different operations just for clarity - however, it would make the API a little nicer if they were the same. 2) I agree with this - an object mapping would probably be easier.

Pull requests, issues etc. all welcome. Otherwise, I'll have a look at it myself.

d0ugal··on JavaScript caching framework for client side caching in the browser
Simply because I didn't know about it. Happy look at pull requests or I'll have a go at it myself if I get time.
d0ugal··on JavaScript caching framework for client side caching in the browser
neat - thanks. I'll check this out, I hadn't found many options when I originally looked.
d0ugal··on JavaScript caching framework for client side caching in the browser
That's neat. locache has a simple wrapepr around localStorage - the "locache.storage" object, so it would be easy to add an extra layer that supports other browsers. I had considered this already, but not had the need yet. There is an implementation in the Mozilla docs to mimic the localStorage API but store the data in cookies.
d0ugal··on JavaScript caching framework for client side caching in the browser
Good - I need to do further testing. However, it works well in mobile Safari from my testing - any help here on android etc. would be appreciated.
d0ugal··on JavaScript caching framework for client side caching in the browser
Expiration was the main reason I created it. Also it will handle storing objects.
d0ugal··on Valid JavaScript variable names
It's valid in Python 3 too.
← PreviousPage 3 of 3