« first day (1095 days earlier)      last day (3869 days later) » 

3:05 PM
@BenjaminGruenbaum what is "dotjs"?
 
posted on October 15, 2013

One common problem on iOS is that, when you use a meta viewport tag with width=device-width, the page doesn’t react to an orientation change. On the iPhone the page becomes 320px wide and on the iPad 768px, regardless of whether you’re in portrait or in landscape mode. Sometimes this is annoying. Today I found a solution: use initial-scale=1 instead of width=device-width. Althoug

 
TIL that Marc B likes to write about penis pills
 
Hello all, I'm having issues with jQuery's no conflict mode, and a function I'm trying to implement.
This code runs elsewhere: var $j=jQuery.noConflict();
My function is then called like this: $j('#nav').rdNav();
I've tried to define my plugin like this:jQuery.fn.rdNav = function($){
..then this throws errors, because of the dollar sign I assume, var nav = $(this);
Any idea how I fix this?
 
sure. Don't assume arguments you aren't given
 
3:15 PM
@Zirak When are you leaving?
 
 
s/they/java guys
 
some java guys
source : I'm a java guy
 
present company excepted
like always... :-P
 
@Shaz Well, it's not fast, not fixed, can't do GPU and "rich internet apps" is a buzzword
 
3:22 PM
@copy That image was from the JS creator/god himself
 
So it must be right, right?
 
@SomeGuy Tomorrow
 
@copy can't do GPU? Really?
 
@Zirak Err, gibberish?
 
3:24 PM
@copy Well. It's mostly right. And if I remember the presentation, there was this sentence I liked (approximate citation) : "It turns out that the js compiler is faster than the java bytecode verifier"
 
@Shaz Thanks. I got this and thought he was just messing with me
@Zirak Best of luck!
 
I suggest we ban @copy
blasphemy !
 
@dystroy That's very vague and even if it's true (which could be the case), it doesn't mean a lot
 
isn't compiled ecmascript code the speed of 2.75'sh C++ ?
 
With or without asm?
 
3:28 PM
ES3 to ES5 is a major fix one could argue.. and getting better
 
@copy In practice it does. About 15 years ago, Java was a very promising technology and many developers had big hopes for the web (client-side). And it turned out that sun did almost everything wrong and was never able to make something fast enough. While js did. That's one of the reasons there's js and not java in the web. The pages using Java were so slow to start...
2
 
I remember the time when I saw little gray rectangles in my netscape navigator with some useless java content
that were the glory front-end times of java I guess
 
@dystroy That's right, but it doesn't make JS fast
 
That's what those were? Wow I was in elementary school when we used netscape..
 
@copy "fast" is a very subjective topic isn't it
 
3:33 PM
Netscape was fabulous (especially the 1.xx versions).
 
compiled code dude, whats wrong in speed with that
 
@copy JS is usually very fast when I run it
 
user1596138
@dystroy Either I'm having a weird dejavu episode... Or someone said that word for word a few days ago. Probably dejavu because I'm tired.
 
@Jhawins I'm sorry, I didn't see it. But I might say un-original things... And it might have been me. With Alzheimer starting to grow, I fear I repeat myself a lot. Will shut up a while. Until I forgot my resolution.
 
Off topic, but is there a preferred server language to work with AJAX calls? (Not saying official, but more or less are there language advantages that work with JS?) For example, is PHP better than say Coldfusion at handling ajax calls or is there virtually no difference?
 
3:36 PM
nodejs obv
 
@RUJordan Classic asp!
No, just kidding... :p
 
user1596138
@dystroy My bad. It's all good :P
 
@Shaz im good there haha..
 
@Raghav 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.
 
@RUJordan I think that with the appropriate libraries and coding practices most languages today can be very convenient and efficient as AJAX servers. It worked very well for me in Go, node and even Java.
 
3:43 PM
@OctavianDamiean ^^
@Zirak I sure can host the bot
just tell me when and I will set it up
 
@rlemon awesome. pure awesome.
 
Is anyone here good at coming up with great ideas for project/website names?
 
