tubelite

Joined 15 years ago

Karma
201
Submissions
63
Member since
Jan 17
Programmer, technophile, anti-dentite. Projects: https://pigshell.com http://vmxray.com
View on Hacker News

Recent submissions

Comment · 10 years ago
If you don't have the right to opt-out, then you are not a customer, or citizen, or devotee. You are the product being sold.
Comment · 10 years ago
Comment · 10 years ago
Thanks for openwrt. One of the nicest Linux distros I've used. Love ubus and procd and all the shell interfaces.

I was literally just now using the image builder to create a custom image and ran into this news.

Comment · 11 years ago
I agree. Mea culpa.

I am still active on the project and I am working to address the issues you mention, though progress has been slower than I could wish.

Comment · 11 years ago
Try

ycat https://news.ycombinator.com | hgrep .athing | html

ycat uses YQL to bypass CORS.

There are a few interesting workflows which can be done completely in the browser without a proxy: e.g. copying files from one Google Drive account to another, backing up Google Drive to Dropbox, and so on.

Comment · 11 years ago
Since most websites are not CORS-friendly, you need to run the psty proxy on your desktop.

python psty.py -a

For further information on psty, and a download link, see: http://pigshell.com/v/0.6.4/usr/doc/psty.html

Alternately, if you don't want to run psty, you could try the "ycat" command which uses YQL to bypass CORS. This is useful if you are trying to access HTML pages, rather than binary resources. e.g.

ycat http://en.wikipedia.org/wiki/List_of_countries_and_dependenc... | hgrep table.wikitable | html

You may have to try it a couple of times; I notice that the YQL endpoint sometimes refuses connections.

Comment · 11 years ago
Please see https://github.com/pigshell/pigshell/issues/15 for a workaround.

Since most sites are non-CORS, trying CORS and then falling back to proxy would impose too much of an overhead for the common case.

Comment · 11 years ago
This is how I think about it (don't take my word for it, I don't really understand QM)

QM is like lazy evaluation. The result is not computed until someone actually forces it. This is different from the result being computed but you just don't know what it is.

Another way is to think of entangled states is like two virtual addresses which alias to the same physical address. The addresses could be very far apart (similar to entangled particles being very far apart), and their contents are coupled but "uncomputed", until one of the virtual addresses is accessed, faulting in the physical page. At this point, both addresses instantly point to the same contents.

Comment · 11 years ago
FYI: You can't export contacts from Facebook either. The API no longer supports getting the entire friends list (restricted to return only those friends who have also installed the same app).

There is a "download all my facebook data" option, but that only gives you a plain "firstname lastname" list. No contact information there either.

Comment · 11 years ago
I've been playing with SL4A (scripting languages for Android), but there doesn't seem to be any active engagement by the project owners.

An actively maintained Python-for-Android with some way to access native Android APIs is great news. I want to poll an Arduino-based web server and send out SMSes if alert thresholds are reached, and a little python script seems just the ticket.

Comment · 11 years ago
I'd love to try Spark - Photon seems to be out of stock at the moment though.

In the last couple of weeks I've been dabbling with Arduino Uno and Nano and have been very impressed by how plug-and-play everything is.

But I've been super-impressed with the ESP8266. A thumbnail-sized wonder which has a 32-bit CPU, GPIO pins, wi-fi, more RAM than the usual Atmels, costs peanuts ($5) and is available worldwide on ebay and other sources. Now that it has both the Arduino IDE and the nodemcu Lua environment, this little thing is poised to take off. I just finished wiring up a temp sensor to the 8266 using the Arduino IDE. Now I have a tiny temperature web-service on my wi-fi network, responding to a Bonjour/mdns name and it took all of half an hour.

Comment · 11 years ago
Serious question: Has anyone tried this out on actual children? How did it go? Maybe children can more easily accommodate the number of arbitrary elements and rules the game requires, because as an adult, I find the alligator motif actively confusing.

Using concrete names, people, chocolates rather than abstractions usually helps a lot in teaching, because it leverages existing mental models and reduces the cognitive burden of tracking abstract tokens and behaviours. In this case, the alligators and their eggs behave so differently from anything familiar (egg hatching to whatever the parent ate?!) that I find the cognitive burden increases to the point of giving up. IMHO, for adults, a straight-up explanation with abstract symbols would actually be easier to comprehend.

Comment · 12 years ago
This is great news.

I just wrote a QRcode-reader Django widget to be used on a mobile browser, using the LazarSoft library (https://github.com/LazarSoft/jsqrcode). The library worked great, but the HTML5 bits turned out to be surprisingly painful. Camera selection works differently in different browsers - Android Chrome has an API, Firefox throws up a selection dialog every time. Mobile Chrome doesn't let you emit audio unless it is in the context of a UI interaction (desktop Chrome does!)

Worst of all: poor autofocus. I tried multiple Android devices (Nexus 4, Moto G v2, Nexus 5) and in all cases, autofocus on getUserMedia() worked indifferently or not at all, especially close up. In contrast, native barcode/QRcode reader apps on the same devices did much better, snapping to focus very quickly.

I wonder if you faced something similar?

Comment · 12 years ago
This is a new bug. I'm guessing it got exposed because you have a 32-bit machine, and I've been testing so far on 64-bit. Edit line 404 of psty.py as follows:

  -            self.send_header("Last-Modified", self.date_time_string(entry["mtime"]))
  +            self.send_header("Last-Modified", self.date_time_string(entry["mtime"] / 1000))
If it still doesn't work, maybe we can continue the conversation on the google groups forum?
Comment · 12 years ago
Argh! This is a bug. Has been fixed in master (https://github.com/pigshell/pigshell/commit/f402ef445977015a...)

As a workaround in 0.6.2, please use a trailing slash in the name of the mount point. ( /dir/ rather than /dir)

Alternately, use http://pigshell.com/v/0.6.3-pre4/ which would have the fix.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton