« first day (810 days earlier)      last day (4363 days later) » 

05:04
0
Q: How did they make the Sun in the Chrome Experiment 100,000 stars?

Cory EvansLooking at the Chrome Experiment 100,000 stars I cannot help but notice how good their stars look compared to all the tutorials I can google and find online about how to make a good looking star with Three.js I tried looking through the source code but it is obviously not easily readable. The s...

Does anyone know whats the issue in this code
var className = {
value: 10,
classFunction = function(){
alert(this.value);
}
}
className.classFunction() does not alert me anything
var className = {
    value: 10,
    classFunction: function(){
        alert(this.value);
    }
};
@Kevin ^
Thanks Nile..
Do find any issues with this code
seconds: parseInt(Titanium.App.Properties.getString(CONFIG.get('INACTIVITY_TIMEOUT')), 10),
millisecondInterval: this.seconds * 60 * 1000,
!!/tell Kevin format
@Kevin Format your code - hit Ctrl+K before sending and see the faq
05:12
@Kevin I don't know what that code is
millisecondInterval is returning me NaN
@Kevin show me the whole object.
@Kevin this doesn't reference timeOutManager
When i call the timeOutManager.setInactivityTimeOut() it throws me NaN in Ti.API.warn("What is the millisecond" +this.millisecondInterval);
05:15
so it's returning undefined
why>
why?
Just change:
Ti.API.warn("What is the millisecond" +this.millisecondInterval);
to
Ti.API.warn("What is the millisecond" +this.seconds * 60 * 1000);
and delete line 5
compiling the app
@Kevin ping me if you need more help by typing "@Nile", I'll be in another window.
Fixed @Nile... Thanks a lot
05:22
<script type = "text/javascript">
      function product()
      {
          var currentrow = $('#productcategory1').val();
          alert(currentrow);
          $("#jsvar").val(currentrow);
          $.ajax({
            type: "GET",
             url: "http://example.com/wp-content/themes/themeX/storevar.php",
             data: {'jsvar': currentrow},
             complete: function(){
                  var pathname = window.location.href;
                  alert(pathname);
                  $('#button-reload').load(pathname + ' #button-reload');
Storevar.php
<?php
session_start();
$currentrow = $_GET['jsvar'];
echo "Current Row = $currentrow";
$_SESSION['currentrow'] = $currentrow;
echo "Session Currentrow =".$_SESSION['currentrow'];
?>
Having a serious issue changing the session variables. Anyone have any idea why they haven;t been updating?
@panoramic Does it work with data: "jsvar="+currentrow,
@Nile Kind of new to all of this, what do you mean?
@panoramic Instead of data: {'jsvar': currentrow},
wait, sorry. I didn't really look at your code in the first place. What calls product()?
Product is called from an onchange of a HTML dropdown menu.
and when you say that the session isn't changing, are you refreshing the page?
05:34
@Nile Ideally I would just like to refresh a portion of the page in which the session variable will be updated based on the user selection of the dropdown menu.
@panoramic Well, does the session not work or are you just not updating the page?
@Nile When using firebug, I can see that storevar.php is called and that session is updated, but the main page is not being refreshed with the new value of the $_Session['currentrow']
@panoramic oh, so the session is working properly.
change your complete function to the following
     complete: function(response){
          alert(response);
          var pathname = window.location.href;
          alert(pathname);
          $('#button-reload').load(pathname + ' #button-reload');
        }});
you should be able to take it from there
@rlemon Thank you- wherever you are! Yes, you have surpassed clutch-status and have entered the trill-zone!
@Nile With the added alert I receive an alert box that says: [object Object]
05:43
@panoramic Sorry, why are you using complete?
I'd change complete to success
@Nile I've read that it happens last and I wanted to ensure that the $_Session['currentrow'] is updated prior to refreshing the button-reload div tag. I'll give it a shot.
Is it strange that in my mind the woman's voice was British, but not the guy.... feedproxy.google.com/~r/smbc-comics/PvLb/~3/Q3y1nggj0jM/…
@Nile After changing it to success, the alert box outputs the $currentrow and $_Session['currentrow'] correctly, but the page itself still does not update.
@panoramic you need to use a function like jquery's html()
@Nile I've tried to replace the load function with html, but neither appeared to work.
05:50
@panoramic You should read some jQuery ajax tutorials, it'll help a lot.
(not trying to be obnoxious but I think you'll find it useful)
@Nile I have, that's why I've been able to get this far. Haha. I'm still learning.
@panoramic I'd also suggest using .get instead of .ajax
@Nile I'll have to look into it and see if that makes a difference. Thanks for your help!
@panoramic It's basically the same thing, just shorthand
 
2 hours later…
08:22
0
Q: Identify this javascript library or method?

Edit5150I've seen this on ebay, also. It's a really great feature for looking at different views of the same scene. This one has a zoom feature, http://www.ikea.com/us/en/catalog/products/20178865/. Can anybody tell me what technology makes this possible?

 
3 hours later…
user813853
11:44
Hi
user813853
I would like to check if a variable
user813853
is Numeric or not ?
user813853
is there a function for that ?
user813853
isNumeric(tel) return false or true ?
517
Q: Validate numbers in JavaScript - IsNumeric()

Michael HarenWhat's the cleanest, most effective way to validate decimal numbers in JavaScript? Bonus points for: Clarity. Solution should be clean and simple. Cross-platform. Test cases: 01. IsNumeric('-1') => true 02. IsNumeric('-1.5') => true 03. IsNumeric('0') => true 04. IsNumeric('0.4...

that was the first result when googling for javascript isnumeric btw...
user813853
11:47
I saw it
user813853
that not what I am looking for
user813853
btw : JavaScript is Java ? I can look on Documentation of Java SE API ?
user813853
@ThiefMaster plz the last question
@ALJIMohamed Java != JavaScript
user813853
of course they are different
user813853
11:52
but the Syntax they use are similar ? is this coincidence ?
it is similar like java is similar to c#
@AndersMetnik , actually thats misguiding , since early c# and java were quite similar
@ALJIMohamed javascript is more like lisp, that has been camouflaged with c-like syntax
Point still stands :)
user813853
right :)
java and javascript has overlapses as aswell, maybe not as many as old c# and java. :)
12:06
@AndersMetnik no , they don't
stop talking bullshit , @AndersMetnik
the only "overlap" was the name, that was chosen for PR reason .. learn your damned history, before "teaching" the newbies
user813853
wooow
@ALJIMohamed java is like javascript in the same way as car is like carpet
Wall mart doesn't sell walls.... bastards!
@ALJIMohamed: Fyi, as a developer you should be able to USE GOOGLE!
Or wikipedia for the js vs java question.. I'm pretty sure they have a section about that in the JavaScript article...
@ThiefMaster only like three of his 8 down votes were reversed. I don't care... just pointing out flaws in the system.
user813853
12:16
perfect
user813853
I have my answer :D
user813853
thank you all
@tereško So you don't think that subStr and Substring is overlaping?
.. car, carpet .. tard, retard
user813853
exactly @tereško
12:17
There are similar string ops for most languages...
c, brainfuck .. overlaps on c
whitespace, objective c
And that was my freaking point, all high level programming languages have overlapses
wtf who is flagging messages with minor swears in them?
To be honest, I wouldn't see having common built-in functions as an overlap
12:18
brainfuck is not even a swear, it's the name of a language
Brainfuck is an esoteric programming language noted for its extreme minimalism. It is a Turing tarpit, designed to challenge and amuse programmers, and was not made to be suitable for practical use. It was created in 1993 by Urban Müller. The name of the language is generally not capitalized except at the start of a sentence, although it is a proper noun. Language design Urban Müller created brainfuck in 1993 with the intention of designing a language which could be implemented with the smallest possible compiler, inspired by the 1024-byte compiler for the FALSE programming language...
@AndersMetnik , maybe you should just stop ... even your flags illustrate how uninformed you are
@rlemon: What does the rep history say? "serial voting reversed" or "undownvote"?
user813853
I have another question please
user813853
I have a textarea and would like to count like Twitter the numbers of caracters typed by the user ?
user813853
how to do that ?
12:22
well .. 2 steps: get hold of the textarea tag and count symbols in its content
which part was not described in the turorial ?
user813853
what tutorial ?
user813853
how to get the numbers of caracteres while the user is typing ...
user813853
I have a form
ANY TUTORIAL
user813853
and within the form there is a Textarea
Sam
Sam
12:24
Just check the length of the text of the textarea
user813853
usually , I execute my functions from OnSubmit Call
user813853
now I have a different case
You shouldn't use inline events.
user813853
do I need to dig deeper in Threads of Javascript ?
12:25
there are no threads in javascript
user813853
@ThiefMaster I am not a Help Vampire don't worry !
user813853
just a newbie question ... I will try counting the length of the textarea
user813853
but I can do that @Sam after Submit !
user813853
what I want is to do that in the fly ...
Ah well, then here's a good suggestion: Whenever you google for something and get a w3schools result ignore it. That site will teach you really bad stuff
user813853
12:27
okey :)
this should cover all that you need
Sam
Sam
1
Q: Simulate physical click for triggering behaviour from obfuscated JavaScript

