« first day (1416 days earlier)      last day (3527 days later) » 

vs7
1:00 PM
I have one more problem

If i got a blank array in json it gave me "Invalid Token Error"
 
@FlorianMargaine you can merge the top two bars...
 
@FlorianMargaine Dislike typo & color choices
 
Drupal Commerce .. eek
 
than check before, to be sure the array is not empty :D
 
vs7
If array is blank JSON.parse gave this error : screencast.com/t/HhHN3c6zcsW
 
1:02 PM
> use on ten of thousands of sites
eh? s/ten/tens/
 
But well, it's not meant to be awarded so it's good enough ^^
 
@FlorianMargaine Props to you. They don't use jQuery on their demo page. Seems you made a decent pick. :)
 
vs7
 "success": function(data) {
                        console.log(data);
                        _self.cs_viral_list = JSON.parse(data);
                        $scope.$apply();
                    }
 
@Neil their main product is a drupal module...
 
vs7
@Johnny000
JSON.parse(data); here i got the error
 
1:05 PM
@Neil Using jQuery for a simple slider, would be completely dumb
 
@dievardump I agree, which is glad I didn't see it used
 
It's in the page, though
 
Oh, strangely $ isn't defined then
 
@FlorianMargaine drupal still exists ? thought people stopped using it
 
@Neil .noConflict
 
1:10 PM
version 1.4.4
don't check for $, check for jQuery instead
 
@GNI33 WHERE IS YOUR ICE ?
 
I HAS EATEN IT
 
maaaaaaaaaaaaaaaaaaaaaan, you can not.
 
@dievardump how's your German coming along?
 
Does anyone actually use the non-inlined feeds in this room?
IMO the box is just annoying...
 
1:24 PM
@GNi33 goooooood
I didn't start to work already, but my German get better
 
I don't find any document telling if this is valid JSON :
{"Timestamp":635450757182431418}
I find that strange. That should not be valid IMO
 
> That should not be valid.
Should be a JS motto.
@dystroy why?
 
@BartekBanachewicz overflow
 
1:39 PM
(numbers in js have a mantis of about 51 bits)
!!urban OIC
 
@dystroy oic short for "oh I see"
 
@ThiefMaster You mean the ticker feed?
 
@ThiefMaster I don't use it and yes it's annoying
 
@AwalGarg yes
maybe we should just get rid of them..
 
^ +1
 
1:42 PM
json should technically always be convertible into a javascript object
At least that's what I had always assumed
 
ThiefMaster has stopped a feed from being posted into this room
ThiefMaster has stopped a feed from being posted into this room
 
bye-bye spam
 
Are the feeds disabled now
?
 
room topic changed to JavaScript: Read this: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf | Angularjs is on topic here. stop asking. Reg room here: chat.stackoverflow.com/rooms/59354 [ecmascript] [javascript] [phrasing]
 
Awal Garg has stopped all feeds from being posted into this room
bye-bye all spam
 
1:47 PM
:D
 
2:14 PM
does anyone knows how can I load this @fiddle
@dystroy deleted
 
Yes, I was one of the deleters
 
(one good reason to get to 10k rep)
 
@dystroy One day.. sighs
 
@Sippy thanks, how did you find the cdn, is there any option on github I couldn't find
 
2:17 PM
There's an option on github to view raw.
If that's what you're asking?
 
-1 for no self contained verifiable code sample - this is just a code dump and "fix my bug". Thanks but no thanks. "This question has an open bounty and cannot be closed" - lucky you. — Benjamin Gruenbaum 21 mins ago
 
Refused to execute script from 'https://raw.githubusercontent.com/aterrien/jQuery-Knob/1.2.9/js/jquery.knob.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

http://jsfiddle.net/PTM6R/446/


doesn't seem to work
 
yes, you should not use raw.github as a CDN, they warn against that
56
Q: Should Github be used as a CDN for javascript libraries?

LeopdServing javascript libraries from a CDN instead of your own server comes with tremendous advantages. Less work for your server, possibility for the CDN to have a copy closer to the user than your server, but most importantly a good chance that your user's browser already has it cached from that ...

 
I use rawgithub.com instead of raw.github you just delete the . and get a cdn
 
