« first day (1384 days earlier)      last day (3568 days later) » 

2:00 PM
@dystroy @rlemon cving as 'too broad'
 
heh
in PHP, 4 hours ago, by Alma Do
hm..  nice knowledge level table:

You know all the things            -  Junior
You realize that you know nothing  -  Middle
You don't care                     -  Senior
2
 
@zigi Yes it somehow goes like that. They managed to do that because Sufi Islam doesn't poses restrictions on a person beliefs like other Islamic sects.

To the contrary a Sufi has to actively search for the truth himself, he has to find God, but it's explicit that God is in yourself and in the collectivity, not something external or ad-hominis. This search of the truth may have contributed to many discoveries from Sufis.
 
@FlorianMargaine It bothers me that it's given and upvoted by young men
 
It's maybe nearer to Hinduism (or better, the ancient Hindu Vedas) than what we may define "traditional religion".
 
No need to make wild blame accusations.
 
2:03 PM
@BarackObama Where do you live ? I wouldn't have thought sufism was well accepted in Palestine
 
ok sorry.
 
@BarackObama Yep good one, if you can persuade more people to be like you it'd be great
 
@BarackObama I'd like to read about that since it's practically the first time I hear about it - what do I read?
(Well, if you exclude when you told me about it an hour ago)
 
(thinking of a nice JS topic to push in here)
 
We could talk about the 975kb js library I found yesterday
 
2:05 PM
what is CS btw? computer science? community stuff? code stuff?
 
@Cereal looks good
 
@AwalGarg we discuss stuff that's not JS sometimes, deal with it :)
 
@BenjaminGruenbaum I honestly think the present situation can't be referred to "sometimes". according to my timezone, its been 2 days.
 
I actually have no idea how big it is, lemme look
 
posted on July 31, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Gulpo stickers are now available!

 
2:07 PM
@AwalGarg We we talking templating systems five minutes ago
 
Gruntfile gurus, ngtemplates or html2js?
 
The folder's 15.2MB, I think the -all js file is 192kb
 
@zigi I don't. I rather introduce people to it if need be and let them see for themselves from there on.
 
@SomeKittensUx2666 huh. maybe I am unlucky... ;'(
 
@BarackObama inspiring other people is the best way
but you should lead by example not by talking
It's good that there is a unbless for every bless that can be made
 
user1596138
2:11 PM
@BarackObama how is your lawsuit going?
 
@BenjaminGruenbaum There's plenty of stuff on the internet, but I can recommend these books https://www.goodreads.com/shelf/show/sufism and the following link which gives you a introduction http://sufibooks.info/sufism/

Other than that maybe the best way would be to go to the land of the Sufis like Turkey or Lebanon. Though Sufis groups should be found also in Europe nowadays, allowing you to listen to lectures. Don't fully take my word on it though, not for nothing Sufis tell that everything you should know is inside yourself.
@zigi There are many ways and some people are more reluctant to new things than other :-)
 
@BarackObama thanks I'll look into it.
 
Бе суре И кнов тхат
Be sure I know that
 
 
found it, yipee!
 
2:12 PM
@BenjaminGruenbaum You're welcome!
 
ok guys. please tell me, how to deal with invalid things going into JSON.parse from user input?
 
well make a regex validation for it
 
@AwalGarg reject the input
 
and replace for incorrect stuff
 
@AwalGarg You have to escape anything entered by the user
 
2:13 PM
yep
 
Foo Fighters will be releasing a new album, the President is getting sued, and Ebola is tearing shit up. Interesting time we live in.
 
@NickDugger the russian president?
 
@dystroy I am from Palestine but I travel between Germany, Egypt and Italy. Right now I am in Egypt.
@Jhawins Not so good.
 
user1596138
Morning all
 
@zigi I don't think he cares.
 
2:14 PM
I am asking
as you can see
from the question mark
 
actually, the input is of very wide range, so I won't be able to make an effiecient regex @zigi. rejecting is not an option @JanDvorak and @Neil would it still work even after escaping? I mean, can JSON.parse parse escaped input?
 
