HNHacker News
TopNewBestAskShowJobs

lemcoe9

441 karma · joined December 28, 2012

submissionscomments
lemcoe9··on Nginx-CGI brings support for CGI to Nginx and angie
Absolutely. For me, OpenResty combined with a custom Lua script solved an incredibly complicated business problem that I ran into a couple years ago, and now that arrangement serves thousands of complex requests per day. With Nginx and that custom code combined into a single configuration, not requiring a separate backend service, we turned a complicated problem into a very simple one!
lemcoe9··on The owner of ip4.me/ip6.me, Kevin Loch, has died
ip4.me and related websites actually inspired me to create a more-whimsical version of the website, which I call ipkitten.com. Not only do you get your IP address, User Agent, and approximate geolocation, but you also get a kitten GIF!

It also works from the command line, like this:

  $ curl ipkitten.com
  4.2.2.2
I am sure that Kevin has saved engineers and other IT people tons of headache and time with his simple, helpful, and ad-free tools.
lemcoe9··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Another shameless plug for my website, you can use ipkitten.com to get your public IP address from your terminal:

  $ curl ipkitten.com
  27.44.144.144
And if you visit it in a browser, you get your IP address and a kitten GIF!:

https://ipkitten.com

lemcoe9··on Apple introduces M4 chip
The 4090 costs ~$1800 and doesn't have dual OLED screens, doesn't have a battery, doesn't weigh less than a pound, and doesn't actually do anything unless it is plugged into a larger motherboard, either.
lemcoe9··on Stadiums Are Already Using Facial Recognition at Games
As someone who works as a broadcast engineer at a Major League Baseball stadium and has interacted with numerous ballpark security employees, the use of facial recognition software is quite widespread in professional sporting venues, both to identify "do not fly list" individuals (banned, trespassed, known terrorist, etc.) and "VIP list" (local and larger politicians, high net-worth individuals, celebrities, corporate magnates, etc.) people.

It also dramatically reduces the amount of time it takes to locate missing children, which is an almost-daily occurrence.

lemcoe9··on Sig Sauer P320, a popular handgun with police, is firing on its own
And that is why police officers use Level 3 holsters.

https://safariland.com/collections/level-3-retention-holster...

lemcoe9··on Sig Sauer P320, a popular handgun with police, is firing on its own
In general, handguns with active safety levers are considered less-safe than firearms without active safeties when being carried in proper holsters (ones where the trigger area is completely covered) because of the additional steps required to use the firearm when it is deployed. Having a pistol come out of the holster ready-to-fire is always going to be advantageous to having to remember to manipulate the safety lever, ensure the firearm is loaded, ensure the firearm is in-battery, etc. when the time comes.
lemcoe9··on Sig Sauer P320, a popular handgun with police, is firing on its own
Product reviews, trigger specifications, and such. It really is just a matter of personal preference. Firearms like Glocks don't have "active safeties" where you enable/disable them with a lever, but they do have a variety of "inactive safeties" which prevent the firearm from discharging when dropped/rattled/whatever.
lemcoe9··on The Federal Reserve Is Deflating Financial Bubbles, Without a Crash
https://archive.ph/bWh7Q
lemcoe9··on 87% of American teens own an iPhone; 88% expect an iPhone to be their next phone
It is definitely not new, at all.

Source: I am in my mid-20's.

lemcoe9··on New York changes gun buyback after seller gets $21,000 for 3D-printed parts
As federally-licensed firearms manufacturer (FFL07/SOT02), I can attest to how straightforward and even downright "easy" it is to create numerous firearms and firearm parts of varying legality. On the "not so illegal" side you have pistol slides, custom triggers, accessory railings, etc. that are all completely-legal to make, possess, sell, use, etc. It would be like 3D-printing a new case for a desktop computer.

