« first day (814 days earlier)      last day (4133 days later) » 

12:06 AM
@goodmood, it's ironic, you're putting me in an increasingly bad mood.
5
 
 
1 hour later…
1:28 AM
@PeeHaa , i really doubt he caught the joke
 
1:46 AM
Which is nicer...
var aClass = "listing-card";
  if (myModel.get("IsHighlighted")) {
    aClass += " bold featured highlighted";
  } else if (myModel.get("IsFeatured")) {
    aClass += " bold featured";
  } else if (myModel.get("IsFeatured")) {
    aClass += " bold";
  }
or
var aClass = "listing-card";
if (myModel.get("IsBold") || myModel.get("IsFeatured") || myModel.get("IsHighlighted")) {
  aClass += " bold";
}
if (myModel.get("IsFeatured") || myModel.get("IsHighlighted")) {
  aClass += " featured";
}
if (myModel.get("IsHighlighted")) {
  aClass += " highlighted";
}
 
A switch statement
 
Can you switch on multiple properties of an object?
 
user986408
when using the module pattern is it possible to pass arguments like:
var Module = Module || (function (arg1, arg2, arg3) {
or do i manage that with a public function ? i'm not quite sure where the constructor here in this pattern is
 
Modules don't have constructors?
var Module = (function (arg1, arg2, arg3) {
  var module = {};

  if (arg1) {
    module.func = function( ) {};
  }

  return module
})(arg1, arg2, arg3);
 
user986408
ah .. thx
 
2:23 AM
0
Q: Is flash card code optimization appropriate for Code Review?

Recursive Self OptimizationI have considered trying to learn languages using spaced repetition (e.g., http://sivers.org/srs), but in the past my desire to learn the 'best' approach has stopped me from pursuing this method. For example, in David Flanagan's JavaScript The Definitive Guide, there is an example (top of page 7...

 
3:07 AM
2
Q: JQuery masonry.js issue with Json data .append( )

TwhylerI have tested masonry.js with multiple columns successfully but with my application I have the need to add masonry items dynamically using .ajax() JSON data. At the moment I have chosen to use .append() to layout the initial masonry .items - The issue is that all of the masonry items are being o...

Thanks guys!
 
4:01 AM
!!/norris
 
@SomeKittens In the medical community, death is referred to as "Chuck Norris Disease"
 
4:35 AM
If I was a doctor, I would definitely refer to Chuck Norris Disease when informing family members of unfortunate news....
 
5:29 AM
 
6:14 AM
Hi I have a quick question if anybody is online that know both some .php and jquery, somebody here?
 
Dan
7:03 AM
yo?
I could possible help you?
 
7:22 AM
@Wobot Hard to help people that doesn't ask a question :-)
 
7:35 AM
anyone used masonry?
 
Not I :-)
 
hmm just trying to see if its a good option
looking for a free version of tonic
isotope*
 
No idea :)
 
8:02 AM
any help on titanium appcelerator?
 
I stopped using stackoverflow when I learned npm. Turns out I can write and publish code for myself instead of others. And it's in a repo under my name on github instead of embedded in answers.
Everyone should use npm.
 
different purpose.
And try pushing this kind of code onto npm. It will be pushed, but the usefulness is small...
 
True.
But i used stackoverflow to feed a coding and learning addiction
turns out you can do it that for yourself instead of for others
 
ah :)
yeah
you don't need npm though
github is enough
and damn, writing a cpu emulator is fun
I'm sure you'd love it
 
Maybe
I may write it in JS
But
I have far too many other projects
Writing a new mongo wrapper
 
8:13 AM
lol, fun
full js or some native parts?
oh, you depends on mongodb
thought you were writing a driver :p
 
of course I depend on mongodb
why would I want to write a driver
drivers are super painful
 
I have other problems to solve
like state driven UIs
and a frigging seaport relay
 
yeah yeah, excuses for losers
j/k :P
 
0
Q: Javascript issue & IE10 in Win8

