News for hackers. Stuff that matters.

mpcjanssen

Re:Go Browser Package on Sunday May 19, 2024 @07:24AM (#40406134)
It seems to recompile every regex on every matching operation. This is really slow. The compiled regexes should be cached in the different matchers.
Re:Getting SSH Port 22 on Monday February 12, 2024 @11:11AM (#39346530)
Add the lowercase -r for recursive scp and you have two screens with man pages open.
Re:Compare Webb's Images to Hubble on Wednesday July 13, 2022 @04:09AM (#32080137)
Redshift is indeed a matter of speed. But due to the expansion of the universe, relative speed and distance are directly related (Hubble's law).

So farther away means faster relative speed and thus more redshifted (Doppler effect) Farther away also means older light (due to the finite speed of light).

Putting that all together means that to observe old light from the start of the universe we have to look in the IR spectrum.

Re:Many Small Queries Are Efficient in SQLite on Wednesday January 12, 2022 @03:09PM (#29912100)
In the article it describes the N+1 problem with an example of the fossil timeline. In a system using Postgres, you would select all the timeline entries and then generate one big query to get the details of all the timeline items in one sql request. With sqlite you can just iterate over the items and do the queries separately. This makes handling this scenario much simpler.
Re:Google Groups has banned comp.lang.tcl on Tuesday June 01, 2021 @06:20AM (#27352535)
The computer says no. Probably some automated Google process. Curious what voting to undo it will accomplish.
Re:Undefined behavior in C is a reading error on Friday May 21, 2021 @06:07AM (#27232213)
There are plenty of examples in this thread alone.

In my opinion hinting won't help. Everyone who cares about the performance gain will enable the hint (which I expect will be almost everyone) so you have won nothing but added noise with the hint.

Re:We Don’t Use Docker on Tuesday March 16, 2021 @11:29AM (#26478080)
Cmd-Up brings you to the parent folder.
Re:Ask HN: Google Drive/Office 365 alternatives on Monday September 07, 2020 @03:33PM (#24402001)
Gsheet is just a link to the online copy. It's useless as a backup.
Faster than light in a medium. The last part matters. There is currently no reason to doubt relativity.
There is indeed also a relation between momentum and (rest) energy describing the conservation of energy, In the rest frame this relation reduces to the famous E=mc^2.
Re:Advent of Code 2019 on Sunday December 01, 2019 @09:11PM (#21679338)
Because advent is a common term for the 4 weeks before Christmas even in non religious contexts. And that is how it's used in this non religious project.
Re:Storing 50M events per second in Elasticsearch on Wednesday October 23, 2019 @12:53AM (#21331163)
Or you could use the FTS extension of SQLite. https://sqlite.org/fts3.html
Re:Todo.txt: Future-proof task tracking in a file you control on Wednesday August 21, 2019 @06:49AM (#20756098)
I would be very interested to know what your additional wishes are. Could you raise some feature requests at github [1]?

[1]: https://github.com/mpcjanssen/simpletask-android

Re:Python Is Eating the World on Monday August 12, 2019 @03:03PM (#20678734)
You are describing static typing. There is a well defined difference between strongly typed and statically typed.
Re:The Pike Programming Language on Saturday July 06, 2019 @01:42AM (#20368141)
The cli hello world exits with the main return value.
Re:Implement with Types, Not Your Brain on Wednesday June 26, 2019 @10:01AM (#20285075)
This could equally well be a function which takes a string and a seed and returns the hash.

The more concrete the type signatures become the less they become documenting.

A signature of a -> a defines the id function because the type is so generic. A function of String->String can do pretty much anything.

Re:Chicken Scheme 5.1 on Monday June 24, 2019 @04:35AM (#20261541)
Not everyone uses semantic versioning. In chicken, point releases can deprecate or remove functionallity. See http://wiki.call-cc.org/development-process for details.
"they have a 66% market share", in that world. A 100% market share is not needed to have monopoly power.
Not quite, without MCAS the flight behavior is quite predictable, it just doesn't match the existing type certification and it falls outside of the allowed parameters for this class of planes.
Re:Taskwarrior, where have you been all my life? on Friday May 11, 2018 @06:20PM (#17051138)
One big area where taskwarrior shines compared to solutions like todo.txt or org mode is synchronizing between devices using taskd. Although it is a bit involved to set-up, once it works, it works very well.

I am slowly trying to add task identities to Simpletask to get closer to this ideal (at the cost of 'ugly' meta data in the Todo file)

It is supported by asciidoctor-diagram.
Re:Dropbox V1 API endpoints disabled today on Friday September 29, 2017 @08:58AM (#15364796)
Dropbox has not only deprecated their V1 API endpoints, they are now also disabled. This means that any application which has not been updated to the V2 API will now fail. Expect a lot of unsupported apps to break for no good reason.
Re:I'm thinking of going full code-hipster and learning Tcl on Thursday February 12, 2015 @05:12AM (#9038192)
I just created a tool to walk a wsdl definition to create a single contained xsd file for distribution to users of the wsdl. With Tcl the tool was done in a couple of hours.

Edit: Also http://caiusproject.com/ looks very interesting.