« first day (1672 days earlier)      last day (3292 days later) » 

9:00 PM
can you remove an object from a mongo collection?
 
@corvid if you can help it, don't.
 
@ssube it's a generated one, I have to force drop it
 
it's not the cheapest op (but not as bad as upsert). it will fragment your db, which mongo still doesn't recover from effectively.
you're better off marking it as deleted and filtering it from your search results.
 
The problem with that is the external library I'm using probably won't respond to that
 
9:01 PM
@HarisBjelic , how do you name your input fields? e.g. earn1 , buy1, result1, earn2, buy2, result2?
 
@loo
 
hello fellow scripters. Can this be modified for private proxies with username and password.
1
Q: how to change firefox proxy settings using xpcom

Dr DeoI have a proxy server running on localhost (127.0.0.1) and i have grown tired of having to train users on how to switch proxies in firefox to bypass blocked websites. I decided to write an addon. I wonder how to use xpcom to tell firefox to use a certain proxy eg for http, use 127.0.0.1 port 808...

 
woo, time for more downvotes
-1
A: reason for passing function to self executing function

Shotgun Ninja Is this some advanced technique? Basically, ....kinda. In Javascript, functions are treated as first-class objects. This means you can pass them around in variables and whatnot. The first part, (function(core) { ... }), creates an anonymous function, taking a single argument called core. Th...

 
@macroscripts , why not use an automatic proxy configuration URL?

This is what my company does for over 90000 users on Firefox/IE/Chrome
 
I just love drive-by downvotes.
 
9:03 PM
@loosebruce I dont control the proxies I just get them from a client. I have ip port user and pass.
 
@loosebruce It's over 90000!
 
@loosebruce can I get those from ip.port.user. pass?
 
What is an Javascript? Do I need to update Java?
 
@HarisBjelic wat
use pastebin for large code snippets
 
no, use hastebin
 
9:05 PM
no, use wastebin
because that code is sloppy
 
@ShotgunNinja Sorry, where Can I show here the commands? I'm new sorry ^^
 
@HarisBjelic , what you should do is put all inputs under one form. Use Javascript or jQuery to select that form. Then loop through all input elements. Then for each Earn/Buy/Result calculate
 
9:06 PM
@HarisBjelic where are you from?
 
@ElliotBonneville , that site is not blocked by my firewall. Thanks +1
 
@macroscripts from switzerland
 
@HarisBjelic refuge? :)
 
* refugee
 
0
Q: Obfuscate Images in EaselJS

user2081518Is there any way to protect your sprites on EaselJS? Currently is too easy to download the sprites. On chrome just go to console -> resources like this I made a resarch before i made this answer and found this topic . That could be very nice. Also we don't need to save the slices in a json li...

sigh
 
9:07 PM
@macroscripts Sorry what? ^^
 
I want to be obfuscated .-.
 
@HarisBjelic the name is not from Switzerland ^^
 
Next up, on Stack Overflow: How do I obfuscate my English so that people wouldn't be able to copy?
 
Well, I got side tracked with the interesting conversation in here. I just started using Backbone.js

Has anyone else used it?
 
everyone
 
9:12 PM
@loosebruce

My problem is this. I have a last Result from the db. For Example, 12'000.
Soooo.

I want input how many money I earn this day. then add it to 12'000
I also want to know how many Money I lost this day. then 12'000 - (for example 50 dollar)

Its like so:
I selled fants, 500, (12'000 from the DB) + 500
OR
I bought new clothes, -300, 12'000 - 3000

Do you know what I mean?
I must get the result for ever Result Input
@macroscripts From Bosnia :)
 
@HarisBjelic wtf? From there??? I worked with those guys... know a lot about Bosnians
 
@macroscripts Where are you from?
 
@HarisBjelic from around bosnia
 
@MadaraUchiha they already do that a lot, lykdis
 
@AwalGarg Ugh
 
9:14 PM
@MadaraUchiha Yeah cool, a Uchiha in the chat :D
@MadaraUchiha I have the rinnegan
@macroscripts Cool, but I was a long time not in bosnia. I live and work here in switzerland
 
