News for hackers. Stuff that matters.

elsamuko

Sea squirts digest their own brain when they become stationary: https://scopeblog.stanford.edu/2022/07/20/what-can-sea-squir...
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.
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.
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?
Re:Ask HN: Since when is everything a scam? on Sunday January 08, 2023 @05:26AM (#34297829)
That's a paradox.

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

Re:Ask HN: An advice that changed your life? on Saturday October 29, 2022 @06:08AM (#33382627)
It'll be a success or a good story.
Take social dancing lessons like Salsa, Bachata, Kizomba. These are very fun! But have a proper personal hygiene, some figures are very close.
Re:Reversing an integer hash function on Saturday January 15, 2022 @09:40AM (#29946668)
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...

Re:Shirt Without Stripes on Monday April 20, 2020 @01:02PM (#22925810)
I was searching for a DisplayPort adapter for a Mac Mini and got MiniDisplayPort adapters for Mac :(
Re:How FZF and ripgrep improved my workflow on Saturday July 06, 2019 @12:11PM (#20370334)
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
Re:How FZF and ripgrep improved my workflow on Friday July 05, 2019 @01:59PM (#20364413)
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.

Re:How FZF and ripgrep improved my workflow on Friday July 05, 2019 @01:31PM (#20364217)
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.

Re:Show HN: Sudo for Windows on Thursday June 15, 2017 @01:08AM (#14558044)
I'm using

  cygstart --action=runas
This works well, too.
Re:Gobby: A Collaborative Text Editor on Tuesday January 05, 2016 @01:25PM (#10844961)
I have a pi2 with smb, etherpad lite, prosody and sshd and it uses 170 MB after two weeks uptime.
Re:Cars That Talk to Each Other Are Much Easier to Spy On on Thursday October 29, 2015 @12:58PM (#10472480)
> "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.

Re:Norway to switch off FM in 2017 on Sunday April 19, 2015 @01:06PM (#9403856)
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

Re:Norway to switch off FM in 2017 on Sunday April 19, 2015 @11:37AM (#9403533)
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.

Re:Writing Multithreaded Applications in C++ on Saturday February 07, 2015 @09:44AM (#9014093)
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/

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...

Re:Firefox Developer Edition on Monday November 10, 2014 @04:55PM (#8586776)
Try vertical tabs: https://github.com/darrinhenein/VerticalTabs

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

Re:Ask HN: What (side) projects are you working on? on Wednesday November 05, 2014 @11:37AM (#8562628)
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.

Re:The Windows Incident – Day 0 on Sunday November 02, 2014 @01:23PM (#8547441)
Run in a VM on a linux host with OpenGL enabled.
Re:Firefox 29 on Tuesday April 29, 2014 @12:38PM (#7668139)
I just found out, that you can rotate images with the rotation gesture on OS X with Firefox.
Or change the user agent to a search robot.
Re:Switch from Photoshop to Gimp: Tips From a Pro on Thursday March 27, 2014 @06:14PM (#7483892)
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 :)
Re:Show HN: What's my browser? on Sunday March 09, 2014 @06:12PM (#7370213)
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:

🐧

Older »