SamContext I am working on a JavaScript application that will allow the user to remotely control an HTML+CSS+JS slideshow. The slideshow is generated by a program that converts it from powerpoint. Problem The JavaScript slideware is an obfuscated JS code. However, there are some behaviours I hav...

user813853
hhhh
user813853
thank you @tereško ... I am reading it
13:10
hello guys "D
Sam
Sam
Is there a way to add a breakpoint on every single line on a JS script? What I want to do is to find out what happens into an obfuscated JS script when I click a specific element.
graph rendering calculations make my browser so slow ! how to optimize this ?
Is it better to do these calculations with server ??
@ThiefMaster it says the serial voting reversed for like 6 rep. The day in question in like 6 minutes I was downvoted for 26 rep
:P 20 rep is nothing. I don't care about that, I just think the system should have caught them all.
ahhh nvm
"undownvote"
thats a pretty lame
so the serial votes were never done
lame indeedio
13:19
cool
I think they were... those downvotes would have been locked in
!!s/never done/never undone/
@rlemon so the serial votes were never undone (source)
Maybe there's just a special entry for "serial upvote reversed"
but... but... the rep :P
iz gone
I don't care enough to complain on meta. I do care enough to make a mod aware that the serial votes were not undone :P possibly a flaw in the system?
13:21
I think they should have been hit assuming they came from the same user (and not some user and his sock)
maybe he has a trick. downvote 8 then undownvote a few in the middle then the system ignores it?
I don't know the flags for the system to trigger the undo :P
string of downvotes in a small amount of time from (presumably) one angry user... next day 3 of them are 'undownvoted' but the rest are not 'undone' :P
ohh well, my day today started out like shit. (not due to this)
why is that @rlemon
@Event_Horizon 8:30am and like 15 little things
ran outta wiper fluid on the hiway
cat peed on my bathroom mat
cut myself shaving
you know. the annoying shit that occasionally happens then you get that one glorious day when it all happens in a row.
ah, not fun
worst thing that happened this morning to me was I woke up later than I wanted and it was cold as balls
yea I was late for work as well due to having to find then punish the cat for peeing on my rug
he knows it's wrong too. takes off as soon as he does it.
little shit.
hrm. on the note of my rep. damn SO having strange fiscal days.
Still thinks it is yesterday.
or yesterday it thought it was tomorrow
however it works.
13:28
It's UTC
So for you it's 5-8 hours ahead (can't remember where you actually are)
EST
(Ontario)
5 hours ahead then
making me miss my cats that I had to give up due to parents years ago, 2 sets of cats :(
then someone else triggered recalc on my rep
says I cannot do it again for the day. last I did it was yesterday afternoon
I think it's a static 36hr limit
13:30
@Event_Horizon I have two. One is fat and lazy, the other is cute and cuddly... then pisses on your rug!
doesn't care about the actual time, just how long since you last did it
> Blaer is identified as "Stulka" — or "girl" — on all her official documents
lol
You aren't legally allowed to call your child Jesus in the UK :S (but after that it's open season, there are a couple of people twats who have changed their name to Manchester United)
posted on January 03, 2013

