« first day (815 days earlier)      last day (4119 days later) » 

12:04 AM
@KirstyHarris yes it is me, but from grade 12 (2004)
I'm less fit than I was then. bout the same weight. still fit the same clothes and all. just less fit :P I got lazy.
correction: up a pant size.
 
12:31 AM
posted on January 08, 2013 by Victor Rodriguez

Look at this singleton implementation : public class MyClass {     public static MySingleton singleton;     static {         singleton =             new MySingleton() {                 @Override public String getSomeField()       &nbs

posted on January 08, 2013 by Victor Rodriguez

NASA mulls plan to drag asteroid into moon's orbit What the Dalai Lama can teach us about temperatures below absolute zero The Office: An Unexpected Journey ScienceCasts: Dark Lightning The Helical Model: Our Solar System is a Vortex

 
12:46 AM
 
@Shaz Hmm?
 
0
Q: Converting Decimals to Fractions with JavaScript - Simplify & Improve

user1822824I wrote a simple script that converts a decimal to a mixed number, proper, or improper fraction depending on the inputed decimal. It works but I think it could be improved as it hangs when large decimals are used. Please review and let me know how I could improve and simplify it. Thanks. My scr...

0
Q: Request code review of Codecademy BlackJack project

tp9I've put in quite a bit of hours on this BlackJack project for Codecademy to get it to the point where I'm satisfied with it. Before I move on to create the UI for it I would really appreciate feedback on things to improve, such as my use of Classes and Objects, best practices, etc. I'm including...

 
12:59 AM
@Shaz, would be perfect if it wasn't called Coffee
 
 
2 hours later…
3:10 AM
0
Q: Using Javascript to add and delete rows from an HTML 5 form

DeeDeeI am a Javascript beginner. Here's a fictional example which isolates the functionality mentioned in the subject line. I hope to employ this functionality as part of a larger web application in the real world soon. EDIT: Live example here An HTML5 page containing a simple form with one row: &l...

 
lol
I want to come back with some snide remark.. but I wont :?
"Ive been working with dynamic elements my whole life!"
2
lol too funny
 
Must suck to have been doing something wrong for a while
 
haha yeah
 
I am tempted to upvote the comment =)
 
What does s/he expect you to explain?
 
4:04 AM
hey guys, got a quickie for ya: whats a good way to sort a collection of DOM elements based on their ids? in my case i have a table of <tr>s with specific ids and I want to sort them by id in a specific order
 
[element1, element2, element3].sort(function (a, b) {} )?
 
@phenomnomnominal That there's no such thing as a dynamic element per se, or so I take it :P
 
will that actually sort the order that they appear in the markup?
 
Can anyone recommend a good webcomic?
difficulty: That I haven't already read
 
@AndyPerlitch, no, I assume they would have to be removed, sorted, then re-added?
 
4:07 AM
i see
 
@SomeKittens, Oh bro, I have a really good one! xkcd.com
 
little bobby tables, we call him!
 
:)
@SomeKittens, In all seriousness, if you haven't read the ones from the list at the bottom of xkcd, they're all pretty good
 
@SomeKittens Have you already Saturday Morning Breakfast Cereal?
 
@minitech I have already
 
4:15 AM
@SomeKittens Gary Larsen?
 
check
 
Calvin and Hobbes?
 
I've read a lot of webcomics and comics in general.
 
Asterix?
I am getting desperate here
 
@minitech One of the first. I made it required reading for my fiance
Link to Asterix?
 
4:16 AM
I was kinda joking with Calvin and Hobbes :)
@SomeKittens I don't know if it's available online. But it's also only a classic because it's a classic. Don't bother finding it :)
Hm.
Fredo and Pid'jin? I saw that one mentioned at one time
For what kind of comic might you be looking, specifically?
 
A funny one. "Story" or "Character driven" bores me.
love xkcd, Schlock Mercenary, Starslip Crisis
 
@AndyPerlitch You can use repeated insertBefores on the sorted list to avoid doing the whole thing, I guess. Or re-implement the sorting to do that.
 
@minitech yea that could work... I think i will end up just re-rendering all the rows
 
