« first day (894 days earlier)      last day (4049 days later) » 

4:00 PM
Weirdos
 
user2157210
Wait let me see if i can find my latest shopping thing
 
This question might be dowvoted to hell or bring easy rep :
0
Q: How does website work to combine languages such as javascript and php in general?

js0823I am currently reading about web programming in general, and I've been reading about Apache and Apache Tomcat in general, as well as javascript and php. While most tutorial shows you how to do one language at a time, most website now days contains more than one language, usually combining them i...

Can't predict the outcome (but I might downvote to influence it...)
 
That's a reasonable question if you've never programmed
 
@copy well... yes... but maybe some reading could be done before building a theory and asking...
 
4:03 PM
I remember how I wondered how JS could know document.lastModified although it runs on the client
 
That's why I have just voted to close instead of down-voting it.
 
!!/refresh
 
user1125394
how does internet work
 
user2157210
@OctavianDamiean meh cant find
 
user2157210
 
user2157210
4:05 PM
smth like this
 
user2157210
just with leather buttons
 
@OctavianDamiean I didn't downvote. I voted to close too. And I commented.
 
Actually. I just up-voted it because of the effort he put into the question.
My latest purchase.
 
user2157210
a loading button
 
user2157210
ah some nice shoes
 
user2157210
4:13 PM
i need to buy extra wide ones ..
 
user2157210
let me see if i can find my latest shoes
 
What's worse than biting on an apple and finding a worm? The holocaust
 
morning ladies
@OctavianDamiean Just one shoe?
 
@Shmiddty Yea, got a 50% discount if I take only one.
 
@Nexxpresso Looks like velvet. I'd recommend not getting it
 
user2157210
4:24 PM
@Shmiddty Its cord and its awesome
 
It comes with the beard
2
 
user2157210
@Zirak mine is abit less :D
 
hahahaha gotta buy this. They call it Beardo. :D
Brilliant.
 
@OctavianDamiean Looks like a cheap knockoff of the original
 
user2157210
4:34 PM
@OctavianDamiean weirdo wearing suits .
 
user2157210
holy shit why are womans dresses so expensive?
 
user2157210
i wont spend 150 for a new dress for my gf ..
 
Tabs are better than spaces
 
@SOChatBot my bot has "should i" now, and it's better than yours!
 
4:47 PM
@KendallFrey Your jealousy is petty
 
My bot just repeats whatever you say
 
O RLY?
 
user2157210
@Shmiddty echo
 
user2157210
does not work :(
 
@Nexxpresso Yea but a 200€ suit wouldn't be an issue, eh? :D
 
4:51 PM
That'd still be a cheap suit
 
Should I rage at Zirak or be quiet?
Be quiet.
 
user2157210
@OctavianDamiean thats something different
 
heh
@Shmiddty I know. :)
 
user2157210
i rather pay 200 for shoes or 400 for some jacket
 
user2157210
but 150 for a womens dress?
 
user2157210
4:53 PM
I mean paying for something that i undress anyway?
 
@Nexxpresso I don't understand your objection.
 
user2157210
Well
 
user2157210
Woman dresses are made to get taken off by me
 
user2157210
right?
 
I should hope not, you'd be a incredibly busy person
 
4:54 PM
I think I'll get this suite one day.
 
user2157210
@OctavianDamiean i tried it it even fits me
 
wow, you sexist, i'll report to Adria Richards right away!
 
Plus, you might have some men upset that you're undressing their girlfriends
 
user2157210
I can run pretty fast i guess
 
user2157210
for an IT person
 
4:55 PM
heh
 
600 euros is about 1200 USD right?
 
user2157210
900 usd
 
!!/google euro to usd
 
user2157210
or abit less
 
4:56 PM
@Shmiddty $769.68
 
Wow, the value of the euro has gone way down
(or the value of the dollar has gone up?)
 
0
Q: Licensing: source code vs. production code in JavaScript

ChristopheFor commercial and licensing purposes, what is the correct wording for differentiating JavaScript source code (written by the programmer and including comments) from the minified version used in production?

 
@Shmiddty or both?
 
user2157210
well its pretty high again
 
user2157210
4:56 PM
at 1,3?
 
user2157210
it was atleast sometimes back
 
(even HN has nothing to say against it)
 
I don't know what netty is. Does it just pass the request through a nose?
 
user2157210
a bench that seems valuable
 
user2157210
 
4:58 PM
@Shmiddty well, the EU has nothing better to do than shove euros up the asses of incompetent bank-managers and other fuck-ups
so, i'm not wondering that the euro is going down
 
@Shmiddty netty.io
 
user2157210
wtf its not even going down
 
@GNi33 That sounds kinda like the US about 6 years ago
 
user2157210
it went up
 
user2157210
should have looked at it a year ago
 
4:59 PM
@dystroy Uhm, CouchDB is missing on that benchmark. It is invalid.
 
