« first day (1599 days earlier)      last day (3356 days later) » 

8:00 AM
hah, making everyone stop using google :P
 
You mean a site that wouldn't work on chrome?
 
But google does have a good search engine, just horribly how big that company is getting!
 
guys how good at javascript are you w3schools.com/quiztest/quiztest.asp?qtest=JavaScript
 
@ivarni yeah 95% because of just name..
business mind guys.. business mind
 
Hehe yeah something like that, although it would mean losing people of course. But in terms of doing something about the internet, being so controlled and watched.. I guess tor is such a network, haven't looked into it to much..
 
8:03 AM
"onion" is what you're looking for. Also called "darknet"
you can find many things there
 
But it must be possible to have a network, acsessible to everyone in the world?
I just know a little about it, but it seems silly that the west, russia, and asia are not connected to the same network...
ahh, heard of darknet yes
 
I missed one
I guessed
 
navigator
 
Yeah that was one of the choices but I've never seen it in the wild
 
I have...
 
8:06 AM
You poor thing
 
long ago though, UA sniffing is rare these days
 
I'm here if you need to hug it out
Yeah really
 
unfortunately still necessary when you deal with mobiles
 
Is it?
 
yeah. Mobiles have... surprising behaviors.
 
8:08 AM
I use
var = navigator.useragent.match(/ipad|iphone) etc to have a button for showing and hiding menu in mobile only, so a must for me i guess
§ reolution under 480
| *
 
@sunto that's a bad use case
 
not surprised ;) heh
 
@FlorianMargaine Is it not enough to just use media queries in your css?
 
I have struggled a lot with media queries and such for my mobile setup...
 
@Meredith no... for example, some android versions have trouble using CORS
it exists, but it's poorly supported
 
8:09 AM
Really?
 
so feature detection doesn't work
 
Hm, I guess I could do the same in my css, hm thinking here
 
I havent encountered that
 
I have ^^
 
I use classes very little thou
rather looking for div's in my css
with #
 
8:10 AM
I remember I debugged the solution of an external company we integrated in a project...
 
Yeah I'm sure that wasn't fun
 
didn't work in android < v4 iirc
 
So you switch to jsonp for certain user agents?
 
... this particular example wasn't perfect because it was solved another way, but it was just showing that feature detection is not always enough on mobile
(android < v4 needs another CORS header to work... don't remember which one, but that was the issue)
 
Still, it seems pretty rare that you need to look at the ua
Right?
 
8:14 AM
yeah, it's rare, but in mobile it's not unheard of
oooh simple use case
for iOS you want to show app store link, for android you want to show play store link
 
Oh duh
 
I guess there are many ways of going about it.. I use that navigator part for changing opacity of my items, item1, to opacity 1 if clicked, and item 2 opacity 0.2 when item 1 is clicked, and vice versa, and also changing so that when item 1( my menu) is open, my text(item2) only takes up 50% of the screen, so that it is placed along side eachther.. I guess, it is better the way facebook has there chat- the people logged in, slide in from the side..
 
@sunto css is enough for that...
 
I will look into that :) Hm with focus?
simulating click?
 
:focus, :active...
your choice
 
8:17 AM
my problem with css, is I have to code double up.. I have 1 css for my desktop, one for mobiles, and one for notepads.. I Think, it is maybe to much, as everything is loaded as one css file, right?
 
still better than loading js
 
I mean, I have to code, so that css file 1 have a value, that css file 3, has, otherwise file 1 will read from file 3...
hm ok
 
so you'd rather do it in js than in css?
 
@sunto You don't have to
 
I actually recently learned the : focus ;)
So I will probably change it all! ;)
 
8:19 AM
change ALL THE THINGS!
 
Hm, how would I avoid that? Putting it all in one file, and rather have media queries inside the one cssfile+
As it is now, i have different stylesheet-links, in my html
 
Use a design that doesn't turn to shit on small screens
 
hehehehe
good point ;)
a slide in menu is a good option i guess
 
Vertical space is a lot cheaper than horizontal space
 