4:51 AM
@all hello
any help on appcelerator titanium?
 
5:21 AM
Greetings, just received some help with an intertwined JS /CSS issue, but want to get some understanding even more than an answer, anybody be able to school me on whether my last comment to Arun, whose answer I accepted, is in the ballpark?
0
Q: Why is one CSS animation working Multiple Times, Another Only Once Per Pageload

MountainManReally stumped by this one... two animations, same structure basically, and the JavaScript for them also the same, but one animation, will work as often as one wants to hover over it and the other, works exactly one time on hovering, then goes away until the page is manually refreshed. Prepare...

 
5:32 AM
is there a good word that can encompass compiling, running, and debugging an application? does debugging sort of encompass the first two?
 
integration?
 
I take it you mean something as a one go operation, not the whole refactoring sort of effort? ... microfactoring :)
 
Troy and Abed in the Morning!
 
 
1 hour later…
7:13 AM
Morning lads
 
7:25 AM
Morning buddy
 
Morning guys
 
Morning James :-)
Danm always wanting to say that, it's like having a butler :P
 
haha
Wondering if you can help me. Does it matter what order the properties of an object are defined or are all properties accessible to all methods at all time?
For example:

'object{
a: function (x)
b: 1234
c: function(y)
}'

Is the method in `a` available to `c` automatically?
 
7:40 AM
Emm ... guys
IE tells me that i cannot do attachEvent on XMLHttpRequest object
what would be the alternative ?
 
@James, no, a won't be available in c
@James, you would have to do:
obj = {
   a: function () { console.log("BANG!");},
   b: 'Hello'
};
obj.c = function ()  { this.a(); console.log(this.b); }
 
@phenomnomnominal Ah thanks, let me change my code to see if that works...
 
you could swap this with obj
 
That makes sense to me, but what was throwing me off is that the MSFT Win 8 development templates does seem to call methods from other methods within the object, there may be some behind the scenes trickery going on that I haven't noticed though!
How for examples does this work:

_searchData: function (queryText) {
            searchBase          = 'http://www.xxx.com/web-service2.php?termID=';
            searchFormat        = 'JSON';
            searchFormatPiece   = '&format=' + searchFormat;

            if (!window.Data) {
                var searchUrl = searchBase + queryText + searchFormatPiece;
                WinJS.xhr({ url: searchUrl }).done(this._lookUpSuccess, this._lookUpFail, this._lookUpProgress);
            }else{xxx}
        },
 
back ticks only work on one line
!!/ tell James format
 
7:51 AM
@James Format your code - hit Ctrl+K before sending and see the faq
 
I couldn't work out where it was going wrong! Thank you.
 
What don't you understand about that bit?
 
same time as _searchData
 
because they are only being defined then, not called
Actually, that's a good point
 
Still getting used to this chat
Managed to delete my own comment :-s
 
7:54 AM
oh
yeah nah, i'm completely wrong
you can use them in functions
I was thinking about using variables
obj = {
       a: function () { console.log("BANG!");},
       b: 'Hello',
       c: function ()  { this.a(); console.log(this.b); console.log(this === obj); }
    };
that's valid
 
Just looking at the WinJS.xhr documentation. What the holy fuck did Microsoft think when forwarding the data parameter to xhr.send() as-is without properly handling non-string objects like jQuery does?!?!?
 
obj = {
       a: function () { console.log("BANG!");},
       b: 'Hello',
       c: obj.b + " world!"
    };
@ThiefMaster ^ Is that valid?
I didn't think you could do that?
But it works in the chrome console
 
No it's not valid
 
I didn't think so!
 
obj===undefined while the literal is evaluated
 
7:57 AM
Yeah that's what I thought!
OH!
I had a previously defined obj
duh
 
Hmm, this puts me back to square one. When I run my code my _lookUpSuccess method is a function that calls for _displayResult which is another function (and which is definitely spelled correctly because Visual Studio auto-detects it) yet it returns an "undefined or null" error.
@ThiefMaster What is wrong with WinJS.xhr, I'm not advanced enough to really get the issue you've mentioned? Should I not use this in my app?
 