@HarisBjelic good for you. I take it you went out from bosnia long time ago
either during war or after war... looking for a job.
 
user3961151
Hi.
I'm trying to set image in the middle of the object like in background-size: cover.
For some reason, to set the margin to minus half height of width, it uses the old height or width.
How can I fix it?

http://jsfiddle.net/beb8o2g6/
 
stackoverflow.com/questions/25943488/… my question was 'd…again
is it really too broad?
 
@royhowie It's a canonical, so no. Canonicals are meant to be broad.
... If you right click in a canvas you will get only a screenshot of the stage. At least you know what is EaselJS? — user2081518 13 mins ago
Could anyone just... please?
 
AOL screwup
 
9:32 PM
Can we display a message to newbies when their question is downvoted stating something like "Hey your question was downvoted, please don't take this personally, improve the question based on the help guide and/or comments, and the downvotes will become upvotes :)"?
 
9:46 PM
@MadaraUchiha jspm's dependency resolution is as bad as npm
 
@AwalGarg How so?
From what I understood, it's flat
cc @Mosho
 
@MadaraUchiha downloaded a package called isArray about 3 times when installing react, each time it downloaded it separately :/
caching works on incremental installs only
 
user1648409
Anybody knows why:
$(c).click(function() {
var el = $(c).children("input, textarea");
$(el).focus();
}
doesn't work if i have x different of those c elements? (only the last one will get focused). Do the listeners some sort of disappear?
 
you can't focus more than 1 element at once
 
user1648409
@AwalGarg sure, but lets say i have those 10 elements which are divs and contain a textarea or input field - i just want to click on one of those divs and they will focus their input or textarea child - that code should work should it?
 
10:04 PM
@Shiuyin Inside the listener, you're re-selecting $(c) while you want to operate on the element the event was triggered on.
 
@Shiuyin oh that, replace c with this
 
@rlemon You promised hangouts, filthy lier
 
@Shiuyin jsfiddle.net/usrh1aLt this is what you want?
 
I .. but .. umm .. how long you gonna be up
I was just about to make dinner
 
user1648409
@AwalGarg correct. just somehow it doesnt work for me, if i change it to this :D
 
10:07 PM
@Shiuyin you mean it doesn't work for you in the fiddle?
browser?
 
@Shiuyin Show the entire "fixed" code?
 
user1648409
@AwalGarg nono, the fiddle works perfectly fine. If i change my code on my specific project to $(this).children("input, textarea").focus(); it doesnt work
 
user1648409
@Zirak $(this).children("input, textarea").focus();
 
No need, you've ruined it.
(just say whenever)
 
@rlemon zirak never sleeps! duh
 
10:09 PM
@Shiuyin Are you sure the event's triggering? Are you sure the input/textarea is indeed a child of the clicked element?
 
@AwalGarg .. he waits.
 
@Shiuyin put it in a fiddle like I did
 
user1648409
@AwalGarg cant, those are about 700 lines and need a lot of stuff to run...
 
@Shiuyin then you have your problem somewhere else, happy debugging
 
user1648409
this is the complete function:
function container(className) {
// Produces a simple draggable container of type className
c = $('<p class="draggable"></p>');
$(c).click(function() {
$(this).children("input, textarea").focus();
});
$(c).addClass(className);
$(c).css({
position: "absolute",
top: 0,
left: 0
});

return c;
}

I then call the container() function which just produces the container and append() the textarea or input
 
10:10 PM
!!tell Shiuyin format
 
@Shiuyin Format your code - hit Ctrl+K before sending and see the faq
 
So much wasted jquery calls ;-; c is already a jquery object
 
user1648409
@CapricaSix sorry, didn't know about ctrl + k
 
user1648409
@Zirak i suck at js xP
 
you can post unformatted code if it irritates Zirak, I can beautify it in chat anyways :P
 
user1648409
10:13 PM
function container(className) {
    // Produces a simple draggable container of type className
    c = $('<p class="draggable"></p>');
    c.click(function() {
        $(this).children("input, textarea").focus();
    });
    c.addClass(className).css({
        position: "absolute",
        top: 0,
        left: 0
    });
    return c;
}

Is this better in terms of jq calls?
 
c is also an implied global, put a var
 
put a console.log inside the click handler to verify it is being called (or a debugger; if you prefer)
seeing your css makes me think click handler is not being called due to stacking problem
 
user1648409
@AwalGarg AH - i found my mistake
 
user1648409
thanks a lot you 2!!
 
user1648409
you sent me on the right track
 
10:15 PM
@Shiuyin which was?
 
user1648409
@AwalGarg uhh.... hard to explain in a 700lines of code base...
 
cool, enjoy
 
Just listen to this and be happier
(very sad song, fun performance)
 
or you can alternatively not listen to it and be more happy
 
No, you'll be happier for having heard it
 
10:18 PM
!!should @Shiuyin see that video if he wants to be happy?
 
@AwalGarg Nuh-uh
 
@Zirak you have failed miserably
 
user1648409
@AwalGarg on it sir
 
Hello
 
user1648409
oh wow
 
user1648409
10:25 PM
the selecting of inputs and textareas works in one direction now - the second i hit the "back" button, it just explodes and doesnt work again x)
 