You should use pages : pages.github.com
 
2:19 PM
@dystroy just want to test something quickly on fiddle which is why trying to use it, but it doesn't seem to work
 
I can't use that as a cdn since that's github so I can't prototype with it - it won't work and it's bad etiquette if it did.
So you just delete the dot:
and get a cdn
 
For fiddles it really shouldn't matter.
 
@Sippy Thank You, it works now
@Sippy true
 
2:21 PM
@BenjaminGruenbaum do you ref rawgit as CDN for your projects as well?
Or host locally?
 
@BenjaminGruenbaum That's why I never look at questions with bounties anymore. When a question is clean, it doesn't need a bounty. Most questions with bounties have no answer because they're horrible.
 
hmm
 
I have such a cool hammer :D
 
wat
 
2:24 PM
yes, wat, indeed
 
A HAMMER!
A 1.75 kg super cool hammer.
 
Did anyone played around with knob by chance ?
 
I don't play with knobs.
I'm a button man.
 
@dystroy hammer A tool with a heavy head and a handle used for pounding.
@sippy hammer A tool with a heavy head and a handle used for pounding.
 
@CapricaSix Does this mean I can now call my penis a hammer?
Poor definition!
 
2:27 PM
oh, ok, I wondered what was happening to my head... a hammer is pounding it, that's why it hurts..
 
@Sippy am talking about knob.js xD
 
If your only tool is a hammer, then every problem begins to look like a nail
 
Some people are playing devotional songs at high volume from last 3 days, I am thinking of destroying their speakers with my hammer now.
!!should I destroy their speakers or not?
 
@AwalGarg You should destroy their speakers
 
...
 
2:31 PM
@Neil That sounds like Peter Griffin problem solving ...
 
@CapricaSix What do you think of yourselves? I won't just plainly do what you tell me... ok.
(trying to avoid doing it since I can't do it...)
 
@Sippy Well I guess that is a way of saying that what you don't know can't help you
Not you specifically, just randomly thought of that quote
 
Yeah I guess. It just gave me the image of Peter running round solving problems with a hammer. Which I am surprised Family Guy haven't done yet ...
 
my girl is smoking me
 
Thank you for that.
 
2:34 PM
^ Tell me that design doesn't look sleek :-/
 
That design doesn't look sleek.
 
:D
thank goodness :SD
 
Haha
Was she overcome by how sexy that design is?
 
no she designed it
 
This also in powerpoint?
 
2:39 PM
yeah
we never use anything else ;-)
we both can use it... hell i can re-do whole iOS 7 in Powerpoint :P
anyways now being relistic
should i use her design ?
 
Your's is probably the first case I have seen who uses "Powerpoint" for prototyping UIs!!! Don't what to call that out of innovation and stupidity but it is definitely something cool.
 
:P
i am not... microsoft does itself
 
But I still like the idea somehow... somewhat... ahem ahem.
 
@AwalGarg I've seen countless pointy haired bosses "designing" with PowerPoint. I had to implement web sites based on ppt "designs". This might just be the first successful one in history
 
@AwalGarg start doing it..
 
2:42 PM
is there an elegant way to transform a decimal into one that is 0 if <0 and 1 if > 1?
 
@dystroy lol... after the powerpoing we both can port to CSS but her css is nowhere compared to mine :P
her creativity is off the chart over me
 
Lol
Women think differently than men do
 
they can actually imagine things in colors
 
I would argue that's why there are more male programmers and more female designers.
 
which is kickass
 
2:43 PM
@Neil and between ?
 
@dystroy remains the same
 
I don't dislike the idea, but it is somewhat... you know... eww.
 
@Neil so a min and a max...
Math.min(1, Math.max(x, 0))
 
> I prototype my designs in Microsoft Powerpoint.
^ ewww... such an ugly sentence that looks like.
 
@dystroy yeah.. didn't want to have to take the max of the min..
 
2:44 PM
@AbhishekHingnikar Guys know 10 colors. Women know 10000.
I can see a pink shirt, and a girl will say it's "salmon"
 
@Neil I'm afraid you don't have anything better
 
Blast! Foiled again!
 
@dystroy Why are you afraid?
 