@BarackObama And how is seen Sufism in Palestine right now ?
 
not everything is to be escaped. objects and arrays are to be left as it is.
 
@AwalGarg so, what do you want to do? Transform any user input to something?
 
I think if you tried to sue Putin, he'd be like: imagemacros.files.wordpress.com/2009/07/ahmadinejad.jpg
 
2:15 PM
@AwalGarg good thing you specified all this shit when you asked us
so what do you want to do actually
if I give you
{fe'g: "asdf'} it should become: {feg: "asdf"}
is that what you want to do?
 
@JanDvorak parse arrays and objects only. nothing else. and objects should not contain objects inside them. same for arrays.
 
well just do it
make a queue
 
@AwalGarg ... wat?
 
@AwalGarg The user presumably enters a string, right? Before you add it to a json string to parse, you escape it so that all characters entered are "literal" when parsed
That's all I meant
 
and start putting all the objects and arrays of the first level of the JSON in the queue
then while there is something in the queue
do the same for the obejcts and arrays you traverse in the queue
that way you are making a tree
 
2:17 PM
@JanDvorak did I write something weird?
 
example input/output?
 
@AwalGarg Lets just say that it sounds like you're doing something weird
 
acceptable user input example:
["1", "p", "true", 0....] or {keyOne: "1", keyTwo:"p"....} //no strings, no booleans, nothing. no nesting of objects/arrays.
 
@dystroy Well Sunni Muslims, which 80% of Muslims and a totality of Palestinians are, don't see it very good.

But many just don't care, at the end we're the same people. We're something like the Alawiti (or Alevi in Turkey) Muslims in their eyes.
 
Hmm, then you wouldn't do anything to the string other than pass it to json parser
 
2:19 PM
@AwalGarg
that's easy
 
If they put in invalid string, it's invalid, done.
 
yep
 
