Better HN
topnewbestaskshowjobs
Log inSign up

drvdevd

1,178 karma · joined Oct 17, 2013 (13y ago) · 589 submissions

Submissions

comment 9y ago · link · parent

This just sounds like an attempt to take control of a popular project. An attack.

[edit] an interesting vector: open source politics

comment 9y ago · link · parent

Now that does sound like a difficult situation to handle. I'd like to think I'd always choose the high road and say, "code quality first!" But personally I probably would not always do that when there's a strong financial incentive on the line (if I'm going to be honest with myself).

comment 9y ago · link · parent

Ah OK, I missed that. Well I suppose even with such an offer, the onus is still on the person making such a request to remain civil if "No" is still the answer.

comment 9y ago · link · parent

The author mentioned receiving an email personally requesting a bugfix due to the requestors' deadline. Now, I don't have any projects as big as Redis I'm building, or even Python - my OSS contributions are here and there small things mostly just for fun and learning and I've been into it for a long time, and I can say I feel it's perfectly reasonable to tell such a person, "Sure. If you send me X BTC at the following address, I will prioritize this for you." In fact I think this should be a common response.

[edit] the significance of my being into OSS for such a long time is I can say I don't think the environment used to be so hostile for maintainers as it is now

comment 9y ago · link · parent

Admittedly I jumped straight to the comments on this one, but I have to say that I think there is a good financial, logistical incentive for following your "passion" in the modern world, because often the sort of job that you're not passionate about at all is the sort of job that doesn't pay well. Quite frankly if you want to make decent money, you will need to do something creative enough to differentiate yourself in the job market.

comment 9y ago · link · parent

I wouldn't want to label any generation's members in a blanket judgement (I prefer to have faith in everyone to keep the world turning). Including the "hippies" -- many of them knew what went wrong perfectly well and knew it wasn't coming back. Take Hunter S. Thompson for example:

https://www.youtube.com/watch?v=az36k4-Hc94

comment 9y ago · link · parent

Some personal anecdata for you:

1) Q4 2015 MBP, top of the line - kernel thread crash on suspend, causing it to wake back up. Semi-random, kinda interesting except when it woke up in my bag and seemed to almost catch on fire ... repeatedly. People told me to take it to the Genius Bar .. I seriously doubted they could figure the issue out. It would've been a back to the factory situation (I sold it -- after verifying the hardware was still good of course).

2) Sometime in 2014-ish? I change the wireless bandwidth on a ubiquiti router at the office -- all the Macs go offline, Linux machines do not. Suggesting a bug in WiFi. This is not unusual for WiFi on any device (not just macs) in my experience. I disagree with the idea that it Just Works generally.

3) Macbook Pro 2013 - enabling IPv6 stack causes kernel crash when trying to disable.

4) and to make it clear I'm not just picking on Apple: Sony PS4 with a dual band 802.11a/b/g/n wireless router -- constantly drops connection. Figured out it was because of the 5GHz band. Had to set up a separate wireless network just for PS4 with an older router. Sony should put up some time and money to help fix these driver issues instead of leaving it entirely on BSD volunteers (assuming they're not using a custom driver, in which case they should, you know, fix it).

5) Making PSN a requirement was a terrible decision for the PS4: lizard squad DDoS the day after I got it. Updates kicking me out of PSN. Unable to log back in, etc. I will never buy another console gaming system with this requirement, if I can avoid it. If I can't I will do serious research first.

This is why I'm back to homebrewing/hacking hardware and putting Linux/BSD on all my stuff ... at least I then have a clue of how to debug this kind of weird shit, even if it is a PITA, and at least if things don't work, I can blame myself, rather than having to say I paid for it. Certainly no sense paying for premium consumer stuff either, even if you have the money. Spend it on something else.

No it's not just you.

comment 9y ago · link · parent

Also, at the OS level, there are entire projects built around just understanding the dependencies in the Operating System and applying minimalism to try and get to a state of (relatively) simple, known dependencies.

One of my favorites is Rob Landley's Aboriginal Linux:

http://landley.net/aboriginal/about.html

I highly recommend his blogs if you're interested.

comment 9y ago · link · parent

Isnt that a lot more overhead than green threads in a single proc?

comment 9y ago · link · parent