yeah, I started out with desktop, and after a loong time, read that one should focus on mobile from the beginning ;)
true indeed!
I guess it is just about coding good from the beginning, as it is now, it is oh so much css to go over :o Easier when I now create something from scratch :)
I kindof got a lot of my knowledge, by changing things in the css, and just see what changed on the webpage etc.. That way, i could understand what was what, but am learning more about it as I go along! But Media queries, are really a troublesome thing I think, but feel understand it well, just not tested it on iphones, only android.
Here are my links for stylesheets, is there anything bad about it at first sight?
http://jsfiddle.net/wkmy7f35/
probably wrong room to ask ;)
 
8:33 AM
Guys, How do I do this? i.imgur.com/JjKKnd6.png
Its a bootstrap list.
 
If I have a char , how can I know its unicode representation ?
 
@doodla float: right?
 
'f'.charCodeAt(0)
102
 
@FlorianMargaine Yes, Also for example ( hebrew) 'א'.charCodeAt(0).toString(16)
//"5d0"
But it fails with serrugates
 
!!> 'f'.charCodeAt()
 
8:36 AM
@Neil 102
 
use the code for this char 𠬠
 
what's to look at?
 
(bottom)
 
and what do you want?
 
how to get 20B20
I already know how to get the utf8:
utf8 :
encodeURIComponent('𠬠')
"%F0%A0%AC%A0"
which is exactly like the right column in the table
 
8:39 AM
you know that the thing is done in js right?
 
@Neil i.imgur.com/EvdRTlh.png I tried that.
 
I know I can look at the source but it has plenty of files with many bitys manipulation and I think i can do it better
hence I ask
 
"plenty"
 
how do I get from : 𠬠 to U+20B20
 
there's not even 100 lines...
well you have to play with bitwise ops
 
8:40 AM
Florian but you can see that we managed to do the other 2 with just one line of code
 
and the source does it too...
 
(just to make sure before I digg) , the U+xxxx is also as base 16. right?
 
0
Q: eval() runtime error 458:error - variable uses an automation type not supported by javascript IE9