@Jhawins say I have a bunch of images, and I want to pad each image out (center it and pad the edges with transparency so it is square) .... got a quick script to do this?
 
@ThiefMaster i can help
 
(asking you because PHP)
@ThiefMaster I'm good at coming up with names :P dunno if they are good.
 
3:46 PM
@VladimirTsukanov 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.
 
@dystroy I was just wondering. I use coldfusion here at work and I couldn't help but compare it to PHP in my head. (I kind of prefer PHP, the syntax is easier to type IMO)
 
@rlemon if you still want to build something like Chulak, why not make it in Minecraft?
 
ProductXYZ Pro2042-XLT
 
@OctavianDamiean because Terraria interests me more than minecraft
 
3:48 PM
@rlemon but it's about building.
 
(btw best movie ever made)
 
No, "arse-intruding dildos" is not a good name :P
 
Not playing.
 
> because Terraria interests me more than minecraft
 
@ThiefMaster Mine are usually rejected by my bosses as ridiculous but kept by users and customers because they're easy to remember
 
3:48 PM
what does the product do?
 
I forgot I bought a minecraft account a few years ago... I really should learn how to.. tame a horse. <.<
 
Hey guys, I've been using AngularJs for a short while, I like it but it feels a bit too much "edgy" for production projects yet. Now I'm looking into Knockoutjs and Ember.js. Knockout interactive guide are great but I'm more appealed by Ember.js syntax. I'm thinking of using of those 3 for a big dynamic map page. Which one of those 3 based on your own opinion would be the safest/best for a real production scenario? Thanks!
 
i may or may not have come up with the name for Twitter.
 
Ah well in this case it's just a name for a personal website where I can show all the photos I took at metal concerts/festivals. Unfortunately most good names (mostly combinations like <rock|metal|heavy|concert>-<fotos|pics|shots>) are already in use. And <firstname lastname photo> and similar stuff sounds horrible.
And I'd start working on the site itself with a placeholder name but when I start coding I prefer having to have some name for my python package instead of a generic or completely random one ;)
 
I designed the logo for XM satellite radio. got $300 bucks for it.... fml
 
3:51 PM
@ThiefMaster And what makes it worthy ? What is there personal or original in it ? What's your ?
 
@rlemon are you serious?
 
I was quite young however. submitted like 15 logos to them, they picked the comic sans (((XM))) with cascading sizes.
 
@dystroy: what do you mean?
 
@ThiefMaster heavymetalography.com
it is available
 
I was doing work for a satellite company in Canada which was working quite closely with the company that owned XM at the time, so my boss contracted me to make the logo for them, payed me $300
 
3:52 PM
@eazimmerman It's a bit long and doesn't sound like a name that easily gets stuck in someone's mind
 
@ThiefMaster metalclick.com
 
Aaahh, yes. Just had a walkthrough of what a coworker is doing. The first step he lists for how to get it running is "Install NodeJS"
This makes me happy
 
@ThiefMaster I mean a title shouldn't just target what's common ("metal concerts/festivals pics") but what you bring new. Your personal touch for example. Or the idea which justifies in your mind why you do it.
 
@OctavianDamiean "NOW ONLY $1,162 Buy Now " no thanks :P
 
Metalclica
just try not to get sued
 
3:53 PM
A title should be a story.
 
@ThiefMaster Beware, I'm not checking for availability, that's your job. :)
 
Fe-pix.com
only the intelligent will know why it is called what it is
 
feppix.com
 
fappix.com
 
Too close to fappix.com
 
3:54 PM
^ looks web 2.0y
 
Totally wrong website.
 
Fe (Iron)
for the people still trying to figure it out
 
^ got that
 
Ferrous Roxide
 
@rlemon Are you joking ?
 
3:55 PM
@eazimmerman lol, nice
 
@dystroy you seen some of the users who come in here?
 
ironicmoments.com
So much potential.
 
I guess Fe-Man would have a been a much better title for Ironman
 
hmm using "iron" instead of "metal" might not be a bad idea.. not as in "fe" since too few people will get it though
 