@Shmiddty it's all connected
 
user2157210
 
Can someone explain what is happening here?
$($(this).parents()[3]).attr('id'))
 
user2157210
jquery
 
I don't understand the selector happening
parents()[3]
 
5:02 PM
@captainrad Horrible awful spaghetti jquery
 
@Zirak idk, was easier to copy in the quotes ?? looked better?? don't ask me :P
 
user2157210
 
@captainrad It's selecting the 4th parent of this, grabbing its id... then selecting the 4th parent of this by id.
 
@Nexxpresso thanks!
 
maybe.
 
5:03 PM
oh boy, that's horrible
at least rewrite it to $(this).parents()[3].id
 
AWESOME, I just found a currency conversion API
 
user2157210
@Zirak awesome i use google
 
I think what is actually happening is that it is wrapping a random string with a jQuery object for some reason.
 
@Nexxpresso Now I can incorporate it into the bot
 
!!/google convert 1USD to 1Euro
 
bah
 
user2157210
!!/google 1 USD in Euro
 
user2157210
meh
 
1USD = .78 Euro
 
user2157210
5:05 PM
it doesnt show the disclaimer
 
'course not, /google does a web-search. The google page is a lot more.
 
@captainrad look at this:
$($(this).parents()[3]).attr('id'))
$(this) is the element (Scoped) wrapped in a jQuery object.
$(this).parents() is a collection of jQuery wrapped parent elements.
$(this).parents()[3] returns the third element in the collection not wrapped in a jQuery object.
$($(this).parents()[3]) just re-wraps the element in a jQuery object
$($(this).parents()[3]).attr('id') returns the ID of the wrapped element (which is the third level parent of $(this))
$($(this).parents()[3]).attr('id')) is a syntax error, unexpected ')'
 
@rlemon I didn't even notice the syntax error
 
yea I figured i'd just break it down for him. A lot of it is silly and could be avoided (given the context of the line) in a much more sane way
 
$(this).parents()[3].id
$(this).parents().eq(3).attr('id')
 
5:08 PM
it's still fucked up
there are a lot other problems if you really need to use something like that
 
well yeah
 
Element.prototype.deepParent = function(n) {
    var parent = this;
    while( parent = parent.parentNode && --n );
    return parent;
};
this.deepParent(3).id; // rlemon FTW!
 
user2157210
i dont like the comments in this code
 
parser doesn't either. good thing they are ignored. ;)
 
user1125394
any .bat experience? wanted to run 2 process from the same .bat
 
5:11 PM
@rlemon this doesn't make anything better :D
 
mr lemon, you like codegolf, yes?
 
user1125394
call Foo\foo.exe
call Bar\bar.exe
pause
 
sure it does. it makes it all lemoney
 
user1125394
but only 1st is run, obviously
 
@Shmiddty yay and nay.
I like playing around with code :P
 
5:12 PM
Here's a challenge: golf.shinh.org/p.rb?Decimation
 
@Shmiddty tl;dr remove every nth character from a string of text?
 
@rlemon yeah
 
can I declare a global variable in <script> tag , then use that variable later down in the html in a seperate <script tag?
 
string.replace(/?*{9}(?{1})/g, ''); // ohh god don't test this just see where I am going
 
user2157210
@ScottSelby if you really want to
 
5:14 PM
@ScottSelby No. Because it's wrong, not because it doesn't work.
 
user2157210
@Shmiddty never look over code ive written in a hurry
 
ok, i guess tat answers that
 
user1125394
start Bar\bar.exe
call Foo\foo.exe
pause
 
can anyone reccommend a good modern javascript book? I've gotten fairly good at jquery but am lacking alot of js basics
 
user1125394
seems to make it ;)
 
user2157210
5:16 PM
@ScottSelby just get some old project of yours and try to remove all jqeury with vanilla
 
user2157210
makes you learn i guess
 
@rlemon I don't think that will work since the character count carries over on each line, and you have to read each line separately.
I have a solution already, but I'm withholding from answering, since I made the question.
 
each line? like line break? my bad
 
so readline() will give you the next line each time you call it
 
@rlemon Maybe str.replace(/(.{8})./g, '$1') ?
I'm not quite sure what ?* is
 
5:21 PM
My cat doesn't like the Haribo frogs.
 
str.match(/.+/).map(function(ln){ return ln.substr(0,9);}).join('\n');
 
She goes crazy when I put one near her.
 
@Zirak yea I'm confident you could do it with regex, but not knowing enough regex I fall back
 
i like them, give them to me!
 
@rlemon str.match(/.+/)? wut?
That's doing [str]
 
5:22 PM
nope, breaks on new lines
 
I'll give you a start:

for(...;;)print(readline()...)
 
The dot character doesn't match newlines
Unless you tell it to
 
Also, it's using SpiderMonkey, so you can use expression closures
 
Wait what
 
