« first day (1567 days earlier)      last day (3606 days later) » 

17:00
following the code theres the highlight kiosk function which sets the var kv from the querystring... cant find where it builds the querystring
@Jhawins did you put fries on it? It's not a true McGangBang unless there are fries in it
It took a while, but they eventually took it off the menu, and discarded the remaining sammich in the ocean.
is it from the parameter key?
user1596138
@SterlingArcher Shitttt...
user1596138
Maybe I did?
user1596138
17:02
Nope
function getQueryStringItem(key) {

    fullQs = window.location.search.substring(1);

    qsParamsArray = fullQs.split("&");

    for (i = 0; i < qsParamsArray.length; i++) {
        strKey = qsParamsArray[i].split("=");
        if (strKey[0] == key) {
            return strKey[1];
        }
    }
}
HOW COULD YOU
AND YOU THOUGHT OF ME!
:gags in revulsion:
user1596138
Bae I'm sorry!
"Mind your P's & Q's".match(/P|Q/g).mind()
17:04
gif from Sterling Archer was moved
user1596138
@SterlingArcher Eh. This was bound to happen. Now that you have no money... May as well just tell you I've been seeing someone else
Woo! I figured it out!
user1596138
Err
YOU GOLD DIGGING WHORE
user1596138
lmfao
17:05
@KitZ.Fox what was it?
@Jhawins left hand?
@FlorianMargaine It wasn't finding the others, because they were in a different field (you dumb fox).
user1596138
@FlorianMargaine Nah can get a bit more torque from the right hand because of the bend
@KitZ.Fox oh.
It stings less when it's my stupidity.
i Would like to study Object oriented javascript . need more basic info .can u any one share some study materials
17:06
yeah, that's not the kind of thing you share.
I do. I think it makes everyone feel better.
you should have said "a wizard told me foobar"
Because then they think "at least I didn't do something that stupid".
And thus happiness reigns.
@ssube thanks
17:08
@KitZ.Fox my most-stupid-but-not-so-stupid-question: stackoverflow.com/questions/8345256/…
You wanna see a stupid question? God, it was bad... gome a sec
1
Q: Using Node.js Within Public JS FIles

Nick DuggerPlease no more downvotes. I realize how stupid this question was now, but the answer might help someone else that's new, so I'm not going to remove it. Alright, so this might seem stupid, but I just need a quick nudge, and I'll be able to wrap my head around it... So, I know you can't just run ...

It was so bad...
@FlorianMargaine oh man. awkward.
yeah.
Hard to find.
@FlorianMargaine +1 and favorited. Good question
are you kidding
17:10
I wouldn't have thought of that
the answer sucks
user3949359
What is the difference between a function and a function object?
Although my question was seriously just the worst, the answer on mine helped me understand Node and server side stuff
;)
You wanna see a dumber question?
-2
Q: How do I not show_source on an included file?

Sterling ArcherI have a file that calls a set of functions utils.php, however when I include it, my show_source function includes the source of the included file. I tried putting the function file in a parent folder, but even calling.. include("../includes/utils.php"); Still shows the source of the file. How...

@nosille function (the keyword) declares a function, which (thanks to first-class-ish functions) can be referenced as a normal(ish) object
17:11
what does this do in JS please
foo(myVariable)
@FlorianMargaine Well, kind of, but really, I mean. Checking something like that would not have occurred to me, so that could be helpful, were I stymied.
@Corbo152 are you serious?
user1596138
@SterlingArcher XD
We've all been stupid at some point or another... some of us more than others, lol
yes i need to understand what this is doing
user1596138
17:12
25 mins ago, by Corbo152
  if (setMachID === "") {
      $(setMachID("#kioskTab tr:first").id);
  }
