HNHacker News
TopNewBestAskShowJobs

rarecoil

309 karma · joined February 2, 2019

swe -> red team -> blue team -> security architect. 15+ years in tech. veteran of a lot of big tech companies.
submissionscomments
rarecoil··on AMD is having its day
ROCm doesn't completely suck with the Radeon VII, which is a Radeon Instinct MI50. Deep learning is not my day job and I'd like to avoid supporting NVidia's insane prices for DL-capable cards, so I've been dealing with the performance hit, and only using the R7 for DL tasks then switching it off when the power isn't needed. The XFX Radeon VII is actually on sale for Newegg for $569 so it's a lot of power (and 16 GB HBM2) for that price.
rarecoil··on Twelve-factor app development on Google Cloud
If you go to the bottom of the page, you'll notice that https://12factor.net/ is written by Adam Wiggins, a Heroku cofounder.
rarecoil··on Best Smartphones That Still Have a Headphone Jack
I think we might simply be wrong as to what we got out of the iPhone SE and what Apple's intent with it was. The SE was a substantially cheaper iPhone.

Perhaps at the time, Apple had a bunch of old 5/5S-style hardware that they needed to get rid of, and so to liquidate it all, they created the "iPhone SE" as a low-end phone to get rid of all of those extra components in that form factor.

If so, the fact we all bought it because it was a small frame device is actually secondary to why it was created in the first place. If this motivation is true, it's also likely that if there is an SE2, it's going to be iPhone 7 or iPhone 8 in size and part selection with the better SoC, and you will be getting an A13-based, 4.7", Touch ID that looks indistinguishable from the iPhone 7 or iPhone 8 depending upon what bodies they have a lot of sitting around (or a lot of manufacturing capacity therein). I personally don't suspect a modernized 5/5S style phone from Apple the next time.

rarecoil··on How to repair the parts that explode in Lenovo yoga laptops
So the author is wrong in his conclusion? I am happy to know the correct answer.
rarecoil··on How to repair the parts that explode in Lenovo yoga laptops
> It is very likely that the reason the transistor failed was because of poor cooling, as it is a low cost, high-resistance transistor that is running near its design limits. To prevent the problem from re-occuring, a soft / deformable silicone heat transfer pad can be applied to sink excess heat to the aluminum shell of the computer. In the 1990s, this was a very popular way to keep the motor controllers in CD-ROM drives cool without any additional hardware.

So it seems like the problem is a cooling issue, which doesn't surprise me. "Ultrabooks" often seem to sacrifice decent cooling for the sake of thickness, and I think it is because most people really do not tax their hardware all that much. If you do - and you do not have a proper workstation-class laptop - you're likely to run into similar issues.

My Thinkpad X280 suffers from poor cooling that quickly leads to throttling, even undervolted. My old work A485 wasn't that great, either.

rarecoil··on Parallelism in Crystal
I just learned about Crystal a couple of weeks ago and it's completely subsumed every new personal project I have into its domain. I have long missed Ruby's syntax and human-friendly feel, but began to prefer the speed I could find in other languages like Go.
rarecoil··on An Afternoon in Tokyo with the Man Who Designs Casio G-Shock Watches (2017)
The Let's Note series is underrated. I wish they sold them in America.
rarecoil··on OWASP Cheat Sheet Series
I assume you mean implementing insecure code hard.
rarecoil··on OWASP Cheat Sheet Series
> The way to reach people is not with scolding

I think it's an unfair assumption to say that I'm scolding the teams I work with by trying to educate them on security issues - the fact that that is your takeaway from my last post says a lot about another issue with security organisations: that there often exists some adversarial nature between software engineering and product security. I moved into security from product engineering. I try my best to be the ally of the engineers, and educate them on bug classes so they can learn to deal with issues throughout the software development lifecycle, from early threat modelling and design issues to creating implementations that minimize weaknesses.

A helpful solution, as the child poster says, is to have frameworks that stop you from doing the dumb stuff, but smaller organisations sometimes don't have that luxury, and even still you can shoot yourself in the foot with your frameworks (Using front-end frameworks as an example, I've seen way too many extraneous uses of dangerouslySetInnerHtml and DOMSanitizer bypasses when I was a consultant.)

> scanners that are easy to use, helpful, and don't have lots of false positives.

I've written a fair amount of automation tooling to glue together COTS/OSS SAST/DAST applications. Most of even the better commercial tools still yield insane amounts of false positives and require human interaction to make sure that the bug is actually exploitable. Common web security tools such as Burp Suite Pro's scanner are effectively useless for most modern web apps. Some languages and architectures are better than others, some companies' internal rulesets are better than others, and it's a struggle to get something that works for even the majority case. Some of the most mature technology companies I've worked at are still trying to build these tools across their infrastructure, and they have better success in some languages/platforms than others, and they don't have the resources to keep up with the new languages / platforms / frameworks engineers want to use for this project or that. It's an uphill battle, and education is still just as important as tooling.

