1,178 karma · joined Oct 17, 2013 (13y ago) · 589 submissions
comment 9y ago · link · parent
comment 9y ago · link · parent
[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
comment 9y ago · link · parent
comment 9y ago · link · parent
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
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
comment 9y ago · link · parent
comment 9y ago · link · parent
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
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
> 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
comment 9y ago · link · parent
[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
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
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
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
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
[edit] like especially normal people and not just Terrorists or Criminals
comment 9y ago · link · parent
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
And exploiting these types of bugs is within the capablilities of many non-nation state actors as well at this point.