HN user

ahrjay

257 karma
Posts28
Comments45
View on HN
www.thecssninja.com 14y ago

Bunyip: client-side unit testing through the command line in real browsers

ahrjay
4pts0
www.thecssninja.com 15y ago

I scope, you scope, we all scope for NoScope JS style element injection quirks

ahrjay
1pts0
www.thecssninja.com 15y ago

Remote debugging with jsconsole, a different take

ahrjay
5pts2
www.thecssninja.com 15y ago

Getting fancy with the console

ahrjay
21pts5
www.thecssninja.com 15y ago

I’ll have the DOMFileSystem with a side of read/write access please…

ahrjay
1pts0
www.thecssninja.com 15y ago

The H5F library, emulate the HTML5 forms chapter

ahrjay
17pts0
www.thecssninja.com 15y ago

Drag out files like Gmail

ahrjay
47pts6
www.thecssninja.com 16y ago

Pure CSS collapsible tree menu

ahrjay
53pts9
www.thecssninja.com 16y ago

How Gmail’s drag and drop works and why it’s not supported in Safari

ahrjay
3pts0
www.thecssninja.com 16y ago

Futurebox, lightbox without the javascript and target pseudo-class

ahrjay
8pts2
www.thecssninja.com 16y ago

Is that a Speedo in your pocket?

ahrjay
1pts0
www.thecssninja.com 16y ago

Custom radio and checkbox inputs using CSS

ahrjay
7pts0
www.thecssninja.com 16y ago

Web Notifications

ahrjay
10pts0
www.thecssninja.com 16y ago

Even better image preloading with CSS2

ahrjay
1pts0
www.thecssninja.com 16y ago

Futurebox, revisited

ahrjay
1pts0
www.thecssninja.com 16y ago

The File API has changed

ahrjay
2pts0
www.thecssninja.com 16y ago

Font Dragr: A drag and drop font tester

ahrjay
1pts0
www.thecssninja.com 16y ago

Make IE awesome by turning it into Google Chrome

ahrjay
1pts0
www.thecssninja.com 16y ago

Drag and drop file uploading using JavaScript

ahrjay
1pts0
labs.thecssninja.com 16y ago

Experiment using HTML5 and the twitter API to call #songsincode tweets

ahrjay
2pts0
www.thecssninja.com 16y ago

Create the accordion effect using CSS3

ahrjay
2pts0
www.thecssninja.com 16y ago

Real text rotation with CSS

ahrjay
1pts0
www.thecssninja.com 17y ago

Accessing the GPS in iPhone Safari

ahrjay
1pts0
www.thecssninja.com 17y ago

Determine iPhone orientation using CSS

ahrjay
1pts0
www.thecssninja.com 17y ago

Futurebox, lightbox without the JavaScript

ahrjay
45pts17
www.thecssninja.com 17y ago

How to create offline webapps on the iPhone

ahrjay
1pts0
www.thecssninja.com 17y ago

Top 8 April Fools websites of 2009

ahrjay
1pts0
www.thecssninja.com 17y ago

Advanced hover states using CSS

ahrjay
1pts0

Yeah the instructions are not clear. They're on the github repo[1] linked in the header.

1. Install Chrome Dev: Ensure you have version 127. [Download Chrome Dev](https://google.com/chrome/dev/).

2. Check that you’re on 127.0.6512.0 or above

3. Enable two flags: chrome://flags/#optimization-guide-on-device-model - BypassPerfRequirement chrome://flags/#prompt-api-for-gemini-nano - Enabled

4. Relaunch Chrome

5. Navigate to chrome://components

6. Check that Optimization Guide On Device Model is downloading or force download if not Might take a few minutes for this component to even appear

7. Open dev tools and type (await ai.languageModel.capabilities()).available, should return "readily" when all good

[1] https://github.com/ryanseddon/FFprompt

In my home state of Victoria Australia the government had a program to give out these powerpal[1] units for free that could measure your usage in realtime using the flashing led on our smart meters, we also require all energy grid operators (the people who own the poles and wires) to have an energy portal where users can get near realtime data to the nearest 30mins, soon to be 5 with some new legislation.

The former most people have no idea about but the powerpal has been a smashing success for consumers to understand what is using energy.

[1] https://www.powerpal.net/

It's not being "ultra-strict" it's a requirement of the spec[1] that the file be served with the correct mimetype.

[Edit] It doesn't work in firefox, the attribute triggers the permission bar but because it's the wrong mimetype it doesn't actually store anything.

Check it in Tools > Options > Advanced > Network

You'll notice that it has the domain referenced but has 0 bytes stored.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/...

You may be the same person who mentioned on twitter about this. That error should only happen when dropping some data that isn't in the correct format, it should never get to that part of the code if you're dropping a font file from your file system. Do you mind creating an issue on the github repo[1] with some info?

I've tested on ubuntu 11 with FF5 and all seems well, perhaps FF6 may be doing something to cause it.

[1] https://github.com/ryanseddon/font-dragr/issues

Here's some interesting observations, this will work on any document that is in designMode or any element that has contenteditable attribute.

Firefox doesn't have the clipboardData interface like IE, Chrome and Safari have so it must be built into Firefox. From a quick look it seems like it doesn't expose the stream data to JavaScript which is unfortunate, I would love for this to be available.