I mostly jumped to the bottom of the bug discussion thread there, but there doesn't seem to be much opposition to adding this, just comments deferring this to other releases. Are they just requesting that patch submitters do some extra work to get it in there?

comment 9y ago · link · parent

Read the awesome Too Much Coffee Man version please: http://www.tmcm.com/tmcm/mcdonalds-coffee-lawsuit/

comment 9y ago · link · parent

My all time favorite explanation:

http://www.tmcm.com/tmcm/mcdonalds-coffee-lawsuit/

comment 9y ago · link · parent

This is fascinating (to a non-crypto nerd such as myself). It would be nice to collect some code that will fail all the unit tests to study why I think as well as reading the commentary. Also if theres a way to use this to audit legacy Java apps that would be fun as well.

comment 9y ago · link · parent

You're welcome! I definitely think this is an internal pathing issue relative to the ISO -- and I have grappled with this same stuff before many times and gone mad several times over so I get it :)

I just found a nice reference that I remember using when working with Ubuntu ISOs before at https://help.ubuntu.com/community/LiveCDCustomizationFromScr...

It may be outdated and you may have already seen it, but the key point is the section "Install Packages Needed For Live System":

> apt-get install --yes ubuntu-standard casper lupin-casper

> apt-get install --yes discover laptop-detect os-prober

> apt-get install --yes linux-generic

Since they're building the ISO from scratch using debootstrap and a chroot, some scripts in the casper package will probably set up paths, grub, etc, all relative to the current root (the chroot they're working in).

This would also probably explain why using a vmlinuz.efi and initrd.lz from a default 16.04 iso kinda worked for you -- because some paths and versions match up, etc.

Long story short: you should try following that guide to some extent when packing up the custom.iso (unpack, install casper package(s) in a chroot, repack), then find a way to use grub on your ESP to "chainload" [1] the iso from the second partition.

HTH, I'll check back later and see if you had any luck :)

[1] https://wiki.gentoo.org/wiki/GRUB2/Chainloading#ISO_images

comment 9y ago · link · parent

My $.02 - write/find/research security exploits and other bugs in your free time. If something feels too low level, try similar AppSec work in the stacks you're already "stuck" in (think: Java app logic errors, monitoring specifically for security, SQL injection, etc). Just find something to break and/or defend and do it. Note that defense is complex and each application deployed has plenty of edge cases to consider.

I'm kinda in your boat and I've been meaning to make this pivot myself for quite some time and know others who started out doing this long ago. So I can't really give the best advise about how to get hired in that industry -- I just know it's very possible.

comment 9y ago · link · parent

[Edit 2] where you put grub/grub.cfg in the above partition layout is also up to you. It could reside on the EFI parition. Its all about how you lay it out in the host system when putting this disk together and then how you run grub-install

comment 9y ago · link · parent

Ok so one immediate point that I notice here is that if you look closely at this grub configuration, you'll see that the EFI boot Kernel and initrd are not loaded from an EFI partition, but rather taken from the ISO itself:

> loopback loop (hd0,2)$isofile

> linux (loop)/casper/vmlinuz.efi

Whereas above, for Ubuntu 16.04, you appear to be trying to use a separate fat32 EFI partition to load vmlinuz.efi

So, just to test, you should try to do what Ubuntu 14.04 is doing, but keep your EFI parition to load grubx64.efi. Make sense? So your partiton layout on this USB stick will be as follows:

Partlabel: gpt

(hd0,gpt1): FAT32 (type: EFI system)

  - has path/to/grubx64.efi
(hd0,gpt2): ext4 (type: Linux)

  - has boot/grub/grub.cfg

  - has ubuntu-16.04-WHATEVER-REALNAME-HERE.iso
----

And the grub.cfg now has a new menu entry as follows:

menuentry '[loopback]ubuntu-16.04-desktop' { set isofile='/ubuntu-16.04-WHATEVER-REALNAME-HERE.iso' loopback loop (hd0,2)$isofile linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile locale=en_US.UTF-8 initrd (loop)/casper/initrd.lz }

Let me know if that solution works for you?

[Edit] I think the issue with all of this here is the other scripts/parts of Casper that get loaded normally using the ISO. Its annoying, but casper is the ubuntu way. There are better ways to boot a live system off EFI but this would be the quickest path

comment 9y ago · link · parent

