HNHacker News
TopNewBestAskShowJobs

jlubawy

88 karma · joined April 15, 2013

https://infosec.exchange/@joshlubawy
submissionscomments
jlubawy··on How uv got so fast
Came here to ask about pipenv. As someone who does not use python other than for scripting, but also appreciates the reproduceability that pipenv provides, should I be using uv? My understanding is that pipenv is the better successor to venv and pip (combined), but now everyone is talking about uv so to be honest it's quite confusing.

Edit: to add to what my understanding of pipenv is, the "standard/approved" method of package management by the python community, but in practice is it not? Is it now uv?

jlubawy··on Could lockfiles just be SBOMs?
The FDA also requires SBOMs as of a few years ago for medical device software.
jlubawy··on A monopoly ISP refuses to fix upstream infrastructure
The periodic resets could also be watchdog timer related (without knowing what level their hardware is running on). Too long of a loop without resetting the timer (in a long loop), then the hardware also gets reset.
jlubawy··on How to Spot a Counterfeit Lithium-Ion Battery
Somewhat related work using a blockchain to trace recycled Li-Ion batteries: https://www.sciencedirect.com/science/article/pii/S266737892...
jlubawy··on Airlines required to refund passengers for canceled, delayed flights
I think we all know that airlines overbook, or cancel flights if not enough people are on a flight to make it economically viable.

At a minimum they should be required to provide the odds of a flight to be delayed or canceled before the day-of to allow customers to reschedule ahead of time to get to their destination on time.

Refund of money doesn't matter when you have a place to be at a certain time, especially if you plan months in advance, only to find out 3 hours ahead of time (and at 3:30am in the morning) that your planned flight for months is suddenly canceled for "non-operation".

Literally on a cross-country vacation right now where this is the second time that a flight has been delayed/canceled on me in the past two years (American Airlines). I want to be a loyal customer, but this feels very one sided, and any monetary recourse certainly isn't enough when you hsve a place to be at a certain time (and aren't informed that it's possible you won't make it there, or else worst case you can drive)

jlubawy··on Going in circles without a real-time clock
My raspberry pi is also currently dead, something it didn't like about updating the OS caused it to be bricked. All updates were done within the OS, so didn't expect anything bad to happen.

I could reflash the OS, but I also "don't have the time". I'll just use my laptop until I do have the time someday to resurrect it.

jlubawy··on Scripts should be written using the project main language
I tend to use go for "scripts" in non-go repos (typescript, C, etc) just for the simplicity of "you only need to install go" and pretty much all functionality is included in the standard library (usually something like JSON/XML/CSV parsing).

I'm OK with python for scripts, but go "just works".

jlubawy··on The rooftop solar industry could be on the verge of collapse
We got Sunrun within the past year on a house we bought 1.5 years ago (so we're NEM 2.0 which is important).

I'm in San Diego, we were paying about 500/month for SDGE (fluctuating anywhere from 300-800 throughout the year, 800 because of gas prices last January).

We're paying Sunrun a fixed $300/month, with a 4% increase annually for inflation (presumably electricity prices will also go up during the same time).

Sunrun 100% paid for a main panel relocation required by our county to be to code, so we literally haven't paid for anything other than the 300/month bill.

So far I've only had a good experience.

jlubawy··on Cue Health Launches Pharmacy Offering
Cue Health, a healthcare technology company, today announced an expansion of its Cue Integrated Care Platform to include a new pharmacy offering with over-the-counter and prescription medication options for a growing number of common health and wellness needs. These include sexual health - such as erectile dysfunction and herpes - as well as birth control, hair loss, and more.
jlubawy··on How to write a great Arduino library
This plus VS Code and CMake is what I'd use to start any new project, saves time having to figure out all the options yourself.
jlubawy··on Lightweight API Design in Swift
Reminds me of this API design post for Go: https://dave.cheney.net/2014/10/17/functional-options-for-fr...
jlubawy··on SFTPGo: A Full Featured SFTP Server in Go
Serious question, why hasn't anyone rewritten it in Go? Been awhile since I've looked at it but C to Go doesn't seem that difficult to translate.

Edit: just looked at the amalgamation again, it's huge... Still surprised no one has tried it yet that I know of. Pre-processor directives would probably make it even more difficult though.

Edit2: and it already works so what's the point, other than an extremely challenging problem

jlubawy··on Intentional Acoustic Interference Damages Availability and Integrity in HDDs [pdf]
For what it's worth Western Digital does extensive testing of drive performance under audio vibration, especially on mobile drives that are likely right next to a laptop speaker.
jlubawy··on Show HN: A free, lightweight static page to get stock quotes using the IEX API
I recently stumbled upon the Airbnb Javascript Style Guide, which I found showed a lot of good examples of how to use newer Javascript features: https://github.com/airbnb/javascript
jlubawy··on Ubuntu 18.04 LTS Bionic Beaver Released
I wonder if they had this Bionic Beaver in mind, I hope not :)

THE FAMOUS BIONIC BEAVER Our Signature Drink for Sharing! Seagrams Vodka / Gin / Rum / Triple Sec / Peach Schnapps / Light Beer / Grenadine / Splash Cranberry

https://guava-beach.com/menus/drinks/

jlubawy··on Don't remove the $(nop) command below
The MSP430x5xx and MSP430x6xx families have this problem. From the user-guide [1]:

