HNHacker News
TopNewBestAskShowJobs

pserwylo

1,053 karma · joined June 20, 2012

Developer. Free software enthusiast.

Some of my open source android apps:

https://github.com/lexica/lexica https://github.com/retrowars/retrowars https://github.com/babydots/babydots https://github.com/beat-feet/beat-feet

submissionscomments
pserwylo··on Breaking down Amazon's mega dropdown
Thanks for the list. We were quite literally discussing this at work only yesterday, because the IntelliJ interface doesn't do anything. They use the Java Swing toolkit, which doesn't have any special treatement of sub-menu's.

I was still dissapointed, not because Swing doesn't support it (I can't stand the default Swing Look and Feel), but because everything about their custom Look and Feel is awesome compared to default Swing, so I was hoping that they had added this feature too.

I'm hoping that the open source community edition includes the source for their Look and Feel, but I'll have to wait until I've finished checking out the 1GB of source from github and then start trawling through it.

pserwylo··on Dalvik patch for Facebook for Android
I think the limitation is only on older versions, so they would probably only do the hack if it was pre Gingerbread. They mention that ICS works as expected, so I would be more than a bit mortified if they did this hack for new working versions too.
pserwylo··on Bill to make legislation more transparent, easier to understand
Slightly off topic, but this reminds me of a great talk on simplifying legislation so that law people can actually read and understand it:

http://www.ted.com/talks/alan_siegel_let_s_simplify_legal_ja...

In the talk, Alan discusses how they simplified a non-trivial set of legislation to something more like an advertising brochure. They then confirmed with appropriate lawyers that it was equivalent to the original legislation.

I would love to see a NPO or volunteer group spring up, comprised of marketers and lawyers, who retroactively applied this technique to existing laws, then published them freely.

pserwylo··on SkiFree in the Browser
Also, there was a bug (feature?) in the win 3.1 version where if you sat yourself under a seat, and then held the up arrow to slowly go up at the same time as the lift, and your score would rocket up by the 1000s.

We used it to increase the high score on our primary school computers from a measly 11 to several tens of thousands in a couple of minutes.

Otherwise, pretty darn faithful recreation, great job!

pserwylo··on Photoshop 1.0 Source Code
I mean comparable, in the sense that it has a similar set of features, and allows you to perform similar tasks with similar amount of effort.
pserwylo··on Photoshop 1.0 Source Code
I'm curious, how does this compare to something like The Gimp, which I've always considered comaprable to Photoshop in almost every way)
pserwylo··on Google Fails the Turing Test
I wonder how this fits into Australian Consumer Law (ACL) [0]. We have a relatively robust set of rules that govern how a business selling a product/service interacts with their customers.

For example, if you purchase something and it is not as described, or it is faulty, or certain other conditions then the business must be able to remedy the situation. I fail to see how you could satisfactorily comply with the ACL if you're only form of customer service is AI bots.

[0] http://www.consumerlaw.gov.au/ (overview at http://www.accc.gov.au/content/index.phtml/itemId/963190)

pserwylo··on Facebook Connect was down
With Ghostery running, it should not even load anything from a Facebook domain. The (buggy) code to redirect people to facebook.com would no doubt be served fromFacebook themselves. Stopping that code from being served to your browser means they can't redirect.

I absolutely love Ghostery and other related tools.

pserwylo··on Compare-perf: CLI tool for simple benchmarking with statistics
The tool gives more meaningful statistics about test runs during benchmarking, e.g. by running two commands and seeing which performs better.

