« first day (1474 days earlier)      last day (3484 days later) » 

9:00 PM
Attention all: The bot's eval command is no longer foobar'd. kthxby
 
@towc so you're saying when I visit "/counter" the number is given straight away? the server doesn't even execute a call to the db or text file to get the value?
lol xD
 
@Zirak 2.9
 
@FlorianMargaine just like your face!
 
!!> 1 + 'foo'
 
@SecondRikudo "1foo"
 
9:00 PM
hmm let's test
 
now, what about !!learn?
 
@AwalGarg can't believe @rlemon wrote shitty code. bad bad bad!
 
@KendallFrey Looking into it now
 
@RobertMallow it executes an ajax call and returns the number
 
9:00 PM
@Zirak good good
 
!!>['1', '2', '3'].forEach(parseInt);
 
9 mins ago, by rlemon
also, move the setTimeout inside of the callback
 
@AwalGarg "undefined"
 
dinner
 
@towc and this number from where does come? how it's calculated?
 
9:01 PM
@RobertMallow it's stored in that file!!
 
@FlorianMargaine shitty questions get shitty code
 
@FlorianMargaine I think he acknowledged it right after that.
 
@rlemon furry muff
 
pointing out what to correct
 
@towc which file lol, "/counter.txt"? xD
 
9:01 PM
better than giving a working code, I would say.
 
@FlorianMargaine what do pubes have to do with anything?
 
@KendallFrey everything.
think about it
 
!!afk ping @FlorianMargaine with nudes, he likes them.
 
Of course, how could I be so blind
 
s/with/is/
 
9:03 PM
@KendallFrey your pubes blinded you
 
I am not as hairy as you
 
example of a pseudo func: route("/counter") {return db.get("counterval")}
 
@KendallFrey that may very well be true.
 
hmm @KendallFrey after following what you said, it turns out that I don't need any regex at all... damn you :(
 
@AwalGarg going to fix that xD I was interested in what point rlemon wanted to come across and I got it now
 
9:04 PM
Best code is no code
 
#99999999th repost
but I want to use regex...
 
I can teach you REBEL
 
so is there actually no practical usecase for regex?
 
Then you can regex to your fart's content
@AwalGarg course there is
 
another programming language?
sorry not now.
@KendallFrey trying to discover a few
 
9:06 PM
do you guys know about topix?
 
@AwalGarg validation is a good one
text search is another
 
I think it's the worst forum ever
 
@KendallFrey which is what I was doing, and you trimmed my regex to 0 bytes, and it is still fine!
 
anonymous comments and no moderators deleting offensive ones. ouch!
 
@KendallFrey noted
 
9:07 PM
@RobertMallow Sounds like a fun Saturday night
 
@KendallFrey heh. I challenge you to even try talking there for half an hour xD
the sane/troll users ratio is 9/10
 
ratio or fraction?
lern u sum math
 
9 sane trolls out of 10 trolls?
 
@KendallFrey not very good at math xD but I meant like 90%
@AwalGarg wish it was like that :P
 
what place are we talkin bout?
 
@RobertMallow 9:1 ratio, or 9/10 fraction
 
@KendallFrey ouch! right..
bows head in shame /o\
I think that forum is the best for training wannabe moderators lol
strengthens your nerves and patience
 
@KendallFrey I've got a supposedly fixed version of /learn under the beer! prefix, care to try?
If I haven't messed stuff up further, that is.
 
0
Q: regex giving console output in chrome console and JSBin

GoodwordInteresting little problem: I was using JSbin to practice converting single quotes to double quotes. The readout in the JSbin console kept inexplicably giving me "\". Then when I tried running the same code in the chrome console, the switch worked fine. (Yes, I am aware that it converted the ' ...

@Zirak ^ you should answer
 
It's a meh question though, only deserves a comment
 
9:14 PM
Howdy all, what is this called in jQuery? I am guessing it some sort of constructor?

var input = $("<input>", {name : inputName});
That produces an input element
 
@Zirak the answer is related to the /' right?
 
