|
So at some point I might actually get to consume a brontosaurus burger? Sweet!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I, for one, welcome our new designer mutant overlords!
First we design / re-design animals to solve some food problems.
Second, we tweak the human genome to eliminate the nasty genetic diseases.
Third, a few unscrupulous types design the perfect man or woman - maybe add something crazy like a 3rd eye or gills.
Soon enough we'll be able to design quasi-humans fit for life on the moon or Mars or the moons of Saturn.
If mankind doesn't evolve (naturally or otherwise) and keep pushing outward we're going to ultimately become extinct on a lonely little planet in the corner of a nondescript galaxy.
In this present crisis, government is not the solution to our problem; government is the problem. ~ Ronald Reagan
|
|
|
|
|
And I'm currently rereading John Ringo's Council Wars novels. Appropriate.
|
|
|
|
|
Yesterday I posted a link to a site that tells you the famous (relatively so) people born on the same month and day as you.
Well, here's a Python script to scrape just the "Person of Interest" (great series, BTW) from the website:
import requests
from lxml import html
from lxml.cssselect import CSSSelector
from lxml import etree
page = requests.get("<a href="http:
tree = html.fromstring(page.content)
sel = CSSSelector('.section--person-of-interest')
pois = sel(tree)
for poi in pois:
poi.xpath("div/div/div[1]/p")[0].text_content()
You may need:
pip install lxml
pip install cssselect
pip install requests
And an example result:
'1871 Orville Wright, aviator (Wright Brothers), born in Dayton, Ohio (d. 1912)'
'1878 Manuel Luis Quezon y Molina, Second President of the Philippines (1935-42), born in Baler, Aurora, Philippines (d. 1944)'
'1919 Malcolm Forbes, American publisher of Forbes Magazine, born in Brooklyn, New York (d. 1990)'
'1946 Bill Clinton [William Jefferson], 42nd US President (Democrat, 1993-2001), born in Hope, Arkansas'
'1967 Satya Nadella, Indian-American businessman (CEO of Microsoft), born in Hyderabad'
[edit]The CP editor mangled the URL a bit[/edit]
Marc
Latest Article - Merkle Trees
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
almost no one on my birthday!
|
|
|
|
|
Which reminds me of the age-old question: How many great men were born in Illinois?
|
|
|
|
|
This Description
"The Function.prototype property represents the Function prototype object."
Huh?
Gotta love some of the docs companies put out
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
When the thing being documented is Javascript, you're lucky if the author didn't just write "I am a fish!" 400 times, do a funny little dance, and faint.
Perhaps this[^] might thin the mud a little?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I've got about 5 minutes of JavaScript experience, so I'm happy if I understand any of it at all
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
That's more than most web developers in QA!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I think that's actually succinctly accurate. In other words, Function.prototype is a property that is equivalent to the object that represents the prototype definition from which every object, including functions, is derived from.
Or something like that. My Javascript foo is still in the junior programming cave.
Marc
Latest Article - Merkle Trees
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
An alternative would be to write it in English, in a way that people can instantly understand the meaning, but it's been a long day, and I can't be @rsed to look into the code to see what it actually does (as opposed to what the addled-brain developer believes it does).
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I highly recommend the guides on that same site. Specifically Inheritance and the prototype chain - JavaScript | MDN[^]. That definition is actually very accurate if you understand the lingo related to prototype-based inheritance. I wouldn't call myself a JS expert but I've built my share of stuff with it if you have any questions
|
|
|
|
|
Thanks, I appreciate all the help I can get.
I just posted 2 JS questions in the web forum, if you wouldn't mind looking.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
I was digging in the garden, and found a human arm bone – strangely, I found this humerus.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
You mud be crazy.
... such stuff as dreams are made on
|
|
|
|
|
Only post-humus-ly.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
|
Software Zen: delete this;
|
|
|
|
|
You must be made of some pretty sternum stuff to think that way. What will you come up with to-marrow, if I might ask? We could all do with a good ribbing now and then.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I can't patella lie, that was a good one, talus another.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
He'll just coccyx up!
The environment that nurtures creative programmers kills management and marketing types - and vice versa. - Orson Scott Card
|
|
|
|
|
Weird coincidence of the day. I'm wearing this[^] now.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
I bet you had T-bone steak for dinner.
... such stuff as dreams are made on
|
|
|
|