user1648409
oh man, i hate js
 
The web is terrible
 
@Zirak no, you're terrible
 
We're terrible, together.
 
yes we are
 
10:31 PM
indeed, you both are terrible
 
I'm now going to embark on a fun Lisp journey
where I will add custom properties to class fields
i.e. in classic languages you can have public String foo;, I'll now try to have public String Identifier CanRead Foo;
(defclass foo ()
  ((foo :type string :is-identifier)))
what I'm about to try ^
 
posted on May 15, 2015 by Victor A. Rodriguez

Normalmente en las ofertas que suelo ver en el mercado de automóviles me encuentro con la impresión que en la compra con cada salto de categoría dentro del mismo modelo el salto de dinero esta mayormente dedicado a brindar facilidades mas relacionadas con una utilidad emocional cuanto más va subiendo el precio. Por ejemplo hace unos años el salto de un auto "base" (aire acondicionado, cierre

 
@FlorianMargaine You lead a wild life
 
don't I
 
so... we're digressing phones back to the early 2000's
 
10:41 PM
NEW: Cell phones, mobile devices you can call people with!
 
10:52 PM
1277
Q: Our security auditor is an idiot. How do I give him the information he wants?

samA security auditor for our servers has demanded the following within two weeks: A list of current usernames and plain-text passwords for all user accounts on all servers A list of all password changes for the past six months, again in plain-text A list of "every file added to the server from re...

 
11:06 PM
@Zirak oh god
 
dinner: pan fried potatoes with onions and kraut and some corn on the cob
 
sounds mighty starchy
my dinner so far is much less starchy, but also lower in protein and general nutrition: nothing
 
we were talking about potatoes earlier today
made me crave them
 
that does sound pretty good, my mouth is watering.
 
@AwalGarg 201010, India
 
11:24 PM
@darkyen00 yes?
 
@Zirak u leave?
 
11:39 PM
@rlemon you didn't evenite me in hangouts
!!> [].every( function(){ return false } );
 
@darkyen00 true
 
^ Very useful for me
 
!!> "trolo" + (new Array(5)).join("lo");
 
@ElliotBonneville "trolololololo"
 
That's fun.
it's sandboxed, right? no alerts?
 
user2620028
11:51 PM
@rlemon I feel like the people buying into this got hit on the head really hard...
 
after opening it i went WAT -_-
 
!!>console.log(Object.keys(Array(5)), Object.keys(Array(5).fill()));
 
@AwalGarg "undefined" Logged: [],["0","1","2","3","4"]
 
!!> "Elliot got hit on the head really hard" === true
 
@ElliotBonneville false
 
11:54 PM
@rlemon I'd like to tickle with one
> Strong cryptography only means the passwords must be encrypted while the user is inputting them but then they should be moved to a recoverable format for later use.
 
!!tell elliot eval !!"Elliot got hit on the head really hard" === true
 
@elliot true
@elliot true
 

« first day (1672 days earlier)      last day (3292 days later) »