One could argue that the Java ecosystem was already pretty fragmented and weird anyway: Java Card, Java in the browser, all the many versions of the JVM on every platform, and open source JVM "forks"... right?

comment 9y ago · link · parent

I actually believe the PSTN is so ingrained in international networks that it will be around for another 50 years, minimum. Think SS7 and the fact that anything that touches PSTN relies on a legacy implementation at some point (probably all VoIP terminates there at some point, every cellular device, etc.). This is just a guess though on my part..

comment 9y ago · link · parent

The point isn't the just the payment mechanism but the network it connects back to plus the payment mechanism.

[edit] to clarify: if vendors actually accepted (something like) bitcoin at restaurants or wherever, this would cut out the banking middle man entirely. Also we already collectively have the tech to do this now.

comment 9y ago · link · parent

also, if you can pastebin your boot/grub/grub.cfg file that'd be helpful too

comment 9y ago · link · parent

Ok so what I'm reading is that:

1) you can get EFI to load grub but 2) actually loading the live system image isn't working

So given those assumptions my next question is:

Is the kernel and initramfs loading? If you're not sure try:

* holding shift to display the grub boot menu on power up

* hitting 'e' to edit the default boot menu

* removing 'splash' from the kernel command line so you can observe boot messages

* continue booting by hitting ctrl+x

See if you can glean some more info from that

comment 9y ago · link · parent

I know this doesn't answer your question directly but is there a reason you can't use a USB stick? If you can I can give pointers on how to create a live USB image. Also is there a particular OS or Linux distro you're trying to boot?

comment 9y ago · link · parent

Ok, I would certainly agree then that I ought to know about that (for Python 2.x).

And here's the thing: despite my rant, given that explanation, I'm going to have to say I respect that as a Python (2.x) interview question.

But that's because I care about performance optimization and good style in every language I use. I'm not sure that everyone else always should or that this should be a deal breaker for a python dev gig.

comment 9y ago · link · parent

I think this is probably correct, actually.

That and the mass adoption of cheap, handheld, and powerful computers with easy user interfaces and lots of short range wireless peripherals...

Imagine being able to pay your bar/coffee/restaurant/hotel tab with NFC or something, exchanging whatever virtual currency units, as an expected social norm.

comment 9y ago · link · parent

Yeah I'm not in love with Java, but let's also not forget that Google has successfully extracted Java from Oracle's hands at this point, to a billion-or-so installation extent.

comment 9y ago · link · parent

At a glance this just looks like a short, simple coroutine implementation/hack using C macros, whereas libdill does a lot more to extend C syntax in similar manner, but in a much more comprehensive way (I believe with the intention of matching some of Go's concurrency mechanisms). The author compares this to Duff's device so the comparison seems apt.

I would pick libdill for any serious program and keep this on hand as a C snippet in Vim or $EDITOR.

[edit] I should say this could be used in a "serious" program too, but it's nice and short in a way that looks like a great snippet to me

comment 9y ago · link · parent

Yeah I wondered about all these points as well. I think the real danger would appear only if people in the real world started actually accepting or desiring payment in these anonymous forms in lieu of actual money...?

[edit] like especially normal people and not just Terrorists or Criminals

comment 9y ago · link · parent

I don't know this. And I don't care. I don't self-identify as anything near a "Python programmer" and yet I've written, modified, read, and debugged (and put into production at times), let's say 100's of thousands of lines of Python since the late 90s. Not a ton, perhaps, but I certainly feel qualified to write it.

I'm forced to maintain (or deploy) other people's Python code all the time. Personally, I would rarely choose it for a team project I have to maintain (if the choice is mine) because I've seen most teams commit the same annoying type errors over and over in every dynamic language I've ever used, including epecially Python. I've worked with much more competent Python programmers than myself who still do this.

But if I was on your team, I wouldn't complain and my code would be somewhere between pretty good to great. I would help the team ship that Python and ship it well.

I'm not sure what this rant says more about: me or this 'range vs xrange' question?

comment 9y ago · link · parent

Also, lets not forget that it's not just Linux (or any one kernel or OS) that's the issue but also every popular hardware architecture can be expected to be subvertable, especially x86 it would appear.

And exploiting these types of bugs is within the capablilities of many non-nation state actors as well at this point.

1
111213
20