@Jhawins everybody was like "why the fuck do you wanna show source?" they didn't understand it was a homework requirement
user1596138
@Corbo152 you're going to be downgraded to help vamp status very, very soon.
or just kicked
@Corbo152 please go take a basic javascript tutorial before you ask more questions. The question you asked is of incredibly basic-ness
user1596138
Please use resources such as Stack Overflow, Google and MDN.
17:12
he might be lucky, I'm about to leave for the day
Thanks for the help. I'm off.
@KitZ.Fox anytime, cya
We're not here to teach JavaScript, we're here to help with issues google can't solve with first page results
user1596138
developer.mozilla.org/en-US/docs/Web/JavaScript/… // learn your basic JS here, come back to chat and ask us specific questions.
damn, I was gonna make fun of you for your spelling mistake
17:13
is there an equivilent to python's pass in javascript? Eg:
!!afk calling bank fraud because fuck everything that is banks
user1596138
^ valid question
switch(response.status) {
  case 401:
    console.log("user not authenticated");
  default:
    pass;
}
what does that do?
@corvid what does pass do there?
17:14
the thing is i understand the more complicated stuff lol
default is not required
user1596138
@corvid just use an empty catch block
@corvid where's your breaks, man?
user1596138
try {
  something();
}
catch (e) {}
@Corbo152 "complicated" in what way? func(param) is the building-block of everything else.
17:15
pass does... really nothing. Oh actually, since there needs to be breaks, it doesn't matter
ayeaye
user1596138
Just "do nothing" on your own lol
you can actually just omit default entirely, though (as Florian said)
yeah... I don't think it has the behavior you think it has without breaks
i understand this lol
 if (KV !=""){
setMachID(KV);
 }
17:16
pass is mostly just because python is implemented with "blocks" which isn't true in javascript, but the switch statement seems unusual
user1596138
18
Q: javascript pass

IntraIs there something along the lines of python 'pass' in javascript? I want to do the javascript equivalent of: try: # Something that throws exception catch: pass

