« first day (816 days earlier)      last day (4139 days later) » 

10:00 PM
Here is where we complain about false == '0' being true? :D
 
false === '0'; // false
 
hey @istepaniuk i do hope your not easily offended, this chat can be random sometimes :D
 
use exactly equal too
 
@istepaniuk - quick note: while you're here, don't tell people to fuck themselves.
 
== converts types
'0' is falsey so this is in fact true.
 
10:00 PM
hahaha :D ok! @phenomnomnominal, note taken.
 
how comes @phenomnomnominal is that an auto ban?
 
@KirstyHarris no I flagged him and it was validated.
I don't often flag but a random "go fuck yourself" is just .. rude.
 
oh!
goodness i didnt see that, im too busy coding your shizz
 
@rlemon It's not like it was unprovoked...
 
basically if you get enough flags its auto. but a mod can also ban as well.
 
10:01 PM
5 mins ago, by phenomnomnominal
var a = "hello";
var b = "fuck you";
a = b;
 
@KendallFrey his choice of variable names was strange, but not outright insulting the guy.
if I console.log(b,a) then the meaning changes.
 
is there a way to 'mention' a chat user automagically or I have to write the @thing myself?
 
names values
 
maybe I really hate 'hello'
@KendallFrey yea that
 
@istepaniuk Click the arrow on the far right of the message
 
10:02 PM
well ya can @istepaniuk but it kinda lets the user know your talking to them i guess
 
@istepaniuk type @ then it should auto correct [TAB] completes
 
@rlemon yay! ;)
thanks
 
rlemon.github.com/so-chat-javascript-rules not 'written in stone' rules but they are helpful
 
how do i do it.. right arrow?... why cant i see that ha
 
!!> [] + []
 
10:04 PM
@phenomnomnominal ""
 
2
A: Unicorn Voting - Bringing the Joy of April 1 All Year 'Round!

rlemonUnicorn Staring a userscript to bring unicorns to chat stars! Only uses the OP images. Same License. Don't sue me George Install

 
!!> [] + {}
 
if(a == b){a = 'Hi there'}
 
11
Q: Chat Easy Input Tools - Provides keyboard shortcuts for common text formatting commands

rlemon About Provides keyboard shortcuts for common text formatting commands, reducing the dependency on mouse usage. Current version does not have a configurable set of hotkeys but later versions will. How to use. All of the following commands are run if the user has focus in the chat input area. ...

 
@phenomnomnominal "[object Object]"
 
10:04 PM
!!> {} + []
 
@istepaniuk here are two VERY useful userscripts for the chat system
 
@phenomnomnominal 0
 
!!> ([] + {}) === ({} + [])
 
@phenomnomnominal true
 
I understand @SOChatBot
 
10:05 PM
also here is a useful bookmarklette
 
what is @SOChatBot for?
 
5
Q: Killit - Bookmarklet to replace single images from the page

rlemon About Bookmarklet that replaces any selected image on the page with: How to use. You first need to "install" the bookmarklet by visiting the project homepage and dragging the button to your bookmarks bar. After the button is there, simply press it, then select an image on the page. Click...

 
When doing TDD, I normally end up not using ===
 
@istepaniuk it's good practice to use === always and convert your own types
don't let the engine guess for you
implementations can change
anways. home time
 
@rlemon on c9.io... you know when you upload an image (ie your logo) if im putting in in css... do i do the usual background: url (images/lemon.png); ?
 
10:06 PM
!!> Array(8).join("wat" - 1) + " BATMAN!"
 
seems to be acting dodgy
 
@phenomnomnominal "NaNNaNNaNNaNNaNNaNNaN BATMAN!"
 
I know it's a good practice. but is not as bad (not to do it) if you have your tests covering your *ss
 
@SOChatBot what are you here for?
 
even if the js implementation changes... something will be broken
(some test I mean)
anyway... I agree on avoiding type conversion, things can get nasty
just bookmarked this chat! c u arround :)
 
10:13 PM
bye hunni xxx
 
Hey everybody! I decided to actually start a blog (and also get some links to SlickText.com, lol)
 
@RyanKinal :-P u dont want to use blog.javascriptroom?
 
I figured we could cross-post the generic stuff. Get everybody some good links.
Also, I'm not sure I'll actually EVER BE ABLE TO ACCESS IT
 
