« first day (762 days earlier)      last day (4190 days later) » 

12:00 PM
Ooookay
 
interesting aye
 
Nice
 
wonder how much of it's bullshit
either way, effective
 
Even if it is, it's right. People are careless with their data
 
12:03 PM
For example, people post pictures of their credit cards on Twitter
There's an account that retweets every picture that has all the digits clearly visible
 
wow
that's just stupid though
I'm all for natural selection
 
@NeedADebitCard
Please quit posting pictures of your debit cards, people.
98 tweets, 11.6k followers, following 0 users
 
!!/choose "try calculus" "do some work" "play pokemon" "fix me"
@Zirak do some work
fffff
 
Hahahaha
 
!!/tell @Zirak 'try calculus'
 
12:06 PM
0
Q: Call javascript functions from each page

PhilipIs there a plugin that supports calling custom functions that you've created? Like, page A -- I want to call function x $(document).ready(function(){ call_function_x() }); page B -- I want to call function y $(document).ready(function(){ call_function_y() }); I don't want to writ...

 
@phenomnomnominal Command try does not exist.
@phenomnomnominal Command try calculus does not exist.
 
I suck.
 
/tell isn't an echoing command, it delegates the result of another command
 
!!/tell only allows other commands
 
!!/tell phenomnomnominal help tell
 
12:07 PM
One day i'll read how it works instead of stumbling around
 
You could make an echo command though
 
@phenomnomnominal tell: Redirect command result to user/message. /tell msg_id|usr_name cmdName [cmdArgs]
 
!!/help learn
 
!!/tell Zirak urban calculus
 