pandaeval() in ie9 fails with error 'variable uses an automation type not supported by javascript'. Eg: parent jsp includes test.js which contains function foo(win) { var divhtml = win.eval("foo"); //js error on this line } child jsp: calling function foo(this); it works fine in ie8. could you...

Maybe somebody should tell him his design isn't sound...
 
@FlorianMargaine , No I disagree. look at the "toUtf8" method they used :
 function toUtf8(codePoint) {
  	        if (codePoint < 0x80) {
  	            return [codePoint];
  	        } else if (codePoint < 0x800) {
  	            return [0xc0 | extractAndShift(codePoint, 11, 5),
                        0x80 | extractAndShift(codePoint, 6, 6)];
  	        } else if (codePoint < 0x10000) {
  	            return [0xe0 | extractAndShift(codePoint, 16, 4),
                        0x80 | extractAndShift(codePoint, 12, 6),
                        0x80 | extractAndShift(codePoint, 6, 6)];
I find that plenty. I'm sorry
digesting :encodeURIComponent('𠬠');// "%F0%A0%AC%A0" is much better
 
 	            // First work out all the tricky Unicode parts...
  	            var codePoint = text.charCodeAt(i);
  	            var length = 1;
  	            var surrogate = false;
  	            if (isHighSurrogate(codePoint) && i < text.length - 1
                    && isLowSurrogate(text.charCodeAt(i + 1))) {
  	                var high = codePoint;
  	                var low = text.charCodeAt(i + 1);
  	                codePoint = combineSurrogates(high, low);
  	                length = 2;
this is the correct way... encodeURIComponent is a trick
 
8:45 AM
@doodla the last line has to be a span or something with display: inline
 
Ok , I'll rephrase : is there a tricky( short ) way like encodeUriComponent2 which can yield U+20B20 from 𠬠 ?
 
maybe @copy knows
 
our frontend dev doesnt' know how to write javascript
 
is that surprising?
 
@Neil Is there no way I can stack buttons on teh right side of teh list?
 
8:51 AM
I haven't met many people IRL who knew how to write javascript...
 
so true
 
@FlorianMargaine I've met... 4.
3 of them are in this room.
 
:)
I've only met one person IRL in this room
 
I've met -2 people in this room
 
9:40 AM
!!> "𠬠".codePointAt(0).toString(16)
 
@copy "20b20"
 
that's cheating
@RoyiNamir ^
@copy nice one.
I should learn what's the difference between codepoints and graphemes...
 
Code point is the unique identifier ("decoded", not usually used for transport)
In Python, when you define a unicode string, it's an array of code points internally
Then you can encode with a given encoding and you get a binary string
 
Nik
:D hiya there, folks!
Um, I have a question. Does anyone know how xkcd works?
The webcomic. I can't understand the cms behind it.
All I know is html, JS and CSS. Is there anything else I need to learn about to replicate the mechanism of that site?
 
1
Q: Handle one element in a stream without closing it

dystroyI'm looking for a clean and efficient way to apply a consumer to one element of a stream without closing the stream. I mean I want to replace boolean firstOneDone = false; lines.forEach(line -> { if (!firstOneDone) { // handle first line firstOneDone = true; } else { ...

I would not accept an answer involving wrapping a JS engine into java...
 
9:53 AM
Is anyone experiences with the Google Maps distance matrix API? I'm trying to get travel times for DRIVING and WALKING in the same request, but I'm not sure if this is possible.
 
@dystroy for(auto first : lines) { /* ... */ break; }
Not sure if that works
Doesn't it have next or so?
 
You can't apply for to streams, unfortunately
and no, there's no obvious next
But as the code seems to be native, I'm unsure. Usually I simply read the source until I know how it works but I find nothing :(
 
If it implements Iterator, it'll have next
Or if you can get an iterator
Try stream.iterator().next()
 
ASR
10:18 AM
@copy hi
 
hi
 
ASR
I am getting problem with width in IE9
 
how is that related to javascript?
 
ASR
@copy :)
#navigation{
	clear: both;
	min-height: 2.2em;
	padding: 0 5px;
	position: relative;
	z-index: 1;
	float: right;
	top: -65px;
	width: 860px;

}
@copy how are you?
 
10:22 AM
@ASR Very well
I'm not a web developer, so I can't help you though
 
ASR
@copy No problem, thanks
your game is nice in your website
how did you developed that one?
 
JavaScript
 
ASR
@copy great, you know haskell programming?
 
A bit
 
ASR
@copy my friend told you are good at Haskell. :)
 
10:34 AM
1
Q: How to get list item index when user clicks on the button which is in list item in windows phone 8

Suresh BasinaI've list box in my application. Below is the screen shot. When user clicks on the list item, then i'm displaying detailed page. It is handling in below selection changed listener. private void companiesList_SelectionChanged(object sender, SelectionChangedEventArgs e) { ...

I have the exact same doubt for Javascript.
i.imgur.com/TbXVfmZ.png - How do I get the list index on the button click event?
 
Doubt is not an appropriate substitute for question in most variants of English, it might be right in one or two but it still sounds very strange for people who learned US English.
@doodla e.target can work
 
It's Indian English. It's actually thought there. It's quite stupid, but makes spotting them rather easy.
 
@BenjaminGruenbaum Could you elaborate please? A snippet maybe? I'm pretty new to Javascript.
@RoelvanUden I don't know how I feel right now.
 
@doodla Hahaha sorry about that.
 
10:49 AM
@RoelvanUden No problem. Make it up with a snippet. :)
 
@doodla You can just save the index while attaching the handler :o
Not sure how you're attaching tho.
 
My university lets me see the code :/
 
hey, it's .NET 4 at least
 
Since they don't really give a fuck about security (and this particular page is meant to collect a lot of my confidential details), why can't they just use PHP :/
 
10:55 AM
for (var i=0; i<branchList.length ; i++){

var obj = branchList[i];

listString += '<li class="list-group-item"><h4>'+ obj.branch_name +'</h4><button class="btn btn-primary pull-right" onclick="handler(event.target.nodeValue)">Details</button>'+ '<p>'+obj.address.replace(/\n/g, '').replace(/,/g, '<br>')+'</p></li>';

}
 