she called that color goldenbane or something
for me it was just golden :_/
 
exactly
 
2:45 PM
decimals don't have a distiguishable pattern of bits if they aren't in the range from 0 to 1?
 
that's just yellow
@Neil ?
 
no that's just some color.
 
@KendallFrey Just trying to figure out if there were an elegant way of putting a decimal between 0 and 1
 
elaborate
5 mins ago, by Neil
is there an elegant way to transform a decimal into one that is 0 if <0 and 1 if > 1?
ah, that's what's known as a clamp
 
@KendallFrey +(x > 0) - not elegant
 
2:48 PM
Without a game or math library, you'll probably have to min/max
 
@AbhishekHingnikar so do you make different designs for different screen sizes separately in powerpoint or do you just take the idea and attack it with css?
 
@KendallFrey I just said... +(x > 0)
 
@BenjaminGruenbaum Hu ?
 
!!> +(0.42 > 0)
 
@AwalGarg wpf :P & css
 
2:48 PM
@KendallFrey 1
 
wrong answer
should be 0.42
 
You did not specify what you'd like done if it's between 0 and 1.
Changing the question late :P
 
5 mins ago, by Neil
@dystroy remains the same
 
@AbhishekHingnikar wpf= windows presentation founder something right?
 
2:49 PM
@AwalGarg foundation
 
ahh...
 
Yeah, min/max are probably as good as you get.
 
This PP thing @AbhishekHingnikar told is creating interest in me but... ughh it sounds like using document.write...
!!should I open Powerpoint or not?
 
@AwalGarg You should open Powerpoint
 
2:51 PM
Well, you can do something ugly like: (x >= 0) * Math.min(x,1)
 
I would have to install it first :P
@CapricaSix you love to give me challenges, don't you?
 
@AwalGarg get 2013
ola
 
@AbhishekHingnikar I am not sure if I would put my bandwidth into it... I have very strict bandwidth plan. But I would look into this idea sometime.
 
@Neil Is that "better" ? (x>0)*(x>1?1:x)
 
2:57 PM
@dystroy Is Miley Cyrus a virgin? (implicit no)
 
!!/google miley cyrus | grep "virgin"
 
posted on September 01, 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) {} Just a reminder, the Pluto shirt is available a little while longer.

 
@AwalGarg I thought feeds were disabled lol
 
@Neil Is this hard to maintain enough ? (x>0)*(1-(x<1)*(1-x))
 
3:02 PM
@dystroy You're putting a lot of thought into this, despite your obvious attempts at levity
 
@Neil yes, because when confronted with such a problem I can't prevent myself from trying to climb it
 
anyone knows why change event isn't triggering, is it because I am adding it to class not the input itself ? - jsfiddle.net/PTM6R/452
 
@dystroy If I weren't the same way, I don't think I'd have asked in the first place
 