I didn't say that.
It was mostly a rant about - according to the docs - lack of love for developers using it.
 
That's the Microsoft promise isn't it?
 
Yep
 
You'll hate it, or your money back?
 
8:02 AM
Haha, It's the only JS development I've done so I haven't experienced any other documentation to compare it too...
 
emm .. @ThiefMaster , help
 
That sounds serious
 
this function is getting slightly out of hand
 
if (attachEvent in element) { lack of quotes around attachEvent
 
8:23 AM
ok .. fixed that , but the damned method is getting too large
 
Hi
can someone please have a look at stackoverflow.com/questions/14210831/… ?
thanks in advance
 
If you want help with a question post the link in a separate message so it's oneboxed:
0
Q: Multiple asynchronous Ajax calls inside each loop in Jquery

coder9I want to call multiple APIs inside a loop (ex: $.each). I can do this with async:false mode but it makes the script lag. How to achieve this in synchronized mode? Just ignoring async option makes only the last element in list to be sent to api calls. $.each(lists, function(index, value) { ...

 
@coder9 why are you making XHR in a loop ?
 
Why are you using sync XHR?
Why don't you use the data parameter?!
 
Why do you need to get the list just at the start?
 
8:30 AM
this obviously will be fixed by adding moar jquery
 
> MOAR JAYQUEERY
FTFY.
 
ne3dz moar jquery && less javascriptz
 
i need to pass variables into api calls. those variables are found in the 'list'
 
the pass a JSON-encoded list , in a single request
hell , you can just use "+" as seperator, if you are lazy
 
@coder9 I answered your question. Is that OK now ?
 
8:47 AM
it always amazes me how much practicing something makes you better at it
 
that's pretty much the entire point of life
 
haha very true
 
9:08 AM
how can i make a form read only in js?
 
@dystroy bravo! that works! thank you and everyone came into help :)
 
hello
 
@coder9 You're welcome
 
gave you some karme :)
*karma
 
9:25 AM
is it just me, or has jsfiddle been lagging and inconsistent ever since they made that update
 
@TravisJ it was lagging before
 
9:55 AM
Node.js y u no release new updates?
 
no updates needed, it is perfect ;-P
 
0.9.5 dec 30
not that old...
I wonder why the hell the windows installer doesn't let me choose where I want to install it though
 
Meh, that's an uneven version number so it is an unstable release.
 
There's a problem with edition. The preview is different from what we get.
The formatting of the JSON object is lost but it's OK in preview.
 
10:13 AM
hey @AndersMetnik, @OctavianDamiean et all.. .hope you guys having a great day!
 
It's going fine thanks :) you 2 :) and hellop
 
hehehe, yep! flying for me!
that reminds me... i need to change my profile pic!
 
10:27 AM
anyone having issues with jsfid
 
@KirstyHarris If you didn't since last we, it's time to clear the cache of your browser
 
oh right.. something go wrong?
 
jsfid = jsfiddle ?
 
yes anders
hmm it still not working, ive just cleared the cache
 
they made an update
a rather problematic one
 
10:31 AM
no shit!... it aint working ow
now*
even though i cleared the cache
fml
 
reread dystroy's message
 
i did clear the cache
lemme close it wholey down and restart
 
clearing browser cache won't solve any problems if the problem is in the actual js-files on the server
 
so what do i do then
sorry to sound stupid lol
 
use something different
 
10:34 AM
oh thats shite
 
codepen, jsbin or sth like that until they fix their problem
 
is there anything similar?
ok, will try codepen
ta
ooo codepen is so much more asthetically pleasing
 
yeah, chris coyier was involved with it if i'm not mistaken
 
Who? :)
 
css-tricks.com
^ that guy
 
10:45 AM
is bootstrap mainly classes then... trying to read into this for @rlemon
 
yeah pretty much all classes
they do alter some base elements though
like form elements
 
bootstrap follows the SMACSS - approach pretty decently, yeah
 
im trying to learn it, helping @rlemon with his design for lemon meme
is not something ive touched on
do you think i could use some form of this to design a HTML template for outlook?
or is outlook not that savvy
 