On the other hand, you have things like removable drop-in auto-sears (RDIAS) [1], Glock selector switches [2], MP5 auto-sears, AR15 -> M16 conversion jigs, handmade silencers (suppressors) [3], and numerous other components that not only require a federal license to create/possess/use, but also require a special taxpayer status called an SOT (Special Occupational Taxpayer) [4] because all of the aforementioned items are construed as machine guns (even if the device merely converts a firearm to a machine gun, and of course silencers) under the National Firearms Act of 1934 [5], and later clarified with the Gun Control Act of 1968 [6].

In addition to those items, NFA also deals with short-barrel rifles (rifles with barrels under 16 inches in length) and short-barrel shotguns (shotguns with barrels under 18 inches in length) which are incredibly easy to "accidentally" own. However, the largest firearms loophole in the country is that by attaching a "pistol brace" to an otherwise regulated short-barrel rifle, you are in compliance. Hundreds of thousands of Americans are currently in violation of the National Firearms Act of 1934 because they possess these short-barrel AR-15's. The differences between these two configurations are strikingly and laughably small [7].

Especially with the machine gun parts, the idea of governments/municipalities expecting citizens to simply surrender them - even for "fair market" value - is simply absurd and altruistic.

Fun Fact: You yourself (in most states) can own a fully-automatic firearm! The only catch is that it has to be manufactured before May 1986, be registered under NFA, and transferred to you on an ATF Form 4 (which requires a $200 tax stamp [the same as it cost in 1934] and around 210+ days of waiting). These are known as "transferable machine guns" and are quite valuable despite their almost-identical resemblance to their semi-automatic counterparts. Here are some for sale: https://otbfirearms.com/nfa/transferable-machine-guns/

[1] https://www.recoilweb.com/turning-your-ar-15-into-an-m-16-15...

[2] https://buybestguns.com/product/semi-full-auto-glock-handgun...

[3] https://solventtrapsdirect.com/

[4] https://en.wikipedia.org/wiki/Special_Occupational_Taxpayers

[5] https://en.wikipedia.org/wiki/National_Firearms_Act

[6] https://en.wikipedia.org/wiki/Gun_Control_Act_of_1968

[7] https://www.guns.com/news/reviews/ar-pistol-vs-ar-rifle-what...

lemcoe9··on Why cats are crazy for catnip
Another opportunity for a shameless plug of my website: https://ipkitten.com

It simply serves you a random kitten GIF (some of which involve catnip) and provides your IP address alongside some other connection information.

EDIT: The ARIN JSON endpoints have rate-limited me, so ISP information is currently unavailable.

lemcoe9··on Simple kitten placeholder
Another opportunity for a shameless plug of my kitten-inspired website: IPKitten.com, which serves to give your IPv4 address, User Agent, and a ARIN-based IP address lookup to show the ISP.

https://ipkitten.com

lemcoe9··on Adobe to remove Flash Player from web site after December 2020
You might take a look at Flashpoint: https://bluemaxima.org/flashpoint/
lemcoe9··on PHP in 2020
I do not understand, both of the expressions on the left-hand side are NULL, which looks like ?? is doing the same thing in both examples. A non-existent array key and a non-existent property on an object are logistically identical.
lemcoe9··on What would happen if we randomly gave $1,000 to poor families? Now we know
Yeah that worked very well with Goldman Sachs, Morgan Stanley, AIG, S&L's in the 90's, General Motors, Chrysler, etc. The Eisenhower National System of Interstate and Defense Highways, Hoover Dam, and similar projects were all complete failures. /s
lemcoe9··on The Ripe NCC Has Run Out of IPv4 Addresses
IPv6 is not "overly-complicated." It requires some new knowledge on IP address notations and new concepts when talking about DHCP and such, but it is functionally not more difficult than IPv4.
lemcoe9··on The Ripe NCC Has Run Out of IPv4 Addresses
Having used SRV for both TCP and UDP applications for over 5 years, I can say that it is a somewhat-terrible way to do things.
lemcoe9··on On AstriCon 2019 and Sangoma's Stewardship of Asterisk and FreePBX
FREEPBX™ and 3CX generally do the same thing, but in very different ways. FREEPBX™ is truly free, unless you want to pay for premium support, Zulu, etc.

