« first day (1118 days earlier)      last day (3844 days later) » 

12:01 AM
!!afk hometime
 
@Shmiddty Hurry back, ok?
 
12:34 AM
0
Q: FadeTo function I made - should I write it differently?

LemonyfadeTo = function(obj, time, to, cChange ){ if ( typeof( time ) == "undefined" ) time = 1000; if ( typeof( to ) == "undefined" ) to = 1; if ( time <= 0 ) return true; objSt = obj.style; objOpac = parseFloat(objSt.opacity) + 0; if ( typeof( cChang...

 
12:50 AM
wait... what
 
@Dino Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
1:06 AM
sorry that got annoying after an hour plus
 
in HTML / CSS / WebDesign, 3 hours ago, by uınbɐɥs
http://jsfiddle.net/5Du8P/3/
 
@mikedidthis nice, especially because it's DOM
LMFAO
If you can't read it that says more about your own familiarity with JavaScript than the code itself. — Quolonel Questions 6 mins ago
 
2:06 AM
@rlemon If you spent "an hour plus" looking at a gif, then...
 
jsfiddle is dead. RIP jsfiddle
goddamn fiddles are not opening
 
how would i create a form where elements only display if a certain option is selected. and the data inside the form elements changes based on your selection in an earlier form element?
 
I feel ashamed of myself.. but chipotle is so good
 
2:27 AM
@wnordmann Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@CapricaSix I adjusted my question. I'll try to remember the rules.
 
2:50 AM
I realised when you say
urCanvas.drawSqaure(x,y)
all you are doing is, putting a piece of data into ur RAM then GPU reads that data in appropriate timing according to your CPU
 
That is, ignoring the OS
 
So you have pretty much no control on (making faster) GPU rendering because you are just putting data into RAM
 
3:11 AM
Hey Guys, have a small question. Does anyone have an idea how I would be able to turn this row of links/buttons into a drop down basically?
<div class="booking_float_right">
                	<div class="booking_float_left"><?php echo $bookingLangObj->getLabel("CALENDARS_SELECTED_ITEMS"); ?>:</div>
                	<a onclick="javascript:delItems('manage_calendars','calendars[]','publishCalendars','<?php echo $bookingLangObj->getLabel("CALENDARS_PUBLISH_CONFIRM_MULTIPLE"); ?>','<?php echo $bookingLangObj->getLabel("CALENDARS_NO_ITEMS_SELECTED"); ?>')" class="booking_float_left booking_margin_l_20 booking_mark_333 booking_pointer booking_font_bold"><?php echo $bookingLangObj->getLabel("CALENDARS_PUBLISH"); ?></a>
The original dev didn't do a nice job on it, I don't like the look. It feels cluttered.
 
A dropdown of links or..?
 
no, like drop down, click what you want, hit apply
 
That's not quite specific
 
So like a select element?
 
3:18 AM
Use a select element :P
 
Would I just switch out the link type element with select?
option*
 
le sigh
 
3:49 AM
pousser un soupir
 
4:10 AM
what?
Hey guys, I realised when Americans spell out a word they say "d i f f e r e n t" which is weird because I always say "d i double f e r e n t"
 
@EnglishMaster Czechs don't say "double f"
 
Do you even speak English there?
 
@JanDvorak Hi
 
helo
 
is the jquery variable is global?
 
4:16 AM
@EnglishMaster most can't
 
I mean the dollar sign $
 
0
Q: Good engine for HTML5 Point and Click Game?

mikey555I'm beginning development of a point and click game in HTML5. Normal gameplay will involve going room to room, looking at and collecting objects. - In normal mode, the player will see one static background. - In zoom mode, they'll be able to pan around the zoomed background. - In item mode, the...

 
@Mr_Green yep. Unless you use stuff like require.js
 
@JanDvorak Then why did you learn it? I don't mean that in a rude way but as a serious question.
 
cool that is what I was looking for
I will try that
 
4:17 AM
@BrandonGelfand 1st grade elementary, 2nd grade elementary, 3rd grade elementary (restart), then Internet
I don't remember exactly
 
So it's taught in schools?
 
yep
but it being taught is a new thing
the previous generation learnt russian
 
Ah, ok, makes sense. Are the schools public and free or do you need to pay?
 
American kids nowadays can graduate highschool and get a bachelor's degree at the same time lol...
 
universities are paid
also, there are private high schools
 
4:20 AM
@EnglishMaster Yes, some of us go to a college and high school at the same time.
If I take French at a college it counts as both college credits and high school credits
 
As a plus it looks good on our transcripts
Same thing with math
Laugh all you want, its difficult to do and the teachers aren't any easier on us then full time college students
 
Can you easily enter Harvard in US now?
 
Is your goal here to try and bash Americans?
 
4:30 AM
It's not easy to get into Harvard, I will probably go to a UC
 
m59
hello
 
0
Q: Jquery Mobile Logout wrong url

Josh C.So I'm using jQuery mobile and PHP to log out of my website via this code session_start(); session_destroy(); header('location: login.php'); It works in logging me out and taking me to login page, but the url is mysite.com/logout.php instead of mysite.com/login.php and because its a di...

 
4:59 AM
@user1743752 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
5:21 AM
Hello ALL. Anybody JSP developer here? I have one query regarding JSP alert box.
 
What is your probelm?
 
Ewwww JSP
 
m59
@Prince JSP is Java...the question is best asked in a Java chat room. You would be better off asking in the php room than in here. (since it's far closer to php than javascript)
 
U can ask me
about JSP ^_^ Java is a great language
 
@EnglishMaster Is it possible to display popup alert box when event is occure while browser is minimize ?
@m59 Ok thank you sir.
 
5:35 AM
Yeah, and you don't need JSP to solve this
You just need jQuery's window resize event listener
 
m59
^ noooooooooooooooooooooooooooooooooooooooooooooooooo
 
@m59 Thanks sir
 
I mean to display popup when any event occure(My browser is minimize).
window.onresize execute while event occurs ?
 
Then you don't need a event listener
 
Sorry but i am newbie in JSP.
 
5:40 AM
Just type in alert("something");
 
0
Q: dojo.xhrGet Not Sending any Data

PirabaI want to take dojo Get data from ajax to php This is my code : globalHandlers: { doVsatEvents: function(vsatId, network, cpa) { // retrieve the events via xml dojo.xhrGet ({ url: "includes/vsat_events.php?cap="...

 
5:57 AM
4
Q: Working with CPU cycles in Gameboy Advance

Preston SextonI am working on an GBA emulator and stuck at implementing CPU cycles. I just know the basic knowledge about it, each instruction of ARM and THUMB mode as each different set of cycles for each instructions. Currently I am simply saying every ARM instructions cost 4 cycles and THUMB instructions c...

 
6:07 AM
Hi Guys
can U tell Me plz, what is NodeJitsu?
 
@VivekParikh Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
how to make digit seperator in asp textbox with javascript?
 
Hi lovely amazing people :D
@Piraba nice code (y) ... though i have no clue why it doesnt works
did you try logging it in the chrome developer tools ?
or can u give a test case ?
 
Hello,
Plz tell Me something about NodeJitsu?
 
6:22 AM
 
4chin
 
I posted that ^
It really happened to me.
 
That's sad
 
!!choose sleep or compiler
 
@BadgerGirl compiler
 
6:29 AM
!!choose Germany Nic Ooyala
 
@BadgerGirl Germany
 
@CapricaSix Thanks. You just made the hardest decision in my life.
 
6:51 AM
@AbhishekHingnikar :D
 
I came in here just to star it =oD
 
Please help my guys
 
@virtualmic Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
7:11 AM
In my project, already prototype.js is being used
Now I introduced jquery.js
all the functions which were based on prototype.js got screwed now
I came to know about $.noConflict()
Any help how to use it?
BTW, I am writing jquery code using jQuery not $
 
@user2758236 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I think I solved it
I added jQuery.noConflict() in all the jquery files
 
7:59 AM
How can I get a id - and inside that id i want to "hit" a class and do something with that? Tried document.getElementById('top-navigation').getElementByClassName('nav'); without luck
 
Try document.getElementById('top-navigation').getElementsByClassName('nav');
That will return an array of all the elements with the class 'nav' inside 'top-navigation'.
You can then select a single one or loop through them.
 
user986408
what's up with those html5/css3 devs stealing programming terms for their stuff
 
user986408
"object-oriented css"?
 
user986408
"breakpoints with sass"?
 
why not?
 
8:09 AM
@skripted Are you implying that html5/css3 devs are outside the field of programming ?
 
user986408
i imply that html and css are markup languages and contain no logic
 
and so they should have no conventions?
 
I'd like to argue with you and prove you wrong but in fact I wonder what can be "object-oriented css"...
 
user986408
what's wrong with "writing modular css"
 
most likely, that term refers to the concept of modular css
 
8:11 AM
Where did you see that term used ?
 
user986408
err ...
 
nothing. but neither it is wit object oriented
 
Anyone familiar with RabbitMQ here ?
 
user986408
i don't know it just feels out of place but maybe because i'm not too familiar with it
 
user986408
@Sprottenwels maybe you can explain why you think both terms are connected?
 
8:17 AM
document.getElementById('top-navigation').getElementsByClassName('horizontal-list') now returns the correct element, now I tried to add/modify css on that element with .setAttribute('style','padding:50px 0 0'); and gets: TypeError: Object #<NodeList> has no method 'setAttribute' - is that the wrong way??
 
i would not say that they are connected, at least not in a way of actually using programmable logic. but i'm happy to see some guys who are trying to add some guidelines and conventions on the markup stuff. i think theres nothing wrong about using "programming terms" there. i believe that we are about to blur the borders between logic and amrkup more and more
 
@skripted "object-oriented css" does look stupid, but I can't tell without seeing the context. And of course modularity isn't OOP
 
when using some heavy frameworks like angular, i would already say that there is some logic in the HTML. and because of that, we actually have some objects to design, don't we?
 
@Jacta It returns an array, you have to select a certain element in the array.
If you only need the first one, just add [0] to the end.
 
@user2758236 aah thanks
 
8:20 AM
the guy behind inuit.css has some good ideas on all that stuff IIRC
 
user986408
i still don't like mixing up those terms, for people like you who know the exact difference and border this might be okay but for others to mix up things like oop without knowing the exact origin this might end up pretty bad
 
@Sprottenwels The problem is that OOP (see Wikipedia for example) conveys a lot of specific meanings that make no sense for CSS.
 
user986408
for example at job interviews, i dunno
 
user986408
oop is just too huge to be compared to a markup language like css. take all its other terms like inheritance or polymorphism, there is absolutely no place for them in css
 
that's only because until now, there were no other use cases. i understand your doubts, but i beleive that as web developers proceed to smudge that line, the term itself will be redefined. i think we should let them use whatever word they want. for young developers, there is a LOT of confusing stuff. that one won't be their greatest issue
there are also a lot of terms with two or meanings in human language. we should worry on more necessary stuff :)
 
8:33 AM
@Jacta If you are manipulating CSS on an object via JS, I would personally use ELEMENT.style.STYLENAME = VALUE for example: ELEMENT.style.display = 'none';
 
user986408
i totally agree, i'm just imagining that one student yelling "i'm now programming object-oriented css" - it just hurts my ears :(
 
user986408
it might be true some day but today we should educate them better until those terms are accepted widely for their specific field
 
that's absolutely correct. as those css wizards introduce new terms and best practices which are adopted from "real programming", they should totally point out what differs markup from logic.
(they should do that even when not throwing around fancy words of course)
 
Does anyone know if they will be adding parent selection in CSS?
 
what do you mean by parent selection?
 
8:38 AM
@user2758236 It's spoken about a lot, at least. As something! someother
 
i see no benefits there @user2758236
 
Wouldn't that go against the whole cascading part of css?
 
@Sprottenwels Why not?
 
@Sprottenwels Imagine you want to change the style of your LI when they contain a A of a given class. Today you have to make your HTML more complex
The problem might be on the specificity rules and efficiency, though
 
god point
 
8:41 AM
Damn, I was happy with being qualified as god
 
one good doing/day
 
@dystroy How would that work, though? Using some kind of :contains or :has pseudoselector?
 
I've heard that parent selection was being discussed for the next CSS spec but haven't seen any developments on it.
 
@Kippie something! someother
^ to have the rule apply to something
 
8:42 AM
@dystroy oh, now the thing you said earlier makes sense to me. Wasn't sure what you were saying there :)
 
god speaks in mysterious ways
 
user986408
@sprottenwels what have you done :D
 
brb, changing my pseudo
 
Dear good...
 
8:44 AM
hello
 
Hi.
 
@NullPoiиteяღ :P
@dystroy so did u found out a geolocation powered solution to your moment ?
[ i mean the timezone madness ? ]
 
Is anyone here fluent in VBScript?
 
@AbhishekHingnikar I dealt recently with many timezone related problems. If you mean how to recognize the web user timezone, then I use the script I gave here :
1
Q: Detect the ID of the current user timezone using moment.js

dystroyWhat I'm looking for is a way to detect the browser's timezone ID (as defined in the Olson tables) but I don't care for the exact ID, I just need the ID of a timezone that works the same as the user's one (for example "Europe/Rome" is fine if the user is in Paris). I'm not interested in the curr...

@user2758236 If anyone here is fluent in VBScript, he's hiding
 
Dang.
 
8:53 AM
Speaking of that, if people here right now could test this... dystroy.org/stackoverflow/timezonedetect.html
 
Matching timezones :
Australia/Adelaide
Australia/Broken_Hill
Australia/Currie
Australia/Hobart
Australia/Melbourne
Australia/Sydney
Yep.
 
Africa/Ceuta
CET
MET
Europe/Amsterdam
Europe/Andorra
Europe/Belgrade
Europe/Berlin
Europe/Prague
Europe/Brussels
Europe/Budapest
Europe/Zurich
Europe/Copenhagen
Europe/Gibraltar
Europe/Luxembourg
Europe/Madrid
Europe/Malta
Europe/Monaco
Europe/Oslo
Europe/Paris
Europe/Rome
Europe/Stockholm
Europe/Tirane
Europe/Vaduz
Europe/Vienna
Europe/Warsaw
Sounds about right
 
same result as @Kippie, looks right to me
 
Funny how there's only one timezone for Africa, though
 
8:56 AM
@user2758236 Melbourne and Sydney are the same timezone ? I remember having missed a greyhound 20 years ago because I didn't know there was a daylight saving difference when hitchhiking from north to south (don't remember if it precisely was between Melbourne and Sidney, though).
 
It is right now.
But I think they might be different.
Since we're in AEDT right now.
 
Stupid me : it was between Brisbane and Sidney...
 
Yea, Melbourne and Sydney are the same.
 
@FlorianMargaine I see. But the problem with that is that it takes only a small part of the meaning of OOP and applies it to CSS, diluting the said meaning. It's already hard enough explaining why Go isn't OOP...
 
9:02 AM
yeah, OOP is overrated anyway.
 
I entirely agree. OOP brought us too many maintanability disasters
 
I have no idea what OOP is specifically. :P
To google!
 
@dystroy What exactly is the use of that library, though? Seems very bulky to be loaded into a client browser, when you could easily extract that info serverside
 
@Kippie What library ?
 
@user2758236 OOP stands for out of pizza, which makes you write bad code
2
The Timezone thingy
 
9:04 AM
I know what OOP stand for..
 
OOP is just a method of programming that let you create illusion of
struct{
//things
}
 
It's neat, but I don't really see the use for it
 
but with freindly names
 
structs can have names, can't they?
 
yeah sure
 
user986408
9:04 AM
yep
 
I find CSS styling a pain to make uniform and effective.
 
user986408
go get bootstrap :)
 
go get foundation :)
 
we should advertise "modularity" instead of "OOP"
 
@Kippie I have an application which lists steel rolls by date. This list can be done for the user time zone if he wants. So I have to list, server side, the rolls of a given day according to the user timezone. Which means I need to know, server side, what's the user timezone.
 
9:07 AM
Just build a website using CMS and tell people you've built it
 
user986408
@Kippie wew .. never heard of that! so you rate it over bootstrap?
 
@EnglishMaster There's much more in OOP. Polymorphism on method receiver and parameters for example
 
@skripted Wouldn't rate it over bootstrap, but it's a good alternative.
The guy who developed foundation actually went to twitter, and later created bootstrap
so it's loosely based on it, really
(or at least, it was)
 
user986408
ah okay
 
@dystroy
Asia/Aqtau
Asia/Aqtobe
Asia/Ashgabat
Asia/Colombo
Asia/Dushanbe
Asia/Kathmandu
Asia/Kolkata
Asia/Oral
Asia/Samarkand
Asia/Tashkent
Indian/Kerguelen
Indian/Maldives
you somehow need to detect latitude aswell :-)
 
9:11 AM
I'm just interested in the timezone to do date computation, it's not a geolocation solution
 
for sure columbo , and tashkent maldives aqtobe aqtau are far far away from me
oh that way its perfect
did you tried giving a shot to Intl ?
its up in chrome :D
 
Speaking of OO, how do you access to a parent class method if a child class already have overridden the method?
In Java
 
u can use it as a first experience falling back to your script :-)
 
