Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bgrins
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
bgrins
16y ago
For a tiled repeating background, I would recommend looking into createPattern function https://developer.mozilla.org/en/Canvas_tutorial/Applying_st... . You can use code like this: context.fillStyle = context.createPattern(img, 'rep
32.
▲
by
bgrins
16y ago
For an introduction, read the section on limiting DOM manipulation here: http://www.artzstudio.com/2009/04/jquery-performance-rules/#... Here is the Gecko DOM reference: https://developer.mozilla.org/en/DOM/element (listing common mani
33.
▲
by
bgrins
16y ago
I see your point. Thanks for posting this code - I implemented the a* pathfinding algorithm in javascript, so I looked into some of these options also. I ended up using the basic 2d structure to store the grid, since it was the most strai
34.
▲
by
bgrins
16y ago
Calling fillRect is massively slower than calculating the an index in the array. As a general rule, it is more efficient to modify native data structures directly, while updating the DOM as infrequently as possible. I understand that you m
35.
▲
by
bgrins
16y ago
There are some already listed in this thread: http://news.ycombinator.com/item?id=1938859 I launched a CSS sprite generator at http://instantsprite.com .
36.
▲
by
bgrins
16y ago
I finished http://instantsprite.com . It's not really a startup, but it is an app that I was motivated by the startup sprint posts to finish. I submitted it a few days ago, and got a few comments: http://news.ycombinator.com/item?id=1922
37.
▲
by
bgrins
16y ago
Glad to hear it! I was hoping it could be useful to other people. I'm still working on it, so let me know if there is anything you'd like to see in it.
38.
▲
Show HN: My Fast CSS Sprite Generator
22 points
by
bgrins
16y ago
|
5 comments
39.
▲
by
bgrins
16y ago
I have noticed that recently the Chrome web inspector has gotten much better at working with pseudo classes. Maybe it is just the nightly version of Chrome, but when I inspect one of those links, I can see and edit the a:before pseudo clas
40.
▲
by
bgrins
16y ago
A couple of sites that have similar functionality: http://css3please.com http://www.css3maker.com
41.
▲
by
bgrins
16y ago
Can you explain this a little more? Do you load the rasterized image using a base64 url, or do you store specific drawing instructions in JavaScript (lineTo, moveTo, etc)? For the vectorized icon, do you load SVG inside canvas, or just dis
42.
▲
by
bgrins
16y ago
Here is a contrived example, that shows the pros and cons of each, as I see them. Pretend you have an 'link' object in JavaScript and you want to generate the view for that link using templating: var link = { url: 'http://news.ycombina
43.
▲
by
bgrins
16y ago
I don't think that it is useful for a standard site, one that needs to be indexed by search engines and needs all of it's content to be available on page load. I have made use of it in single page web applications before, though. It comple
44.
▲
by
bgrins
16y ago
Thanks, I signed up. I am working on a project for generating CSS sprites in the browser without any file uploads. I'm a little confused about what exactly I share with the emails. It says there will be three links, and I click on one tha
45.
▲
by
bgrins
16y ago
One of the benefits that web development offers that the App Store doesn't is that the code you write runs on any machine that has a web browser. Certainly dealing with IE is a headache - but to completely discount that fact that it doesn'
46.
▲
by
bgrins
16y ago
"A Fire Upon The Deep" by Vernor Vinge.
47.
▲
by
bgrins
16y ago
That was quick! I was wanting to see some sample apps with backbone, thanks for sharing. By the way, if you have the .0.1.1 release, you can call this.handleEvents(); inside of the initialize() function on the template instead of the rende
48.
▲
by
bgrins
16y ago
Make sure to read "A Deepness in the Sky" first. It's a prequel to "A Fire Upon the Deep", and also a Hugo award winner.
49.
▲
by
bgrins
16y ago
I found a video that helped me to visualize this design better than I could from the article. It is a 4 minute long animation of the interchange in action from the Missouri Department of Transportation found on this page: http://www.modot