HNHacker News
TopNewBestAskShowJobs

josso

407 karma · joined January 6, 2011

Living in Denmark, studying CS at Aarhus University.

I love technology and what it can do for people.

Always interested in hearing from (or meeting) people. :)

Twitter: @johankj Web: johanjensen.dk

submissionscomments
josso··on How to Correctly Detect Credit Card Type
Unfortunately, many payment systems represent the dropdown for the months with zero-padding while others are without. Usually, typing the 0 (because it's on the card) will – if it's not included in the dropdown – not select the correct month. This can cause frustration for the end user. The best way to input credit card information, would be to only have text-fields.
josso··on Not Wanted
Really? I thought it sounded more like KISS and what Apple have been doing: Making software accessible to the (amateur) enduser. (E.g. the iWork and iLife suites as well as many iOS-apps)

Sure, some people might need advanced tools for their advanced workflows, but there's often a huge market in software for the everyday-man and -woman who only [writes] as a hobby.

josso··on Regex Golf
It isn't working because (...) is just matching 3 characters. What your regex is saying, is basically: Match any 3 characters, then any character 0 or more times, then any 3 characters.

You're reusing the regex and not the match. Back referencing essentially means that you'll match whatever is matched the first time, rather than reusing the regex pattern.

I hope that made a little sense. Grouping, capturing, matching and backreferences is part of what makes regex tricky and very powerful. You might want to use some of the online tools, which can help explain the regex visually.

josso··on Bashstrap – For your OS X terminal
Which is why you setup your shell (bash/zsh/fish) to check for the existence of $SSH_CLIENT. If it exists, you can assume you're connecting via SSH and add username and hostname to $PS1.
josso··on Regex Golf
Regex explained:

    (...) # Match exactly 3 (the dots) characters and save them as a group (the parenthesis)
    .* # Match any character (the dot) 0 or more times (the asterisk)
    \1 # Reuse the first group
josso··on IntelliJ IDEA 13 is Released
Exactly. I should've mentioned that. You can't run IDEA with only Oracle JRE 7. You need to install Apple's JRE 6 too.
josso··on IntelliJ IDEA 13 is Released
Great update, but still no support for Java 7 only in OS X. :(
josso··on Winning at Candy Crush
Wouldn't you need to decrypt, on a jailbroken device, it to get something useful out of the assembly? Or is that not needed for disassembling?
josso··on Firefox 25 is released
Mike West, developer advocate at Google Chrome in Münich, had a great talk, recently at GOTO Aarhus, where this was mention. The talk was focused on security and mentions the new sandboxed iframes[1]. With the inline iframe, iframe's can now be used as div – a sandboxed div.

The idea is that you can sandbox e.g. social buttons by putting them in a sandboxed iframe. You can also populate the iframe's without extra HTTP-requests by the iframe, by using "srcdoc". This is a perfect way to sandbox user generated comments on your blog.

I recommend reading [1] as it covers all of this.

[1]: http://www.html5rocks.com/en/tutorials/security/sandboxed-if...

josso··on Off
> The presentation lacked modern salesmanship.

And even then, it's still light years better than most companies in the tech/gaming-industry. It's an incredible standard we rate them against.

josso··on He got 1%, we can't hire him
Or job postings in 2009 which required at least 3 years of experience with iOS development.
josso··on Why Is Netflix Secretly Cropping Movies?
This is one of the reasons I ended up using the Mac app Movist (which was once open source, but later redone to be on the Mac App Store for $5). I actually mainly use this because of better shortcuts and because of its subtitle handling.
josso··on Ask HN: Does iOS7 change what I should learn?
I'd go for iOS 6 books to get you started. Later you can join the (free) developer account [1] and watch some of the WWDC-videos about why and what Apple has changed in iOS 7.

[1]: https://developer.apple.com/register/index.action

josso··on OSX Mavericks uses Latest Ruby and Python
Great to hear. Which version of Python?
josso··on Ask HN: Gift for web designer
If he's designing on a Mac, then I'm sure a poster such as Michael Flarup's Keep Calm would be a cool gift[1]. If he is on Windows I am sure he'll still enjoy some kind of design poster.

[1] http://society6.com/Flarup/Keep-Calm-nq1_Print

josso··on Ask HN: all the macs in the room are 41m early, do yours too?
I can only talk for my own Mac but no, its time is correct: 18:03. Both when using time.euro.apple.com and pool.ntp.org.
josso··on Do you use the clipboard in the terminal?
On Mac OS X you can use `pbcopy` and `pbpaste` to copy and paste from/to the Terminal.
josso··on How should I behave as a developer in a project that's headed for failure?
> Taking a better job is fine, but halfway a project it might kill the project when some of the top guys decide to leave. It might even be worse when the architect of the legacy-system decides to leave with knowledge of all the undocumented business rules.

Exactly. The world is pretty small and you shouldn't step on somebody's toes unless you absolutely don't see another way out.

The sensitive thing to do here, is to make sure you've got your ass covered and if this is a persisting problem or you feel like you can't work there anymore, then you quit after the current job is done. And hopefully you can leave with a good recommendation.

josso··on The Firing Offense
I've been thinking of getting a magstripe reader/writer and perhaps also a chip-reader/writer. Do you have any cheap device you can recommend?
josso··on The Firing Offense
Definitely anonymously and with a hash of a secret message to prove it was you, in case there'll be a bonus.
josso··on Ask HN: I'm lost. Please help
> I feel as though I've invested too much time and energy to bail now.

I'm currently reading through "What I wish I knew when I was 20" by Tina Seelig (more entrepreneur-y than expected, but pretty good) and this exact topic is discussed in Chapter 5.

> […] “even great ideas require a tremendous amount of work to reach a successful outcome, it’s incredibly hard to know when to keep pushing on a problem, hoping for a breakthrough, and when to walk away. We all know that persistence is to be admired, but when does it become foolish to continue working on something that’s never going to fly? Gil Penchina, CEO of Wikia, describes the dilemma wonderfully: “If you throw gasoline on a log, all you get is a wet log. But if you throw gasoline on a small flame, you get an inferno.” That is, it’s important to know whether you’re putting energy into something that has the potential to pay off. This is one of life’s biggest challenges. We often stay in dead-end situations way too long. This occurs when companies commit to a doomed product or project, or when individuals stay with jobs or in relationships that make them miserable, hoping the situation will improve. So how do you know when to quit? This is a huge philosophical question. It’s always a mammoth challenge to separate your desire to make something work from the reality of the probability that it will work. Of course, the more you put into a project, the more likely it is to succeed. But some efforts will never pan out, no matter how much time, money, or sweat is injected. The most scientific answer I’ve found is, listen to your gut and look at your alternatives. Essentially, you have to negotiate honestly with yourself. Do you have the fortitude to push through the problems in front of you to reach a successful outcome, or are you better off taking another path?

> So quitting is hard—but it’s even harder to do it well. I’ve seen people quit gracefully and others quit so clumsily that they leave a huge crater in their wake. As discussed in detail in chapter 8, you are likely to bump into the same people again and again in life, often in unexpected ways. This alone is reason enough to make sure that when you quit, you do so with careful thought about the consequences for those around you. Besides the impact that quitting gracefully might have on you later, it is just the right thing to do. You can never rationalize quitting in such a way that you hurt your colleagues, friends, or former business.

> A colleague told me about his assistant, who was doing a terrific job. He gave her great reviews and spent a lot of time talking with her about her career path within his group. She made it clear that ultimately she hoped to move into a different field, and my colleague was supportive of this. In fact, he told her he would be delighted to serve as a reference for her anytime. With this as a backdrop, my colleague couldn’t have been more surprised when his assistant came in one day and gave two weeks’ notice. The team was in the midst of a huge project, the deadline three weeks away. She was going to leave one week before the project was completed, putting the entire team in a very difficult position. My colleague asked her several times if she would consider staying one more week to help him get to the end of the project, which involved dozens of people directly and several thousands indirectly. She refused, saying, “I know you’re going to be unhappy that I’m leaving no matter when I go, so I decided to do what I want.”

> My colleague felt as though he’d been kicked in the stomach. It was nearly impossible to fill in the holes she left during the last week of the project, and everyone worked around the clock to try to fill the void. All those who worked with her will remember that decision. Despite the fact that she did a terrific job while she was with them, the damage she did to her reputation during the last weeks of her employment dwarfed all the positive things she had done in prior years. In sharp contrast, I’ve seen others quit jobs with remarkable style. Even if they were leaving because the job wasn’t a good match, the grace with which they left made such a positive impression that everyone involved would be pleased to give them a glowing recommendation at any time in the future. They provided enough notice to fill any gaps, they took the time to put their work in order so that someone else could pick up where they left off, and they even offered to help with the transition. These folks are heroes. They mastered the art of quitting well, and used their skill to turn a bad situation into something positive.

josso··on Your Mac, iPhone or iPad may have left Apple with a serious security risk
Not a long time from private disclosure to public disclosure, but in reality not much will change. Perhaps Apple could use a more unique SSID on their networks e.g. "Apple Demo 2A422A" which would be different from store to store.

On the other hand, there are so many places with free open wifi, which could easily be used instead. I'm pretty sure most of the computers on campus have connected to either McDonalds or one of the 4 different networks available in public transport.

josso··on Wikidata

  Douglas Adams
https://www.wikidata.org/w/index.php?title=Q42
josso··on Bill Watterson's Speech – Kenyon College, 1990
@unalone: You're dead and most people won't see your comments/reply.
josso··on Git koans
Really annoying on an iPad while zooming in on the text.
josso··on Ask PG: Will HN ever get a search (& memory) friendly url structure?
Oh well… Here is a simple bookmarklet that will append a slug to the url:

    javascript:history.pushState({}, document.title, document.URL + "&title=" + document.querySelector('.title a').innerText.toLowerCase().replace(/[^\w ]+/g,'').replace(/ +/g,'-'))
josso··on What do grad students in math do all day?
It kind of reminds me of Matt Might's "The illustrated guide to a Ph.D." [1]

(Which I now see have been posted in an earlier comment)

[1]: http://matt.might.net/articles/phd-school-in-pictures/

josso··on Show HN: Save Memory in Google Chrome
Is this any different from opening the Chrome Task Manager and quitting every tab? (Memory-wise)
josso··on Who speaks Latin these days?
Why do developers need to be paid so much? Can't they just live in their moms basement and work in the garage?
josso··on Alarm Clock Myth - How to wake up early
What if I wake up 2 hours before the alarm clock goes off? I can live with 15 or 30 minutes but any more and I most likely will go to sleep again. Where is the cut-off from too-early to perfect morning routine?
← PreviousPage 2 of 3Next →