@doodla For JavaScript, you might wanna look at event delegation.
 
@doodla Yuck! But you have i available, so just add it to the handler call.
 
hm..
lol
 
@doodla Have a look at Array.reduce()
 
@RoelvanUden Is there any better way to append list items dynamically?
 
10:59 AM
@doodla Yes
2 mins ago, by Second Rikudo
@doodla Have a look at Array.reduce()
 
12
A: Should switch statements always contain a default clause?

RadoHm, do you always have an unconditional else in your ifs? I don't think so.

 
I kind of agree with this reasoning, I'm I wrong?
 
@AwalGarg ^
 
lol
oy @argentum47 the new plan activated!! I now surf at 3.1 MBPS!!!! YAYAYAYAYAY!!!! (and 20 gigs of bandwidth per month!) :D
 
11:02 AM
@doodla I would look into an actual binding library rather than concatting HTML. It feels extremely wrong IMHO, but it might be what you want so there is that. Otherwise, you can make it 'nicer' by doing things like reducing the array as @SecondRikudo, but it's still dirty IMHO.
 
@RoelvanUden Not familiar with the context in this one TBH.
Reading...
 
Or look into DOM templating with the DocumentFragment interface.
If you are writing code for some university or government, your code is still less ugly then what is around, so cheer up.
 
11:18 AM
@Jonathan In some languages it's "yes" btw.
Also woohoo I got the badge
Static languages that make you write a default annoy me a lot :/
 
11:51 AM
@BenjaminGruenbaum can has some C# help?
 
Friend of mine is trying to set up his C# project with Git
I'm not familiar with how VS does things , what kinds of masks it ignores etc.
Can you come to our room and assist?

 Maid Café (メイド喫茶)

Welcome back, my Master! (お帰りなさいませ、ご主人様!) Sit wherever you'd l...
@BenjaminGruenbaum it would appear as though he solved his problem using the rubber duck method.
Thanks for your help anyway :D
 
sure
git gui is so confusing :S
Not sure why anyone would use that
 
VS has Git integrated and it's super straight forward. What was the problem?
 
@BenjaminGruenbaum CLI phobia
@RoelvanUden Can you git commit -S?
Can you git add -p?
 
12:01 PM
Hell if I know. I can commit shit and that's all I care.
 
@RoelvanUden Then you're using about 5% of the power of Git
Which is a shame because Git is insanely powerful.
 
@SecondRikudo And he's still doing better than with SVN :)
 
@ivarni Yeah, just 5% of Git is much stronger than all of SVN :D
 
@SecondRikudo That's basically like the argument for Linux. It can do all the things! You have full control, a thousand options, and even more configurations! And I'm like, who cares if I don't need it at all? That's how the VS integration for Git is, too. It works. And you don't have to care about the little details.
 
TBH when working alone and/or in a small office doing commits pulls pushes and merges is all you usually need.
 
12:03 PM
@BenjaminGruenbaum I like to git commit -S for added confidence of my commits
(And further establishment of my key)
I also use git add -p liberally (which allows you to add only specific changes in files to the index, not all of the changes since last commit)
 
I'd use Git just for local commits alone, everything else is a bonus as far as I'm concerned
 
@SecondRikudo why?
99% of times when working alone and/or in a small team my flow is dead simple:
git pull
// work
git pull
// merge if I need to merge
git add -A
git commit -m "short commit message describing changes"
git push
 
@BenjaminGruenbaum Because it's free and it only adds goodness.
 
In big projects it's really different, but in small teams that's all you need.
 
@BenjaminGruenbaum I tend to work in large batches, and then I end up with god commits that involve all of my changes for the day.
 
12:06 PM
I don't
 
@BenjaminGruenbaum Great, but that's why git add -p is invaluable to me.
Not to mention branching, merging, forking, tags, etc.
All of those features are, when compared to SVN for instance, practically free.
 
SVN has branches, merging forks and tags
They're just all on the server so they're slower when you do a lot of them
 
@BenjaminGruenbaum Not really...
SVN doesn't have branches
It has complete clones of the entire repo
 
Yeah, that's what it does for branches
 