Hmmm... saying that... what about Fe-male
 
3:57 PM
moshr.net
 
Fe-Man sounds like a gender confused person
 
@eazimmerman I like that one a lot.
 
Fe-Man is He-Man's wife.
 
Even though it uses the [^e]r pattern.
 
3:58 PM
fapp.it
 
rubb.it
 
suck.it
 
@Shmiddty under construction messages are the worst
 
Or... the best?
 
@eazimmerman especially when they are as shitty as that one
 
3:59 PM
I have a nodeJs webservice ,how can i implement session in it as express uses Cookies and i dont know how cookies will help from command prompt
I am using CURL
 
now I want some cookies for some reason
damn you
 
"we are still rubbing hard to make fappit come asap "
 
@ThiefMaster lulz
Anyway...
 
passing email and password i need a simple method to store a session with this webservice
 
<!-- copy these lines to your document: -->
...
<!-- end copy -->
in the source code -___-
 
4:01 PM
Any Metal. Metal Stamps.
 
I just want a refrence or direction in which i can move
please guys help i am stuck here
 
itakepicturesofmetalconcerts.biz
 
points to the door
nah I'm just kidding :P
 
user1596138
@eazimmerman Got some of that shit in our source code. For when the office idiot pasted calendar info.
 
user1596138
She got fired yesterday. :D
 
4:03 PM
@eazimmerman Looks like this is what they used tumult.com/hype
 
user1596138
@Zirak If you're fine with it, I'd take you up on that. It's good for me because I need to do more online. Plus it'll all end up peer-reviewed in the end.
 
@Divyanshunegi If I had any idea of the magnitude of your issue, I would help. But I don't know how express is interacting with your web service. I don't know how you're accessing your web service. I don't know the paradigm you're attempting to use with your web service.
... and most importantly, it's lunch time.
 
@Divyanshunegi your question is pretty widespreaded, there is no simple or short answer to that
actually would require to see your node code and implementation
 
var express = require('express');
var app = express();
var AM=require('./modules/database');

app.configure(function(){
	app.locals.pretty = true;
	app.use(express.bodyParser());
	app.use(express.cookieParser());
	app.use(express.session({ secret: 'itsgrandmasecret' }));
	app.use(express.methodOverride());
});

