HNHacker News
TopNewBestAskShowJobs

figgis

414 karma · joined June 4, 2016

submissionscomments
figgis··on Python’s For - Else
You can actually use else for try statements. Doesn't answer question but it's something I learned relatively recently and may help some others.

    try:
        import uvloop
        asyncio.set_event_loop_policy(uvloop.EventLoopPolicy)
    except ImportError:
        pass
    else:
        print("well that didn't work")
figgis··on Python’s For - Else
Python 3 had it's first release in 2008, that thread was from 2009. Probably didn't even really think about it before then. (the more you know)
figgis··on Drone Pilots’ Pay is Dropping
>That said, drones are not ideal for replacing aircraft in the large scale mapping.

You are comparing consumer drones to airplanes. A quick google search tells me you can pick up a drone with over an hour of flight-time for 3.5k-ish (I don't know much about drone pricing so someone may have better options)

Another quick google search tells me cheaper planes go from 25k (crappy) to 40k (reasonable)

You can purchase 10 drones for the price of one airplane. Which I can't imagine an airplane could out map/survey 10 drones working together. I don't know much about drones or planes though so there are probably other restrictions.

figgis··on A CLI game to learn Vim
:qa! because I totally saved that first buffer... right?
figgis··on Hello Qt for Python
PySide is Qt4. PySide2 is Qt5. I would suggest using PySide2 but using https://github.com/mottosso/Qt.py in case you need to switch to PyQt5 for any reason.
figgis··on Yale physicists find signs of a time crystal
Just wanted to share since I didn't know what it meant and googled it. It's "mea culpa". I love when people use these old Latin phrases. Never got (or taken) the chance to learn about it and it's always a very quick history lesson alongside learning a new phrase!

>In about 1220, the rite of public penance in Siena for those who had committed murder required the penitent to throw himself on the ground three times, saying: Mea culpa; peccavi; Domine miserere mei ("Through my fault. I have sinned. Lord, have mercy on me").

https://en.wikipedia.org/wiki/Mea_culpa#Religious_use

figgis··on YouTube Stars Being Paid to Sell Academic Cheating
You cheating to acquire a degree that says you have learned x information devalues that degree for everyone else that has it. That is nothing like crossing the street where you aren't supposed too.
figgis··on The Power to Revoke Lies with the Certificate Authority
1: Look at the domain... https://www.paypal.com/.* https://www.stripe.com/* etc

2: PayPal/Stripe do have their one touch/sso stuff, if sign up with to that you'll have at least an indication if things go weird.

Otherwise you are right. It's a problem but it's a problem with the web, not specifically any payment processors which are all honestly doing anything they can to make these issues a non-issue.

figgis··on How the Nintendo Switch prevents firmware downgrades
You don't need to change the GUI features to patch the kernel and related programs unless those patches are actually related. It's not magic.
figgis··on How the Nintendo Switch prevents firmware downgrades
No he's saying separating security patches from feature patches would be beneficial.
figgis··on Programming Languages
Wikipedia has other lists.

https://en.wikipedia.org/wiki/List_of_programming_languages_...

https://en.wikipedia.org/wiki/Lists_of_programming_languages

figgis··on VS Code can do that?
Not downplaying your choices but throwing this out there. Vim can and does all of that as well.

vim $DOCUMENTATION_URL (curls the page and opens in vim)

vim-rest-console

:terminal (new!..ish. Works great.)

figgis··on In Racine County, houses are being designated ‘blighted’ to make way for Foxconn
These are peoples homes, land, and likely history. Demolishing that without the blessing of the owners is ridiculous.

I just can't see how that is comparable to bondholder holdouts.

figgis··on Apple Plans to Use Its Own Chips in Macs from 2020, Replacing Intel
The most enjoyable and productive dev workstations I have used/setup have all used rolling release distro's for this exact reason.

It does have the overhead of requiring you actually understand (or know how to google) your system/packages that you use though.

figgis··on Questions for TSA after reports of laptop and phone searches on domestic flights
10 minutes is more then enough time to image most devices. Various groups have had stuff like this around for quite a while now. http://www.thenewspaper.com/news/34/3458.asp
figgis··on Statement on Potentially Unlawful Online Platforms for Trading Digital Assets
>Libertarians can still form their own exchanges where they are free to be continuously swindled and conned.

Would all of this not also remove the ability to create those 'free exchanges'?

figgis··on A Hacker Has Wiped a Spyware Company’s Servers
Can't disagree with that.
figgis··on A Hacker Has Wiped a Spyware Company’s Servers
A chef cooking something unfamiliar will look up the dish they are cooking. If your cookbook can't handle a checklist of common pitfalls and overlooked actions to take then it isn't much of a cookbook. (granted not putting your secrets in a public repo is definitely a given.)
figgis··on A Hacker Has Wiped a Spyware Company’s Servers
Do you have a recommended security checklist for something like this? I remember seeing an old github repo with a bunch of good information but I cannot seem to find it and my search results are... unhelpful at best.
figgis··on Learning to program is getting harder
For testing there are quite a few good remote solutions. Here are a couple I'm familiar with.

https://developer.github.com/v3/guides/building-a-ci-server/ https://docs.gitlab.com/ee/ci/examples/README.html

My simplified workflow is: do work locally using whatever IDE I desire -> create a pull request -> server runs the tests and puts the results in the pull request. Much faster than running the same tests on my local machine as well.

With the tests being done remote you will also likely not need to commit such large amounts of data that it becomes a problem.

> Working with a local environment and 4g connection is fine, because 4g is more than enough to look up docs. But working with a distant environment and 4g connection is very slow and unreliable.

Normally even if you are working remote it's expected that you have a stable, decent, connection. But even without one there are plenty of great options.

For documentation I actually keep that local using https://devdocs.io/.

Without internet you don't have sites like stackoverflow and that's a downside that really can't be fixed without some serious work.

figgis··on Learning to program is getting harder
This really just sounds like issues with whatever web IDE you are using. Remote development does not need to be a huge pain like that.
figgis··on Microsoft’s PowerShell Core Offers Cross-Platform Automation
Could you just allow interaction with objects in a shell while just using c#? There are interactive c# interpreters that already do great.
figgis··on Microsoft’s PowerShell Core Offers Cross-Platform Automation
Well bash has (can have) all of that as well.. Those are features of the code editor.. Not the language.
figgis··on Linus Torvalds: “Somebody is pushing complete garbage for unclear reasons.”
> By a guy who is arguably not an expert at the issue

Linus is the defacto expert on the Linux kernel. His familiarity with the kernel and long history on these issues gives him the credibility to say a patch or code is completely nonsensical.

This isn't Intel's first rodeo. They know what is expected and they continue to play games with their code. If they are pushing garbage then there's a very good chance they know it's garbage.

figgis··on It is not possible to detect and block Chrome headless
>You'd have to scrape slowly to mimic a real slow user.

Sure, but that's easily mitigated by running multiple scrapers as different users.. You don't need to get all the data from a single scrape.

figgis··on How America Fractured in 1968
> I think figgis may be responding in a sarcastic way

Was not intended, just curious. But that would be why I couldn't find it.

figgis··on How America Fractured in 1968
What gif? I only found a couple and they were at the bottom of the page in the related article stuff.
figgis··on N64 object software renderer in 512 lines
They aren't just concatenating though. The code is clean and understandable with short comments explaining a few things.

> Isn't it a better benchmark to have better code structure even if the project is composed of more lines of code or more files for that matter.

It isn't about benchmarks, it's about understanding a concept enough to cut junk out and providing clear concise code that does as expected.

figgis··on An Experimental Course on Operating Systems
Not sure where you are getting that info... but xfce is just above 2gb. You could easily run a graphical desktop on that.
figgis··on Today is the fifth anniversary of Aaron Swartz's death
For a lot of people the decisions and actions they make can (and will) shape their circumstance..
← PreviousPage 2 of 5Next →