« first day (567 days earlier)      last day (4384 days later) » 
01:00 - 18:0018:00 - 00:00

1:05 AM
0
Q: Loading a pseudo-class instance from JSON

user13167Is there a better way to do this? function Person(name) { this._type='Person'; this.name=name; this.hello = function(){ alert('Hello '+this.name); }; } function object_to_instance(key, value) { if (!value.hasOwnProperty('_type')) return value; var obj= ...

 
What on earth is a 'right click mod'?
 
 
5 hours later…
6:37 AM
hi all
 
6:49 AM
hi all
1
Q: Dojo Drag and Drop Issue: Convert Data in Target Container to JSON

AbdulAzizI have two DND conatainers, SourceContainer and TargetContainer SourceContainer have some json data e.g: Apple Orange Banana using following Json: var json = {"fruits": [ {"fruitId": 1, "fruitName": "Apple", "fruitDesc": "This is an Apple"}, {"fruitId": 2, "fruitName":...

please help
 
is web-indent sitll the best vim plugin for js formatting?
 
dunno about it
vim has no problem for js formatting with me :/
I don't need any plugin
 
do you use any plugins for refactoring such as hoisting ?
 
nope
do you need to?
I don't
 
what about jslint on :w?
 
6:59 AM
when I have a new variable, I do something like ma?var, get where I declare the variable, and use `a to come back
I use jshint
jslint is too much opinionated
 
what other plugins do you use?
 
snipMate, zencoding (rox rox rox), jshint and nerdtree
with pathogen to organize them better
 
thanks
 
my vimrc has some handy functions too
like ctrl+l toggles the line number (relative/absolute)
 
7:14 AM
i see you awesomewm, since adopting tmux and google chrome (where most of my apps are chrome tab/apps - e.g. imo.im) i since gone back to simplier xfce
 
i have a problem here any body can help me?
 
general etiquette is to just ask, not ask to ask
2
 
@Matt ok thanks i have a audio file that needs to played for 5 times using html,javascript or jquery
 
@Matt I don't use chromium only :-) but yeah, tmux can replace the "terminal" part, I also use skype/gimp/libreoffice/etc tho, so awesomewm is awesome for me :)
 
Goofy, and what is the problem?
 
7:34 AM
and awesome is light enough to not bother with it when you don't want to
 
8:20 AM
Hi all
can some one tell me how to get item list of the data from a target container with dojo drag and drop?
@FlorianMargaine can you help?
 
 
1 hour later…
9:32 AM
I might get the chance to fully rewrite ncore today
Just finished lib/core.js
 
9:56 AM
hey,
 
hi
I want to play a bit with javascript
What's the way to do it? Just edit a html page and reload it in the browser after editing? I would rather have something which runs directly in the browser where I can see instantly the results.
What are you guys using?
 
10:15 AM
@Nils google jsfiddle
google jsbin
google dabblet
or online editor/ide
 
what are u using?
 
both
 
can I also run them on my machine, instead of using them online?
and I also want jslint to run
 
@Nils jsfiddle support jslint
 
ah
but jsfiddle sends all your code to jsfiddle.net.. are you comfortable with that idea?!
and jslint is shown in a popup everytime
don't like to click either
maybe I'll have to make my own stuff
 
10:32 AM
But it doesn't support JSLint
 
Can someone help me look at this jsbin.com/efofed/edit#javascript,html,live
I am trying to make a count down timer, I almost done
 
Humm I just got my copy of js the good parts, haven't really used js before.
 
but when you uncomment the commented code, it count down so slow in millisec scale.
 
But having such a deeply nested if statement for a simple method is certainly not good design.
 
@Nils Probably shouldn't be learning from there
 
10:35 AM
?
 
It's more like a book for people who already know some JS
If you're just starting out, try Eloquent JavaScript, maybe
The book has an online version
 
@didxga maybe use a hashmap or something to make it more readable
nah I know C++
I'm not a n00b.
 
Guess you'll figure it out then
 
@Nils, I have solved that. tnx
anyway
 
10:48 AM
@FlorianMargaine thanks
it seem to work, but don't know if it accurate enough
 
@didxga this is the way it's faster jsbin.com/efofed/6/edit
 
@FlorianMargaine great.
 
otherwise, yeah, it's accurate
 
humm why does <script src="helloWorld.js" ></script> work, while <script src="helloWorld.js" /> does not?
 
did you see what I did?
 
10:54 AM
so the question is make the block code in setinterval run as much as possible, the point is make it running less than 1 millisec?
 
@Nils that's the way it is x)
 
But shouldn't xml allow to write both things?
 
script is special
@didxga actually, this is even better jsbin.com/efofed/7/edit
setInterval doesn't have to reevaluate the anonymous function everytime
 
humm
 
what do you mean by reevaluate anonymous function
 
@FlorianMargaine you wanna tell that named function is faster than anonymous one
@FlorianMargaine , if we are designing a system for every visitor to our website to contest over a product, the time on when visitor can begin to buy the product is indicated by our count down timer.
@FlorianMargaine we have to ensure that every visitor in different place accessing our site synced in our timer.
is it better to make the timer in server side, or client side, ore semi server side plus semi client side
 
11:21 AM
I would make the count down timer running at the client side, but I would also check the time at the point the client timer running into zero
to say if it is actually running into zero
 
12:02 PM
@didxga make it client side with ajax synchronisation with server time once every minute
but really, are you sure you need the miliseconds?
 
@FlorianMargaine no need actually
just as precise as seconds would be fine
@FlorianMargaine just get back from dinner
 
then just use the minute, a milliseconds timer is pretty expensive
well you can use seconds, it's not heavy
 
yes second
 
but you definitely have to check with the server every minute or so to synchronize
 
yes, it is
 
12:11 PM
because not all your clients will have the same hour
@Raynos o/
 
time zone
different OS, browser engine
this are all attributed to the complicities
 
PONG
 
@didxga the notion that the speed difference matters, is significant or is something you should care about is absurd
Sync timers is a pain
the best you can do is just use local time
If possible destroy the need to synchronize criteria
updating linux sucks
stuff doesnt work :P
 
@Raynos probs then you need a better distro.
 
12:25 PM
well not that
It's just that doing a live upgrade
so im trying to use programs
and linux is trying to reinstall its internals
like its reinstalling some gui stuff and I cant boot gui stuf
 
I see. but then again that is the shell part and depends on your distro.
but I see what you doing there.
 
now audio wont work
lulz
 
haha, just wait for the upgrade to finish. :)
 
THEN THE ENTIRE WORLD BREAKS
 
oh my god! does your system run interwebz ?
 
12:33 PM
maybe I should wait
with my sceencast :P
@OmeidHerat yes my laptop RUNS THE ENTIRE INTERWEBZ
 
@Raynos .
 
how do i make a custom email ?
i mean do i buy a dedicated , server
and just a scrap domain [ domain with nothing added just registered on my name]
 
@Abhishek Do you understand how email works?
 
bits.
 
12:37 PM
What do you know?
 
well i know there are two server SMTP and POP3
one sends and the other one recieves
not much though.
 
what about IMAP :(
 
@Esailija -.-
 
those are protocols
 
yeap , sorry i said server
so um is there a service which will host the email for me ?
if i got the domain already
 
12:41 PM
Maybe I should blog about emails...
 
@Incognito please i will read it
 
Basically it's all raw-text protocol stuff, there's libraries and stuff that do it all for you however.
You can send from your local server and receive if you've set up the software.
 
@Incognito well i own hingnikar.com
 
Okay. That's only a domain.
 
i want to make an email Abhishek@hingnikar.com
 
12:42 PM
Do you have a server?
 
not yet but i can get them
 
You need to set up and install a mail server.
 
is there other way
 
You can also have a third party company deal with it, I don't know what ones do it.
 
like someone can host them for me
 
12:43 PM
I think google doesit, for example. I don't know how.
 
@Incognito same
Google Apps does
 
Media Temple does as well I think, but you probably have to be a customer.
 
:-)
 
javascript ,How to determine the link address to download.
 
probably its time to find a hosting service
@孤魂楚 um what ?
 
12:47 PM
@Abhishek don't bother yourself and use google apps
 
@FlorianMargaine i like to learn stuff mate :-)
 
yeah, but this kind of stuff is painful and expensive
 
@Abhishek I started to develop a download application
 
btw @FlorianMargaine \o
 
12:48 PM
@Abhishek Want to know to obtain the connection address is not available for download
 
anyone ever worked with restify?
 
nope
 
@Abhishek js confirm Link address
 
@孤魂楚 I have no clue sorry
 
@Abhishek oh
 
12:53 PM
@孤魂楚 I haven't gotten your question at all. I don't know what you mean
 
@FlorianMargaine js I want to know the link address with the browser to open or download the tool to open
 
which link address?
 
@FlorianMargaine lols my free host supports e-mail wut !
 
I definitely won't trust a free hosting provider for something as important as my emails.
 
@FlorianMargaine i am just spitting it :-)
 
1:06 PM
@FlorianMargaine yse
 
ubuntu 12.04
should die
 
@Raynos why ? it works pretty nice if you install GnomeShell3
 
no keyboard support
or mouse
 
something has gone wrong.
keyboard and mouse is generic. they should be supported no matter what.
 
@FlorianMargaine , i got the account and stuff set up , using go-daddy :-)
 
1:19 PM
so cant login
 
did you try the 'recovery' mode ?
 
not yet
I booted into windooze
 
@Raynos welcome to windows :-)
lolz
 
1:45 PM
problem solved
just had to get synaptic to fix its broken packages
 
2:13 PM
Why do people overcomplicate things? stackoverflow.com/a/10452789/617762
 
For the upboats
 
Posted an answer as a comment...meh
He wanted to write a module to control a single variable...
Now that I think of it...why can't he fuckin use a variable?
 
how is yours different other than using jQuery style getter/setter instead of traditional getter/setter .P
 
Mine is simpler
plan_state(things) instead of module.getState and module.setState
 
so you are not completely against jQuery philosophy? :D
 
2:17 PM
Trololololol
 
dunno why would you think that as a troll
 
3 mins ago, by Zirak
Trololololol
 
you are doing the very thing jQuery is frowned upon here for
but whatever
 
Yes. I'm doing exactly that. There's absolutely no difference.
 
Can somebody drop me a line about
abhishek@hingnikar.com ?
i want to test it
 
2:27 PM
yeah there isn't, jQuery is critized daily here for overloading
and yes the opposite of overloading is writing out functions for every thing like you just said is too complex
so I find it funny
well not complex exactly but you said less simpler :P
 
@Abhishek Done
 
@Amaan lets see how long it takes
@Amaan wow that was fast
 
I just realized something. Did you call that "jquery syle"?
 
Question!
Best way to store unique IP's in a database for each file
 
well, yes I did say that
 
2:35 PM
Alright now time to complete my blog i will see you all laters :-)
and damn i will be doing php -.-
 
@HarryBeasant There is no such thing as best, how many ways can there possibly be (I can think of a very simple one), and how is this related to js?
 
Its not, but i see you guys are the wisest
 
15 mins ago, by Zirak
3 mins ago, by Zirak
Trololololol
 
But how could i do it?
Without having cabillions of rows
 
well if you want unique
you will have them lol
btw as most ip's are dynamic u need to update it
 
2:38 PM
yeah
well what i mean is, when a download is downloaded, i want the IP to save in the database, but only if its unique
with the file name aswell
in the same row
well file hash
 
Off the top of my head, I can think of 3 ways:
1. The lazy one; store file<->IP
2. File main field, with a list of IPs that downloaded it as another field
3. My favourite, IP main field, with a list of files it downloaded as another field
 
though the implementation could use some work, you can't set falsy values now
 
hmm
so have the database structure like
IP ---- Filename
Which will make a new row each download
 
that's the lazy way.
 
Can you explain what you mean on your favourite method
 
2:44 PM
(3) was this IP -> Filenames, where each time an ip downloads a file, it adds that file to the filenames.
table[ ip ] += fileName (something like that)
 
Hmm
So it stores the Ip's still yes
because i need to do that
In order to check if it is a unique download, on just that file
 
How else would there be an ip field without storing the ip
 
if it's ip4 you can use ips as integer primary key
then your database won't allow you to insert duplications by default
 
It actually depends on what you wanna do with this info. If, for example, it's to limit an IP so it can download something only once, then this will work just fine
 
2:48 PM
Its basically so that i can pay money per 1k unique downloads
 
I like (3) better than (2), because it gracefully handles new files; in (2), you'd have to add a row for each new file
 
^
 
user1385191
why not hash the ips?
 
files

	file_id file_name

	primary file_id

file_downloads

	ip file_id

	primary ip,file_id, foreing file_id
 
or perhaps he can have 2 tables 1 that contains ip + user ID and the other one that just contains user ID + files
 
2:49 PM
i can just store the IPs in standard form
 
that will be more effiecent wont it ?
 
ip stored as integer
 
for non-user-ids he can sore UUID's
 
user1385191
I'd consider an IP address to be sensitive information
2
 
@MattMcDonald +1
 
user1385191
2:50 PM
so hash it
 
Um how do i set up outlook ?
i mean my outlook breaths but its not connectiong to web :-|
 
Hmm
What do you guys think a file hosting website must have as a must?
 
user1385191
security
 
user1385191
anonymity
 
user1385191
bottomless bandwidth
 
user1385191
2:55 PM
speed
 
Spoons
 
lawyers
 
lol
i have none of that
anaymity
i have that
anonymity
 
@Zirak do you use the command-t plugin on vim?
 
then you need more lawyers
 
2:59 PM
@MattMcDonald it acutely is sensitive information and in lots of cases it links to far more information then password.
 
@FlorianMargaine I haven't used Vim in a long time
 
oh right, you're an emacs user
sorry.
 
Never will my hurt feelings mend
 
EscapeMetaAltCtrlSpace.
 
Space? Didn't know Space was a command character
 
3:00 PM
well, I didn't say command characters, did I ?
it's just a checky joke about emacs.
 
Also, Meta === Alt, and Escape is often used as a synonym for Meta
 
not really.
meta can be the Mod or the Windows key.
 
Well, when I need to do M-x, I press Alt-x (or ESC-x)
 
and Escape is a totally different key mostly on the top left corner labled as Esc.
Huh ? Esc has nothing to do with Meta as far as I know, but then again there is lots of OS and standards.
 
Surprise!
 
3:03 PM
?
 
Escape has something to do with Meta/Alt (as far as Emacs is concerned, at least.) Granda surprizo
 
well if Escape is alternative to Alt in a given application it doesn't mean that they are always interchangeable or anyhow related to each other though.
 
Finally i got my Gmail connected to my domain :-)
 
@Abhishek Good on you !
 
3:06 PM
:-)
Alrighty i am off cya guys laters
 
user1385191
wow; bash is so odd
 
you should give powershell a try then :)
 
3:32 PM
@MattMcDonald ?
 
user1385191
it's just a big departure from what I'm used to
 
and what are you used to?
 
4:17 PM
Hmm
Kind of a JS related question
I have a table
Its a plugin, so not a basic one
I was wondering how i would go about getting the whole row to highlight when i hover over it
 
tr:hover{
  background:#ccc; // helps ?
}
 
but then if its using a row :P
@Zirak \-o-/ why you swear that much ?
 
@Abhishek Dem hoes like it
 
PULP-FICTION, MOTHERFUCKER, HAVE YOU SEEN IT!?
 
4:24 PM
-.-
that sounds hell immaturish to me , sounds more like a 13 year old loving to swear wherever he can
// -> Doh i can swear so i will swear , Me COOLSTA! <-
 
@Zirak is ninety fucking two!
 
You're so bitchalligin right, mofo. I'ma flippin repent my bullshit life, yo, respect dawg man bro.
 
lol
 
> respect dawg man bro.
Nice
 
4:49 PM
hmm
i'm using table.display td:hover{
Only highlights one cell at a time
Anyway around it
 
uhm, yeah...do that on the row, not the cell? table.display tr:hover
 
yeah when i do that
it highlights the whole of the top row, which is the description of the rows below
Like file size, file name etc
 
Post a sample of that online (on jsbin or jsfiddle, that is)
 
okay
its
wierd
on jsfiddle, its working, on my code, its not
 
Show us teh codez (paste it somewhere if it's long)
 
5:02 PM
i think its because of the javascript plugin
 
Try isolating it part by part; when it works again, you'll know what screwed it
 
Hi eveybody
Is there any coffeescript-lover here?
 
oh, yuck
 
not me
 
I've decided to try it. I've read that coffeescript is meant as readable, easy understanding code... So.. is this code easy readable? loop then break if foo is bar
 
5:07 PM
FORTRAN is readable and easily understandable...if you know FORTRAN
 
one sec
 
I mean, may be I am strange and can't understand the beauty of cs and its popularity.. or I'm not alone in such thoughts?
 
You're very alone. My cry of "oh, yuck" earlier was because I love cfs so much I puke every time someone mentions it.
Abhishek also loves it deeply, hence his "not me" when you said if anyone here is a coffeescript-lover
 
@Zirak. I don't FORTRAN... but if compare to javascript. I think this:
`while (true) {
if (foo === bar) {
break;
}
}` is more readable :)
heh)) I thought yuck is some kind of yeap ;)) I've looked up in a dictionary - now I understand :))
 
hey guys
can someone plz help me. I've been banging my head for over an hour on this one
 
5:11 PM
I have this url var url = 'comments.php' + (current++ > 0 ? '?page='+current : ''); the last page = 8 can anybody tell me how I can set the last page?
 
0
Q: jQuery: Image slider and class selectors in wordpress loop

SeeBeenI am running a custom loop in a wordpress page that should list all the shoes in one category as well as the color selectors. I got the loop running just fine, and page looks ok. But I have a big problem with jQuery script that changes the images. Each post has: Several images of different color...

 
5:29 PM
Holy hell. I just realized...Prolog is tailor-made for match-making services.
 
5:45 PM
greetings all, I am wondering, is there a way to set a perl variable to null or another value using javascript? I have this perl variable called $cookie and I would like to set it to null everytime a person clicks <a href="http://mypage.com/login" class="button"><span>Log out</span></a>
can anyone help me out?
 
01:00 - 18:0018:00 - 00:00

« first day (567 days earlier)      last day (4384 days later) »