« first day (1787 days earlier)      last day (3383 days later) » 

00:22
@ʞɔᴉN you get a new job yet?
Hey guys
@SomeKittens eww
00:38
@SomeKittens no I need to take a pic of myself for my Hired profile
00:49
Oi people
good morning !
Don't you oi me.
@phenomnomnominal how's the talking?
It's coming back now. This is my 4th day off work and I'm going nuts. Gonna go back tomorrow
01:45
hey guys
i'm a self-taught developer looking to outsource a few projects.. where's the best place to find people? young and broke so i'm working with a tight budget too
That's a tall order
you get what you pay for
I find people tend to be wherever other people are.
Yea may have sounded heavier than i intened
intended
If you believe in the projects, do them yourself
say i want someone to set something up to parse a website (stubhub) and store the results in mongo
using css parsing
it's a lower priority, but would be a plus to have
01:49
@pingo stubhub have an API
personally, I usually charge $1k/day of work
What rates do people charge / where can i post project based work
check out freelancer.com maybe
And @phenomnomnominal looking to scrape historical sales.. their api doesn't let you do that
(i dont think)
dunno if you'll get quality work but budgets are usually quite low there
01:51
and ok cool thank you @ʞɔᴉN
might I assume you're a student?
1 year out
what'd you study?
honestly I think you'd be better off doing it yourself if you have some understanding of what you want and how to do it
you'll spend more time trying to explain what you want than if you just did it yourself IMO
user406009
^
01:53
@pingo kimonolabs.com I've used this for some scraping stuff before
finance major.. was working at a hedge fund but am trying to create a few apps now
@phenomnomnominal that is quite interesting actually
@ʞɔᴉN yeah it's really cool
and @ʞɔᴉN that is helpful... my gut is telling me that as well but its always something in the back of my head
Before I go and annoy people, does jQuery have their own chatroom?
01:54
@Hexadron 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.
and thank you @phenomnomnominali i will check it out
@Hexadron i don't think so? if there is it would be pretty depressing haha
$("#auto-complete-list").on("autocompleteselect",callback); I cant get any of jQueryUI's autocomplete events to fire
@Hexadron create a self-contained example
I also tried binding when the object is initialized to no avail
SomeKittens, jsfiddle ok?
01:56
jsfiddle is fine
OH no
I think I found a bug in jquery UI
an older version...
@phenomnomnominal , jsfiddle.net/qcgs3hh0/1
This is what I am trying to do
You can see it works there
Im using jqueryui 1.8
hmm
@phenomnomnominal
Should I just polyfill
@Hexadron add that version to the jsfiddle so you can see if that is in fact the issue
@phenomnomnominal kimono is dope
02:10
@phenomnomnominal, Ok that proved me wrong
Now I am lost :(
@phenomnomnominal, Something is preventing it binding correctly
I just ran the whole binding in my console and it worked
user3233318
02:40
Hey Jan
user3233318
Remember that could you were helping me before?
user3233318
I had to recurse over all tags, without that it wouldn't work on chrome android.
user3233318
code*
m59
m59
04:14
anyone know with lodash (or without):
var x = [{f: 1, b:1},{f:2, b:5}];
var y = [{f: 1}, {f:2}];
var result = // x, but with objects like f: 1 removed (duplicate properties
filter and !find x.f === y.f Not bad.
05:03
@FlorianMargaine neeeat! (I'd have to vamp you some day and figure out how you manage to prototype stuff so fast)
05:16
@Zirak I went and left my totally awesome comments on all your issues, your welcome
05:32
you're*
I've a string value "Foo_boo", i want to split it by"_" and assign the value to the new variable in one line i tried like this

var str = $("#id').text().split('_')[0];
i want to assign only 1st value
i.e, Foo
@AnirudhRautela 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.
var str = $("#id").text().split('_')[0]; is the correct way
05:58
Gooooooood morning!
yes its worked @AnirudhRautela :)
hello guys, i have a question.
Suppose on clicking a hyperlink I send an ajax request. So when user get directed to a new page (on clicking a hyperlink) will be ajax request stop? or will it continue even on a new page?
good question, what are you doing with our success data ?
what kind of data it is ? JSON? HTML ? String ??
the answer is it will stop ofc, it will not run on your new page
no, i am not doing anything with the response. I will only send a 'completed' signal while I am directing users to a new 'Thank you' page.
'completed' signal to server
You could just build it and try it out
@Cerbrus, the problem is that I can't be sure how things will behave with different browsers, operating system and with different connection speed. Maybe for slow internet connection it will take a time to load a new page and in the mean time ajax request will complete but for fast internet new page will load immediately so there will not be enough time for ajax request to complete. So if I try out something that's not full proof
@ShubhamNishad user agent can do whatever it wants, spec doesn't mandate what should happen with xhrs on unload events. And even if it did, implementors wouldn't care.
As for the general case, ff and chrome, to my knowledge, disconnect all sockets on unload
@AwalGarg, ok thanks. I think i better off sending data as a get parameter rather than through ajax
yes i agree with @AwalGarg, your ajax call will run at cost,if you don't care about your success data
@Simply, yes I don't care about success data. I only care that ajax request reach the server. But i was not sure whether at the server side (php) stop executing if client disconnect or not.
from disconnect i mean left the page from where ajax originated and moved to a new page
06:20
@ShubhamNishad think your model of requests again
dude just go for it i was running ajax call on onunload method its running as excepted.
@Simply, thanks I'll try
06:38
Survey: Do you use Bluebird's using in real code for API ? Does it make the whole code really better ?
5
installing ubuntu over network. everytime I think now the installation has completed, it starts "Retrieving file n of m (few seconds remaining)" :(
@DenysSéguret github.com/ralt/pastie
As far as real code I can get, since I don't use node at work
@AwalGarg Just Do It™
That was quite literally a weekend project
06:55
@FlorianMargaine It doesn't really change anything to your code. What I'm interested to know is how it turned for people exposing an API which doesn't involve explicit resource liberation for the user of the API. I suspect this won't turn well in the end but It's just a suspicion.
@DenysSéguret yes
@Abhishrek and yes ? Is it local use or do you expose a no-explicit-resource-liberation API ?
Can you explain a little what no explicit resource liberation means ?
What I do is to write simple wrappers to get the connection with a disposer and then forget about .close on connection pools leaving it to the disposer,
@DenysSéguret
@Abhishrek Like in C++ where after you do Pointer *ptr = new Pointer(), you have to do delete ptr. No explicit resource liberation I'm assuming means the opposite
If you have an API passing that API to other parts of the code which thus don't call anything to close the connection, then it's what I mean with "no explicit resource liberation". You didn't encounter any problem in complex tasks ? Do you rollback on exceptions ?
07:09
if servers didn't automatically close connections, the internet would be a ghosttown
@Neil got it.
That's what I call an explicit resource liberation done by the API user: github.com/Canop/miaou/blob/master/libs%2Fws.js#L562
@DenysSéguret uh?
@DenysSéguret What I do in mine is to rollback catching errors
more like the withTransaction example
in the api docs
@DenysSéguret the point of using is to explicitly get the resource, and it's automatically freed when you get out of the using block
so I'm not sure I get your point
07:16
so i leave it on disposer to free the resource, but everything else still stays in my control
@FlorianMargaine good morning !
it's the very principle of RAII, which is used in C++ at a big scale
@Abhishrek morning
Hows your son ?
good!
he slept 10h this night!
@FlorianMargaine My question (not a point) is whether it turns well in real programs where the code called from withTransaction is complex and may follows various branches
07:19
@DenysSéguret have you used this in java?
I wonder if there is a way to know when only the html has loaded in an iframe
@DenysSéguret this principe is very well known and used throughout languages, so it is battle-tested
@FlorianMargaine yes, of course, and it's useful but you also mostly use it locally, you don't call big functions transaction unaware. And this is very dependant of the language and the error handling
@DenysSéguret you're supposed to use using the same way you use try() in java
@DenysSéguret no, that's what I mean... using is java's try(), or C#'s using, or python's with, etc
it's exactly the same
You still don't get my question
07:22
I guess so
my question is about exposing an API like doThingsAsYouWantResourcesWillBeLiberatedAnyway() to other devs
like in this question
@DenysSéguret Are you worried about a case where the .close has occured and something still has a reference to that ?
3
Q: Convert a method with a callback to one that returns a promise with cleanup

Jeff MercadoI'm trying to write a function that performs an asynchronous task and returns a promise while ensuring cleanup occurs after any callbacks are fulfilled. However to do this, it seems I need to know the callback in advance so I can ensure that it happens before the cleanup happens. The current st...

user3119231
morning :)
@Abhishrek more about dev users trying to use a finished transaction. Like somebody calling setTimeout(stilUseTheTransaction...
07:26
Yeah got it
That's why I wonder if it's safe to expose what OP (see linked question) exposes, hence my call to real world experience
Of course there's no problem in micro apps
!!arch with xfce or no gui or i3?
@AwalGarg i3
@AwalGarg stumpwm
no lisp plz kthnx
07:44
ubuntu server alternate install doesn't install man out of the box?! wtf??
oh yeah, ubuntu cloud is very stripped down
It didn't even have openssh-server... I'd expect a server install to come with that, atleast
even debian doesn't come with openssh-server
morning, how can i check if an object is this "[]"
if i do

var r = [];
if(r)
i get true....
r.length is what am after ?
Array.isArray(r) && !r.length
07:48
ta
@FlorianMargaine anything I should install now from the top of your head?
@AwalGarg tree, tmux, strace
@FlorianMargaine what's tree?
florian@debian:~/src/c/hermes$ tree
.
├── autogen.sh
├── configure.ac
├── debian
│   ├── changelog
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── hermes.install
│   ├── hermes.postinst
│   ├── hermes.prerm
│   ├── pam-configs
│   │   └── hermes
│   ├── rules
│   └── source
│       └── format
├── Makefile.am
├── pam_hermes.c
├── README.md
└── scripts
    ├── create-test-device.sh
    ├── id_rsa
    ├── id_rsa.pub
    ├── mount-test-device.sh
    ├── README.md
    ├── runme.sh
    └── write-test-device.sh
@AwalGarg ^
tree is awesome
07:58
@FlorianMargaine so... ls -r?
@AwalGarg less cluttered
hmm, this should be a native switch to ls
@AwalGarg * -R :)
crl
crl
!!chrome or chromium?
@crl chromium
08:01
@ivarni yeah R sorry. why the *?
Isn't that the usual prefix to nitpicking people's typing?
oh, I thought you meant ls * -R
because I'm fairly sure the entire room understood you meant --recursive and not --reverse
Tx3
Tx3
any cleaner or shorter way to express this: _.map(goal.goals, function (curr) { return curr.toObject(); })`
goal.goals.map(curr => curr.toObject())
08:07
Hello. Assuming I have unminified JS file ( big one) and I want to know if it will pass minification without silent errors on runtime. is there any online tool which can help me?
@phenomnomnominal maybe something like goal.goals.map(::toObject) will be possible? Not sure.
(minification can pass OK , but runtime errors might be occur ( if built uncorrectly).
@RoyiNamir Just use uglifyjs, I have no idea what silent runtime errors you could mean
@FlorianMargaine that's cool as hell, ES7? Is there a proposal?
@FlorianMargaine no
:: won't return a function
08:10
@RoelvanUden here you go :
var myFn = function () {
  alert("Surprise!");
} // <-- No semicolon!

(function () {
  //...
})();
(there was that spiky hair avatar guy who wanted it to do that but nobody agreed)
@RoyiNamir A good minifier handles that for you. Check out uglifyjs
OK tnx. ( I already know uglify , but didn't know it can handle it :P)
@RoyiNamir It just follows the automatic semicolon insertion rules ;-)
Tx3
Tx3
@phenomnomnominal Sorry to be lame, but how about pre-ES5 world? :-)
08:13
Or jslint/jshint/eshint code before minification
@Tx3 then nah, what you have is fine
@FlorianMargaine actually looks like they refreshed the proposal, so maybe yes
@ivarni That's not the point
Tx3
Tx3
@phenomnomnominal I was checking a lodash function called _.invoke, but did find good shorthand for that
The point is that you have a well formed JavaScript code, which passes linting and unit tests, and the minifier screws it up by, for example, removing semicolons from the wrong places.
08:17
The example would not pass a linter?
@FlorianMargaine Even Java has that
I. Wants. It.
@RoyiNamir Though you should really fix errors like that if you find them :P
2 mins ago, by Madara Uchiha
@ivarni That's not the point
1 min ago, by Madara Uchiha
The point is that you have a well formed JavaScript code, which passes linting and unit tests, and the minifier screws it up by, for example, removing semicolons from the wrong places.
@ivarni That depends on how you set up your linter. You can allow a style without semicolons and have it pass as valid.
minifier shouldn't remove semicolons, should it?
08:19
@Neil Of course it would, to save bytes.
(function() { console.log(42); }); would safely minify to (function(){console.log(42)}) without problems
Why wouldn't a minifier save those two bytes?
A bit risky isn't it? I suppose they wouldn't do it unless it were interpreted correctly
@Neil Some minifiers are better than others.
@Neil here's a well formed example
var myFn = function () {
  alert("Surprise!");
};

(function () {
  //...
})();
And here's the crappy minified result
var a=function(){alert("Surprise!")}(function(){})()
Oops.
Right, good ol' hanging semicolon saves the day
A good minifier should handle this case correctly and not drop the semicolon, resulting in the correct example:
var a=function(){alert("Surprise!")};(function(){})()
Has anybody made an inapp browser ? Ironically with javascript :-/
and no not iframes :P
08:28
how do I make a sourcemap from a sourcemap object?
@Abhishrek A web page emulating a browser? Yes
lmfao
pinged me enough ?
:( Sry
@Neil for unholy madness i need a custom sized webview in a cordova app
the apache plugin is shitty wont let me control height and width yuck
window controls don't work like that unfortunately :P
08:31
hello everyone, does anyone here ever use fancyibox plug-in? is it possible to hide/remove the "view all" tab?
@Neil I have written them in java and objc
i mean you can do it, but they really don't work like dom containers in that they don't "stretch" well
they easily let me change the size
oh i am not bothered about size
What's the problem then?
I just need to able to define size once
as in i want it to be top 64 take full width, full height - 64px
08:33
@Neil Agree :-) Just asking though.
@RoyiNamir Not saying you wouldn't :P Please don't misunderstand me
bigger problem is
i want the events as they happen, as in DNS Resolve, HTML Loaded, Rest Content Loaded
My UX engineer is pixel perfect -_-, and she wants the thing to be as smooth as hell
Is hell smooth?
@RoelvanUden as hell
@Neil :D
08:36
@Abhishrek If there's no hook for those events, not much you can do
never heard of anyone requiring a DNS resolve event though
Most likely I am gonna have to write lot of custom code
it might be that that doesn't always happen either, if it is cached locally
Hi! Can anybody help me with file upload using FormData in IE? Especially why it passes the whole path (C:\...) as a filename and doesn't use the filename specified in the .append() ?
@Neil this is what she wants
when we know something will start loading -> progress bar 30%
that point - page loaded rest 70% actual loading
Did you explain to her that this is the figurative equivalent of asking someone to walk through a mountain rather than walk around it?
08:38
Yes
and she linked me this
Thankfully she doesn't want the ripple :-)
@Abhishrek If the page makes an ajax request, you can make a progress bar that increments and has no meaning
which is what i was thinking
Like what this library does
just asymptotically move it to 100%
remmina you so awesome. you always save my life.
08:40
@AwalGarg are you okay ?
I'm so glad I don't need remmina anymore
people like progress bars for some reason, even if they don't mean anything
@Abhishrek I am truly awesome
@Neil satisfaction
@AwalGarg okay then. heard the bad news ?
I used to. My old company provided some windows hosts to test IE, and the machines were available over rdp
08:41
@Abhishrek which one?
they say that people are less anxious at a stop light if there is a timer indicating when it will turn green
@AwalGarg Payment Banks & PayTM suspiciously getting that license over LIC :-x
though LIC is bitch enough and is applying for a full bank license :->
@Abhishrek ow shit :( what does that mean?
@AwalGarg PayTM being there kills all mobile wallets like a handed over monopoly by govt of India. (oh and count Vodafone and Airtel Money completely different they are targetting villages like Indian Postal Services where their broad and deep "agents" & "recharge walas" can help them penetrate
worse, they charge merchants 5.5% (so uncanny !)
fuck everything
08:50
@AwalGarg you sound suspiciously drunk
:(
there has to be a limit to stupidity
@AwalGarg explain ?
@Abhishrek gtalk?
am on it
> "The difference between stupidity and genius is that genius has its limits." - Albert Einstein
08:56
@Neil has / knows ?
I suppose a genius doesn't have to know his limits, but it helps

« first day (1787 days earlier)      last day (3383 days later) »