@AwalGarg what if user inputs {a:{b:c}?
 
exactly what Neil says
 
@JanDvorak incorrect... we reject that.
 
2:20 PM
@JanDvorak throw Exception('Your JSON sucks buddey');
 
then do...
 
@AwalGarg Reject it if parsing results in error. Why complicate your life like that?
 
@AwalGarg parse it and check instanceof Array
instanceof Object
 
5 mins ago, by Awal Garg
actually, the input is of very wide range, so I won't be able to make an effiecient regex @zigi. rejecting is not an option @JanDvorak and @Neil would it still work even after escaping? I mean, can JSON.parse parse escaped input?
 
@BarackObama OK, I thought it would have been more difficult. It must look almost like atheism to some muslims, no ?
 
2:21 PM
yea right. I guess I misphrased at that time @JanDvorak sorry. I have written it nicely this time.
@zigi oh right. thats a good idea.
 
you could also check for flatness
 
so, you want to parse JSON and then reject some valid JSON as well?
 
if it's array go through the elements and flag if any of them is an object or array
and if it is an object same thing but for the fields
and you are done
not really hard to do, is it?
 
the syntax could be right, say this:
{b:{a:"p"}} //this should also be rejected.
 
yeah
 
2:22 PM
@AwalGarg loop through all values
 
@JanDvorak yeah... some valid JSON.
 
@JanDvorak ok. and then check whether they are arrays/objects or not. if they are, we reject, else, we parse. right?
 
@rlemon Cool. Useless but cool
 
@zigi i will try that right now.
 
2:24 PM
yea I gotta get on that useful thing
 
Hmm, if I don't have a webcam, can I connect my android phone and use that camera somehow?
 
it's just easier to make useless things ;)
 
@AwalGarg s/parse/accept the parsed input/
 
@rlemon l33: l+=%c ... and what?
 
You'd think that would be supported somehow
 
2:24 PM
var parsedJson = JSON.parse(data);

if(!parsedJson instanceof Array || !parsedJson instanceof Object) return false;
[].prototye.forEach(parsedJson, function(element) {
      if(element instanceof Array || element instanceof Object) return false;
});
 
@rlemon you should make games
 
@AwalGarg try something like this
 
@JanDvorak yea right...
 
@zigi s/\|\|/&&/
 
!!s/\|\|/&&/
 
2:25 PM
Unless it's Somalia and as long as you don't discuss Sufism with Sunnis you can safely be a Sufi. It's not really seen as atheist but more as someone who is a "derailed Muslim"
 
why?
 
bye bye
 
0
Q: ECMAScript Promise.all method works with jQuery.Deferred. Why?

PinalI was making a research for Promises in javascript. I'm was interesting can I combine ECMAScript Promises with other implementations, for example jQuery Deferred. And I was surprised when Promises.all works fine with jQuery Deferred. I'm trying to find the answer in jQuery source code and CommonJ...

0
Q: Angular promises difference

user3799365What's the difference between these two lines that I see on the console. 1. Resource {id: 2, createdDate: "2014-07-24T17:03:34.673", createdBy: "username", modifiedDate: "2014-07-24T17:03:34.673", modifiedBy: "username"…} controller.js:14 [Resource, Resource, $promise: Object, $resolve...

 
@AwalGarg why replace or with and?
 
@JanDvorak I can't understand that. please tell me what it does.
 
2:26 PM
!!afk home
 
@zigi I was just trying to see what jan suggested. I dunno what it even does.
 
@AwalGarg tries to use the channel bot to replace the || statement in my message to an && statement
because he believes I am wrong I think
 
ok... got it.
why @JanDvorak
 
s/channel bot/regex syntax/
 
user1596138
@rlemon Cool. Annoyingly blinky tho
 
2:28 PM
yea idk how to fix that
 
@AwalGarg its always the case that something either isn't an apple or isn't an orange
 
Sup with the title?
 
@JanDvorak but if it is even one of them, we have to reject.
 
@AwalGarg STOP THINKING ABOUT YOURSELF ONLY
 
@jAndy gnomes
 
2:30 PM
@JanDvorak hehe. sorry, ok. I get your point.
 
yes
he is right
 
@JanDvorak HAMMERTIME
 
it should be
 
@zigi that works, too
 
!(instance of array || instance of object) = !instance of array && ! instance of object
that's just De Morgan's law
 
2:31 PM
btw, just curious to know, can someone tell me what is the third last character on L33 in rlemon's fiddle? it looks to me as a red square...
 
Why are oranges and apples supposed to be so different? That's really an awful example if you think about it. The expression should be like, "oranges and martians" or "apples and roof shingles"
 
user1596138
@rlemon if you move console.clear() to right after the loop in run() it's much less... Strobe-ish
 
Let me sum up: Gnomes, Girls, Garage, Gate....
 
user1596138
It's almost more like fluid video.
 
and nobody thought about GAMES.. aha aha...
 
user1596138
2:32 PM
It actually looks like a video anyway
 
user1596138
Maybe it was just slow on my machine though. The lag was crazy
 
@jAndy because we all knew but we're to ashamed to admit the loss.
 
@AwalGarg there is a red square there
 
O_o
 
@JanDvorak what is it there for? don't tell me it has some special significance in JS.
 
2:34 PM
I WONT TAKE THE L LIKE THAT
 
user1596138
 
user1596138
Pixelated :D
 
Hi All,
 
@Corbo152 hello
 
@AwalGarg it's a pretty good shape for a pixel
 
2:34 PM
i have a table i need help fixing
 
@Jhawins is that a pixelated picture of a dick?
 
@JanDvorak kk. cool.
 
user1596138
@SterlingArcher You see what rlemon made?? jsfiddle.net/rlemon/t6GT4
 
user1596138
@zigi Hahahaha, clever way to call me a dick ;)
 
usually that's what people post on the internet
:D
 
2:35 PM
Pinned it, that's simpler that giving the link again.
 
user1596138
@dystroy Good call.
 
user1596138
Seriously though, move that console.clear() from line 25 to line 36.5 :P
 
user1596138
Pissing me off. It hurts my eyes
 
2:36 PM
@rlemon I don't get you
 
user1596138
And I don't want to repost and be that guy :P
 
lol what?
 
table should work like the bottom table on this page
 
I was bored
 
