« first day (763 days earlier)      last day (4410 days later) » 

00:00
so cool
People have too much spare time. Slavery solves so much.
Yeah, why do we bother anymore, everything has been done
One day I'll find something that hasn't been done
Though to be honest a lot of awesome projects are "something that's been done - better"
The universe might asplode
Although I'm pretty sure my Honours Project hadn't been done. I'll claim one Life Originality point
@SomeKittens, yeah this is beyond true
00:02
Although what I'm building now could be somewhat original, possibly because I'm the only one crazy enough to try it.
Tell me what it is and I'll make sure that it isn't
@SomeKittens, same with my honours project :P
Great, so to be original you have to be mental
Search engine for online courses.
Thus, @Zirak's the most original person here.
Oh yeah you were saying! Sounds good
I think that is apparent
First demo Monday (but that's not really special)
No investors will be there (sad...)
I want to make a regex engine in js, because the regex API is pretty much dicks on ice (what?) That sounds insane. Tell me to not do it.
00:04
I wonder what the first version of Facebook looked like
@SomeKittens <3
Though I'm now curious how my brain conjured "dicks on ice"
Sounds painful
dicks on ice = very small, doesn't work for it's purpose
I think it's a valid analogy
00:05
ooh, good one
Nice
Yep. Penis jokes
Woot, over 700 rep.
Penis jokes are best jokes
Actually, biggest penis jokes are best penis jokes.
He said, embarrased by the small size of his rep compared to the other kids.
Therefore, biggest penis jokes are best of the best jokes.
00:07
rep !== awesome
Thus we reach the conclusion that "dicks on ice" jokes are the lowliest form of the best jokes.
No, but rep == awesome.
I have more rep than Zirak, but he's clearly much better at JS/coding in general than me
By that logic, I must be the best then :P
I think @monners has you beat
00:08
nnooo, Lapras, I didn't mean to choose you! Gyrados help him!
FUCK. He must be so L33T
The original 150 were so badass
I never had a Mew :(
!!/user 1831062
@SomeKittens Whaa?
The Master of the Universe
He is my new God
00:09
@monners Phenom made the conclusion that less rep == better
@SomeKittens Why you gotta be drawing attention to my embarrassing rep? T.T
Oh great. I have to do a Source Saturday tomorrow and I don't have any good ideas. Anything you guys would want to hear about?
The History API
Penis jokes
the death of Internet Explorer
00:11
Need to use it, but currently too lazy/busy to read about it
Summarise that shit for me
Do a segment of peni (what's the plural of penis?)
Penises. But it should be Peni
Phalluses
@phenomnomnominal I'm not too good with HTML5
Penises sound like a random batch of single penis.
@SomeKittens, now's the time to learn!
00:12
"Hey, I just saw an arrangement of penises." Peni sounds better.
Why has no one made Penix
It seems so obvious
Must have been done
"Peni jokes are awesome". Nobody can say "I arranged the peni efficiently" with a straight face
!!/google html5
!!/google Penix
@SomeKittens [HTML5 - Wikipedia, the free encyclopedia](http://en.wikipedia.org/wiki/HTML5) ; [HTML5 Introduction](http://www.w3schools.com/html5/) ; [HTML5 Rocks - A resource for open web HTML5 developers](http://www.html5rocks.com/)
@phenomnomnominal [Penix - Wikipedia, the free encyclopedia](http://en.wikipedia.org/wiki/Penix) ; [Urban Dictionary: penix](http://www.urbandictionary.com/define.php%3Fterm%3Dpenix) ; [DEREK PENIX](http://derekpenix.com/)
00:13
The word "Pen" in Cornish means "head" or "end"
Of course it does.
How corny
btw, what do you guys think of this? github.com/Zirak/SO-ChatBot/pull/10
I think it's a great idea.
It's damaging
Although... one could argue that people using the Chat AND the bot probably know that already
So they wouldn't look at a result from w3
Therefore making their appearance in bot results redundant
Yep, get rid of it
@Zirak Commented
People of the world, listen
The syntax for sed or perl search & replace is s/origin/replacement/
Shhh, @Zirak is going to speak...
00:17
Do you see the trailing /?
IT MATTERS
Zirak out
comes back with popcorn did I miss it!? shite!
I forgot again?!?
Fixed.
I just had an image of that moustachioed avatar of your dropping a mike.
A la, end of rap battle
Use moustachioed in a sentence. check
Got to Victory Road. Saw Boulder. Realized I forgot Primeape (the one with Strength). dur.
Have you ever abandoned your starter? As in, stopped using him for good?
Lying fucks. "Soothe Tag" says it blocks wild encounters. 4 steps to the right disagree with you.
00:34
I could never abandon my starter.
Just could not do it
It feels wrong
It's like killing your mother. Just with emotion involved.
It IS wrong.
Pokemon Yellow was the best. With little Pikachu running around.
"Loooove me"
I wish they would make a 3D version of the ACTUAL pokemon games, not like fucking stadium and shit
That would make me buy a Wii U
They should make Pokemon steak.
00:40
I think Oddish would be tasty
MewBurger
Snorlax Ribs
Dragonite Wings
Chicken Offset
00:44
Gyrados, you want to learn Rain Dance? So you're gonna turn all gay on me and run to Broadway?
Did you make it through the Average 4 yet?
In Victory Road cave thingy
What really sucks with pokemon is that you can't play legit and fill the Pokedex. Noooo. You have to "share" with others.
I just bought both versions. When I say "I" I mean "My parents". One was for my sister. Ha like she was ever awesome enough for Pokemon.
Girls. pfft.
Can't live without em, Can't live without em.
00:53
I'm pretty sure that once you're born, you can spend your entire life without female humans
Could live without my sister though.
Yeah, if that's what you can a "life"
There are plenty of things out there you can submit to sexual purposes. Sure, cross-species sex isn't that popular in nature, but hey, no birth control needed
hey, that was a fluke!
Are you a top-half lady, bottom-half fish, or top-half fish, bottom-half lady kinda guy
00:57
She told me she was 12! Didn't have her period yet!
Woot, 3TB thunderbolt drive arrived
congrats
Nice trainer. Brought out Kadabra (full HP), "Kadabra used Recover!"
No Alakazam?
They refuse to evolve their pokemon
@phenomnomnominal Do you use express?
01:04
Oh, not your Kadabra haha
@SomeKittens, sure do
Mind helping me with a session issue?
addClassToCart: function(req, res) {
    req.session.cart.push(req.body.classId);
    console.log(req.session.cart);
  }
And I can't evolve my Kadabra; it evolves by trade
Not at all
@Zirak, Oh that's right
^Logs correctly, but the value dies as it goes out of scope.
What SessionStore are you using?
01:05
Default: app.use(express.session());
do you have anything like this:

    sessionStore = new express.session.MemoryStore()

then later:

    app.use(express.session, {
      key: 'sid'
      id: new Date()
      store: sessionStore
});
Apologies, it's Coffee
@rlemon woot so yeah man he loves the answer
Ill get the bounty yay
heh thanks for spreading that around :P that wasn't my intent by posting it here, I just thought the effect turned out pretty amazing.
@phenomnomnominal Nope. I've probably missed something critical, haven't I.
@SomeKittens Possibly, In Express 2.0 I had MAJOR issues with session stuff. It got tidied up a bit in 3.0, There's a good tut somewhere...
If there is, I haven't found it
01:09
It gets even more messy when you start attaching session data to sockets
express.cookieSession() looks like it might be simpler?
01:22
Looking into that
01:32
@Loktar well I will admit, it was a good answer and also time for a social experiment. I am a regular in the chat and spread around the link. within a few hours it got a crap tonne of views and a lot of upvotes. if we all start linking around good answers as well as the cv-pls stuff maybe people will learn a thing or two ;)
How understandable is the code? jsfiddle.net/TUfMZ
I don't think I can add too much more than this:
16
Q: node.JS how to create and read session with express

runrunforestI'm doing a chat app with socket.io and express. So this is what i want to do. When the users enter the chat app, the client will send user email to nodejs server, I want to create a session with the value of user email. When users send a chat message to nodejs server, if the data sent from cli...

It's a little bit specific to socket.io, but the main parts are there
Yeah, I already saw that
Hmm, sorry it's actually a bit out of date. I'll write a proper answer
01:43
Awesome, thanks
02:04
Dude I have no idea, it's working perfectly for me
@SomeKittens Are you positive that the request that sets the value on the session happens first?
 
1 hour later…
03:26
@phenomnomnominal oh boy
its an exact duplicate :-/
03:46
What is?
 
2 hours later…
Sid
Sid
05:22
$(document).ready(function(a){
  $("#flip").click(function(){
    $("#usr_menu").slideToggle("slow");
  });
});
console says Uncaught ReferenceError: $ is not defined
Have you included jQuery?
Sid
Sid
yup
Before that script?
Sid
Sid
when I added the script after the relevant div s
it worked
jquery.js
div
menu.js
that's the lineup
Yeah, jQuery.js needs to be added first.
Sid
Sid
05:29
but the problem is the menu.js is NOT in the header part
So put it there
Sid
Sid
@phenomnomnominal so is it okay to NOT to have it in the <head> ??
Yep, a lot of people would say it's best to put all scripts at the very end of the body, so that they don't block the rest of the page loading
Sid
Sid
okay then
eg:

<html>
  <head>
  </head>
  <body>
    <script>
    </script>
  </body>
</html>
Sid
Sid
05:32
OK
but I believed the difference
:D
@phenomnomnominal Thanks
@phenomnomnominal They're both triggered by AJAX, so I can do it in any order I like. No dice.
yeah but addClassToCart is called first right?
Okay, but you've made sure it's called first, and THEN doesn't show up?
Just checking haha
Yes, I am first loading the data into session, then checking it
Because I have no idea why it's not doing it
If you run express --sessions, which makes an app with session support, that gives exactly what you have
05:46
Yeah. Which is why I'm so lost.
Can you try it for non AJAX requests?
Both answers are lousy.
ooh. You raise a good point
Cookies should be sent with AJAX though
05:47
yeah...
I guess I'll let the question float tomorrow
we'll see how it goes
Cookies aren't disabled?
Yep, had 7 of 'em
I'm just trying mine to see if it works with AJAX
Let me know how that goes, but I need to get to bed
Works for AJAX for me
Night!
 
3 hours later…
08:39
@rlemon I want to flag that as a duplicate of stackapps.com/questions/3616/…
:P
Whats the best way to break out of nested for loops?
break;
Oh, nested
Yeah, but that only breaks out of one level
Break the condition of the outer loop?
thats what i thought
08:45
Like i = arr.length;?
I'm iterating over a 2D array so:

#COFFEE
getHighestRow = (grid, highestRow = 18)->
    for row in [1..20]
      for column in [1..10]
        if grid[row][column] > 0
          highestRow = Math.max 1, row - 3
          column = row = 100
    heightestRow
Should do the trick yeah?
Yeah, add a break; too
Because the code after the if will run on the new value anyway
No? The for loop will check that column is < 10?
Let's simplify it
But what I have is:
var getHighestRow;

getHighestRow = function(grid, highestRow) {
  var column, row, _i, _j;
  if (highestRow == null) {
    highestRow = 18;
  }
  for (row = _i = 1; _i <= 20; row = ++_i) {
    for (column = _j = 1; _j <= 10; column = ++_j) {
      if (grid[row][column] > 0) {
        highestRow = Math.max(1, row - 3);
        column = row = 100;
      }
    }
  }
  return heightestRow;
};
Ah, then it's cool
Thought so, cheers!
Apart from the typo :P
Yeah, that was funny
heightest
Pretty sure heightest isn't a word
!!/google camel case spell checker
No bot?
Hahahaha epic
Arrr
What what wit wit?
I meant "hi" :-P
09:02
Ahh, a fellow pirate!
all the way!
just received the "privilege" of visiting chat. I am fairly new to stackoverflow.
thought I'd come by and say hi
*arrr I mean
09:18
hi
I have a table and i want to compare the contents of the td which i am doing through javascript. I tried using innerHTML and textContent.
The data in both the tds are same but due to the spaces or different formatting it is showing as the data not matched
I want it to ignore the formatting and just check for the data.
How to do so in javascript
One thing to try is removing all the whitespace:
str = str.replace(/\s/g, '');
09:34
great thanks
@phenomnomnominal When do you sleep?
4am to 9am ish?
I'm still very much in university mode
Yeah, man, you're always online
You're like the new @Abhishek :P
Only less of a 13 year old girl
09:41
I have 2 weeks off for the first time in like 2 years. So naturaly I'm cleaning up all the code from my uni projects from the last 2 years...
@AmaanCheval, I'm so stupid:
  getHighestRow = (grid) ->
    for row in [1..20]
      for column in [1..10]
        if grid[row][column] > 0
          return Math.max 1, row - 3
    return 17
Hahahaha what the?
So much better!
No, really. What the heck is this? CoffeScript?
Ah
Yeah, if it's in a function, a return should have been used
09:45
CoffeeScript automatically returns the last statement, which is handy, but in this case misleading. Without the final return, it pushes the result of each iteration into an array and returns that array.
Oh well
It works now.
@phenomnomnominal Do you have any good resources on finite-state automatas?
My brain is trying to catch up
I do, I think
The challenge is open for all
09:48
It's from a course explaining RegExps
So far I have an idea to convert (simple) regexps to NFAs and evaluate those
But hurr durr goes brain
Nope, I thought I had some notes from one of my robotics courses but I can't find them
ah yes I've seen that course. Does it ever go into actually implementing NFAs or just leaves it at simple recursion?
Tbh, I don't remember
09:52
What is with that dude's percent signs?
@Zirak do you have access to any journal libraries?
Not to my awareness
Damn i found an journal article that looks perfect
"From regular expressions to smaller NFAs"
Ctrl+S :p

« first day (763 days earlier)      last day (4410 days later) »