rarecoil··on OWASP Cheat Sheet Series
I'm a product security engineer. I reference these all of the time during my own work to make sure I didn't miss something stupid, but I also hand links out to them to engineers when we do find bugs in their code. Most of the time I think they're ignored.

If most engineers just took a second to read the ones that were directly pertinent to their projects and tried to be cognisant of some mitigations, I'd find substantially less low-hanging-fruit vulnerabilities in the first review pass. Doing so actually makes my job significantly more difficult, and forces me to dig deeper - which is a good thing. Instead of writing up for the 100th time some input validation spiel, I can spend time searching for more complex bugs, writing protocol fuzzers, and doing real analysis in the time I have for the review.

rarecoil··on Mining Bitcoin on an Apple II
This calculation makes me curious, as I know very little about computer engineering/hardware but want to learn: what is the current-most energy-efficient general CPU architecture/core in performance-per-watt? Some high-speed ARM? A Y-series x86?
rarecoil··on Apple Reports Declining Profits and Slowing Growth Again
> Is there no value in having a nice S-curve, ending up as one of the most profitable companies in history, and then just staying insanely profitable for a long time in a sustainable way?

Not to investors that want a quick ROI quarter-over-quarter on that share price.

rarecoil··on MITM on HTTPS traffic in Kazakhstan
Inmarsat offers relatively slow, very expensive satellite Internet uplink services if you really need some connectivity: https://www.inmarsat.com/service/isathub/
rarecoil··on New 2019 MacBook Air features a slower SSD than 2018 model
Arch Linux and Windows 10 Enterprise LTSC. While it may be slower to use Windows, the difference hasn't been immediately obvious. I use Windows for gaming and browsing only and stay in Arch most of the time.
rarecoil··on New 2019 MacBook Air features a slower SSD than 2018 model
SATA SSDs also come in M.2 format.
rarecoil··on New 2019 MacBook Air features a slower SSD than 2018 model
> I'm not sure if you dropped a part in there that maxed out at 512MB/s that I could even notice.

I've done exactly this. I tried to run an NVMe drive and a SATA drive back-to-back in the same laptop to see if I could notice any difference in my day to day workload. I couldn't, and because of that I bought a 2TB SATA SSD instead of 2TB NVMe. SATA usually still has better power consumption than most NVMe drives, and they're cheaper too.

rarecoil··on Running Games on a MacBook Pro with an EGPU
It should. You'll need to run a script such as this:

https://egpu.io/forums/mac-setup/script-enable-egpu-on-tb1-2...

rarecoil··on Running Games on a MacBook Pro with an EGPU
Not brought up here, but the Apple Thunderbolt 2 -> Thunderbolt 3 adapter is one of the only ones that actually works in reverse, too. With some hacks from eGPU.io, I ran an Nvidia GTX 1060 on a Mac Mini for a while over TB2 for hashcat work.
rarecoil··on Raspberry Pi 4
I have a PicoCluster 3S [1] kit I bought to make a clean Kubernetes cluster. I just ordered 3 4GB RPi 4s for it. I'm very excited. I use an ODROID-C2 as a home server for most tasks, and while the ARM cores are sufficiently fast, with some work I run out of memory and swap a lot. I will test to see if one of these could be a suitable replacement vs. an ODROID-XU4/XU4Q.

[1] https://www.picocluster.com/collections/pico-3/products/pico...

rarecoil··on Pock: Display macOS Dock in Touch Bar
> Granted I'm still scared to run Linux on a laptop as I don't believe I will get the same battery life out of it as I do with Windows.

Using tlp, setting all settings in Powertop and undervolting with intel-undervolt will get you some seriously crazy battery life. Battery life on my X250 is better under Linux than it is in Windows with these changes.

rarecoil··on Hacking websites via third-party JavaScript libraries
In the first example, this guy goes and pops a (web)shell on Datatables.net. There's no security policy, no bounty program, etc. for this site or its owner[2]. Generally I don't believe it's a good idea to go pwning businesses' servers that don't give you some sort of permission to test. That's some seriously dangerous business.

[2] https://sprymedia.co.uk/

rarecoil··on The charm of buying old workstation hardware on the cheap
Power consumption is somewhat irrelevant if you live in a place where there is hydro or solar power - eWaste recycling is a huge environmental problem [1], and manufacturing has its own environmental footprint [2].

Buying used hardware is great, but really we should also be probably optimizing for performance-per-watt even with older hardware.

IMO the real issue is that most people just don't need more grunt than a 5-year-old machine is giving them at this point. What they really need is a solid state disk in the old hardware, and for Office and Chromium you'd never notice a difference. I still use a SATA SSD daily and while I've had NVMe in my work-supplied machines, for 99% of my workload it's just not even necessary.

[1] https://eridirect.com/blog/2015/06/how-does-e-waste-affect-t...

[2] http://www.electronicstakeback.com/toxics-in-electronics/whe...