Have you ever seen two galaxies merging? That's how merges are done with SVN :P
2
We still have devs in our company that are afraid of making branches due to the sheer trauma
(We made the transition from SVN to Git a while ago)
 
12:10 PM
I still don't get the difference between Git and Hg, though
 
730
Q: What is the Difference Between Mercurial and Git?

SpoikeI've been using git for some time now on Windows (with msysGit) and I like the idea of distributed source control. Just recently I've been looking at Mercurial (hg) and it looks interesting. However, I can't wrap my head around the differences between hg and git. Has anyone made a side-by-side c...

@Kippie For most practical purposes, they're exactly the same.
 
Except that Git became popularized through github?
 
@SecondRikudo In TipRanks we use SVN except for everything I ever worked on :D
Since I have quite a lot of code we de-facto use git for me :D
 
@BenjaminGruenbaum Why do you still have SVN for everything else though?
 
Websites I bootstrapped, the WP extension, the iPhone app, external API is all git.
 
12:12 PM
discussing git? I <3 it. if only got to use it more and more.
@darkyen00 been to maihar?
 
Tipranks is mostly dotnet, right? What kind of git host do you use?
 
@SecondRikudo honest opinion or official opinion?
@Kippie bitbucket
We also use JIRA
 
We're currently using github here, but they're thinking of porting everything to the newest TFS with git. Still looking for people's opinion about that
 
@BenjaminGruenbaum Both
@Kippie TFS?
 
@Kippie the advantage of github is that practically every developer worth hiring knows the interface well already.
 
12:14 PM
...
 
Well, almost
TFS : Team Foundation Server
We used it initially but moved - it got better since though.
@SecondRikudo official is that SVN has easy UI to work with, it's dead simple, does its job and it's not worth migrating from.
 
@AwalGarg ITS NEAR MY PLACE
 
Yeah. The thing is we don't actually use most of the github features anyway, except for pull requests. Issues are logged in jira, "releases" are mostly unexistant in an official way
 
WHAT ARE U DOING NEAR MY PLACE ?
 
@BenjaminGruenbaum true, false, true, false.
 
12:15 PM
@darkyen00 I am coming there. I will hunt you down. Wait for it.
 
When brother ?
 
Well, family is planning actually. I don't want to travel. Next week.
 
@Kippie The latest TFS is kinda nice. VS2013 integration has a very powerful integration with it, too. It's not any worse than Git, and has better integration for merges, branching, visualization, etc. It even has local TFS repositories. If you're a purely .NET shop, TFS is at least equal to Git. It's not a bad thing to use TFS.
 
@darkyen00 other than the silly religionistic stuff there is, can I hope of enjoying a bit there?
 
@RoelvanUden Yeah, it's just that the last version of TFS I worked with was 2003 (I think?) and that stuff was horrible
 
12:18 PM
That said, if you want other features of GitHub (e.g. issues, wiki, etc) TFS sucks for that. You really really won't want to deal with TFS built-in shit for that.
@Kippie Up until 2010 it wasn't very good. 2013 is pretty slick tho!
 