@Corbo152 Then what is your question on foo(myVariable)?
man I hate so many frontend choices for frameworks/libraries
not sure if I should use knockout+flatirondirector, react+react-router, or angular
personally hate angular so leaning towards the other ones
just got word don't need to support IE8
Mmm fried rice, chicken and mashed potatoes
@SterlingArcher y u no biscuit? D:
17:23
bc potatoes are my starch :)
well actually, it's chicken fried rice mixed with mashed potatoes
I like weird food combos
biscuits always fit your macros bro
@SterlingArcher that is weird
I'm totally a food mixer
user1596138
@SterlingArcher Hell yeah that sounds good
It's shockingly delish. I put a pinch of garlic on top for a little kick
mm
user1596138
lol I used to make a can of chunky soup and put it on rice with some other shit. It was good
user1596138
17:25
Like $1.29 meal
user1596138
Better than ramen lmfao
Dude I do that all the time
Thicker stews over rice/mashed potatoes
Or basically any chicken or beef hamburger helper
just get some avocado and tomato and throw it in ramen noodles, but leave out the salt pouch
that has gotta be a dupe of something
@SterlingArcher hamburger helper is ridiculously tasty
probably terrible for your heart as well
Most likely lol
17:30
Can you organize stars on Github?
Figured id ask before I say that would be nice to categorize them.
You can organize stars where the fuck ever you please
bullshit
man wth is that
the world is changing
you don't say
The world has been changing for a while, that library is just one visible indication that global warming is real.
global warming isn't real
17:35
Everyone knows that global warming is caused by killing pirates
how can it be real when there is snow!!?
@Loktar Go back to looking at Russia from your window
@KendallFrey the Somali pirates are the only ones left staving off global warming
@ssube dude I have so much experience handling foreign affairs
@Loktar sorry to break it to you, but those weren't their "affairs" you were handling
@Loktar Maybe you can help me. I'm considering having a foreign affair...
17:37
its easy walk acrossed to Russia find a nice bear, go to town.
Speaking of bears, I fell asleep listening to an awesome comedians story about how he was violated by a bear
Lemme try and find it
You know, next year's Super Bowl's title is going to be pretty anticlimactic.
oh, they aren't going to call it Super Bowl L
They should call it Super Bowl XLX and confirm that everyone in the NFL has had a bunch of concussions
wise move
This was so funny when I listened to it last night
#Marshmellow
(It's about a "trained" bear almost raping a man (not literally, but it's how he describes it lol))
17:45
sup yolo thugs
can you control google music on a PC using your phone?
without some sketchtastic infinite remote everything app?
chromecast maybe? just a guess
is google music a web app or desktop?
i guess for chromecast to work, you'd need google music on your phone, but then it'd be on your tv, so nvm
I think I've had too much coffee and should probably go home, cause it's totally a web app, so that shouldn't be possible.
chromecast is nice and all, but I want to sit in bed and change my music
(and the chromecast is on the tv downstairs)
user1596138
17:50
@SterlingArcher Michael Bay into...
I know, but the actual story is fucking hilarious
Hello :)
user1596138
Hahahahaha
user1596138
@SterlingArcher This is a good one
@Jhawins have you gotten to the belt loop yet?
17:55
@ssube I made github.com/Ralt/remoteprez a long time ago, the same principle could be done
A websocket server and 2 clients connecting (one of them being the remote browser, the other one being your phone). The nice thing is that it generates a qr code to connect to the right URL (some uuid) on your phone
@taco how old are you?
37
Ah! @Loktar didn't get the correct guess :D he said 36 or 38 heh
heh
not 38 for another two months
I feel like I'm 57 though. Woke up with my heart racing again this morning :/
I had a really weird dream last night that I feel like would make an interesting horror movie
But the more I think about it the less I remember
It involved catacombs under a house, and some parasite infecting people, who "hid" the infection but tried to infect others
I bet there's a movie like that but it was pretty creepy and cool
I died, and shit went third person
You're describing Aliens
I don't get why the person who has an alien inside them never tells anybody lol
18:01
with some Alien Resurrection and Alien: Colonial Marines thrown in
Oh this was like a small parasite not something growing and bursting out
@taco in Alien, he didn't really know for sure
^ true dat
memory loss and all that
Since people don't know the facehugger is what lays the mutation egg, they just think they survived the thing
18:03
Yeah, I'm educating myself on screenwriting. You never want a storyline to be simple, for obvious reasons
No idea that a xeno is inside until it's too late and too big
gif from taco was moved
Gif from the animated short I wrote i.imgur.com/MK2RH51.gifv
I think I linked it here a while back
user1596138
@ssube Except for the one in the space prison on that one Ripley get's like 2 fuckin weeks
Has anybody else here
stayed at office ?
user1596138
18:06
Every day she's like "You gotta kill me 'fore this alien comes out" and then the next day comes
cause they were too lazy to get up and goo home ?
heh
I am doing it Right NOW :P
though i will fix my work for like half a week.
user1596138
18:23
Jeez
user1596138
The day I finally have money to buy my laptop I decide I have no idea what I want.
@Jhawins a mac. then you won't have any money left xD
problem.solved === true
user2620028
@Jhawins System76
don't you want to SET it to true, not test for it being true?
user1596138
Yeah ok. I'll spend a fuckin thousand dollars more for 25% the RAM, 25% the dedicated graphics memory and a shiny sticker.
user1596138
18:25
@HatterisMad System76 is a joke... The only laptop with discrete graphics is the Bonobo and it cost $600 more than comparable models.
user1596138
Laptop with Ubuntu should be cheaper not more expensive for the same shit.
user1596138
Otherwise yeah I'd totally order a Kudo right now but it's not an $800 machine. It's just not.
user2620028
@Jhawins it is an all purpose processing unit indeed not a discrete but it is better than the shit shoveled onto the showroom for $500
user1596138
@HatterisMad Here's the Kudo features for $849
user2620028
I bought mine secondhand so i am not going to argue price with you
user1596138
18:27
i5 4210M
4gb RAM
user1596138
Sounds like a $300 laptop (albeit at a good price) hahaha
user2620028
@Jhawins does this sound like a $300 laptop? system76.com/laptops/galago
user1596138
@HatterisMad No but it's 3 inches too small
user2620028
For the record i would not buy that at retail price either, but i would never spend that on a laptop anyways
user1596138
And the screen looks like puke
user2620028
18:29
If you want a desktop buy a desktop
user1596138
user1596138
Look at that lol
user1596138
I'd punch it
user1596138
@HatterisMad Well I don't want a desktop. :P
user2620028
Thanks Ike
user1596138
18:30
But if I was going to buy the Kudu I would rather buy a $349 special on Amazon with identical specs.
user2620028
Hey Sonny, why not buy an all in one. All of the shitty features of a laptop wrapped up in the annoying space of a desktop
user1596138
It would just look poopy and come with WIndows 8.1
I prefer battery life over powerful graphics
user1596138
Idk battery life doesn't mean anything to me
user1596138
3 hours is cool
user2620028
18:33
Yeah batterly life doesn't factor to me much. If it did i would buy an extra battery
user1596138
Right lol
it's damn convenient
Who wants to be on the NaN group?
user2620028
I happen to not be a number.
user1596138
18:33
When are you close enough to society to have WiFi but not electricity anyway lol
i can sit down anywhere wherout havint o fin e aplace with an outlet
user2620028
you might have an aircard, or be working on offline docs
it's just nice to walk aout the door with 100% and know that 3-6 hours is no problem
user1596138
If I could afford the hilarious prices of an aircard I wouldn't be complaining about laptop prices and would buy the Bonobo
user1596138
@Luggage If you sit outside a lot that might be a problem
18:35
Anyway.. your needs may be differnt and that's cool. i'm not trying to 'convince you'
user2620028
Oh yeah aircards are expensive.... Cheap as shit here.
But i found the typical 'ultrabook' betetr for ME than a desktop replacement styl laptop
user2620028
I prefer desktop but since i am currently traveling it is a laptop
user1596138
Only time I can see myself wishing for more battery life would be in a vehicle on a long drive.
Long battery life is nice
18:36
I don't program and drive. It's dangerous.
user1596138
I can totally plug into my truck lol got dat high output alternator
user1596138
@Luggage When other people are driving
maybe a bit of code at a stop light..
:)
user1596138
lol I am guilty too
i'm joking. i've never coded while driving. I've done all sorts of smart-phone junk that I souhldn't , thoguh
18:37
@Luggage surface pro dude
user1596138
> Hello officer is there a problem?
What is this? Codepen? Are you writing software while you drive?!
real hardware, small enough to carry
coffeescript?! Get out of the car
user1596138
I need a lot of screen space honestly that's my problem
it's like a macbook air you can use for real stuff
@Jhawins dock + monitor
18:37
@Jhawins who uses codepen to write software?
user1596138
@KendallFrey police officers don't know what words mean
user1596138
@ssube No then I have to carry a dock and monitor everywhere..
The officer sure seemed to know what the words "fuck off" mean.
it means "fire"
"A codepen? Is that like a spy pen? Does it explode? Get out of the car, everybody get away, this terrorist has a bomb!" - The Jhawins Story
18:39
popcorn
cc @SterlingArcher
user1596138
When I get pulled over it's more like
user1596138
> Hello Mr. South you aren't wearing your seat belt even if you are and I clocked you doing 71 in a 55 and your license plate lights are out and your high stop light was blinking strange
We're taking your license again
I've always had pleasant experiences with cops. It's a benefit of being white.
@SomeKittens omg
user1596138
18:40
Town of 8K people you really shouldn't piss anyone off
s/piss anyone off/get pulled over repeatedly
user1596138
@SomeKittens Idk about you guys but I have never wished my keyboard wasn't a keyboard
user1596138
@ssube No they pulled me over repeatedly after I pissed them off.
user1596138
Moral of story: Don't climb piles of dirt and/or rocks the cops show up with guns drawn and dogs
@Jhawins What keyboard do you use?
18:44
whatever you do, never get a choc mini
the only keyboard i've used where they actually managed to ruin cherry switches (by having the contacts all weird)
Howdy everybody, quick question:
Anyone know of a quick way to save a text file from javascript to the server side?
@Elliott Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@Elliott POST it
I have a base64 encoded image that escapes the POST, but the URI encoder doesn't encode/decode it properly. Figured I'd write it to a file and read it server side.
18:47
@argentum47 haha ok ;)
@ssube the PUT method might seem better here?
@AwalGarg depends on if it's new or modified
@argentum47 btw, I don't think you will like the M in your stack. Rest is pretty good.
ok
cya later
@Elliott test your setup with a base64 encoded string first on the server side and make sure the string decodes
It does. My problem lies in just getting it from the js to the perl.
what is your backend?
18:53
@rlemon Perl.
neat. don't meet too many people using Perl for a backend today
I'm gonna guess he's 40
lol
Nah. I know of a recent codebase in Perl with relatively young people working on it.
If I try to send the encoded image in a POST param normally, it escapes it. If I try to encode the base64 encode for transmission, it doesn't decode properly.
Like 25~30
18:56
And the perl is a legacy work thing. :)
bugzilla is perl, and everybody uses it
I wouldn't be surprised if it was the most-used Perl web app ever written
I didn't say perl was dead. but In my 4 years on SO and my 3ish years in this room I've never once had someone come in with Perl as their backend. that is all.
I thought it was neat.

« first day (1567 days earlier)      last day (3606 days later) »