rarecoil··on Apple Unveils All New Mac Pro at WWDC
Aside from the questionable industrial design, I think this is very close to what Apple really needed to do. Pro users don't just want modularity/expandability, they actively need it. While CPU performance has kind of stagnated, GPU design is still evolving and those that use them heavily swap them out often. I'm happy to see something resembling a "real" pro device for creative use. They have clearly rethought the thermal design a bit as well, and this feels like the true successor to the old Mac Pro towers.

I'm sure it will be exceedingly expensive, but IMO it is a bit of a return to old form. Now we can finally forget about the trash can.

rarecoil··on Smartphones Are Toys First, Tools Second
> I will try and switch to a simpler phone Cat B35 to see if I can cut out smart phone addiction. The Cat B35 uses KaiOS which is a Firefox OS clone. I will also carry a pocket camera like a Sony Rx100 for taking good quality photos.

I've been working on a similar project for a while, in order to see what the viability of reused Android hardware is if you make a minimal AOSP-based system. I'm trying to wean myself off of current-generation hardware as much as possible because honestly it's just not needed, and I don't want to feed the consumerist machine.

I'm using a Nexus 5 I bought used for $40, with the Nexus heavily underclocked for power usage and only the simplest required apps on it. The biggest problem I have had with this phone is that battery life on earlier smartphones is abysmal. I did replace the battery for $7 and it's made a big difference, but there's a level at which the old phone hardware just can't keep up with app bloat if you're using some newer applications.

For photos, even the old Nexus is fine for most use cases. For real photos,I just take along a used DX-sensor Nikon Coolpix A I bought on Craigslist.

rarecoil··on Maker of US border's license-plate scanning tech ransacked by hacker
> Or you could petition, harass, bribe and cajole your way into enacting change, and have it all overturned with a change in administration.

This is the reason why technological solutions are popular among the Silicon Valley crowd. No matter what, political solutions are plagued by human emotion and self-interest, and thus they become sticky, "corrupt", and slow. Technological solutions are subversive of that structure at the least, and a force multiplier in others.

The computer will generally do what you tell it to do. You can spend hours of effort on something and get a deterministic result that will do the thing. You can spend your whole life in politics and get nothing out of it because the entrenched power structures won't let it happen.

rarecoil··on Apple introduces 8-core MacBook Pro
> 100% ARGB / SRGB.

The T490 does 100% Adobe RGB? I'm impressed. Seems like Lenovo has been really listening to people complain about the horrendous gamut ThinkPads have been afflicted with for some time.

rarecoil··on I don't know how CPUs work so I simulated one in code
> At this point a lot of them would look at me like I was insane, and reply with some variant of "I can't do it" or "we were never taught how to do that" and want to reach for the computer, whereupon I would stop them and show how.

I wish I would have had such a TA in my university. Instead, I got compressed deadlines and a "you figure it out or you fail" mentality in the majority of my classes. There were lectures and a textbook - if you couldn't sort it out and make it click on your own, alongside all of your other courses, you were SOL.

rarecoil··on Apple introduces 8-core MacBook Pro
Wasn't that kind of the point of the "Pro" line? I mean, if you just wanted a kinda cool laptop, you'd buy a MacBook or MacBook Air. It's now the MacBook Prosumer, and there is no pro option.

Hacker News has been whinging about this Apple dilemma for years. I'm sorry to say that I just don't think there will ever be the golden age of MacBooks again. The "Pro" ideas coming from Cupertino are gimmicky at best for developers, and we will be stuck working on various Linux machines and leave the MBP problems to designers. The hacker-type software engineer is not Apple's target market for the MBP, and I think even before it was likely coincidence.

If you look at the pro target even in this post, the majority of Mac "pro" use cases being displayed here are creative in nature. Devs generally aren't spending their days editing video or sitting in Maya and they are targeting those markets - people who need power but don't wrench into their OS internals or open a debugger when something goes wrong. Those customers are also a lot less flighty as long as their creative tools work.

As for me, I stopped complaining and wishing for a pony, accepted that the MacBook is dead, and moved to a ThinkPad for daily use. My 2015 MBP will stick around when I need macOS, but it's best to start converting my workflow to a different platform where I see a future for development work.

rarecoil··on Building a home NAS on a shoestring budget with the Rock64 SBC (2018)
After having wrecked many MicroSD cards with ARM SBCs, I have found that the Samsung High Endurance MicroSD cards[1] have held up to consistent use so far, including being used as backing scratch stores / swap space for calculations on an ODROID-C2. They're also pretty cheap for how reliable they have been. Of course, it's just anecdata, so YMMV.

[1] https://www.amazon.com/Samsung-Endurance-64GB-Micro-Adapter/...

rarecoil··on AMD Ryzen V1000 Single Board Computer PROFIVE NUCV
The Ryzen explosion on HN as of late is because the AMD chips have not fallen victim to MDS, and I think people have been looking for alternatives to the Intel monopoly.
← PreviousPage 2 of 3Next →