> Include at least one instruction between the clear of an interrupt enable or interrupt flag and the EINT instruction. For example: Insert a NOP instruction in front of the EINT instruction.

> Include at least one instruction between DINT and the start of an code sequence that requires protection from interrupts. For example: Insert a NOP instruction after the DINT

Luckily if you use the MSP compiler's intrinsic functions to enable/disable interrupts it takes care of this for you.

[1] http://www.ti.com/lit/pdf/slau208

jlubawy··on A movie that doesn’t exist and the Redditors who think it does
Best Sinbad movie was by far was First Kid http://m.imdb.com/title/tt0116311/

Edit: Sorry forgot about Jingle All the Way, after that

Edit2: Oh man, and he was great in Its Always Sunny in Philadelphia

jlubawy··on Why numbering should start at zero (1982)
In C it also helps to think of it in the equivalent pointer form:

   p == &(p[0])
   p[0] == *(p+0)
   p[1] == *(p+1)
where p is a pointer to some arbitrary data type. Then it becomes an offset in memory.
jlubawy··on Intake – American's largest psychiatric chain
If you haven't read the book or seen the movie I'd highly recommend "One Flew Over the Cuckoo's Nest", both are excellent.
jlubawy··on Western Digital Announces Ultrastar He12 12 TB and 14 TB HDDs
"The density of helium is one-seventh that of air, which reduces drag force acting on the spinning disk stack and lowers fluid flow forces affecting the disks and the heads, allowing for platters to be thinner and a larger number to be packed more densely." [0]

[0] http://www.anandtech.com/show/10106/western-digital-introduc...

jlubawy··on Fitbit is reportedly buying Pebble for around $40M
My two cents on smart watches: If you already wear a watch, and if you regularly check your phone for notifications, a smart watch is perfect for you (contingent on price and look). If you never wore a watch before then maybe not so.

I finally decided to buy a Moto 360 about a year ago, my main reasons for choosing it:

   * it looked like a normal watch (has a round face, and I use a minimal digital watch face, I don't like the fake analog ones)
   * at the time it cost about the same as a normal (nice) watch $150, I waited for the 1st gen price to go down from $300
It's actually gotten to the point where if I'm not wearing my watch I get that "naked" feeling as if forgot my phone at home. Wearing the watch makes it way easier to check messages, and dismiss those which aren't important. The only time I don't wear it is when running (I think it's too fragile) or at nicer events like weddings where I'll substitute it for a nice "real" watch (plus I shouldn't be checking notifications anyway).

Edit: I also have never used the fitness tracker features, I personally don't see the point of them. Either I went running or exercised that day or I didn't, I don't think number of steps really or my heart rate tells me more than I already know. Again, my two cents...

jlubawy··on We Tracked Down a Fake-News Creator in the Suburbs
Makes me really question if this article is fake to prove some sort of point, it's really hard to know (for sure) anymore
jlubawy··on A six-part story of a PTA-president mother, framed for drug possession
It said at one point in the article that Easter had made the name up based on his Indian neighbor's name.
jlubawy··on San Diego Struggles to Keep Its Young Tech Talent
In my opinion this article and others I've seen like it seem have everything backwards. For new graduates I wouldn't recommend living in downtown San Diego, at least not right now. It's (relatively) expensive and can get old real quick.

Instead I'd suggest trying to find a job downtown or elsewhere and live somewhere more exciting/fun like the beach (Mission/Pacific) or any of the neighborhoods surrounding downtown (North/South Park). The rent is generally <$1000/month, the commute from any of these places is <20 minutes, and there's always something to do.

Also, haven't seen the University of San Diego (USD) mentioned in any of the other comments, but they just opened a standalone engineering school last year, so I'm sure that will also start to attract a lot more talent to the area (biased USD alumnus here).

After doing a 4 year stint in Orange County and just moving back last year, I'd say things are looking better than ever for SD, not worse. I'm glad I moved back and excited to see where it goes from here.

jlubawy··on Show HN: Book about writing web apps in Go without a framework
Like you describe in the book, I had written a web-app in Go in which I was doing all the SQL handling manually, I found that it became very difficult to maintain this over time as I added new columns and more tables. Just the other day I switched to using GORM (github.com/jinzhu/gorm) for my database drivers and so far it's been a life-saver. Since this is a book about not using frameworks, GORM might be overkill for what you want to do, but I thought it was worth mentioning.
jlubawy··on House tells NASA to start planning two Europa missions
I'm all for giving NASA more money for something that I assume is more difficult given the distance, hopefully it's spent well.
jlubawy··on Traffic to Wikipedia terrorism entries plunged after Snowden revelations
Anyone else find the photo's caption amusing? "A man is seen near cyber code"
jlubawy··on Texting and Driving? Watch Out for the Textalyzer
Did you mean the fifth amendment?
jlubawy··on Visual Studio Code 1.0
I've been using Sublime Text 3 for probably 2-3 years now at work (and home) and I love it. The only downside is it costs money but you can use it for free as long as you don't mind a popup asking you to purchase it every 10-20 saves.

I used Notepad++ for a few years before Sublime, I eventually switched because of the lack of Notepad++ support on Linux. I didn't want to have to remember the commands/shortcuts for two editors (and I avoid using Vim if I can).

jlubawy··on CaptionBot by Microsoft
I uploaded the sad Michael Jordan meme face and it responded "I think it's Michael Jordan wearing a suit and tie and he seems :(", sounds about right...
Page 1 of 2Next →