anyone got any pointers for making content slide in and out like a touchscreen phone?
@KirstyHarris not sure about outlook really
 
me neither @TroyCosentino
im assuming i can design some cool HTML document for a stationary template as one woman uses dreamweaver
i just want to make it more PRETTY
 
10:50 AM
mail-templates are a massive bitch!
 
well shes just done a table mock up i know
ive got to do it, its part of my company objectives to do a newsletter for my team quarterly so wanted to show off my css/html skills if poss
Is it really a bitch
 
do everything with tables, style it, use images for effects and let it run through a inlining-process in the end
 
ok, thats fine
 
or even use something like dreamweaver for that, yeah
 
shit was gonna do floating blocks lol... but if its easier with tables then i will
 
10:52 AM
it's not easier with tables, it's the only freaking possibility you have
 
hmmm, selling this to me..
 
mail-clients are... well.... assholes when it comes to displaying markup properly
 
can i like link to ext js to do some text effects?
 
nope
 
awww MAN!
i was so looking forward to doing my bouncy header text
 
10:53 AM
you can't do shit in emails
not even add a style-tag
 
booo
WHAT!
 
because that will break in a lot clients
 
how the feck is she doing it in dreamweaver then
 
everything has to be inline
 
she must be doing fuck all styling on it
 
10:54 AM
well, dreamweaver adds a lot of inline-styles
 
tbf, looking at it ... yea shes doing fuck all
 
and she'll probably use a inlining-tool
 
ive never really played with DW to be honest
i usually just like free coding it
so basically the i can use whatever i want template HTML doc in OL is a load of shit
 
that's actually something nice, you can write your css like you're used to it, and the inlining-tool will go over your style-tag and add all rules accordingly to the elements as inline-style
 
so basically its pointless me writing it?
 
10:56 AM
writing what? the styling?
 
no, why would it be pointless?
you'll need css-code if you want to style something :D
 
because i wanted to do like some over hover spans etc and make some cool buttons
ha ok,.. sorry my bad, im reading you wrong ha
 
phew. really, don't go too extreme in an email-template
you'll want to jump out of a building after the first tests if you do
 
on no i didnt want to go overboard as such, i just wanted to make it look pleasing to the eye. My boss likes that
 
10:58 AM
yeah, use pictures for that
 
oh fuck... im gonna have fun aint i
proper selling it to me here, and heres me thinking that i could do something uber spectacular
 
seriously, like i said, email-templates are a massive fuck-up
 
i didnt realise that at all.... fucking thing
 
there's a reason why there are companies that offer cross-client mail-template testing
 
well i can do some CSS on hover stuff surely.. .like change the colour on links... and can you do some basic span styles (ie for a button?)
 
11:02 AM
yeah
not too sure about the :hover on all clients, but that shouldn't stop you there
 
ok, thats cool, so i can make it SLIGHTLY interesting... im kinda like the bootstrap orange button span style
as thats one of our company colours
 
yes, i'd still go with an image there i think, but you can try of course
 
i mean these are going to be small exerpts to our company intranet anyways, so its not going to be major
 
just make sure the styles are inline
 
well i will let you know if it FUCKS up royally and you can say i told you so
im not sure what you mean by inline.. .im being thick here
 
11:03 AM
oh, it's for an intranet?
one client only?
(mail client that is)
inline?
 
no, its for an email where im going to external link to our intranet
 
<div class="bla" style="width: 100px"></div>
^ inline-style
 
oh right ok get ya
but if i just apply the div class surely i can put the width in that div class in the css right?
ie
 
well, it would definitely help if you know on what client the mail gets viewed then
makes testing and fixing a lot easier
 
.bobsyourteapot {color: #000; width: 500px;}
 
11:06 AM
but if it's a public mail, you'll need to test a lot
 
yea, going to have to :)
 
yeah, you can write it like that in a style tag
 
ive opened up a can of worms
 
it just will make problems on a lot of clients :)
 
ffs, a mean my manager just sent me a pdf... im like thats fecking boring!
boo ha!
 