user1596138
2:36 PM
@rlemon that's seriously cool though. I'm impressed :P
 
very cool
 
user1596138
Also anyone who wants to see what my titty looks like can go here from now on chat.stackoverflow.com/transcript/message/18024612#18024612
 
room topic changed to JavaScript: Read this link: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf | Angularjs is on topic here. stop asking. [ecmascript] [javascript] [mine] [mine] [mine]
 
user1596138
It erased my nipple though. I definitely have one there.
 
@dystroy thankyou, thankyou... you made me smile again :D
 
2:38 PM
0
Q: Highcharts Tornado: How do I display the Y axis on top of the X?

SkullomaniaI am making a application that will show the results of a case study in a tornado chart. In the tornado chart I want to show all of the positive results (display in green) on the top of all the negative results (display in red) instead of the negative and positive results being on the same level....

 
user1596138
@DrogoNevets I've sourced RS1200GS' for rent in the next state over ;). They also have the f800 I want. $149/day for unlimited mileage, $17/day insurance and you can do $1K in damage to the bike. Is this in the same ballpark as over there?
 
▄︻̷̿┻̿═━一
 
so leet
 
user1596138
Hahahaha my boss named these images for a feature on this actress..
 
user1596138
> "Gonzales_dance.jpg", "Gonzales_hot.jpg"
 
user1596138
2:46 PM
And not surprisingly, Gonzales_hot.jpg is a seductive one. Which one do I use? Idk. Maybe it's a test. Hot it is, it sells better.
 
@Jhawins mamophile?
(breast-lover)
 
user1596138
Nah no breasts really in the photos
 
then whats the point
 
gynophilia?
3
 
user1596138
It cuts off like right at cleavage level before showing lol
 
2:49 PM
Guys, is there grammatically anything wrong in "what is the phone number of Dylan?"?
 
user1596138
@JanDvorak gynephilia*
 
maybe it doesn't sound good... but it should be correct, right?
 
user1596138
Or wait that's just the broad attraction to women as a whole
 
user1596138
I'm a gynephile
 
@Jhawins which side ?
 
2:50 PM
phalliphile
 
@towc does Dylan happen to be a city that has its own phone number?
 
user1596138
@dystroy Hahahahaha
 
@towc not sure. I would say for Dylan, not of.
 
Dylan's, if it's a person
 
Maybe it's a restaurant
 
2:52 PM
then "of" seems fine
 
I bet it's a good restaurant
 
> Yo Dawg, Toss me D's Digits aight?!
 
bjb posted a gem gif in the Meta Tav
so adorbs
 
haha thats mint
 
2:56 PM
Rectangular cat :o
 
He remembered how to rug O:
 
@SterlingArcher I don't get it, what's that interesting about this?
 
@zigi seriously?
 
yes
I am drop dead serious
 
A dog stealing cupcakes and you ask what's interesting.
 
2:57 PM
I'm looking at Reddit's voting system and it looks like it protect against bot and dummy up/downvotes or generally trolls. Have the Stack Exchange developers take a look at its algorithm for inspiration on how to tackle the aforementioned issues?

I tried to create a voting bot, generating enough rep but the votes still don't affect the real ones that much. Also, votes randomly change by a factor of 30/50 every visit.

The algorithm seems to be public following this blog post http://www.redditblog.com/2009/10/reddits-new-comment-sorting-system.html
 
I really don't understand what the problem is here
 
Alrighty.
 
What is that experiment with the cat
I don't get it
I saw it a few days ago
 
2:58 PM
It's making fun of Pacific Rim
 
Do you even internet? >_<
 
Hey guys.. anything preventing this from clicking the button?
var buttonSched = document.getElementById("adjustSchedule");
buttonSched.Click();
 
@SterlingArcher Pacific Rim was awesome.
 
@Magikaas not that much, I have more important stuff to do like educating myself
 
@zigi 24/7?
 
2:59 PM
I usually read
most of the times yes
sleep like 4-5 hours
talk with some people
and the rest of the time work
designing
 

« first day (1384 days earlier)      last day (3568 days later) »