Here is some example output (taken from the slides linked to in the article):

  +------------------------------------------------------------------------------+
  |                   +                            x                             |
  |                   +                            x                             |
  |           +       +                            x x            x              |
  | +    ++   +++     +                            x xxx xx       x              |
  |++ ++++++++++++++++++                   x  x    x xxx xxx  xxxxx              |
  |++ ++++++++++++++++++ +++ +       ++   xxxxxxxxxx xxxxxxxxxxxxxxxx  xx x    xx|
  |     |______MA______|                        |________A________|              |
  +------------------------------------------------------------------------------+
      N           Min           Max        Median           Avg        Stddev
  x  57      45.62364     46.437353      45.93506     45.951554    0.19060973
  +  57     44.785579     45.534727     45.042576     45.056702    0.16634531
  Difference at 95.0% confidence
    -0.894852 +/- 0.0656777
    -1.94738% +/- 0.142928%
    (Student's t, pooled s = 0.178889)
pserwylo··on Announcing Topaz: A New Ruby
You should check out a tool I heard about recently called "ministat". An example of how to use it to benchmark multiple runs, and then compute the statistics from each run are available here:

http://anholt.net/compare-perf/

Example output:

  +------------------------------------------------------------------------------+
  |                   +                            x                             |
  |                   +                            x                             |
  |           +       +                            x x            x              |
  | +    ++   +++     +                            x xxx xx       x              |
  |++ ++++++++++++++++++                   x  x    x xxx xxx  xxxxx              |
  |++ ++++++++++++++++++ +++ +       ++   xxxxxxxxxx xxxxxxxxxxxxxxxx  xx x    xx|
  |     |______MA______|                        |________A________|              |
  +------------------------------------------------------------------------------+
      N           Min           Max        Median           Avg        Stddev
  x  57      45.62364     46.437353      45.93506     45.951554    0.19060973
  +  57     44.785579     45.534727     45.042576     45.056702    0.16634531
  Difference at 95.0% confidence
    -0.894852 +/- 0.0656777
    -1.94738% +/- 0.142928%
    (Student's t, pooled s = 0.178889)
pserwylo··on Resolutions for programmers
Sounds pretty cool. Starred already. I hope it works out nicely, I'm happy using a mish-mash of unison and git (depending on particular needs) for my own stuff, but I'm using rsync for my fiance's entire PHD folder (including large amounts of data, word docs, downloaded papers, etc) and I'd make good use of a tool like this.
pserwylo··on Resolutions for programmers
My resolution is to actually contribute to some open source projects this year.

For upwards of five years, I've been attending linux.conf.au and the Open Source Developers Conference in Australia. Each time, I have a great time; discuss interesting things with interesting people; come home and check out a bunch of interesting repositories; and then... do nothing.

But not this year! Aha!

I left linux.conf.au four days ago. Since then, I've:

- written up one bug report [0]

- joined the discussion on another bug report [1]

- patched a piece of software on github for the second bug report [2]

- realised that somebody else has done essentially the same patch in essentially the same way :( [2]

- created a web scraper [3] for my local council to scrape ~30,000 planning applications for [4] and asked for it to be included

- added 12 sets of traffic lights to OpenStreetMap near a friends house [5]

This feels great. I think I can safely say that this year is going to be different to the others. I'm quite aware that many of these are extremely minor, but they I hope that they get me over the line and get me contributing more regularly. I may be able to make a bit of a difference this time.

Now... if I can just get around to going to the local hackerspace that for the last five years I've promised myself I'll attend...

[0] https://tickets.openaustraliafoundation.org.au/browse/PA-444

[1] https://tickets.openaustraliafoundation.org.au/browse/OA-503

[2] https://github.com/mischat/shareNice/pull/18

[3] https://scraperwiki.com/scrapers/shire_of_yarra_ranges_plann...

[4] http://www.planningalerts.org.au/

[5] http://www.openstreetmap.org/user/pserwylo/edits

pserwylo··on What is up with the insane long Google results URL now?
To improve on nivla's answer, you can right click on almost any input field and select "Add to search bar". This will build the appropriate URL, based on the text field's name attribute and the action of the form which posts the field.

So if I had a form on "example.com" which had an action of "/do-search", and finally, a text input with a name of "query", then the URL it will add is:

http://example.com/do-search?query=%s

Saves you having to inspect the URL yourself to figure out the parameters.

Then you can go to the settings page nivla mentioned and make it the default search engine, so that any non-url's you enter into the omnibox are redirected to the %s in the URL above.

pserwylo··on Be careful with JS numbers
Dynamically typed vs Weakly typed languages aside, you still only have one choice in the browser. Sure, you can write in something which has all the greatest features you love, but it will still be cross compiled to JavaScript, with all of its pitfalls right?
pserwylo··on PHP needs a vision
I think that Rasmus and Anthony seem to have two different thoughts on the word "vision". Anthony was very specific in the fact that his concept of a "vision" is about the paradigms PHP supports:

> 1. "PHP Should Strive To Be A Full Featured Object Oriented Language".

> 2. "PHP Should Remain A Procedural Language WIth Some OO Features"

> 3. "PHP Should Be Implementation Neutral, and Support All Paradigms Equally".

Rasmus' response was more general, about the vision for who and what they'd like to enable with the language.

There may be a bit of cross over, but they are two distinctly different views. And for what its worth, I think both are correct. I think PHP should choose to be one of the three things Anthony suggested, and stick to it. This would help in discussions about what features to take on board in new versions. I also think that Rasumus is right in that PHP is a general purpose scripting language with a focus on web development. However this is more about the type of people you will get interested in using and contributing to the language.

EDIT: Grammar

pserwylo··on Two Billion Pixel Photo of Mount Everest (can you find the climbers?)
I would say: Pre Google Maps era. I find it perfectly intuitive to click and drag most online maps around, but it might have been weird the first time I encountered it.

For example, I still like to scroll down to go down in a web page, and get confused (and frustrated?) when I use the new mac mice which use the touch-screen/map type scrolling. However I'm quite sure that if I was a mac person, I'd get used to it fairly quickly.

pserwylo··on Tricks to better public speaking
While we're on the topic of slides, read Edward Tufte's "Cognitive style of PowerPoint". It is short, cheap and sweet discussion about all he sees wrong with most powerpoint (or keynote or libreodfice) presentations.
pserwylo··on Draw.io Doomsday sale - 100% off for 24 hours
Do you use there straight out drawing capabilities? Or is there someway/plugin which allows the drawings to have the semantics of a graph (e.g. Line routing or layout managers.

FYI I use yEd because it deals with all the semantic stuff very well.

pserwylo··on JetBrains Doomsday Sale - 75% off for 24 hours only
I believe you can download it and evaluate for 30 days. In your case, it may be more like 23 hours, but you still get to play.

I've had pretty good success with most basic JavaScript stuff, whether in a .js file or embedded in some server side template. Haven't tested it with more complex stuff though. I also concur with my siblings here that IntelliJ IDEA is my "one IDE to rule them all!".

pserwylo··on JetBrains Doomsday Sale - 75% off for 24 hours only
If I recall correctly, the Academic version of Idea was $100AUD, and now the personal version is only $50. I was going to buy the academic version (for PhD related development), but now I'll definitely buy the personal version.

I imagine it would be the same value for PyCharm.

pserwylo··on New Homepage
Wow, it just occurred to me that I never see the github home page when I visit the site, seeing as I'm always logged in on the machines I use.

Compared to that cached version, I much prefer the new one. This is despite agreeing and lamenting that there is nothing particularly fun about it. But hey, I'm not even sure what I mean by that :)

pserwylo··on Apple blocking SkyDrive from iOS store, wants cut of revenue
Perhaps a similar situation would be online payment gateways for dealing with credit card transactions.

There are strict guidelines about what you need to do in order to be considered secure [0]. As a result, we don't end up with every man and his dog doing it, but there is sufficient competition compared with the single-player in-store app purchase situation.

[0] - http://en.wikipedia.org/wiki/PCI_DSS

pserwylo··on Apple blocking SkyDrive from iOS store, wants cut of revenue
I agree. Perhaps a nice way to solve it is to tell Google and Apple:

  "Let people do in-app purchasing however they want, if they use yours, you can take a cut."
By all means, you make it as easy as possible to integrate with your solution by providing tools and support, and then you take a cut if they choose to make it.

Of course, this will never happen, but if it did (either because they thought it was morally right, or because of regulation), then it seems like a way to solve this issue.

pserwylo··on 25-GPU cluster cracks every standard Windows password in less than 6 hours
I saw a talk on Mozilla Persona [0] the other day from one of the devs. I like the idea of these decentralised authentication systems. I was (and still am a fan of) OpenId too.

There is no practical reason that website operators need to know that a user typed in the right password, only that they are who they say they are. Anything which is able to prove this (to a satisfactory level) with the least amount of information being stored by the website is good in my books.

[0] - https://www.mozilla.org/persona

pserwylo··on 25-GPU cluster cracks every standard Windows password in less than 6 hours
I disagree. If a website gets hacked and its customer database is stolen, then this could be used to crack the user passwords.
pserwylo··on SwiftKey Flow beta now open
I quite like using SwiftKey, its great at fixing my sloopy typing.

But coming out from under my tin foil hat (coincidently I just returned from a crypto-party at the Open Source Developers Conference), I don't trust proprietary keyboards which require internet permissions, because they have access to all of the passwords I type in. I've got DroidWall [0] denying internet access to it, and I can sleep easier at night. The only down side is I can't download new dictionaries if they become available.

[0] - http://f-droid.org/repository/browse/?fdfilter=droidwall&...

Edit: Specified why I don't like them having internet permissions

pserwylo··on NASA releases stunning photos of Earth at night
Ahh, thank you for the links. They are some cool pictures from space, that really show how bright the oil rigs are.

I can take solice in the fact I was about 1/8th right about the fishermen :)

pserwylo··on NASA releases stunning photos of Earth at night
One interesting place is down the south of Argentina, off the east coast. Although there is no land there, there is the (almost spiral) pattern of lights in the ocean. They seem about as bright as Melbourne, and more expansive.

I was told once that these are fishermen, who tend to congregate in one area at night time. I'm not sure if it is for social reasons, or business reasons, or something else.

pserwylo··on Shell Gamification (how I learn to use my shell aliases)
This is cool. I am thinking of gamifying my alarm clock in the morning, so that I earn more XP by not snoozing, and just waking up.

Primarily it is a way to help give my mate some experience programming, but I also hope that it will help kick my morning alarm snoozing habit.

In the future, I thought it would be cool if you could just pass it new config files to allow gamifying everything. For example, if you want to kick your fast-food-for-lunch-habit, then allow the gamify-everything app to award XP and trophies for things such as "Making your own lunch for X straight days"

pserwylo··on Bitcoin Block #210 000 mined - reward halving
This is what I don't understand about bitcoin. With my extremely small amount of knowledge about it, I thought the idea was to make it so that the rewards for mining were aligned closely with the price of electricity.

But is this the price of electricity in the USA? What about hiring people to do mining in countries with cheaper electricity?

What about if some miners had a solar panel on the roof? Although, as I write this, it occurs to me that at some point, it would be more economical to sell the solar generated electricity back to the grid, rather than use it for mining hardware...

← PreviousPage 5 of 8Next →