11:07 AM
that's why i said you should use a inlining-tool
 
well i will just try to write it inline then, ive not really done much of it, but cant be rocket science
 
no, don't
 
yea, i will have to do that at home
 
it's a crazy pain in the ass
 
dont what?
 
11:08 AM
don't write inline
write css as you would do normally in a style-tag at the beginning of the template, and use a inlining-tool when you're done
makes debugging and fixing a lot easier
 
right! ive got you!
sorry penny has finally dropped lol
 
^ that one works pretty fine and is free
 
oh fab! i will book mark it
i will just A: write the CSS.. then apply the style to the DIV / Table cell in question...ffs.. i hate tables
so i could just apply a class to <p> with say .p bob {content here}
take it media queries and all that shite goes out as well then
 
@KirstyHarris g0od rank
 
good rank?
 
11:15 AM
!!s/rank/rack/
 
@AmaanCheval good rack? (source)
 
143 = code for I love you
 
awwww heheheh :P
how are you sweet?
 
@Abhishek It's called rep XD
 
rep **
 
11:24 AM
@KirstyHarris absolutely
 
fucking thing... they are shite!
i hate email templates now
still trying to figure out how to import it... because using that inliner tool it didnt import it how i wanted into outlook at all
 
WHOA! git submodules ... my gosh!
 
ah but i didnt use tables... probably why... moron me
 
I can't believe I didn't know about that.
 
hey @OctavianDamiean
 
11:29 AM
Hey there! Happy new year mate.
 
yeah, happy new year man. how are you?
 
I'm fine, how's you?
 
other than i want someone to shoot me, i'm okay i guess ;)
 
how's ?
 
@AndersMetnik Yes, I'm aware what it means and I'm using it deliberately. ;)
@GNi33 Why that?
 
11:31 AM
@OctavianDamiean Thought so, but why would you do that? :-i
 
well, gf cheated on me in the first week of the new year, so i guess this will be just another fucked up year
 
@GNi33 Sign a waiver, bring the gun, order me a flight to.. what panama or something, and i'll do it :)
 
deal
 
Cheat back on her. With her mum or her cat!
(or both)
 
@GNi33 Orgh am sorry i just wrote the previous sentence now.. Fuck that bitch, go out get with another :)
 
11:32 AM
((at the same time))
 
@GNi33 me ask how old you are? :)
 
i'm 24
 
And no kids?
 
and i'm not that much into cats :D
i mean, i like them and all, but not enough for an intimate relationship ;)
no kids
 
Then really, just go hook up with a new one... I hope you don't stick with her...
 
11:34 AM
@GNi33 Dude! It wasn't me. I swear!
 
hehe
 
But hey, now that you're solo again, we should team up. You could be my wingman! puts on a Barney Stinson look
 
i'm good at that
 
You know, we could be bros! :D
 
i'll just throw pink ice-cream at girls and they'll come in hordes!
3
 
11:37 AM
Heh, validator.w3.org/mobile seems to be completely crappy or outdated
Complains about not using XHTML.. WTF
 
@GNi33 If you call it like that, fine. :P
 
:D
 
"Yo girls, wanna see my pink ice cream?" B-)
 
@ThiefMaster yeah, the HTML5 doctype is still marked as (experimental)
 
11:39 AM
Well, it also whines about JS because "most mobile clients barely support it"
 
12:27 PM
0
Q: Reshape an image

Bhuvan RikkaI was searching for an online tool or tutorial to reshape an image. What i exactly want is something like this. So that i can reshape it into something like this I found this functionality in this website!.. But i couldn't trace how they did it. I've googled for hours but ended up with some...

 
12:45 PM
0
Q: Turn Javascript into bookmark or bookmarklet?

vishalI have Created One script that shows password on hover just like windows 8 on eye click. i have made this functionality through javascript with following code. function text(){this.type="text"}function password(){this.type="password"}function addHandlers(){var e=false;var t=document.evaluate("/...

 
hehe, i'll start with that tomorrow
 
@GNi33 LoL
 

« first day (815 days earlier)      last day (4119 days later) »