In the past month I’ve researched CSS gradients, and I can finally present my findings. As usual, there was no source that gives clear, concise, accurate information about the three syntaxes and the four rendering engines, so I decided to write it myself. Here is the inevitable compatibility table. Below I excerpt part of my introduction to gradients. The problem with gradients is tha

Good afternoon to my little JS family! Happy New Year to all!
13:44
Morning
!!/bewbz
@rlemon @KirstyHarris you're needed
@rlemon Command bewbz does not exist. Did you mean: bewbs
oh yeah forget some have just woke up lol
awwww did u do a little dedication to moi! Im honoured!!!
!!/bewbs
@DaveRandom @KirstyHarris you're needed
13:47
lol :P
warms my heart :)
And my trousers. Everyone's a winner.
:-P
13:52
This is the problem I have with most 'reality' shows that require people to be stealthy.
"ManTracker" .... SHIT OMG GET DOWN HE IS RIGHT THERE!!! (camera man circles them a few times then points from mantracker to the guys a few times..)
Good, he didn't see us or the six camera men.
ehh ... the comments =/
3
A: Javascript: How to check the class in DOM

Nick CraverIt's the .className property, like this: if (document.getElementById('element').className == "class_one") { //code... }

I commented. I agree with him that the A is still valid, albeit repeated 4 times on the page.
I did comment that he should use exactly equal to, and not ==
do people forget about === in js or something?
@rlemon When is className not a string? Even if the element has not classes it's an empty string? I use === pretty much all the time anyway but it doesn't make a difference there (does it?)
14:00
@DaveRandom that is my point. It is always a string
unless it is 'undefined'
but then you can still check it against a string comparison
or if you make a class rule named 'undefined' I suppose that would screw with you
but who the hell would do that?!
Right so whether the comparison is strictly typed or not shouldn't make a difference. Like I say I would have written === by default anyway because Crockford has bollocked me so many timee.
@rlemon no it wouldn't
'undefined' != undefined
<div class="undefined null 0">
even JS's type coercion is not that retarded
fun for all
14:02
!!> 'undefined' != undefined
@AmaanCheval true
!!/undo 6986235
it's even != ''
m59
m59
@Zirak LOL
m59
m59
14:13
lol
Spending the day in Paris. Fun.
went to carrefour hq... a huge billions dollars company. You need to give your id then you get a badge and stuff... is cool ^^
@FlorianMargaine you have to do that a lot of places in the states. damn security. I don't shave or cut my hair for 5 months and now I cannot fly or enter government buildings....
function jumps( a ) { return a.map( function( p, c ) { return p - c; } ); } // still room for comments... ohh I love comments... #tweetcode
I am starting a new hip trend. #tweetcode
just random snippets you can fit into a tweet.
They don't have to be useful.
14:34
Can anyone suggest some good map tools/APIs that they have used? Like google maps but in my case I need it for something much simpler.
google maps is pretty simple
Free would be nice as well.
Here is my list so far, I'm checking them all out: polymaps.org, openlayers.org, simplemaps.com, leafletjs.com
can anyone tell me if this is JS... viaductshowbar.com/whats-on/thursday.... for example like detecting the date?... so it highlights that date and that content?
oh, simplemaps isn't free
@KirstyHarris Probably is
14:38
kk :) thanking you :)
!!> (new Date()).getDay();
@AmaanCheval 4
They're 0-based
So Thursday is the 4th day starting from Sunday
google maps man!
lol thats confused me... will need to google to understand that ha!
14:39
> The JavaScript Maps API V3 is a free service, available for any web site that is free to consumers. Please see the terms of use for more information.
!!/tell KirstyHarris mdn Date
ah :) thankyou :)
!!thanks
@AmaanCheval Took you long enough
14:41
@rlemon It's for a commercial site. Thanks though, I like google maps.
ahh
well then suck it up and pay for a service :P
you're getting paid. The people supporting your product should be paid as well.
then goodbye
!!> console.log( new Date().getDay(), new Date().getMonth(), new Date().getDate() );
@rlemon "ReferenceError: date is not defined"
lol
fail
14:44
@rlemon "undefined" Logged: 4,0,3
js Date object is a mess, some are 0 index'd some are not.
Yeah
There was a good question about that
With an answer that made sense too
yea I can't find it anymore .
something to do with one is a cycle one is a contiguous count.
weeks are just cycles, so are hours and months. Days are not or smt.
seems like a BS reasoning to make sense of a crappy design if you ask me
yeah only the ones that cycle are 0 based, which makes sense to me idk.
lol there are so many ways to get data from it :P
@Loktar makes sense... but was it the driving factor? or did the reasoning just kinda fit the outcome.
14:47
probably the latter
"umm.. I got it!! Its because they cycle! Tell them all that!"
I am now interested in looking at the source to see how the handle it.
if the days and such are stored as arrays internally then yea.
days/hours/etc are array values where-as the rest are uint32?
^ all guesses
@rlemon Never used Node with Mongo
lol .. but.. but.. but.. all the tuts tell me too!
u is too close to i in my opinion. Tuts too easily becomes tits.
14:50
@Zirak Boo! Made it when I was 10 or something, and everything like amaan.c was taken
@AmaanCheval were you really born in 1996?
Oh, no, they faked my birth then.
You were born the same year I started learning JS.... :(
14:52
Stop distracting me, people!
in the first link they have the days/months/etc as arrays
@AmaanCheval I didn't mean like "Were you born" I mean, does the number in your email correspond to the year you were born.
dork
:P
It does
lol 1996? damn
yea... damn
seems not-that-long ago
14:53
I was like 14
I was 10
flinging code like a bauce
yeah same
<MARQUEE DIR=LEFT ID=BANNER>OMG LOOK! GEOCITIES KICKS ASS!</MARQUEE>
I probably was doing vb3 stuff then
I was doing QBASIC and html
14:54
yeah I did qbasic as well
so fun
and html === guild homepage for UO shard
although learning basic first really effed me for a while
@Loktar basic is a pita after you move to oop
14:55
yeah
would be hard to go back if I had to
going back and doin vba in access now is actually tough.
I feel so lost.
oh gawd man that would suck
friggin VBA..
lol
@rlemon Oh boy, that sounds quite depressing, I'm sorry for you. :P
Y U NO CARE ABOUT CASE YOU SON OF A BITCH!
REM ' my love for you will never die!
machine code in qbasic was mostly what I did when I was younger
that and text-based games
14:58
text based games were fun at first
I then changed over to making small games with sprites!
btw - dunno what you guys did in qbasic... but machine code is a lot of OUT 1234<port> 00100101<byte in binary> ... a LOT of it.
to make a robot that followed a line in qbasic was over a thousand lines of code.
qbasic I did pretty simple graphical stuff. Most of my time spent in basic was in Visual Basic or on the Commodor
@rlemon lol nice
@Loktar I got into it right as the web was born. So I only did a few years of it before I dug into web stuff and .net (c#)
then for years I only worked with c# and .net 1.1

« first day (810 days earlier)      last day (4363 days later) »