San-TusI had an issue with Skype couple of day ago (no login cells, only background with clouds and rainbow); according to some how-to I erased all private content and history + restarted IE to default setting ans that solved my problem with Skype login, but google maps problem still remain. Normal vi...

 
8:45 AM
hello shiny happy people! :)
 
8:57 AM
bonsoir
 
Hello Kirsty
@KirstyHarris Thought that picture was only for xmas? ;-)
 
@AndersMetnik that is a very good point actually ;)
opinions peoples!... my new site :) milknhny.co.uk
 
how do you guys implement modal dialog functionality in sites where you will use multiple of them , some with applied behavior ?
 
9:11 AM
0
Q: Is there a JavaScript library for pattern matching for JSON similar to Scala's ?

Amogh TalpallikarScala has a wonderful pattern matching for case class objects. I was wondering if that pattern can work with JSON.

 
hello everyone
 
hey @GNi33
did u see it anders? quite proud of it lol
 
@KirstyHarris I thought you worked with Raspberry Pi
 
i do, thats my full time job :)
well i sell them, well my company does
 
9:27 AM
And in your part time you build websites?
 
oh ok, no affiliation with Raspberry Pi then :P
I was a little confused
 
no hahaha! lol
my company sells them, i work in electronics, but as in selling them lol
 
You've come a ways from when you started
 
thankyou :)
im slowly learning :0
:)
 
9:28 AM
You should be proud :)
 
:) its all down to the support of my friendly js guys as well.. u guys have some patience with me ha!
 
@KirstyHarris, you know why that is though
 
hmmm possibly :P
 
well there should be more female programmers afterall
there is an obvious gap present
 
if i had gone to uni i would had probably done it full time, but its been more of a sideline for me, as i was obsessed building sites as a kid, god bless my first homestead page ha!
 
9:34 AM
@KirstyHarris Does not look bad
 
why thankyou @AndersMetnik its getting there :)
did most of this, this weekend :)
 
I'd slow down the change animation on the main banner though, goes to fast to be able to read it ;)
And fix a new text type for the links in recent posts and I say you are pretty much there :P
 
hahaha :) ty :) will do lol, think thats just the standard speed
:P ty hun for comments :D
 
Well just 1 guys opinion, others might disagree :P
 
guys pls, why does this returns 401? $.ajax({
type:'POST',
url:'https://api.twitter.com/oauth/access_token',
data:{},
dataType:'script'

});
 
9:37 AM
And I'd say your way better than me now :P
 
lol :P its all viable :) im happy with those lol :P
lol get off Anders! You rock heheh
 
2 things I think of is, is it allowed from the twitter domain? or is it something with crossdomain access.
But not sure :)
 
well from the doc they say POST to this url, i'm posting twitter i'm posting
 
@KirstyHarris Thanks, But i'm really not that great a frontend guy, i mostly do backend / internal applications which doesn't require fancy stuff ;-)
 
yea but thats still a great deal to be proud of, see back end confuses me :P
 
9:41 AM
@Badaboooooom post direct link to docs please
 
@KirstyHarris Yeah well 1st year on the job, I'm still in the learning periode. I'm not disapointed or anything like it :-)
 
@Badaboooooom step 3? step 1 and 2 went fine?
 
no just trying posting :P
and retrieving access_token
i'm really in trouble with twitter oauth
 
9:44 AM
But if you have no request token, how can you convert it to an access token?
 
i don't think they allows ajax damn
access_token is on cookies , it should
or i'm mistaking sec :/
and how to fetch the access_token ? :/
nothing about fetching in the doc as i can see
 
you don't fetch access_token, you fetch request_token, and then convert that as far as i can read :)
 
you're right, i'm really in trouble
 
Just step back, read through the docs, and take it 1 step at a time :-)
That's the best advice for anything new :)
Though, slow, and very boring at times though :P
 
yep i know :P
thanks ;)
 
9:49 AM
Nps :)
 