he supports ie6 ;)
 
@AbhishekHingnikar I can't tell my IE9 or FF users I don't support them...
 
9:12 AM
@FlorianMargaine ^ Graceful degradation is best principle
 
@EnglishMaster super
 
i am doing something really nasty with geolocation :-/
wish we had something like ... Device Radar api xD which tells location of other devices
 
@AbhishekHingnikar What ?
 
Cool cool cooL.
 
@dystroy take 2 geolocation devices
lock them down to maximum accuracy
then point one device to other and swipe to transfer shit from one to other :->
 
9:13 AM
maximum accuracy is about 300 meters for one of them...
@AbhishekHingnikar You want to compute speed of light ?
 
for me i have an iPhone and an Android and they both can lockup to 5meters
@dystroy no
just a friendly guesture
imagine u want to send a song to your friend what if you can just swipe it towards him and it just magically goes to him :P
 
In the past on Palm this could be done without server... directly by IR
But I can see the point. Interesting and fun.
But if you have a little more than 2 devices in the vicinity, I fear you won't get enough precision
 
i know :D
its for microsoft's Imagine cup :D lol
all i want is some awesome grades , this shall do it
Nokia's Geolocation is crazy accurate :D
i wish i could access the dual wifi receivers of the surface :-(
they are at a known distance i can use stereoscopic positioning with them
but meh lets harass geolocation as much as we can :D
@dystroy oh btw the devices need to be synced up front as in you have to atleast add the person to your friends / followers or devices to owned by you
 
@AbhishekHingnikar this "swipe-to-person" thing already exists on some phones with NFC chips, doesn't it?
 
@Sprottenwels idk my iphone doesnt has it and there is no web api :P
if it can't get a lock on more accurate then 5 meters it falls down to showing a grid of devices nearby if the lock is more then 50m it just shows like apple's air drop
 
9:24 AM
<div class="roles">
			  <div>
          I had made many apps offcource small,
                  </div>
                      <div>
                  i dnt want to sell but want you to use it


      </div>

      <div>
      what to dooo ahhh ,this seems to be a cool site,

      </div>

       <div>
       just upload and your app gets shared
      </div>

      <div>
          there's more i can upload my programs in any language i want
          </div>

         <div>
          but i am a noob what to do!!!!
 
@FlorianMargaine thats why i said .. holy christ
i almost died laughing on the floor when i saw the page src :D
 
he included reveal.js in his about...
let's see if his code is really one of a noob.
his website works so well that I can't click on the download button
 
How do you statically import System package in Java so you can write System.out.println into
out.println?
 
the download button works but only for programs not src :-(
 
@EnglishMaster use Ctrl + Shift + o in Eclipse
 
9:28 AM
@FlorianMargaine most of his apps he shared are stock examples
 
Wow. "Submitted on: 16 hours ago"
 
EvErYtHiNg, In JuSt A bLiNk Of YoUr EyE !!!
something i hate more then hating myself
since javascript my brain reads that in camelcase trying to break at every alphabet
so i read it as
["E", "v", "E", "r", "Y", "t", "H", "i", "N", "g", ",", " ", "I", "n", " ", "J", "u", "S", "t", " ", "A", " ", "b", "L", "i", "N", "k", " ", "O", "f", " ", "Y", "o", "U", "r", " ", "E", "y", "E"]
 
@AbhishekHingnikar You could've just used .split method
 
@BenjaminGruenbaum did you see @PaulIrish tweet console.save haha
 
9:32 AM
@EnglishMaster foolish mortal i did
 
You're a mortal too.
 
i am immortal
 
@EnglishMaster your English isn't very good.
@EnglishMaster Don't spoil, douche.
 
@phenomnomnominal \o
 
9:34 AM
 
@phenomnomnominal Impossibru
 
IE11 was released ? Damn, why doesn't this room have a notification system ? @CapricaSix, what are you doing ?
 
@mikedidthis hurrah
 
9:49 AM
@AbhishekHingnikar yep. I kinda like this. If the big boys drop support, hopefully more will move on. I can't remember what version of IE is auto updating
 
Still hate IE.
Might have improved since IE9 though.
 
fun thing, it didn't
 
i am sad about one thing though my thing is powered by azure
but doesnt support IE 10 / 11
 
more or less fun, that is
 
9:53 AM
it falls back to socket.io for communication
for the nasty son of a bitch chrome
 
Aren't there constrainsts between IE and Windows versions ? I mean, can you have IE10 on Win7 or XP ?
 
or the firefux browser it uses rtc if possible :D
with datachannel :D :D
 
xp only supports ie8
you can't have ie9 on xp
 
@FlorianMargaine OK, so I guess all my users already switched from XP or from IE.
 
@FlorianMargaine XP is dead OS
 
9:54 AM
what does that mean with the Promise in chromium btw?
 
anybody using windows xp and or 98 should be killed
 
:')
@AbhishekHingnikar Windows xp is awesome.
 
beware @AbhishekHingnikar

i am forced to use XP at work
 
@AbhishekHingnikar harsh. Tiny XP is still a great OS.
 
IE10 doesn't seem to be compatible with Vista. But I hope even my plant users don't have Vista...
 
9:56 AM
XP is dead :P
 
ie10 is 7+
 
it has way too many flaws to be usable anymore
@dievardump IE 11 supports 7 aswell
windows 7 is the best OS microsoft can ever come out with
 
I know.
 
@Sprottenwels shoot your BOSS
windows 8 its a definite mis-hap
 
What? I like windows 8 more than any other OS I ever used.
 
9:57 AM
agreed
 
@dievardump how can you manage with 2 ux ?
 
can't understand the win 8 hatred
 
Desktop + Metro
 
with alt+tab
 
if they wanted metro do all metro have balls and force developers to follow metro
 
9:58 AM
metro, when used as a kind of bash, is actually pretty awesome
 
I prefer Windows 7 over Windows 8, but I wouldn't say I hated it.
 
@Sprottenwels i like metro
but i dont like my desktop style interface popping up
 
i hate metro as a platform to run programs on
 
out of metro style
 
Developpers begin to. But you can not force devs to do one way for 30 years and ask them to do a new one in one day.
 
9:58 AM
@Sprottenwels its better imho for touch enabled devices
@dievardump apple kind of does that
 
but starting tools via quick-type, just like seen at ubuntu etc is awesome
 
Apple are assholes and developers should tell them.
They are assholes since so many years that people are used to that
 
@dievardump I'm sure MANY have.
 
@dievardump to be honest apple is a User concerned company
not developer concerned
 
Windows is bad since many years than users are used to that
 
9:59 AM
@petwho Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
ideally for apple everything in their control is better
 
So we can handle 2 UX without being totally lost
We can grow up
 

« first day (1118 days earlier)      last day (3844 days later) »