HNHacker News
TopNewBestAskShowJobs

elsamuko

728 karma · joined March 29, 2012

https://github.com/elsamuko
submissionscomments
elsamuko··on When muscles work out, they help neurons to grow, a new study shows
Sea squirts digest their own brain when they become stationary: https://scopeblog.stanford.edu/2022/07/20/what-can-sea-squir...
elsamuko··on Show HN: Using C++23 <stacktrace> to get proper crash logs in C++ programs
Exactly this. I didn't try this, and I suppose that some low level pointer rewriting would be necessary to do this. I'm not sure if it's expensive though, maybe you can replace the pointers without resolving the stacktrace.
elsamuko··on Show HN: Using C++23 <stacktrace> to get proper crash logs in C++ programs
When I debug multithreaded programs, the stacktrace of a breakpoint usually ends somewhere in a worker thread. What I want is that the worker thread's stacktrace part is replaced by the one who put the work into it. Kinda like the program wasn't multithreaded at all.
elsamuko··on Show HN: Using C++23 <stacktrace> to get proper crash logs in C++ programs
A question: Would it be possible to pass the stacktrace of the current thread to another, so that the stacktrace would be traceable across threadpools or worker threads?
elsamuko··on Ask HN: Since when is everything a scam?
That's a paradox.

See also https://xkcd.com/552/

elsamuko··on Ask HN: Advice that changed your life?
It'll be a success or a good story.
elsamuko··on Ask HN: If you used to be socially awkward and shy, how did you improve?
Take social dancing lessons like Salsa, Bachata, Kizomba. These are very fun! But have a proper personal hygiene, some figures are very close.
elsamuko··on Reversing an integer hash function
For the cryptopals challenge, you have to invert the Mersenne Twister scramble function:

https://cryptopals.com/sets/3/challenges/23

https://github.com/elsamuko/cryptopals/blob/610ab19bf6823a34...

elsamuko··on Shirt Without Stripes
I was searching for a DisplayPort adapter for a Mac Mini and got MiniDisplayPort adapters for Mac :(
elsamuko··on How FZF and ripgrep improved my workflow
I included qmake and added a `deploy.sh` in the main source folder, which generates the deployed zip file. Let me know, if this doesn't build.

  * gitignore behaviour: If there is a .git folder in the search folder, it uses git ls-files to get all files to search in
  * a .git folder itself is never searched
  * hidden folders and files are searched
  * binaries are ['detected'](https://github.com/elsamuko/fsrc/blob/f1e29a3e24e5dbe87908c4ca84775116f39f8cfe/src/utils.cpp#L93), if they contain two binary 0's within the first 100 bytes or are PDF or PostScript files.
  * pipe behaviour is not implemented yet
  * it supports only one option-less argument as search term
  * folders are set with -d
elsamuko··on How FZF and ripgrep improved my workflow
There are no build instructions yet, you need to build boost with build_boost.sh and then open qmake/fsrc.pro with Qt Creator. There are binaries available here, too: https://github.com/elsamuko/fsrc/releases

And I know than benchmarking is hard, a coarse comparison is in scripts/compare.sh. More detailed performance tests are in test/TestPerformance.

elsamuko··on How FZF and ripgrep improved my workflow
I'm currently working on a searcher on my own: https://github.com/elsamuko/fsrc

When I started, I didn't know ripgrep, now I use it as reference. Of course it's still slower for regex searches and it has less options, but in some cases (e.g. simple string matching search), it is faster than rg (PM_RESUME in 160-170ms), mostly thanks to mischasan's fast strstr: https://mischasan.wordpress.com/2011/07/16/convergence-sse2-...

If you want, let me know, what you think about it.

elsamuko··on Show HN: Sudo for Windows
I'm using

  cygstart --action=runas
This works well, too.
elsamuko··on Gobby: A Collaborative Text Editor
I have a pi2 with smb, etherpad lite, prosody and sshd and it uses 170 MB after two weeks uptime.
elsamuko··on Cars That Talk to Each Other Are Much Easier to Spy On
> "The vehicle is saying 'I'm Alice, this is my location, this is my speed and my direction.' Everyone around you can listen to that,"

So, basically like the cellphone everyone already has in their pocket.

elsamuko··on Norway to switch off FM in 2017
Maybe not, but I'm not sure, if FM would work in that scenario. Google says, that there are two emergency broadcasting systems in Norway:

> http://en.wikipedia.org/wiki/Civil_defense_siren#Norway

> https://www.worlddab.org/country-information/norway/history/...

There is also an app for that ^^: http://www.umsalert.com/about

elsamuko··on Norway to switch off FM in 2017
I think all these issues will be shadowed by the development of mobile networks. You will plug in your phone, listen to spotify and the navigation will tell you about traffic and accidents.

There was a similar raise of concern in Germany, when the insurances bought the emergency system of the autobahn, which resulted as a non-issue, because shortly after everyone had a cellphone.

elsamuko··on Writing Multithreaded Applications in C++
You can share resources between two threads, this is harder with processes.

The use case is, that you don't block the UI while doing heavy or slow work, e.g. generating previews in an image organizer or fetching http requests in a browser.

Instead of std::thread, I'd rather recommend using std::function and a threadpool like this one:

http://threadpool.sourceforge.net/

elsamuko··on RegViz: A Web-Based Tool for Visual Debugging of Regular Expressions
HTML entities seem to break the parser. And FF warns of XSS if I want to share my XSS sample text:

http://regviz.org/?state=%7B%22regex%22%3A%22XSS%22%2C%22mod...

elsamuko··on Firefox Developer Edition
Try vertical tabs: https://github.com/darrinhenein/VerticalTabs

They are imho much more useful on todays widescreen displays than normal tabs.

elsamuko··on Ask HN: What (side) projects are you working on?
That's a great idea and execution. I'd consider a "Show HN"-posting on its own, so it won't get buried.

I'd add a captcha though to reduce potential misuse.

elsamuko··on The Windows Incident – Day 0
Run in a VM on a linux host with OpenGL enabled.
elsamuko··on Firefox 29
I just found out, that you can rotate images with the rotation gesture on OS X with Firefox.
elsamuko··on Why 9:41 AM is always the time displayed on iPhones and iPads
Another story, why casio watches are always at 10:58:50

https://encrypted.google.com/search?q=casio+digital&tbm=isch

http://mygshock.com/wiki/Trivia#Why_do_all_Casio_promotional...

elsamuko··on Lawsuit: Waze owes 'open-source' programmers $150 million
Or change the user agent to a search robot.
elsamuko··on Switch from Photoshop to Gimp: Tips From a Pro
Octave is awesome! Keep up the good work. At university everyone was begging for Matlab instances from the licence server, while I had 6 instances of Octave open :)
elsamuko··on Show HN: What's my browser?
Looks nice, but please sanitize your input:

http://www.whatsmybrowser.org/b/STOW3UD

Also the site completely breaks if I add rare unicodes at the end of the user agent:

🐧

elsamuko··on How to cope with “idea overflow”?
Write prototypes. You can implement these very fast, and see quickly, if it works.

E.g. I'm using Octave to test various imaging algorithms before implementing them in C++. Also, it helps verifying the C++ implementation and I can visualize the results.

elsamuko··on An analysis of the Adobe password dump
I changed mine to a 20 character pw, but couldn't login with it. I worked, when I entered only the first 12 characters.

You could try logging in with the first 12 characters.

elsamuko··on An analysis of the Adobe password dump
In addition, the password length of an Adobe account is restricted to 12 characters:

http://www.jirasekonsecurity.com/2012/12/adobe-limiting-maxi...

Page 1 of 2Next →