app.post('/', function(request, response){
  //console.log(request.body);      // your JSON
  if(request.session.user != null){
	  response.send('SESSION AVAILABLE'+app.session.user);
	  }
 
!!afk cookies
 
4:04 PM
@RyanKinal Stay safe.
 
this is all my webservice
 
!!afk cancer
 
@Shmiddty Hurry back, ok?
 
omg I can't stop listening to that playlist
 
@eazimmerman Actually, it might of been this
 
user1596138
4:05 PM
@Shmiddty Interesting...
 
@Jhawins Shmiddty is afk: cancer
 
woah I didn't know about afk yet
when was that implemented
 
and more important, how do you cancel afk status
 
user1596138
Just recently by Schmiddty.
 
4:07 PM
@jAndy just call !!afk again
 
user1596138
@jAndy It triggers when you send another message.
 
nice one
 
user1596138
@eazimmerman Not anymore. The next message you send automagically triggers it.
 
oh
does !!afk start it again?
 
@Zirak sometimes I really think you aren't that big of an idiot..
nice feature
 
user1596138
4:08 PM
Yup. You give it a reason though. Then it responds to anyone pinging that user with <user> is afk: <reason>
 
user1596138
Shmiddty But annoyingly I think she'll send as many responses like that as pings to the person. Nope nevermind. Nice!
 
@Shmiddty is that the case ?
 
@Jhawins No offence, but I'm not sure how good you are. As always, pull requests are welcome, and Octavian/Shmiddty/me can decide later on
 
user1596138
Not so nice.
 
user1596138
@Zirak Works for me.
 
user1596138
4:10 PM
Perfectly fair.
 
@jAndy Not my idea, Benjamin Gruenbaum's idea github.com/Zirak/SO-ChatBot/issues/86
 
Does anybody know how to get a SQL queried data-source into an x-editable select input? All the examples are showing static data instead of dynamic
 
does afk-state survive a quit/rejoin ?
 
yeah, it's until you revoke it
 
> me: just copy and paste that address into your address bar.
> customer: how do I do that?
> me: really?
 
4:13 PM
I don't believe you
or maybe customer is trolling you hard :-P
 
@Zirak I'd be willing to bet an apocalypse or two would prevent you from keeping your afk state
Nothing wipes your session state better than a flaming chunk of metal and gas entering the atmosphere at several thousands of miles per hour
 
Nah, that becomes trivial as soon as we have good quantum computers and plasma storage
 
@Zirak Testing your game. When I see "My solution looked...cleaner...", does that mean your solution was shorter ?
 
@thebenedict 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 google.com/…
 
4:19 PM
Oh really Couchbase Webinar? Really?
System Requirements:
PC-based attendees – Required: Windows® 7, Vista, XP or 2003 Server
Mac®-based attendees – Required: Mac OS® X 10.5 or newer
Well, I guess then I won't participate.
 
why ? Amiga isn't supported ?
 
@Zirak A bug : when you hit restart, then type your answer, then type ctrl-enter, it directly jumps to the next question
 
well doesn't look too bad actually
 
@jAndy I work with farmers
 
user1596138
@OctavianDamiean Wait, no nix?
 
4:24 PM
Is using @import for a lot of stylesheets(more than like 3) a bad idea? I am using a framework and its css.min file is great but I don't have time to read through it/find stuff and the framework has each part broken out into separate css files
 
@Jhawins It's got a 5-minute timeout, per room.
 
@Shmiddty It's been 20 years. You can't just waltz back into my life like this.
 
@benlevywebdesign use a pre processor to merge them
don't use @import in production
 
what is a pre processor and where do I find this magic
 
user1596138
@Shmiddty Very nice.
 
4:26 PM
What a neat little program
 
user1596138
@benlevywebdesign PHP to merge them?
 
ah yeah
 
@Neil yeah sequoiaview is really nice
I always use it when I need to know who's taking all the space
 
@rlemon so what is this pre processor stuff?
 
is this window.addEventListener('load', function() { }, false); considered best over using windows.onload() ?
 
user1596138
4:28 PM
foreach (scandir($dir) as $a) {
   echo file_get_contents($a);
}
 
@Zirak me getting write access to the bot means I should use it?
 
user1596138
Someone's going to freak about PHP code being here...
 
php in js room ... this is out rageous
 
@Jhawins This helps on the server side, correct? But what about when I am working locally on my computer.
 
user1596138
@benlevywebdesign Same thing works locally. If you have apache running.
 
4:30 PM
@Jhawins I don't know if I do?
 
user1596138
Do you use Windows?
 
user1596138
What do you use?
 
I have a Mac
 
@jAndy About our discussion about scoping before - I forgot to talk about a certain game. I hope that it didn't offend you :)
 
4:31 PM
mamp
 
user1596138
@benlevywebdesign google mamp.
 
user1596138
Wait what is your normal backend?
 
@BenjaminGruenbaum ooooh sneaky
 
yeah I have heard of mamp
and what do you mean normal backend?
 
user1596138
@benlevywebdesign Just run the script once, then copy/paste the result into a new file. Then you have combined them.
 
4:32 PM
posted on October 15, 2013 by chriswilson

One of the consistent questions I keep fielding over on Stack Overflow is “why doesn’t audio input work?” – to which the answer kept turning out to be “because you’re testing on Android, and we don’t have it hooked up yet.” Well, I’m happy to announce that the Beta version of Chrome for Android (v31.0.1650+) has support for audio input in

 
user1596138
Use that file from then on and you won't have all the classes in different files. Problem solved.
 
@Feeds YAY!
 
@Jhawins what do you mean run the script once?
 
Hi guys
 
@benlevywebdesign just use the @import
 
4:33 PM
todays day was like confusion day for me
 
user1596138
@FlorianMargaine I think he's doing it for school...?
 
user1596138
That would look stupid.
 
@Jhawins no
 
@Zirak
sumDigits(1e+100) expected 1, got 2
sumDigits(4e-100) expected 4, got 5
 
@rlemon let him
it's easier/better for him
 
user1596138
4:34 PM
Why is it better?
 
@Shmiddty yeah?
@Jhawins it reflects his level.
@Shmiddty what's wrong?
 
@Shmiddty I got that too and then raged and stopped
 
I had a cool and short answer for the balanced parenthesis question :)
 
 
@jAndy The Game
 
user1596138
4:36 PM
function teach(user) {
user.level++
}
 
@Shmiddty I just cheated and looked until the "e"...
 
@FlorianMargaine Its not good if you have a lot of css files I read
@Jhawins what do you mean run the script once?
 
@dystroy return (''+x).replace(/e.+/,'').match(/[0-9]/g).reduce(function(a,b){return+b+a},0)
 
@jAndy Is that the reason why you are single? Me thinks it is. :D
 
@OctavianDamiean I might not be a single anymore :3
 
4:38 PM
function teach(user) {
  if(user) user.level++;
  else user = new Dunce();
}
 
@jAndy Someone actually called?
 
@Shmiddty about the same, yes, but with an additional ternary test for nan
 
@Zirak I generally don't enjoy point-and-clicks, so I just watched the walkthrough, but that looks like a pretty good game! The story was pretty cool
 
@OctavianDamiean its too early to talk about that and I don't want to give up so much information right now !
 
4:40 PM
Thought there'd be more about lucid dreaming, though. :/
 
user1596138
@benlevywebdesign I just meant echo it to an empty page and then copy it. It's just writing a script to combine your text files.
 
user1596138
@jAndy What's that say?
 
@Jhawins "Looking for a smart girlfriend - My number is 0221 -"
 
user1596138
Hahaha
 
4:42 PM
Who would have thought that math could get you chicks.
 
I guess I should try with some programming pattern/algorithm
 
I actually just manually combined all the separate files and did't come out to that many lines (only about 850 and thats including the section dividers I added and spaces between each section)
 
@Shaz @Zirak hi after all these months... sorry I got pulled away to other projects and all of a sudden was hardly doing any JS, plus I had been overusing this and decided to spend time elsewhere.
Good times though and good memories; glad everyone's still keeping it lively.
 
well doing that fcuked siht up :|
@Jhawins so how do I use this script:
foreach (scandir($dir) as $a) {
       echo file_get_contents($a);
    }
I am just starting out with php now in my university program
 
@benlevywebdesign Open a command line, cd to the right directory, type cat *>result
 
4:52 PM
@copy you have lost me at open a command line...
 
@copy Skype
 
@benlevywebdesign You know, a terminal
 
yeah
ok
and what is cd to the right directory
 
Type cd Directory/Path/Here/
 
@benlevywebdesign cd is a command to chang the directory.
 
4:56 PM
3 upvotes for this questions... People are weird
3
Q: IE css style differs 1px from chrome/firefox/opera

Mohammadwhy IE always differ 1px from other browsers? please look at this picture, this is in firefox and opera and chrome and it is in IE as you can see IE moves the border 1px to left. it is not just in this case, I have seen this many times, why IE has such behavior ? thanks

 
That chang was on purpose.
 
user1596138
Oh man...
 
@OctavianDamiean So it makes it a lunatic Asian dude?
 
what am I changing the directory for?
 
4:57 PM
You are changing the context to the directory you are specifying.
 
user1596138
Imagine you've opened finder, but without a GUI.
 
user1596138
Sort of...
 
So you are changing into that a directory, you are not changing the directory.
 
4:58 PM
@MirkoCianfarani patch -> app!? Wat?
Who calls a patch an app?
 
and then once I do that..wait what I am I doing in terminal in the first place?
 
user1596138
Or a daemon. The average consumer doesn't even know that's a word.
 
@benlevywebdesign you type this, cat *>result
 
ehehe I am not create this image,,,
 

« first day (1095 days earlier)      last day (3869 days later) »