News for hackers. Stuff that matters.

jetpm

Great! In the google developer console where you can configure the android play store entry for your app, some special pictures require a fixed size:

1024 x 500 (functional graphic) 180 x 120 (advertisement graphic) 1.280 x 720 (TV banner)

It would be immensely useful if I could directly download them in that size.

Re:Pingendo – Free, simple app for Bootstrap prototyping on Sunday January 31, 2016 @09:12AM (#11006428)
I've made an app & website that lets you quickly try out java snippets on android, e.g. if you see a code snippet on stack overflow you can just copy paste it and throw it in and let it run on your phone. But I didn't continue with it because no one uses it :) https://runondroid.com/
Re:Show HN: Quick Command-line File Completion on Friday July 24, 2015 @03:46PM (#9944675)
I always wanted this, typing paths is so annoying. I think the command line got stuck in the last millennium. So much things could be automated there, especially command completion. Why do I have to remember the stupid -xfv parameters for tar or whatever. Computers should be like magic.

What could be improved: if I type "nano <ctrl f> index." I see some index.js files but not my index.html file from my node project.

Ah ok it's in a different folder, but it would be cool if it showed anyways.

That's a good point, completely random would be too much, at least the age should be somewhat similar and maybe the place to meet is also a context, e.g. a bar already indicates a form of interest, different than meeting in the water park.
When I think about it, it feels like there is some sort of mental barrier that I have to overcome to make plans with strangers. Maybe when the meetups would be less personal like 20 random people going to a bar or club, I'd rather join in on something. Then nobody would realize if I leave, but if I bond with some people its fine.
So I need friends to find friends, and an iPhone. Damn. But It looks cool, if I had friends and an iPhone I'd probably use it.

Ask HN: How to detect the three bursts in this data

I have this accelerometer data from my phone: http://imgur.com/a/cJoJHThe first artifact is when I lifted my phone from the table, the 3 bursts in the middle when I tapped on my phone 3 times and the last artifact when I placed it on the table again.I want to detect the 3 taps in the middle algorithmically and ignore the other things.I already have some working code that relies on thresholds,...

( Read More... | 4 comments | 3 points | on HN )
Re:A dataset of every Reddit comment on Sunday July 12, 2015 @05:25AM (#9872999)
Nice, I see you use neural networks, can you explain a bit how you are training them?
Re:Ask HN: Share your favourite bash/zsh aliases on Saturday July 11, 2015 @09:01AM (#9869607)
I made a bash function for easier alias binding. It makes aliases immediately available and permanent. Also you don't need quotes so you can use tab completion etc. It goes like this:

ali <name of alias> <command>

to get it put this in your .bashrc

  function ali() {  
   echo "alias $1='${@:2}'" >> ~/.bashrc   #in ubuntu use   ~/.bash_aliases  
   echo "made alias:";  
   echo "alias $1='${@:2}'";  
   source ~/.bashrc;  #reload bashrc  
  }

When I realize I type a command often, I just push the up arrow to get the command again, append "ali" infront of it and turn it to an alias. Works direclty.

And of course the alias to show the list of all aliases:

  alias alis='cat ~/.bash_aliases'
I also made a chat app, it's like the exact opposite of this, its totally distracting http://quatshy.com
Re:Show HN: scorethings - a website for scoring things on Friday July 10, 2015 @07:28AM (#9863280)
Re:Linkmoji – Turn any link into Emoji on Thursday July 09, 2015 @12:50PM (#9859075)
or 💩.com
Re:Jshell: The Java Shell (REPL) on Sunday July 05, 2015 @11:41AM (#9833862)
I developed something similiar but for the Android API, it goes together with an app, but it is also a Java Read-Eval-Print Loop where the code is executed on the device. It's in beta phase. https://runondroid.com
Re:Show HN: Execute android code snippets via browser on Friday July 03, 2015 @04:35PM (#9827800)
For example you can let your phone vibrate or read the GPS of your phone by typing code into the browser.
Re:Show HN: Self-hosted stack-based programming language on Tuesday June 30, 2015 @09:45AM (#9805115)
Can I do this with strings as well?

"tsch" ==pa

pa dump

# "tsch"

Re:Show HN: A simple password generator on Tuesday June 30, 2015 @09:30AM (#9805021)
awesome and scary at the same time. awescary. If I understood it correctly this should work for nodejs servers as well, for example when they create random ids for users or urls.
Re:Show HN: A simple password generator on Tuesday June 30, 2015 @06:18AM (#9804110)
I'm curious, why is Math.random() not OK? Does it have a bad seed?
The rain example is great. Reminds me of minecraft.