I don't want to waste all my time ringing bells in temples...
> Maihar is a huge attraction for Hindu pilgrims
-- Read more: http://www.ixigo.com/travel-guide/maihar
:(
 
@darkyen00 @AwalGarg Did you hear? Beef is being banned
 
@SomeGuy welll i am moving out so you don't need to worry
 
@SomeGuy :O
 
@AwalGarg debate the priest about religion
 
12:21 PM
@darkyen00 What does you moving out have to do with me worrying?
 
I am vegetarian though... but still.
 
:3
 
@AwalGarg I think it's going to be for Maharashtra only
 
my favorite way to get OUT OF THE TEMPLE
 
But I'm still kind of pissed
 
12:21 PM
@darkyen00 I have a communication gap with all the priests.
 
... BY THE POWER OF GOD : I ASK YOU TO MOVE OUT
lol
 
lol
@SomeGuy Is that somehow related to that Pakistani guy (can't remember the name of that person right now) casting hate speeches against India?
And everyone taking him seriously...
 
@AwalGarg Don't know about that. But it seems like Modi wants to stop cow slaughter to align India more with Hinduism
 
Can't he ban the IP and IIT university somehow since they teach science and stuff which are not in order with Hinduism? :(
@darkyen00 A google image tour says the place is pretty scenic :D
 
@AwalGarg Haha
 
12:31 PM
@AwalGarg dudei am doing scenic tour of
underwater things on google maps
btw good luck finding less populated areas there.
 
In html label , isn't the value of for == the value of name in input field?
like <lable for = "username"/> <input type="text" name="username"> ?
But with radio and checkbox I have put the id . why?
even for a single radio or checkbox
 
@argentum47 id
 
I think labels don't work this way anymore
 
Multiple input elements can have the same name, but not id.
 
Only used to work that way for a short while, the spec changed
 
12:38 PM
ow ow
 
<label>Click me <input type="text" id="User" name="Name" /></label>
 
You want a different label for each radio button and checkbox. So using name doesn't make much sense there semantically.
 
You can still use for but you really shouldn't usually.
 
@BenjaminGruenbaum yeah that works.
<label for = "vehicle"/>
<input type="checkbox" name="vehicle" value="Bike">I have a bike<br>
 
@argentum47 Well, semantically, that textNode ("I have a bike") is just orphan. How can you say it is associated with the checkbox? Just because it is sitting beside it?
Also, the label tag must have a closing tag.
<label for... /> is wrong.
 
12:43 PM
No, I thought, I knew for =unique value. so If name was unique so it should work. but well the specs says otherwise w3.org/wiki/HTML/Elements/label
 
names are not unique...
> attribute's value must be the ID of a labelable form-associated element
 
@argentum47 You want <label><input ... /> I have a bike</label>
 
there
 
That's what I said
 
Yeah, fixed
 
12:44 PM
Either that or give the <input> an ID and use for= on that.
 
@SecondRikudo I hate assigning ids everywhere in forms :/
 
yeah I see that.:) thanks
 
@AwalGarg Me too.
 
@AwalGarg howzza
 
okay-ish. yourself?
 
12:47 PM
@argentum47 several ways to do it: stackoverflow.com/questions/1527721/…
 
lol
 
I like label after input personally
I don't want to fuck around in javascript to style the label belonging to the currently "checked" input
 
How do I get a MutationObserver to respond to innerHTML changes?
 
I didn't know W3 maintained a wiki...
 
@AwalGarg I am annoyed. I was feeling so good with react, and then CEO asks to redo views with Backbone. yuk. plus I have to read SVG :(
@ivarni I already saw that link. :P
 
12:52 PM
@argentum47 Tell CEO Backbone is deprecated, makes the app vulnerable, increases page load time by hundreds of microseconds etc.
 
His ear is like a pipe, it tunnels very fast.. from one end to other.
:D
 
Put one of your hands on the other end.
 
XD. You really want me to get fired? with a bazooka ?
 
wow, it is subtree. I was wondering for about 3 minutes why subTree won't work XD
 
@AwalGarg Ah thanks, I expected characterData to do the trick, but it's a textNode
Thanks
 
1:00 PM
np
 
Ok, this is weird, characterData is triggered now...
 
Gotta go now, cya later peeps
@Jonathan characterData will trigger in your original fiddle if you change innerHTML to textContent.
Remember that innerHTML would cause a complete DOM restructure
anyways, laters!
 
jsfiddle.net/6u1bqcyr/2 it triggers for innerHTML
bye
 
1:52 PM
My carpel tunnel hasn't settled down, as it usually does by now... I might have to get it surgically taken care of
 
Ugh, I just looked at iojs. It releases way, way, waaaaaaay too often. :-/
 
afk reboot
 
@RoelvanUden complain to @BenjaminGruenbaum
 
I don't see it as a real issue. I mean, they say themselves that it's not production-ready.
 
1:57 PM
@FlorianMargaine What would that do? @BenjaminGruenbaum is part of IOjs core?
 
he likes to hear complaints
 
..and i'm not rlemon.
oops
 
grrrr my internet is horrible this morning
 

« first day (1599 days earlier)      last day (3356 days later) »