I like to use darker film in side windows, but it makes hard to use the side mirrors at night, I would love to replace them with cameras.
Things like night mode and anti-glare would be pretty cool as well.
1,990 karma · joined November 12, 2012
I like to use darker film in side windows, but it makes hard to use the side mirrors at night, I would love to replace them with cameras.
Things like night mode and anti-glare would be pretty cool as well.
I saw /etc/passwd and asked my boss how to decrypt the passwords. He told me it was a one-way encryption, so the login program would just encrypt the password you provided and compare to the encrypted value. He went on explaining the old crypt algorithm and even made a bet I could not guess his password. He said it was related to a movie.
So at 17 I was hooked and started studying the sources. In the end I just patched and recompiled the passwd binary to store clean text passwords in a hidden file. Later I learned this was called a trojan horse.
And even now, 30 years later, I remember his face when I told the movie was Citizen Kane and his password was "rosebud".
Thank you Miguel and Gorgonio for teaching me about C and Unix! This knowledge paid my rent for 3 decades and I still love the job.
[1] http://www.internationaloffice.unicamp.br/english/teaching/g...
Every beginner underestimate how much salesmanship it takes to run a successful freelancer career.
There is a neural pathway that triggers this to occur in about any human, under the right circumstances - just watch anyone doing something that demands deep focus or concentration combined with fine motor skills.
For example, watch a musician or a someone playing videogame and you can identify motor stereotypical moves in the facial muscles (specially tongue/mouth/jaw).
The stereotypical moves in autistic persons tend to be very characteristic and are easy to spot if you have a trained eye.
So don't worry about moving your toes in patterns or jiggling your leg while you are coding, it is perfectly normal.
* GMO that don't produce viable seeds so I have to buy seeds from you every season.
* GMO that only works with some other supply available only from the same provider (think of a car that only works with gas from Ford).
* Patents on living organisms: a farmer should be allowed to plant the seeds they grew in their own farm, produce hybrids and so on, without paying royalties.
* If GMO strains get accidentally cross-pollinated from a neighbor farm you should not be on the hook for it.
Python lacks tail call optimizations and recursion dept is limited to ~1000, so if your algorithm is not O(log n) or better you may have to convert from recursive to iterative (there is a recipe that makes conversion trivial) but other than that I'm content with its FP-style features.
Composing SQL expressions using this library instead of using string interpolation/concatenation has several advantages:
* DRY and composition * safety * portability (if you have switch the underlying DBMS)
Often the result is as good or better than my raw SQL. The fact that Python has an amazing REPL makes the process pretty much like testing queries in the database prompt but with less cognitive switch between languages.
In the end it is a matter of taste, but I have to agree with parent posts, SQLAlchemy raises the bar for other ORMs.
I guess it will be like Antarctica, where several countries made territorial claims[1] over it, many of them overlapping.
The UN's 1984 Moon Treaty[2] is dead letter - it has never been defied but is defunct in practice as none of the most prominent space-faring nations have ratified it.
If someone settles in the Moon you can refute their claims over territory there but what else can you do? Set an embargo? Send a military force and try to kick them out? Nuke them? Someone with knowledge and resources to colonize that desolated rock in space is not an adversary to be underestimated...
[1] http://www.antarctica.gov.au/about-antarctica/people-in-anta... [2] http://disarmament.un.org/treaties/t/moon
Since Project Apollo in the 1970s it is known that all the materials needed for manufacturing photovoltaic cells are present in lunar rocks and dust. Not saying it is an easy engineering feat, but the raw materials are there.
With a space elevator in the moon you can use raw material from the moon to assemble huge stations and ships in space.
In Brazil employers have to pay a fine if they fire a worker without a "fair cause" (~ 3.2% over the sum of all compensation paid to the employee while they worked for you), so the longer someone worked for you the more expensive it gets to fire them.
When I look at any market where the labor code is excessively protective, I see high unemployment rates specially among the young - Brazil, Spain, France[3]... I don't know about causation but clearly there is a correlation between employee over-protection and unemployment rates. I think it is the law of unintended consequences[4] in action: the legislator intention was good (protecting employee) but the net result is negative.
[1] https://www.jonesday.com/en/insights/2017/12/brazilian-labor...
[2] https://www.capital-ges.com/an-insider-view-of-the-brazilian...
from __future__ import annotations
And then forward references don't need to be strings. I wonder if this could fix the generated page.I don't hate C, I hate dangling pointers and buffer overruns.
I don't hate OOP, I hate over-engineered class hierarchies, state hiding and leaky abstractions.
I don't hate FP, I hate when people write a new undocumented DSL for each project just because "it is so easy in an expressive language like X".
I'm glad that Jinja2 templates are now first-class citizens in Django as I care about performance and don't feel like patronizing template designers with a carefully handicapped template language.
It is 2019 and personally I see no reason to think professional template designers will shoot themselves in the foot if we give them too much power. We are all consenting adults...
Well, you gain a lot of performance - as much as 10x depending on the complexity of your template. Also, Jinja is a lot less crippled than Django Templates (for example, you can't call a function/method with parameters in Django Templates).
The same is true with a take-home, candidates see the (often underestimated) statement "this should not take more than X hours" and assume they will have a better shot if the invest more than the X hours.
I forgot to mention that we also accept past contributions - in the end the hypothetical candidate can spread this 60 hours investment over any other hiring processes using the same method.
I'm thinking about writing a "social code challenge manifesto".
My advice is always "build experience contributing to FOSS projects in your spare time".
We are pushing the envelope and often find bugs or lacking features. I want to hire people that can fix/implement those and send the PRs upstream instead of nagging the project maintainers.
We think this is better then wasting the candidate's time on a toy project - at least the can write off their time on the opensource-karma account.
Also, we can check not only their code but also their communication style and other skills that matter in the real world (projects on our tech stack have a high threshold for documentation, unit tests and other stuff that matters).
We call it "social code challenge" and it is working wonderfully for our recruiting process.
Blaming all the region problems on the "imperialists" and stuff like that is a line of thought still very alive and kicking around here - it is way easier to blame some imaginary entity than taking responsibility for your present situation. It is very inline with the current "outrage porn" culture.
[1] https://www.amazon.com/Open-Veins-Latin-America-Centuries/dp...
$ php -a
Interactive mode enabled
php > echo 1 == 1 ? "foo" : "bar";
foo
php > echo 1 == 2 ? "foo" : "bar";
bar
Looks like javascript has it too: 1 == 1 ? "foo" : "bar"
"foo"
1 == 2 ? "foo" : "bar"
"bar"