!!>console.log($("<input>", {name : inputName});)
 
@RobertMallow "undefined" Logged: "."
@RobertMallow "SyntaxError: missing ) after argument list"
 
@Zirak certainly
sandbox?
or here?
 
Isn't this POST stuff dangerous?
{"users":[{"id":189435,"name":"mdoyle13","email_hash":"d7510de17cb244bbc695119d37924e3c","reputation":133,"is_moderator":false,"is_owner":null,"last_post":null,"last_seen":1414617384}]}
 
9:17 PM
There's no problem, it's just different ways to represent the same thing. When displaying strings, chrome console puts double quotes around it, while jsbin does something tries to represent the string as you would've written it in your code. — Zirak 13 secs ago
 
-> "is_moderator":false"
 
strings aren't dangerous, it's what you do with them that is
@RobertMallow trust me, we've tried
 
@KendallFrey k then :)
 
You can make you name blue, but that's about it
 
@Zirak nice.
 
9:18 PM
email_hash is more dangerous
 
...I can convert that comment to an answer and get all the rep? But it is by Zirak... :(
 
I can see why
wait.. who is "mdoyle13"? anyone here?
 
Is there a smarter way for me to do this?

input.setAttribute("name", "test_input");
input.setAttribute("id", "bob");
input.setAttribute("value", "foo");

As in like a serialized array?
 
winrar of the day:
-1
Q: How to pass a Jquery variable to php variables for the Select Query? kindly please made it

MUHAMMAD ASIF Aslam $(window).load(function(){ $("body").click(function(){ var s = window.getSelection(); s.modify('extend','backward','word'); var b = s.toString(); s.modify('extend','forward','word'); var a = s.toString(); s.modify('move','forward','ch...

 
oh ok we're talking about this guy
 
9:21 PM
@Zirak Hey do you mind if I answer that question based on your comment? Would give credits ofcourse... If you plan on writing the answer, then I won't.
 
so something like

input.setAttribute("name : inputName,
maxlength : inputLength,
size : inputLength,
type : 'text',
value : inputVal,
class : inputClass,
keypress : dateTimeRules,
click : resetCursosPos,
loosetime : format")

However this doesn't work
 
(look at original edit)
 
@BenjaminGruenbaum I think there are many winrars every day.
 
:( y z no answr
 
Ah its just a pluralised function setAttributes :)
 
9:24 PM
test message
 
I went from 48% battery to 0 in the span of 1 hour...
Jesus
 
woow GET on this chat are huge! I hope they use gzip
 
@RobertMallow what are you doing?
 
@BenjaminGruenbaum check how this chat system is made and try to replicate it on my server :)
 
they use websocket for the messages you get and POST for the messages you send
also, to get the websocket's url, they use some authentication url
 
9:30 PM
@FlorianMargaine mmm interesting
Page Speed doesn't work anymore O_O
 
too bad
 
Unable to run Page Speed on chat.stackoverflow.com/rooms/17/javascript

Please navigate to a web URL and try running Page Speed again.
haha
that's with every page
 
@RobertMallow you should probably choose a custom avatar
 
m59
Someone please tell me how node style callbacks are not flimsy flimsy flimsy.
 
@SomeKittens ok ok.. I'm going to change it ;)
 
@SterlingArcher rlemon is afk: ping @FlorianMargaine with nudes, he likes them.
 
wat ._.
 
send photo
 
wut
I have no option to upload a new picture
 
m59
function foo(someParam, someOptionalFn, done) {}
foo(123, function() {
  // am I a callback or that optionalFn!?
})
 
9:34 PM
lol
 
@RobertMallow your email is yopmail, isn't it?
 
@FlorianMargaine yes
...
 
change your mail
you should be able to change your avatar then
@m59 you can't really know.
 
@FlorianMargaine It takes a lot of time to register a new mail -_-
 
Olark is so much fun for messing with coworkers
 
9:36 PM
I mean I will do it but still
 
m59
@FlorianMargaine therefore, isn't depending on the last argument an awful idea!?
 
30
A: 1 week+ since joining and I still have the default LGBT flag as chat avatar

Martijn PietersYou are using YOPmail as your email account. We recently had a very nasty troll hijack chat with really offensive images; the troll accounts were created via TOR exit nodes to circumvent IP blocks, and used YOPmail as the required email account to automate signup. Even though their accounts had...

 
@RobertMallow Don't you have a regular email address?
 
m59
If you consider the done function a required param, it's ok, but that's bad in it's own regard. You may or may nor care about a callback.
 
@m59 it's an awful idea to have an option argument being a function, if the last argument is a callback too
anyway... you can still know tbh
by counting the number of arguments
 
9:38 PM
@SomeKittens I had robero87@hotmail.de but I forgot the password
 
it's just.... well
 
I don't like using passwords at all when avoidable
 
because fuck security
 
xD
Yes I know.. this password I use for SO is short too
 
@RobertMallow I don't use a password for SO
 
9:39 PM
something like I**t****
 
If you type your password into the chats, it's obscured with asterisks: ******
 
asswordp
 
But my GMail password is 100 characters long with multifactor authentication turned on
 
@RobertMallow use google 2-factor auth with a FIDO key
 
@SecondRikudo How do you do it?
 
9:39 PM
simple pass, awesome security
 
Note my password isn't six chars, that's just the obscuring
 
@FlorianMargaine mmm will check that now
 
or just learn u sum lastpass
 
!!tell RobertMallow magic
 
@RobertMallow (∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵀᴴᴱ ᴳᴬᴹᴱ
 
9:40 PM
^ fuck
 
hunter2
 
@RobertMallow LastPass
 
@SomeKittens my password first four characters are a capitalized word and the rest are numbers.. always four
 
0
A: regex giving console output in chrome console and JSBin

ZirakSince my comment didn't satisfy you, let's look at the sources. Chrome dev tools, ConsoleViewMessage.js: elem.createTextChild("\""); elem.appendChild(elementWhichHoldsOurString); elem.createTextChild("\""); As you can see, the dev tools writes an a double quote, followed by our string, follow...

 
LastPass looks like a good one
 
9:41 PM
My comment didn't answer his pickle, hopefully this does.
 
@RobertMallow Just don't lose your master password
 
It's used a key in encryption. If you lose it, you can only complain to God.
 
Are you really 94? — bad_boy 12 secs ago
 
9:42 PM
@SecondRikudo Any idea how to find a good password which isn't too long?
 
@RobertMallow My master is 10 characters long
 
That's plenty good because bruteforicing it is nearly impossible
 
ok damn it lets change email!
 
@RobertMallow Get GMail
One reason: No human customer support === no social engineering attacks.
 
9:43 PM
@SecondRikudo Alright I'll go for gmail :)
heh.. I don't even reply to numbers I don't recognize xD
 
@RobertMallow That's not the problem
 
even if it's pope francis talking to me
 
son of a bitch that's cute
 
@SecondRikudo what is it?
 
I can hack nearly any amazon account pretty easily by calling and telling them I'm you
 
9:44 PM
@RobertMallow just pick a sentence. That's the easiest thing to do. For example "RLemonSlidePooperSince99" is a pretty solid password
 
Assuming I know some very basic details about you.
 
I was 8 when rlemon violated that slide
 
@BenjaminGruenbaum add spaces please
@SterlingArcher s/violated/raped
 
.__________.
 
Actually he was 13 so it would be since 01 or something like that
 
9:45 PM
@FlorianMargaine 2g1c raped
 
@BenjaminGruenbaum wait.. there's a song I like :D
I will use that
 
you guys see that?
jquery is changing how they version
 
I mean a sentence of that song
 
jquery 3 compat will be the jquery 1 branch
 
wow, jquery's still alive? Why?
 
9:46 PM
I was against Jquery too and decided for a veto
 
I don't know especially the branch that only supports evergreen browsers
 
but changed my mind the last mind
hehe
my new email is "j.bellibus@gmail.com"
 
@Loktar imo that's stupid and confusing, but thanks.
 
@Loktar I like it
 
@RobertMallow Registering you to all horse/midget porn sites. Please hold.
 
9:48 PM
@SecondRikudo noooooo :(
xD
spam folder ready!!
I understand why I couldn't change picture
 
@Loktar I like how they separated legacy control so that the edge version can be slimmed up
 
there isn't an overlay over the image anymore
 
@SecondRikudo - So you just keep that list handy then?
 
like it was in 2009
 
@TravisJ Of course
 
9:49 PM
@Zirak answer!
Yeah I am, so now you answer please — bad_boy 6 mins ago
 
@TravisJ ^
 
@SecondRikudo WHY XD
 
@SecondRikudo ... 9gag?
 
@SecondRikudo - Wow, that is surprising. I am shocked that they are so far down the list.
 
my image isnt changed in this chat??!
 
9:51 PM
it has some delay
 
That's actually pretty funny
 
ohh fine stuff
haha
lets clear cache
 
no... SO cache
 
nein richtig
xD
ok Florian I'll wait in this case
I'll go back to work in the meantime.. I have a project to finish gosh!
 
9:54 PM
!!youtube reckless & relentless
good ass-song
@KendallFrey ^ inb4 !!s/ass /-ass/
!!undo
dammit that's the whole album
 
@SterlingArcher Well, now you've ruined it!
 
that's twice today
 
!!s/ass /-ass/
 
@SecondRikudo sometimes you must sacrifice for inb4
 
y u no werk?!
 
9:56 PM
56 mins ago, by Zirak
Attention all: The bot's eval command is no longer foobar'd. kthxby
oh
 
m59
I never did find an answer to this - where do variables live in a node file? var foo = 123 - is there no way to access this via an object?
 
lol
Sorry, my head is all fucked up from stress
 
@m59 live? not sure I follow
 
@m59 a node module is basically (function() { /* code */ }());
 
9:57 PM
It's so fuzzy
 
You mean access a "global" variable defined in a module?
 
m59
like window.foo
 
No, everything you want to use in other modules must be exported
 
m59
dang, everyone starts assuming crazy noob stuff when I ask a question ;D
I'm not interested in global variables.
 
LOOK AT THOSE FUCKING PAWS DAMMIT
I'm in love
 
9:59 PM
well for lack of a better term.. a variable that is in the main scope
 
What kind of dog is that anyways?
 
m59
so eval is the only way
 
@SterlingArcher a hot one
@m59 what are you talking about?
 
@m59 you trying to do multithreading or something?
 
m59
10:00 PM
not trying to do anything in particular
just curious.
 
You could get it using this
 
So eval is the only way to do nothing in particular
 
Not sure what eval refers to
 
@Zirak not nothing, anything
 
m59
function foo() { }
eval('foo')()
oh wait, no that doesn't work either haha nm
headdesk
 
10:01 PM
what are you trying to do...
 
guys, stop assuming crazy noob stuff, guys.. srsly ;)
 
m59
well, let's scratch x/y and get to the point =D
 
!!learn aww "http://i.imgur.com/iymD2rC.gif"
 
@SterlingArcher Command aww learned
 
fuck
!!forget aww
 
10:02 PM
@SterlingArcher Command aww forgotten.
 
!!learn aww "<>http://i.imgur.com/iymD2rC.gif"
 
@SterlingArcher Command aww learned
 
@SterlingArcher You don't have to /forget a command you just learned; there a 2 or 5 minute grace period where you can overwrite, no questions asked
 
m59
I wonder if there's a way to iterate functions and actually hijack them. With an object, I could iterate its properties and wrap each function call with another function that calls it
that's my ultimate curiousity
 
@Zirak oh sweet!
 
10:04 PM
why couldn't you wrap functions?
 
m59
I dunno, my brain is melted.
 
@m59 - They would have to have been declared as part of the object. If they were var then it would require hax0rz
 
m59
I figured
@Neil
function foo() { }
function bar() { }
[foo, bar].forEach(function(oldFn) {
  function newFn() { oldFn(); } // no way to assign this to the scope
});
foo();
bar();
 
10:07 PM
funcs.map(function(func) {
    return function() {
        console.log('http://www.youtube.com/watch?v=2xng2ke5W2w');
        func();
    };
});
 
you could assign to that scope if you parsed the function as a string :)
but that gets ugly quick
 
m59
@Neil that's an array
 
@m59 Yep, it is.
You want to assign it to a variable?
 
m59
yes, the main scope
 
var wrappedFuncs = funcs.map(function(func) {
    return function() {
        console.log('http://www.youtube.com/watch?v=2xng2ke5W2w');
        func();
    };
});
 
m59
10:09 PM
lol bro. You're not getting the point.
 
The internet in 1969
 
@m59 That takes every function in an array, wraps it, and returns a new array to a variable in the main scope
What am I not getting?
 
m59
Yes, I understand simple code ;D
Let me write in browser style, then.
 
Is SO down?
 
m59
['foo', 'bar'].forEach(function(fnName) {
  window[fnName] = function() {
    window[fnName]();
  });
});
foo();
 
10:12 PM
looks like it
 
@BenjaminGruenbaum it would seem so
 
Well, time to sleep then
 
@BenjaminGruenbaum nope
 
its back up
or it is just really slow
I wonder if it is being DDoS
 
@m59 Oh, thought we were talking about node here
 
10:13 PM
nah, I take it back
 
m59
@Neil I think you're as confused as I am heheh, we are talking about node - trying to replicate that behavior.
 
@m59 Just throw it inside a container, problem solved
call it window if you like
 
m59
It was hypothetical anyway
 
but you're right, never really considered that
 
@BenjaminGruenbaum I agree
 
10:15 PM
I'm sure there's a way.. how would you go about memoizing a function (reusing same name)?
 
I don't like that its called compat...
they should call it legacy like the comments suggest
some people made the mistake of reading it as compact
 
m59
@Neil yeah, that's where it would be useful - like to do that en masse
however, I doubt there's a situation where you need that when the fn wouldn't be going to an object anyway.
 
@Loktar they should call it JakeWeary instead
 
I don't think you can memoize a function and call it by the same name or it doesn't work properly
Even if it isn't recursive, the difficulty arises from the same thing
I would just use a container, but that's the workaround
 
@m59 - I think if you needed to replace functions or wrap them in that manner, you would need a small framework to do it with. A simple module pattern or prototype implementation would work.
Doing it to functions which were not intended to be replaced with a wrapper would be pretty invasive.
 
10:24 PM
@TravisJ I'm sure it's on up there with redefining this
 
 
> College is like Mario Kart- when you think you're in first place but you're really looking at the wrong screen and crashing into the wall
 
I really need to refactor this entire site. Spaghetti code, spaghetti code everywhere
Speaking of college, this is an assignment I have to do, with 4 C programs to my name: grep.sh/stupid.pdf
 
10:31 PM
@Cereal sounds hard. Presumably however you have all the prereqs ;)
 
@Cereal - nyu?
 
then again it is labelled a 3xx CS assignment, so it isn't going to be a doddle
 
@TravisJ UNB
@TomW There's no C course here, but knowledge of C is assumed. it's ruff
 
well it implies you've already done a fair amount in previous assignments
 
@Cereal - Looks interesting. Pile on assignments remind me of scope creep.
 
10:35 PM
If I got 100% on all the past assignments, this assignment would be a breeze, you're right.
 
well have they been marked and returned?
and do you know what you didn't get the full marks for?
 
They get marked - not returned
 
and if having done all the previous work is a prereq and you're missing something, then the assignment is only fair and unbiased if you can go and get enough help to bring the prereqs up to scratch before starting
 
He was kind enough to provide us with a working queue implementation when he found out no one in the class knew C. I'll muddle through it. I'm reasonably sure it'll click a couple hours in.
 
10:58 PM
hello
how is everyone doing? :D
 

« first day (1474 days earlier)      last day (3484 days later) »