@AmaanCheval learn: Teaches the bot a command. /learn cmdName cmdOutputMacro [cmdInputRegex]
@Zirak [calculus](http://calculus.urbanup.com/2997325) Calculus is how we know everything about everything, except sex, maybe.

It is also a name for the page and a half of indecipherable foreplay used in university physics textbooks before they give you the formula for something.
 
12:07 PM
I never understood how the regex was supposed to work
!!/help
 
It's exactly like the string you give in str.replace
 
!!/learn echo "content"
 
@AmaanCheval Command echo learned
 
!!/echo Hi
 
@AmaanCheval content
 
12:09 PM
:P
!!/forget echo
 
@AmaanCheval Command echo forgotten.
 
!!/learn echo /*/
 
@phenomnomnominal Command echo learned
 
!!/echo Maybe?
 
@phenomnomnominal /*/
@AmaanCheval /*/
Dudes you suck
!!/forget echo
!!/learn echo $0
@Zirak Command echo forgotten.
@Zirak Command echo learned
 
12:10 PM
We didn't know what the special character thing was supposed to be!
> The command internally accepts more macros (for instance, in /learn.) Can't document those in here.
 
It's the capturing groups
 
Yeah, got that now
 
What's the order, though?
 
12:10 PM
outputPattern

A string passed to /parse (see above for doc), with the matched groups ($0, $1, ... for the capture-groups in inputRegex) as the extra variables.
 
HOWAREYOUTODAY
@RasalShukla HELLO
 
@FlorianMargaine, Shameless Plug
 
YELL TYPE!
 
@phenomnomnominal he's interested in it :p
 
12:11 PM
@FlorianMargaine Froze on me
 
@AmaanCheval I removed the getSelection thingy in the end
@AmaanCheval ...froze?
 
Haha I know :P It's cool!
Yeah mine bugged out and started eating up memory
 
Yep, same for me
In the textarea, I'd typed aa
 
Neat. But it should also do re-selection when the input is changed
 
Also, throws errors if you enter a regex without any text in the textarea
 
12:13 PM
i never thougt i'd be headbanging to christmas songs....
 
@GNi33 lolwut
 
@AmaanCheval oh yeah
that's buggy
 
bought the record yesterday, so epic!
 
Sledding hill. Hmm...I was thinking about calling my game something like that
 
my parents will hate me for this
 
12:14 PM
@FlorianMargaine JS chatroom and the regexfiddle crashed on typing in that
 
!!/tell Zirak google "i just lost the game"
 
i'll blast that one on christmas eve all day long
 
@phenomnomnominal You're an ass
Anyone who mentions the game should be banned
 
You're the one who's cheating.
!!/urban The Game
 
!!/tell phenomnomnominal urban the game
 
12:15 PM
okay, okay... i lost, i admit it
 
Ninja'd
I like the urban entry
 
sorry, disabled the bot since rlemon was here. it's up again
 
i wonder if i'm in urban
!!/urban phenomnomnominal
 
@phenomnomnominal [the game](http://the-game.urbanup.com/1635423) If you think about The Game, you lose The Game.

When you lose, you must tell everyone near you.

You can not stop playing The Game once informed of the rules. However, the game is to be sold, not to be told.

When you hear someone lose the game, then you lose, hate the player.

The only way to win The Game is to really, honestly, forget about The Game. This rarely happens so basically you win but will never know you win because as soon as you do, you lose.
 
Hello guys. I have question about adding to date.For example i have a date stored in variable (25.12.2012). I would like to add +1 month or +1 year to that date. Thanks
var dat = '25.12.2012';
 
12:18 PM
!!/tell JamaicaBob mdn Date
Turn it into a date object, work with that
 
Just do $(dat).addOneYear();. It may show you an error, but disregard that, it'll work fine.
 
date.setHours(date.getHours() + 1)
 
oh man
the page totally crashed me
 
@FlorianMargaine Too much recursion?
 
There is no such thing as too much recursion
There is only limited will
 
12:20 PM
Congrats on making the first page that managed to crash a tab on my computer, though :p
 
Thanks guys :)
 
It is way too easy to make the PS3 browser crash
 
enjoy
 
@AmaanCheval haha
there's no recursion though
dunno what's wrong there :/
 
I thought it was glitchy because it searched for the needle in your control highlight code too
And then highlighted that, and searched again and kept finding it
 
12:21 PM
@bot Y U NO ANSWER. I TRY AGAIN
!!/urban phenomnomnominal
 
@phenomnomnominal phenomnomnominal Like hows it hanging, but when you (or the person you are asking) are so awesome that things just DROP.
 
@phenomnomnominal Already answered
@FlorianMargaine You should just store the actual data in a variable, and output only the formatted text in the textarea
 
I should change that link text, it's confusing
 
Interesting, it searches users as well
I don't think I added that?
 
12:23 PM
@AmaanCheval what do you mean?
 
@phenomnomnominal You do know it's just Urban Dictionary, right?
@FlorianMargaine I'll show you an example in a minute
Or I'll just explain it
 
Of course haha, I mean I didn't add that to urban dictionary - that means theres another phenomnomnominal, with the exact same spelling mistake!
 
So, oninput, store the text in a variable. Don't try matching the textContent. because that includes the span
Wait. Does textContent exclude that?
 
it does
I really don't see what the hell crashes the page
 
Shouldn't it be:
if (match) {
    // Replace!
    match.forEach(function(el) {
            output.innerHTML = output.innerHTML.replace(new RegExp(el, 'g'), '<span class="highlighted">' + el + '</span>');
        });
}
 
12:26 PM
maybe
 
@phenomnomnominal Why?
 
First of all, use document fragments
 
If the match doesn't exist, forEach does nothing
 
Second, you do use recursion - it's just a bit hidden. You operate on the result of the previous operation.
 
12:28 PM
In chrome at least, match returns null if there are no matches
so null.forEach throws an error
 
Ah
You're right
Zirak's right
You reset the text after searching
Reset it first, then search on it
 
yeah, but it shouldn't change -- the span shouldn't be in the textContent
it doesn't crash - but the span are in the div :/
 
Oh, yeah
 
and it crashes again -_-
 
Does something escape the html?
 
12:32 PM
@phenomnomnominal textContent
 
But you're not operating on the textContent
You're operating on innerHTML
 
@Zirak No, he's operating on the textContent
Oh, no!
At first, you are
Later he works on the innerHTML
 
That's what causes the recursion
 
Yeah
 
indeed, that fixes it
 
12:34 PM
Good work team :P
 
How do I force close a tab?
about:kill won't work
Closing it won't work
 
Ask it nicely
 
Hahahaha
 
End process in task manager?
Chrome Task Manager
assuming chrome :P
 
Oh, yeah, thanks
 
12:36 PM
So many goats teleported
 
/end of regexfiddle project
 
No spoilers!
 
oh well
at least, it works
 
That's pretty neat
 
but now I don't want to spend some time when something like refiddle.com exists
 
12:37 PM
Ooh pretty
It even has a "how to ask a regex question on SO" part
 
Damn, the regex capabilities in js are really weak
The regexs themselves are fine, but string manipulations is meh
oh well, hacks is it
 
What do you want?
 
The beginning index will be nice, and some sort of map function, not just the crummy replace
 
Just extend the prototype :P
 
Or split the match to an array or something?
 
12:40 PM
Throw in some eval
 
No, I need info it doesn't provide
And I don't exactly want to make a regex engine
I'll just meddle with .replace
 
1
Q: How to wait ajax callback result from another callback?

oguzh4nI have a method below: self.getOrAddCache = function (key, objectFactory) { var data = self.getFromCache(key); if (!data) { data = objectFactory(); if (data && data != null) self.addToCache(key, data); } return data...

 
Can anyone think of a reason why Facebook is the only site that times out for me?
Nothing in my hosts file
 
Your computer is telling you to not go there
 
I don't want to anyway :p
I'm just wondering what could cause it
 
12:43 PM
There was a point this year where I had to block that demon place
Tetris Battle... the hours
 
I blocked SO once
 
@Zirak yeah, String.prototype.replace is meh, but it's the best in js
 
I prefer Array.string.replace
 
I like Object.Worker.Array.prototype.Date.String.replace
 
@Zirak :p
 
1:00 PM
facepalm
I just tried to track down a bug caused by sheer stupidity
Declared a variable called lastIndex, later did last_index = ...
 
been there
 
I wanted to find out if there were any guides on programming event-driven code out there, but it is not specific enough for SO, so I am asking it here. Any good guides to recommend?

I know how to write event-driven code, but the code easily becomes convoluted and functions seem hard to share between sections of code due to dependencies on internal object/module state.
 
@FlorianMargaine @AmaanCheval jsfiddle.net/TUfMZ
sans the logs. they were there to track down that stupid bug.
It was actually fun
I'll write it cleaner now
 
anyone knows if closure-compiling some js is an effective way of "protecting" the source code?
 
no.
It minifies it, but its easy to un-minify
 
1:10 PM
Why do you think your JS code needs to be protected?
 
protect the investment of making some apps in it
 
@Zirak Nice
I was going to do that, but I got lazy
Why no camelCasing?
 
What kind of apps?
 
@Inuart Don't bother. You can't.
 
I feel like I'm reading PHP
 
1:11 PM
^
 
Most people asking about protecting their HTML/JS code write simple stuff that nobody will seriously want to steal anyway...
 
@AmaanCheval Just 'cause. Did some perl/python and got the hang of underscores.
I'm growing fond of them
 
well, porting some games actually
 
Minify it. That has some advantages (smaller size) and people trying to read it will have a hard time since they won't have any useful variable/function names or comments.
Yeah, for that minifying is totally enough. That'll be enough code to be hard-to-read even after prettifying the minified code.
 
yeah the only way to protect them would be to put them inside an executable. But.. if you wanted them to be web based that defeats the purpose
 
1:12 PM
but I guess executables can also be reverse-enginered
 
yeah exactly
 
@Inuart And really, jar/swf files don't provide that much protection as well. Even exe files can be reversed (take it from a person who did that for some time)
ninja'd
 
haha ok, so, it doesn't really matter
 
well, a native executable (= compiled to machine code) can only be reverse engineered to assembly
 
^ not true for .net
 
1:15 PM
or ugly C maybe
 
that's not a native executable
 
lol you can view all the source :P
yeah but why go into semantics
an exe is an exe
someone should never feel safe
 
dum dum DUM
 
Battery in my UPS was dying so I took it out and got a new one. PC was on a power bar all this week. What is the chances I get a power outage last night... :(
 
ok, thank you all!
 
1:16 PM
HA that sucks man
 
all work was saved, but it's still a pita
 
how much was the battery?
 
like $90
 
generally I just buy a new ups
damn
yeah man the batteries are so friggin much
 
work pays for it
 
1:17 PM
ah nice
 
so I don't care :P
Question: You are nearing your deadline, but you've found a roadblock keeping the project from being completed without A) doing some ugly stuff or B) re factoring half the code. Do you tell the boss/client "sorry the project will be late" or "!Important ALL OF THE THINGS" and push that cow out the door.
 
Tell them it will be late.
 
Tell them it will be late, with a timeframe
 
I'm thinking of doing both.... actually.
"here is your application"
... 4 days later
"here is a 'security patch'"
stupid edge case bug :/
 
Chances of edge case within 4 days?
 
1:21 PM
doubles memory consumption... but it is unlikely to cause ill effects.
BUT that is an assumption on how the end user will use the application
however atm there are less than 5 end users.... so I might get away with it ;)
ok but I really gotta put this UPS back in. brb
 
Say you know there's a flaw before delivering the application but you'll work on it?
 
Patching is a good idea
Let them know there's an issue though
And that you're working on it
(@rlemon)
 
that is likely what i'll do
I also have to prepare for this trade show in two weeks in NE
need to put together a booth, and we have 40 minutes presentation time.
last night I ordered 300 thumb drives as "give aways" - paid an extra $0.35 per unit for them to pre load them all with our sales media and manuals etc.
shit was expensive, worked out to $7.45 / unit (1GB thumb drive + custom label, express shipping, pre loaded data, taxes)
 
1:42 PM
@Zirak was your starred joke about UDP?
 
yesterday, by rlemon
I can tell you my UDP joke.... but you probably wont get it.
I don't remember where I heard it
 
@rlemon yeah, that's the one :)
 
Hello?
 
@rlemon I could tell you my TCP joke, but you have to first ACKnowledge me
 
@Neil FIN RST
 
1:56 PM
I swear, trying to answer a main site Question just results in a lot of downvotes and close votes.
FFS i'm unsubscribing from the tag
 
those two questions are both very badly written, though
 
they need to be closed :P
 
@rlemon What? :p
 
:)
 
I didn't get the joke :p
 
2:04 PM
neither did i
I googled "I feel stupid" and got this
I thought you might like it.
 
Hahaha, nice
So, what do I do if there is no configure file when building from source? The instructions say run ./configure
 
Cry. Also, join my club.
And possibly try every make you can think of.
make all the things!
@rlemon E.L Dunn is sucking on you.
 
posted on November 16, 2012 by RKoutnik

A recent Wired article makes the claim that passwords are obsolete.  Normally, I'd just pass it off as yet another blogger trying to get hits by claiming that "$technology is $bad for $reason" but this is Mat Honan, who had his digital life destroyed earlier this year. Honan has done some incredible research into the (lack of) security in our lives online.  He claims that it would on

2
 
@SomeKittens The mailing list thing didn't work, btw
I use Google Reader now, so it's okay
 
Oh my god I just did it. I really did it. I bought Black Ops 2.
@Loktar -^
 
2:20 PM
damn, I need to get my blog on so hard. :/
 
@OctavianDamiean nice man
 
FFS I left my credit card at home :( looks like i'm not buying any domains today
 
tie it to paypal
 
@OctavianDamiean last black ops failed so bad, cba to buy it this time, but please do tell if its any good :)
 
last black ops was good
last CoD was crap
 
2:22 PM
Don't buy domains. Buy BlackOps 2 you you can join us.
 
MW4 or whatever
 
-1
Q: Pass String into If Statement

ryandlfIs it possible to pass a string into an if statement as a means to create dynamic if statements? A simplified example would be: var condition = "bool == true"; if(condition) console.log('It is true!); Of course the example above does not work, because it always returns true, because the string...

ohh good lord o_O
 
I wonder what went through his head
 
a breeze
 
What was the line of thought which concluded in this question
Because there must have been something. This isn't a mere misunderstanding. He knows what a condition is.
 
2:25 PM
Why would you do this? Why is your condition in a string like that? what in the name of Pete is going on here?! — rlemon 2 mins ago
 
Maybe there's a real problem behind this
 
I'm trying to find out
 
@Zirak I guess it was cocaine.
 
> the condition will be pulled out of an existing HTML block using a regular expression and is therefore returned in string format.
...wat?
k, disinterested
 
2:30 PM
klk to you too, Alien (because vs. predator. yes, that was lame.)
 
lol you know what klk means?
 
> KLK is "Que lo que? (Spanish for What's Up?)"
 
!!/urban klk
 
@SomeKittens klk short form for "que lo que" most of the time use in messenger.
Y U NO READ WHAT I JUST WROTE?!?!?!
 
Hahahahaha
 
2:34 PM
Because I know just enough Spanish to doubt you
 
@SomeKittens he's right
it's dominican slang
 
Yeah, I discovered that
 
for what's up
 
@SomeKittens I think the link saying "enable it [two-factor authentication] now" should lead to the enable page, not Jeff's article telling you to :p
Also, invariably*
> More secure solutions will be found but they will invariable result in a loss of convenience.
 
@SomeKittens apparently I know just enough more to show you up.
 
2:37 PM
Good catch. I'll leave it at Jeff's article because he goes more in-depth with the why and has pretty good instructions.
 
@AmaanCheval hey, want some stake?
ducks
 
@Zirak Aww, that's sweet of you
:p
 
Hey guys how can i set LIVE if statements in jquery? I condition disabled property, but IF does not detect if after property is changed.
 
One beer buddy turns to the other and says, "Bet ya 20 dollars you can't take those pieces of meat and make them stick to the ceiling." He grabs'em and with a swing manages to make them stick to the ceiling. "Double or nothing you can't get'em back down now..." The other smiles and says, "I can't. The steaks are too high."
 
2:43 PM
@JamaicaBob you want to monitor a property?
 
if ($('#element').prop("disabled")==false) {...} IF statement does not detect the change when you toggle between disabled and enabled
 
1) you're doing it wrong
2) you're still doing it wrong
when you disable the element run the code in {...}
simple
 
3) Just when you think you're not doing it wrong, you can bet you're doing it wrong.
 
oh, right :P ....
thanks
 
@Loktar Added you on Steam
I'll be ready in about two hours.
 
2:49 PM
@OctavianDamiean nice, yeah Ive got work for another 5-6 hours.. and family is in town
so I may not be on too much this weekend
but next week for sure
 
Ive got a 4 day weekend next week :)
 
Even better, I need a couple of hours to get used to the game. You know getting up to my standard pro-like mad skills.
 
0
Q: SEO - Index images (lazyload)

Guilherme NascimentoNote:My question is not about Javascript. I'm developing a plugin for jQuery/Mootols/Prototype, that work with DOM. This plugin will be to improve page performance (better user experience). The plugin will be distributed to other developers so that they can use in their projects. How does the...

 

« first day (762 days earlier)      last day (4190 days later) »