$('.dial input[type="text"]').change(function() {

doesn't work eithr
 
Guys can we make a rule which enforces adding the tag to messages which contain fiddle link which involves jquery?
 
3:06 PM
@AwalGarg no
 
@dystroy please. People share link to fiddle, I go there hoping I will see some code and do some practice, it involves jquery, and close the tab in frustration.
 
@AwalGarg whats wrong with jQuery :S
 
@dystroy not the tag specifically, just mentioning its jquery related. so I don't waste my time...
 
so. much. jquery
 
@GNi33 don't you just love it :P
 
3:11 PM
@AwalGarg (and @Neil) jsfiddle.net/73w4oqg0
 
@dystroy may your worst (funny ones only) nightmares come true for deliberately doing that.
 
My point is you may use jquery without your problem being related to jquery
 
Seriously microsoft ?
like seriously ??? those controls on top ... ugh
 
@dystroy try putting 0.2 in that fiddle xD
 
@AwalGarg I know...
 
3:15 PM
@AbhishekHingnikar That's microsoft?
@AbhishekHingnikar Is that on a desktop or mobile OS?
 
3:27 PM
wohoooo!
it didn't go extremely bad!
just... a bit... bad
 
@dystroy (x<0)?0:((x<1)?x:1) my attempt lol. I don't know what your code meant and I didn't bother googling since I am busy right now... but do you call my code simplification?
 
You just found the version I had previously submited
 
@dystroy when?
 
I decided the game was to remove branching
33 mins ago, by dystroy
@Neil Is that "better" ? (x>0)*(x>1?1:x)
 
can we use this chat room as a noteBOOK ? e.g. If I past a url here, you guys star it and I get it back here from the list on the right ?
 
3:31 PM
I think I have no wat left for that
 
@dystroy what does (x>0)*something mean? The initial bracket would return a boolean, I think.
 
hey
 
@dystroy is that for me or all of us ?
 
@AwalGarg 1+true
 
@dystroy wow that is pretty clever... but I didn't copy yours, mine is very different.
Yours is definitely better (or shorter atleast).
 
3:35 PM
@Sippy finally finished!
 
Damn ..
And you didn't suicide so it can't have gone that badly :D
 
nah, just killed the teacher
 
Ah fair play
No mafia involved?
 
nope, did it myself
smooth and clean
 
Nice
 
3:38 PM
@Sippy desktop
 
@AbhishekHingnikar ewwwwwwwwww
 
@AbhishekHingnikar eeeeeeeeeewwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
what is that about anyway?
 
var a= "asdas", b= "asdasdasd";

or

var a = "asdasd";
var b = "asdasdas";
which one is better ?
 
@CustomizedName the former.
 
actually
var a = "asdas",
    b = "asdasdas";
 
3:43 PM
var
    a = "asdas",
    b = "asdasda"
;
 
thanks
 
var a = "asdas", b = a + "da";
4
 
@BartekBanachewicz never seen that
 
@dystroy xD, that was just for the example Lol
 
@towc That's how I declare all my vars.
 
3:45 PM
@CustomizedName the latter
 
@Sippy var in one line, all of the variables in the middle and the semicolon in another line???
 
Now I am confused :-(
 
I usually do like @towc
 
yes, that's the point
 
@towc Yes, it's highly readable. :D
 
3:46 PM
I use one var per line
 
jk.. I do each one on a new line.
 
something trendy...
 
@Sippy for some reason it gets my head into thinking that the thing in the middle is a codeblock, which is a bit confusing
 
var a = "ass"
  , b = "rrrr";
the comma-first style
 
@towc Lol :P
@FlorianMargaine Oo that is trendy, I've seen that in the legacy shit I'm working on actually.
In some of the enums
 
3:48 PM
@FlorianMargaine surely not seen that before 0.o
 
comma first is nasty.
2
 
var a="ass", b="hole";
 
@FlorianMargaine yeah actually that
 
@towc liked it
 
3:50 PM
(a fork from this: codepen.io/pixelass/pen/uIwte)
 
That is cool :D
 
also... wtf????
http://codepen.io/pixelass/pen/clnue
 
@towc focus on any one ball and you will see that your brain is being tricked.
 
@AwalGarg that's the point of it
 
@towc I saw that on Discovery channel xD
 
3:53 PM
With touch ups by me ^
 
@AbhishekHingnikar Quite pretty, what is it?
 
definitely looks cool... but what is that?
your app?
 
yeap
the next ui.. probably
 
What is your app?
 
the side bar was bothering me.. so wanted to redesign it ... gf did it
 
3:55 PM
Calendar?
 
@Sippy you gonna see in 6 days ;-)
 
Oo :D
 
@Sippy Military Standard Instagram for NSA Secret Agents :D
 
@AwalGarg Thought as much.
So now NSA agents can take pictures of terrorists drinking coffee right?
 
@Sippy No seriously, ask @AbhishekHingnikar himself...
 
3:57 PM
it can detect a terrorist
and him drinking coffee too
 
Niiiice
 
And it can filter all jQuery too.
 
@Sippy why did i not think of this xD
@AwalGarg no i can train a model to detect a terrorist :P but that would be very vague :-(
 
@AbhishekHingnikar Your implicit problem is that all terrorists tend to look like normal people. Except they wear eye patches.
So your code would detect pirates AND terrorists.
That's the issue.
 
@Sippy yaaaaaaaaaaar
but it can detect the ammunation they are using :P
 

« first day (1416 days earlier)      last day (3527 days later) »