@RyanKinal oyyy. u still cant? try ur phone...
Twill be awesome if we could have a bunch of people in one place :-D
 
That phone?
Sure, I'll try that phone.
 
10:22 PM
lol my wife had that phone for the longest time
broke twice
 
It's a great friggin' phone. But yeah, mine is busted.
 
Well let me know when you can access it @RyanKinal might take the full 24 hrs to propagate... stupid register.com...
 
I'll definitely cross-post my JavaScript articles.
 
Twoud be good to start afresh instead of using a 3 yr old blog from the past :-P
 
Meh... I back-filled from ryankinal.com
Wanted some instant content.
 
10:25 PM
:-P
 
I think I'm going to revisit My OOJS article too. I've learned some things since I wrote it.
Maybe I'll just do that one on blog.jsroom.com (yes, I'm too lazy to type an extra "ava-cript")
 
posted on January 09, 2013 by chriswilson

Learn how to build rock-solid rhythmic timing into Web Audio applications.

 
I just don't see the point in a central blog if it's not aggregated...
 
^ w00t
Maybe we can find a way to do that with WP
Oh shit, when did it get to be 5:30
Later folks
 
@RyanKinal :-P
@RyanKinal haha wow wth. when did that happen?!
 
10:34 PM
S'only 11.30am here dammit
 
anyone here ?
 
@IceD no
 
for real'
?
 
yes
 
10:45 PM
IceD, what was your problem again?
 
nothing really i just fixed it
still i expected some help here
 
Good
And you'll normally get it
 
u call this help?
5 mins ago, by phenomnomnominal
var a = "hello";
var b = "fuck you";
a = b;
 
> I want to replace the content of 1 text variable with content of another variable
 
Hey all, is anyone able to help with this...
0
Q: Querying the DOM in Windows 8 Apps from within a method

JamesI'm struggling with this even after reading the MSDN documentation and the following online guides: Codefoster Stephen Walter I think my problem is easy to fix and that I just am thinking about something in the wrong way. Basically I am querying my web service and on success running the follow...

 
10:50 PM
@phenomnomnominal yeah but when you put it like this it's not a help to a newbie on chat
when i come to chat
i try to explain in short
and later widen the problem
 
Does exactly that, so what's the problem? It isn't my fault you a) worded your question wrong, and b) are offended by a word.
 
well when you put it like that
var a="i got it"
var b="that guy can fuck himslef too";
a=b;
alert(a);
 
!!/ tell IceD format
 
@IceD Format your code - hit Ctrl+K before sending and see the faq
 
better?
 
10:52 PM
Much better
 
bye
 
Wow, he seemed angry
 
who?
 
10:53 PM
good for him
 
!!> [] + {}
 
@phenomnomnominal "[object Object]"
 
!!> {} + [] === [] + {}
 
@phenomnomnominal 0
@phenomnomnominal false
 
So JavaScript addition isn't commutative?
Or does that count as concatenation?
!!> [].toString()
 
10:55 PM
@phenomnomnominal ""
 
@phenomnomnominal Hey, do you have a min to take a look at the Q I posted a few lines up. Really struggling at the moment and I think it is something super simple?
 
!!> {}.toString()
 
@phenomnomnominal "SyntaxError: Unexpected token ."
 
@James, sure I'll take a look
 
Thanks :-)
 
10:56 PM
!!> ({}).toString()
 
@phenomnomnominal "[object Object]"
 
@James, can't think of anything super simple that could be wrong, assuming you actually have the right element
 
!!> Math.floor( 0.99999999999999994 * 1 );
 
@FabrícioMatté 0
 
!!> Math.floor( 0.99999999999999995 * 1 )
 
11:00 PM
@FabrícioMatté 1
 
Hmm ok, well there are two elements. The first is
<div class="itemtemplate" data-win-control="WinJS.Binding.Template">
        <div class="item">
            <div class="item-content">
                <h3 class="item-title win-type-x-small win-type-ellipsis" data-win-bind="innerHTML: title"></h3>
                <h4 class="item-description win-type-x-small win-type-ellipsis" data-win-bind="innerHTML: text"></h4>
            </div>
        </div>
    </div>