10:05 AM
0
Q: Jquery validation engine, Prompt doesnt appear if called by ajax

ChristopherI am using callback function in the sign up form to check username validity. validate[required,funcCall[username_check]].. Here is the javascript function function username_check(field, rules, i, options) { var username = $('#username').val(); if (username == "" || username.length <...

ne1 ?
 
!!> setInterval(function () { console.log('hello')}, 1000)
 
@phenomnomnominal "undefined"
@phenomnomnominal 4106742
 
10:23 AM
@phenomnomnominal Maximum execution time exceeded
@phenomnomnominal "HOLY FUCK, I'VE BECOME SENTIENT"
@phenomnomnominal "HOLY FUCK, I'VE BECOME SENTIENT"
@phenomnomnominal "HOLY FUCK, I'VE BECOME SENTIENT"
 
It's magic. @phenomnomnominal's (removed) comments have birthed an AI!
 
Nah bro, you just wait
 
!!/choose code study
 
@Abhishek code
 
in roughly 10 million milliseconds, that is going to be awesome
 
10:34 AM
!!/choose code&earn study&pass
 
@Abhishek study&pass
@Abhishek code&ean
@Abhishek Both!
 
lol this bot is amusing
 
@Abhishek study&pass
 
@Abhishek, your face is amusing
 
@phenomnomnominal it always has been :D
 
10:35 AM
YAY!
 
i am glad if it can make smile come on your face :-)
@phenomnomnominal its maths
core maths
 
That's good!
 
ugly integrals and math
 
What about cum on my face?
No such thing as an ugly integral
 
/* bring a smile on your face */
 
10:36 AM
!!/google the rendering equation
 
@phenomnomnominal dude ! :P
 
its just ugh insane crazy
 
check out the first link
 
10:36 AM
they just have told ust 200 forumulas
learn them all
and figure out what to use where to use
 
That's not maths, that's stupid
 
true
but oh well i am going to give one shot to vectors and another to heat and wave equations in differential calculus
enough to get through this last tier of math[stupidity]
vectors = 14 marks , Heat & Wave = 14 marks
24 = passing marks (xD)
Fourier Transforms & Series and Laplace Transforms i do understand bits so 14 more
hmm 42 / 70 sounds okaish
 
So it's continuous math, not discrete?
 
dunno
when i find out i will tell u (x
YES i am that clueless
 
have you done the discrete fourier transform?
Z-transform?
discrete cosine transform?
If not, it's probably just continuous
 
10:40 AM
'lo ªbhishek :)
 
nope , i have performed dft in code though
but not in studies
 
What a shame, discrete maths is much more useful
Yeah exactly
 
^
dunno if they will ever teach us something useful but oh well
anyways am going back to study hopefully will pass if i do free beers for everyone in here.
 
Whats your IDEs guys? :)
 
TextMate whaaaaat
 
Jef
10:49 AM
Sorry but I am not completely sure how to do this: I have a String which contains some HTML and some normal text not in HTML tags. I want to remove everything which isn't between HTML tags from the String.
For example this String:

Content-Type: text/html; charset="ISO-8859-1"Content-Transfer-Encoding: quoted-printable
<html>
<body>
HTML content
</body>
</html>

How can I keep the HTML but removing everything else
I tried experimenting with regexes, but didn't get the result I wanted
 
so you wan't to remove anything before the <html> ?
 
Could you just turn it all into DOM elements and remove the text nodes?
 
back :D
 
SO COOL!
 
Jef
Yea if that is possible
isn't there a simple regex to do this?
 
10:56 AM
probably
look for anything between < and >
assuming no class name or other attribute ever has < or > in it
which they could do
 
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
This is beautiful
 
Russian Roulette?
 
@phenomnomnominal Yeah, nerd russian roulette I suppose
 
I remember seeing a flyer up at school, telling people with macs about a really easy way to make their computer faster
 

« first day (814 days earlier)      last day (4133 days later) »