5:23 PM
blame my tool
 
I don't care, do whatever you want
If you wanted to split by lines, you could've done str.split('\n')
 
user2157210
work over .
 
@Zirak hrm, good call.
 
I knew R2 was Linux powered!
 
user2157210
kernel panic
 
5:25 PM
@Nexxpresso That's why he sounds to weird. He's running into kernel panics.
 
little know fact, R2D2 runs BSD.
 
@rlemon Liar! Read the article.
 
Wasn't it long long ago, in a galaxy far far away?
 
@OctavianDamiean R2D2, not R2. C3PO is running XPe (explains a lot)
 
Despite what you youngsters might think, 1990 wasn't long long ago, and cross-galactic software distribution was certainly not available then.
 
5:27 PM
@Zirak we just hosted the package, their team did the wget
you can discuss how they managed the feat once we meet them
 
FTL wget is quite incredible.
How'd they learn of linux before it existed?
 
...I'll shut up
 
What a shot!
 
everything should be faster than light
 
user1125394
5:28 PM
@OctavianDamiean should renovate it
 
@Zirak I said BSD now linux. and we all know unix was described on the walls by cavemen, therefore aliens must have given us the knowledge
 
@OctavianDamiean Is it weird that I only just noticed the people?
 
@OctavianDamiean what an illegal shot.
cannot climb the pyramids
 
@rlemon I know but awesome.
 
user1125394
@rlemon they'd be pretty easy to climb
 
5:30 PM
down near the bottom arn't the stones like 10ft tall or something?
 
user1125394
ok let me correct it o doable not easy
 
user1125394
you can still rest between each
 
I would be interested to know how much trouble you could get into for climbing the pyramids
 
I don't know, all I know is that they could have gotten three years in prison because of this.
 
user1125394
5:32 PM
as much as with many buildings
 
...they'd call for their mummies
 
!!/rimshot
 
@Shmiddty Command rimshot does not exist.
 
user1125394
Alain Robert (born as Robert Alain Philippe on 7 August 1962), is a French rock and urban climber, from Digoin, Saône-et-Loire, Bourgogne, France. Known as "the French Spider-Man" (after the comic character Spider-Man), or "the Human Spider", Robert is famous for scaling skyscrapers using no climbing equipment except for a small bag of chalk and a pair of climbing shoes. Robert is managed by English player's agent Bryan Yeubrey. Strategy Because authorities will not normally give him permission for such dangerous exploits, Robert usually appears at dawn on the site of whichever giant ...
 
it needs to
!!/learn rimshot "Badumcha!"
 
5:33 PM
@Shmiddty Command rimshot learned
 
yea Alain is freaking crazy
 
!!/rimshot
 
@Shmiddty Badumcha!
 
!!/rimshot
 
@rlemon *buh
 
5:34 PM
f u chatbot
@Zirak learning commands is stupid... did you change it?
 
@rlemon Hasn't been changed in quite some time
What's the problem?
 
!!/learn cmdName foo bar
iirc I never had to "" wrap the input after the command name?
 
@rlemon Command cmdname learned
 
For output containing space, you did. Syntax is /learn name outputPattern inputRegexp inputFlags
So if the outputPattern has spaces, you need to wrap in quotes.
 
What's the difference between EcmaScript and CoffeeScript ?
 
5:45 PM
@Somekittens ... just wrote filur protocol in C++
smokes the hell out of rest (x
only sad thing is :-( fucking chrome still has that bug .
 
UPS man just dropped off my new usb hubs
\o/ blew up my old cheap ones with too much current
 
?
@rlemon wattt ?
how ?
 
under powered usb hubs don't like it when you plug high powered things into it (like rs232 -> usb adapters
 
overclocking
 
also, they crap out on external floppy drives, and external CD roms
 
5:49 PM
why would you ever need an external floppy?
 
because my tower doesn't have a floppy drive
 
i use an external dvd drive too
those things are noisy on boot ><
usb all the things
imo
 
Yea, pulling too much current can be problematic. :)
 
my usb devices are used a lot because I am working with embedded computers. I often only am presented with a serial port or if i'm lucky one usb
 
Do you have a raspberry pi rlemon?
 
5:53 PM
yes
model b
 
But... why would you ever need to use a floppies?
 
@Shmiddty QNX4
bootloader requires floppy
 
!!/google qnx4
 
@rlemon pi-fives
 
5:55 PM
You know, if I could pick a single new feature for js, it'd be dynamic key names on object literals.
If key names could be expressions, that'd rock my world.
You may resume with your lives.
 
@zirak use case?
 
yeah it always confused me a bit that var a = 'b', obj = {a:a} resulted in {a:'b'}
 
//currently:
var obj = {};
obj[ something() ] = value;
//it'd be awesome if...
var obj = { (something()) : value }; //syntax is meh, but you get the point
 

« first day (894 days earlier)      last day (4049 days later) »