And second is...
 <div id="termTest"
                data-win-control="WinJS.UI.ListView"
                data-win-options="">
  </div>
 
@James, is #termTest unique?
 
Yep.
It is within a <section> but that shouldn't make a difference should it?
 
nope
What is publicMembers.itemList
 
At the top of the script (I wanted to make sure scope wasn't an issue) I have this...
    var products = new WinJS.Binding.List([{ title: "Milk", text: 2.44 }]);
    var publicMembers = { itemList: products.dataSource };
    WinJS.Namespace.define("ListViewDemos", publicMembers);
 
11:07 PM
Backticks don't work on multiline
Use CTRL + K
 
Haha, never get that right. I was using backticks and CTRL + K. Lesson learned.
 
Hmm, I'm not sure, not without actually reading some docs haha
 
I'm not sure even AFTER reading them!
This is what I hate about being a 'noob' this is meant to be one of the easiest things to do when coding for a Win 8 app
What frustrating is it works if I call it in my ready method which is run whenever I the script is started. It's just when I put it in the other function it does nothing,
 
Well, that might explain it?
Does the other function run before the ready?
 
No, 'ready' calls 'handleQuery' which calls search and then lookUpSuccess
 
11:14 PM
Can you make a fiddle with WinJS?
 
A fiddle? Not sure what that is, sorry.
 
sorry, wrong link
 
Hmm, not used this before. Just as simple as pasting my various code in the textboxes and hitting run?
 
Unfortunately not I don't think
WinJS has a whole bunch of libraries etc that JSFiddle mightnot have
 
Can't see it in the framework list unfortunately.
Wish there were more Win 8 App developers!
Thank you trying to help btw - very kind.
 
11:20 PM
TBH, I think you'd be better off making it a web-app, so anyone can use it haha
 
Would make it easier to get help.
 
@James Wish there were much more people boycotting Win 8.</win8trolling>
3
 
@James, and more likely to succeed
Oh well, lunch time
 
haha, don't want to bring up that argument! I really like it and think it is an improvement on Win 7, however I don't think it is revolutionary or anything like that.
I like the start screen and don't find it intrusive. Seemingly tons of people do!
Also the snap view is something I find truly useful, that's what my app is designed to run in.
 
11:46 PM
        var xmlhttp;
        if (window.XMLHttpRequest) {
          xmlhttp = new XMLHttpRequest();
        } else {
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange = function () {
          if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            StartWS(xmlhttp.responseText);
          }
        };

        xmlhttp.open("POST", "/ws-auth", true);

        xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
Why does this freaking piece of code always returns a closed state.
I tried everything I could and it doesn't allow me to open a websocket connection. :(
 
heh, that's for SO chat
 
Yeah. I want to make a greet bot ._.
Just to say good morning, afternoon and night. Just to learn how to work with websockets.
 
random question here... i thought a clear:both in CSS would mean that nothing would be displayed either side... this fecking DIVs displaying behind the top div... any ideas peeps
i dont fancy putting float on it if i can get away with it, but i want it to display below the drop div if that makes sense
 
@KirstyHarris What div?
 
you see i have two div classes?
topwrap and then memestuff?
 
11:53 PM
And clearfix ._.
 
well the meme stuff is like below the topwrap for some reason
clearfix to signify the end of the container? someone told me that
if i took away the image you would see what i mean... i know when you float divs this dont happen.
 
A part of memestuff is over the topwrap..
 
well its kinda under it ish.. hmm
 
Because of margin-top
 
.memestuff is inside .topwrap
 
11:56 PM
If you put display: inline-block for the memestuff and remove the margin-top it works..
And you'll have to adjust the border-top
 
right ok, cool thanks will try that. The margin top is actually applying to the menu, and not the meme stuff thou :S
think i just need to play with it lol
 
.memestuff has margin-top and is consuming a part of the topwrap..
 
but when i remove the margin top its still not below the topwrap so to speak
 
oh never mind about earlier message, my chrome inspector is trolling me
 
ah!
thanks lol
 
11:59 PM
so put in the inline element : display: inline-block
 
the inline-block worked.... im trying basing it on bootstap ish... never really worked on anything but float stuff, so this confusing me :)
thanks @AndréSilva
 
:) No problem
 

« first day (816 days earlier)      last day (4139 days later) »