3CX has very straightforward pricing, and is quite simple to configure with the numerous SIP providers in the market.

lemcoe9··on Why Positive Cashflow Matters
Breaking News: Companies that make real profits have more flexibility.
lemcoe9··on Whatever happened to Six Sigma?
Don't feel bad. Green Belt offers a neat set of tools that can help you prove something to a manager in the future. Black Belt just continues to build on the same information.
lemcoe9··on Back End Systems Using Python
This website's UX is very confusing.
lemcoe9··on FCC closes telemarketing loophole used by scammers
I am glad that you "don't care" about breaking a few million phone systems across the world. Every single IT manager, however, does care. If you start having carriers wholesale-blocking calls based on their lack of STIR/SHAKEN's verifications, then you will completely disable the vast majority of IP- and POTS-based phone systems in the country, many of which were purchased/installed in the early-2000's.

You can have the "I don't care" attitude when you have one telephone number in your life. You have to care when you have a couple hundred thousand telephone numbers in your life, like I do, working for a Class 3 ITSP.

lemcoe9··on FCC closes telemarketing loophole used by scammers
This is not completely true. Especially in VoIP, there are usually 1-5 layers of FCC-licensed phone companies involved in the call. The CLEC (Bandwidth, Level 3, AT&T, Comcast, et al) sell their numbers to Class 3 ITSPs like Flowroute, SIP.US, VOIP.ms, SIPSTATION, Twilio, etc, and then frequently that service is once again sold to another vendor that might have an actual end-user using the service. Just because one company's switch says "where the call came from" does not mean anything related to the actual calling party.
lemcoe9··on Man Who Built the Retweet: “We Handed a Loaded Weapon to 4-Year-Olds”
Answer: Stockholders
lemcoe9··on Show HN: A weekend replication of STOKE, a stochastic superoptimiser
A weekend replication of STOKE, a stochastic superoptimiser

A super optimizer is a type of compiler that takes a program and finds the optimal sequence of instructions that perform the same task as the original program.

A stochastic thing X is a thing X that uses randomness.

STOKE is a superoptimizer that finds optimal instruction sequences to perform a particular task by using numerical techniques which rely on randomness (markov-chain-monte-carlo/MCMC) to explore the space of "all possible programs".

Here, we re-implement STOKE for a tiny stack machine language whose instruction set is Push, Add, Mul, and And. Sample output

* original: (nparams: 0 | [IPush 2,IPush 3,IAdd])* [IPush 5] | score: 2.5 // constant folding: 2 + 3 -> 5

* original: (nparams: 1 | [IPush 2,IMul])* [IDup,IAdd] | score: 2.25 // strength reduction: 2 * x -> x + x

* original: (nparams: 1 | progInsts = [IDup,IAnd])* [] | score: 3.0 // strength folding: x & x == x

That is, we automatically disover those program transformations by randomly trying different programs (in a somewhat smart way).

lemcoe9··on Ask HN: Are Lucene/Solr/ES Still Used for Search?
Here is a very good Quora answer on why you should never use ES as a central repository for data: https://www.quora.com/Why-shouldnt-I-use-ElasticSearch-as-my...
lemcoe9··on Why I Indent My Code 8 Spaces? (2018)
I may be one of few that actually do not care about the tabs versus spaces "argument." I meet others that use one or the other, and then realize how insignificant that choice is at the end of the day, especially when most IDEs will manage and convert from one convention to another, with ease.
lemcoe9··on Understanding Enough Awk to Search Piles of Files and Text
The article is a great introduction to `awk`, but I can't help but bring up UUOC's, or Useless Uses of `cat`: http://porkmail.org/era/unix/award.html
lemcoe9··on Raspberry Pi 4 Review
As bulky and slow as Wordpress is, it's still dead-simple to set up and start publishing with. Many people value that convenience.
Page 1 of 5Next →