« first day (900 days earlier)      last day (4034 days later) » 

12:09 AM
I have released today a jquery plugin called jquery mapping, to everyone try and download, so feel free to comment and subscribe if you like it and even give new sugestions, for the demo check here - htmlpreview.github.com/?https://github.com/vieira-ricardo/… and the source - github.com/vieira-ricardo/jQuery.Mapping
 
yay! More jquery plugins!
With tons of inline HMTL and CSS!
yay!
 
m59
holy wowzer. How do you have time to do that for free?
 
Consisting of one file with 1.8k lines, the longest row having 273 characters!
yay!
 
Why is it called mapping?
 
m59
So...it isn't good?
 
12:16 AM
@m59 Horrible.
 
m59
lol I can't imagine what you would think of my code.
 
how do you see what it does?
 
Congratuhorrible.
 
it has no demo/examples?
 
m59
12:19 AM
Oooookay. Line 1580. Yeah, that's bad.
 
@SomeKittens the plugin isn't actually running there though is it? that's just docs?
 
The calendar at the top
Again, why the fuck is it called mapping?
 
oh! i don't see anything because my console is full of red
 
@RicardoVieira Lots of questions for you, if you don't mind answering.
 
m59
He left, lol.
 
12:25 AM
lol
ask then leave
 
Maybe I was too mean :(
 
m59
So, that code is very hard to understand for me. How can someone manage to write something that complicated (even if it is just a structure problem) and do so many silly things?
 
Only two things are infinite.
 
m59
I tend to feel that if you can write something that complex and keep up with it all, you must be reasonably intelligent.
 
it's called going full retard
 
12:28 AM
The criticism wasn't exactly constructive. Why not point out what you think was wrong and what would have been better?
 
once you have juuuustttt enough knowledge to get a result, people seem to be able to churn out a crazy amount of code at that level
 
LOOK AT ALL THE THINGS I CAN DO [wrong]
 
Is there a legit qualification for JavaScript?
 
master of internets
 
Other than that obvious one.
 
12:33 AM
@david We all know @Zirak already took that title
AHAHA! IT WORKS!
Finally got chat working!
 
grats!
what was wrong?
 
Still a zillion things to do but IT WORKS
@david No idea. Decided to use Socket.IO instead of WebSockets
Actually learned quite a bit moving the code from one to the other
 
m59
Thinking back on it, writing procedural really screwed my mind up on a regular basis. I managed to do it, but it was pretty limiting and definitely unreadable, even by me. lol
 
m59
LOOLLLLLLLLLLL
 
12:36 AM
@SomeKittens are you sure it's using websockets then? iirc socket.io can do like, all the things. It's possible it is falling back to long polling
 
@david It doesn't really matter to me
 
m59
Well, back to my very first question. Why do you think that dude wrote all of that code in the first place?
If he were making money, I could see a motive.
Failed philanthropy? Wanted to help the public but gave them bad code instead?
 
@SomeKittens it should :(
 
open the chrome console and check
 
m59
12:39 AM
I got it. He wanted @copy to be his friend, but it really back-fired.
 
@m59 are you not familiar with the concept of open source code?
 
posted on April 03, 2013 by Victor Rodriguez

Disconnect From the Water Grid: Greywater Action How dangerous is it to access an array out of bounds? Voyager: Looking Backward and Forward

 
m59
Yes, of course.
So, you think failed philanthropy?
 
It's not really philanthropy, it's manly selfish
 
You know the five-year-old who really wants to help, despite the fact that they can't really help in any meaningful way?
 
m59
12:41 AM
even more lost. What benefit did he get from that?
 
hey guise i'll release some open sauce code for you. it's really good and helps me lots with making my javscizzles modular and stuff
 
@m59 GitHub is the new resume
 
It's nothing to do with the benefit he got in this case.
^ this
 
m59
Ahhh.
 
k here you go! david's opensauce javascript betterifier. put this at the top of your wabsite for warnings that will make your code better:
(function(){
  var orig = {};
  for (var attr in window){
    orig[attr] = window[attr];
  }
  var check = function(){
    for (var attr in window){
      if (!(attr in orig)){
        console.warn("New global: " + attr);
      }
      orig[attr] = window[attr];
    }
  };
  window.setInterval(check, 100);
}())
2
 
12:48 AM
needz moar jquery
 
it actually yells about jquery
it takes a fair amount of massaging to get jquery to behave with require.js and backbone.js
without resorting to having a global jQuery/$ object
 
0
Q: How can I update options with javascript?

JohnKI'm writing a plugin with an admin screen. I have a set of radio buttons to select the tabs on the plugin's admin page. I also have a 'last_tab' option that allows the administrator to pick up where he left off. I already have it programmed with PHP that when the admin saves data in a tab, it s...

 
Well, I think websockets just don't work to my server.
 
what port are you listening on?
and is that port open?
are you running this locally or on a vps?
 
@david 8888
The connect event fires, but then it won't pick up what the server fires
I think I've got it
ah
Port forwarding.
...except then why do all my regular HTTP connections work?
 
1:05 AM
Anyone here experienced with backbone and willing to lend a hand? I'm trying to write my first few lines of code here..
 
@DerekHunziker Your first few lines of code in general, or just backbone?
 
Just backbone, it's totally new to me, although I know jQuery and JS in general pretty well
 
I haven't used it
 
Ok, thanks anyways! cheers!
 
@SomeKittens I just made a minimal websocket example
can you run this with node and tell me if it works?
gist: 5297665, 2013-04-03 01:08:08Z
 
1:08 AM
ok
 
it should simply echo any message you send from the client
needs you to run npm install ws first
 
0
Q: WP 3.5 media manager - how to create a working gallery frame

Dejan Stosici am writing a plugin and after hours and hours of searching for any documentation on WP 3.5 media manager i managed to create my custom media frame that is being called when a user clicks on a custom TinyMCE button in that i added. this is the working code that inserts a single image: onclick:...

 
@david Works locally, not on my server
 
then your server config is breaking it
 
Yeah, I figured
Double-checked the port-forwarding stuff, that all checks out
 
1:13 AM
@SomeKittens, your server is bad, and you should feel bad.
 
i have to go home soon
trying to think of things that might be breaking it :S
do you have ssh access to the server?
 
@david Yeah, it's a box at home
 
try netstat -vatn | grep 5000 to see if it's listening
 
@david with your code, it isn't even connecting to the server
 
@rlemon Pen and paper
 
1:18 AM
that is fairly poop
 
FAIRY POOP!
 
AHA
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN
tcp        0      0 192.168.1.9:8888        24.213.134.6:51880      ESTABLISHED
tcp        0      0 192.168.1.9:8888        24.213.134.6:19114      ESTABLISHED
 
@rlemon Notice the format: @someone <subject> has <number> karma. In your invocation, <subject> is the empty string, leaving @someone has <number> karma
 
Got it to send, server sees it.
It just never gets the data
 
Update Firefox to v20 then open: jsfiddle.net/KmvGA/1
 
1:20 AM
ws.send("blar");
true
 
Wait, it's still behind flag. Well, never mind then.
 
@rlemon To continue on issue tracking and such, I've never worked in large teams, so I do not have a collaborative solution. However, the simplest technique has worked for me best, and my organisational skills aren't that keen.
 
@Somekittens if you start a simple hello world node app on 8888 can you connect to it?
 
@david Yeah. I've used it for testing my node webapps for a while
 
node -v?
 
1:31 AM
0.8.22
 
Should probably be fine... you should upgrade though and start using the new streams
 
0
Q: Websocket makes connection, but doesn't send any data

SomeKittensI've got a simple websocket server running on a box at home (router is forwarding port 80 to 8888). var server, ws; ws = require('ws'); server = new ws.Server({ port: 8888 }); server.on('connection', function(ws) { console.log('hey a connection'); return ws.on('message', function(msg) {...

I've got the latest on my PC
 
Wait my code was bad it doesn't wait for the connection to be established before sending blar... that nmight break it
Try putting that in a setinterval
 
I can't figure out how isotope isn't filtering. thoughts bvh.delineamultimedia.com/?page_id=2#filter
 
@david It works fine on my machine (localhost)
 
1:40 AM
In the network tab of chrome dev console is it doing the 101 switching protocols thing correctly?
 
@david Eternally pending
 
if anyone has time let me know.
 
That is normal i think. Double click on it
Sinlge click i nean
And chevk tge headers
Train bouncibg v.v
 
up, it all works
 
Does the frames tab have any messages?
 
1:46 AM
Yeah, blar
 
And no reply? Just a single blar? That's bizarre
Blizar
blarizard
 
lol check this out
my sons first program ever
w/o my help
lol it cracks me up
 
0
Q: Javascript seems totally out of control (in a project). How to rectify?

Zak A LAMP project I am currently working on is pretty well organized on the backend. However, there are a ton of pages that just have a diarrhea of javascript and html squirted all over numerous locations with little discernible architecture, rhyme, or reason. In a few cases, some kind of javascript...

 
@Loktar that is awesome
 
BVR
Hi All
 
1:51 AM
outclassed by a 5yo :(
 
BVR
I have one question to post in SE
However I am afraid weather it will be good fit for site or not
 
haha hes 9
lol growing worm...
 
then i'm cool with it!
 
BVR
I would like to create webpage
 
hes working on kaboom clone now
 
BVR
1:52 AM
This should work in all standard browsers including IE7 and all platforms(Mac, Windows, Ios devices and Android devices)
 
!!/stat jAndy extended
 
BVR
What is the work flow that i need to follow to develop a page
 
IE7 is not a "standard browser"
 
bot is angry on me Oo ?
 
1:53 AM
his other program
 
BVR
@SomeKittens: correct. How ever the decision is we have to support basic. If we can not handle we have to display message
If I post this question to SE, will it be good fit for site
 
!!/live
 
@Zirak And on this day, you shall paint eggs for a giant bunny.
 
BVR
I don't want to get attract negative and close votes
 
aw, wonder who killed him
 
1:54 AM
!!/die
 
@uınbɐɥs! it was @uınbɐɥs!
 
It's not nice to kill innocent robots
 
!!/talkToMeUlittleFag!
 
!!/live
 
@phenomnomnominal And on this day, you shall paint eggs for a giant bunny.
 
1:57 AM
he it dies without a hollywood line ?
 
We need to decide on the bot's gender
 
shemale
 
^
 
!!/stat jAndy extended
 
@jAndy [jAndy](http://stackoverflow.com/users/1386886/jandy) has 66159 reputation, earned 30 rep today, asked 50 questions, gave 1842 answers, for a q:a ratio of 25:921.
avg. rep/post: 34.96. Badges: 8g 78s 143b
 
1:59 AM
@bvr it will not be a good fit for the site i don't think
 
anybody knows which timezone stackexchange sites work on ?
when starts and ends 'today'
 
If you need your IDE's refactoring features, then your code isn't orthogonal
 
We should make the bot really violently for gay rights
 
@jAndy utc
Yeah it's UTC
5
A: What time zone do SO's servers operate in?

John SaundersI believe that everything is calculated based on UTC. All the times, for instance, are in UTC. The "day" for close votes begins at 0:00:00Z (UTC). Ironically, I clicked the envelope icon to see why my rep had changed, and saw this: all times are in UTC; the current time is 2010-03-14 02:34...

 
!!/erkeen
 
2:05 AM
@phenomnomnominal Command erkeen does not exist.
 
Once again CC saves the room.
 
2:19 AM
@phenomnomnominal wat
Determine bot sexuality! BotMale++ for male, BotFemale++ for female, BotWat++ for androgynous
5
 
BotWat++
 
BotWat++
 
BotTrans++
 
BotRoboSexual++
 
ButFemale++
 
2:26 AM
BotMale++
I tried that websocket example in a vps and it works @SomeKittens so it must be an issue with your setup
you should just get a vps and use that for your testing
 
ok whats wrong with this:

var img = dir+'imgs/cursor.png';
f.style.backgroundImage = 'url("'+img+'")';

Browser shows image loads but element does not have background Image in its style
has all the other stuff i added though =/
 
@david But I don't wanna!
 
Strong typing ftw
 
@SomeKittens but it avoids all these weird issues!
go here and pick one of the first 2: ramnode.com
it's $24 and you get it for a whole year
$2 a month is pretty sweet for an always online vps
 
You should be able to setup a working local server as a developer
 
2:37 AM
except when your ISP does crazy shit to stop you running servers on a home connection
which they do do
and that could be what's owning somekittens
 
I mean, a local one for development
 
... you mean not internet accessible?
 
Yes
 
><
well of course that's easy
he has that and it works
the problem is when he makes it open to the net
 
Oh, I see. Nevermind then
 
2:40 AM
Yeah, that.
My dev server works fine. I'm building a chat, so I want to test it among the internets. No dice.
 
just throw it on heroku
 
Worth a shot
 
You should use comments sparingly
 
2:55 AM
BotMale++
 
3:40 AM
^Annoying wait at beginning, ignore error messages.
 
@SomeKittens Heroku supports node?
 
Yup
 
socket.io booooo
 
Oh thats neat, I like that you can push straight to heroku
 
it's falling back to long polling here :(
 
3:51 AM
If anyone wants an easy backbone question stackoverflow.com/questions/15778472/…
 
Those interested in the code can find it here: github.com/SomeKittens/Kittens-Chat
 
 
4:07 AM
Every language has an optimization operator. In C++ that operator is ‘//’
 
4:42 AM
@SomeKittens interesting, you call your jade file views, i call mine templates
 
4:54 AM
!!/stat jAndy extended
 
@jAndy [jAndy](http://stackoverflow.com/users/1386886/jandy) has 66199 reputation, earned 70 rep today, asked 50 questions, gave 1842 answers, for a q:a ratio of 25:921.
avg. rep/post: 34.98. Badges: 8g 78s 143b
 
5:10 AM
@OctavianDamiean, schmitty.
 
5:23 AM
if i include jquery 1.8.3.min.js file with query ui slider ...the slider dont show up..--but if i rem0ve jquery 1.8.3.min.js link slider shows up...y is that so?
@phenomnomnominal could you please help
 
Make a fiddle, and don't ping random people.
 
@phenomnomnominal I am sorry but since last night i am stuck in this problem.
 
use jsfiddle and make an example of the issue
 
A function that can't fit my screen can't not be bugged
 
5:50 AM
@james Are you including jQuery twice?
 
<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery UI Slider - Snap to increments</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>



<link rel="stylesheet" href="/resources/demos/style.css" />
<script>
$(function() {
$( "#slider" ).slider({
value:100,
min: 0,
max: 500,
step: 50,
slide: function( event, ui ) {
 
@james Because you already have http://code.jquery.com/jquery-1.9.1.js included
unless you mean you're replacing it
 
so should i use jquery 1.8.3 or 1.9.1.js
i have purchased a template and that guy is using jquery 1.8.3
 
Use the one that works..... ha
 
jquery 1.9.1 works but if i remove jquery 1.8.3 many functionalities of template stops working:S
 
5:56 AM
Well does the slider work with 1.8.3?
 
nopes
 
oh, well maybe you should just find a non-jquery slider
 
ahan thanks for the help buddy ...:)
 

« first day (900 days earlier)      last day (4034 days later) »