« first day (1566 days earlier)      last day (3381 days later) » 

12:00 AM
but $200-300 a year to showcase my work and potentially get me a job and a better online rep with employers is a small price to pay
(imo)
also joke domains.
those cost me probably about $100 a year
 
Is this for lorem pizza?
or all together
 
that is my own fault
@Luggage I have ~5-6 sites on one server
dozen+ domains
 
I wish I had better things to do with my domains than jokes
 
Assuming a US-like cost of living a few hundred a year is nothing. Your tools cost a lot more
 
yup. it isn't a little money. but per year it is nothing
 
12:02 AM
If you're in an area where you live off of $10 / month, then.. it's a butt-load
 
spend $1 less a day. BOOM server is payed for
 
Wish I'd known about this site
 
@Luggage well ofc. but then I assume he wouldn't be on the internet :/
shit costs money
 
meh.
 
@rlemon when you have them skills (skills that could get you hired in places like Facebook and Google with not much difficulty), it isn't that bad. But me on the other hand...
 
12:03 AM
don't discredit yourself
you are your worst critic and enemy when you do that
people value you first off how you value yourself. you are worth good money. believe it and they will too
 
You can find some nice cheap hosting. I'm assuming rlemon has a VM. But if you don't need full control you can get even cheaper
Amazon has options that aren't full VMs
 
this convo still
 
guthub can do some sites.
 
dude, just go shared lol
 
lol
that is what I'm saying
you can get $5/mo hosting
 
12:05 AM
$3.96 a month dude
 
I was rounding ;)
 
@Loktar I left after you, thought about it, decided I'll just go with some free host
 
oh shit, thats at 3 years upfront :P
7.96 per month
@DemCodeLines yeah just front end stuff GH is awesome
 
for everyone in the room. if you do shared hosting. DO NOT go with ipage.
horrible horrible service and slow as molasses
 
or godaddy
godaddy has crappy shared hosting
 
12:06 AM
or 000webhost
 
1&1 did too back when I used them
and Yahoo
but not sure if yahoo even provides hosting anymore
 
geocities4lyf
 
^ this!
in its time. it was a great service to the world
 
what type of site/app is this, btw?
 
google webpages or w/e otoh.....
 
12:08 AM
@FlorianMargaine wtf
 
@Luggage personal site. Like people do, I think rlemon has one too.
 
I used to pay that actually, now I have a vm for like $180 a month + my colocated which is another $90 or so
 
rlemon.ca there is no backend
 
@KendallFrey neocities, man!
 
static or app?
 
12:09 AM
.
 
github pages.
 
isn't node serving the content?
 
lemonmeme.com no backend
 
man you could go with a cdn for pennies lol
 
@rlemon The problem is, it's not the personal site itself that has a backend, but other projects do. Which I plan to host on the same server.
 
12:09 AM
lorempizza.com backend in node or php. options are great. node has many free hosts that are really good
@DemCodeLines then I suggest paying a little money. ofc it is upto you, but this is what I suggest. I did it myself, so you can understand I at least understand the money sink.
I make $0 of any website I run
 
do you think I should go with ram node?
the basic 128mb 12gb one?
 
Since you should have somethign that's deployable at any time, you can start with a $0 and if it sucks, move.
 
@Luggage You mean start with a free host?
 
sure
 
Well whoop-dee-doo. My BMO bank account has been suspended. Good thing I don't have a BMO bank account.
 
12:14 AM
wat
 
Ohh, beanstalk just spawns an ec2 instance.. that won't be cheaper..
 
How about web faction?
 
@BenjaminGruenbaum Y U NO PUT RELATED FIXES IN ONE PR?
 
Night!
 
12:22 AM
@rlemon @FlorianMargaine COME GET SOME !!! :-P
 
@jAndy I was talking in the future ;) in ~3 months ... ITS ON GIRLY MAN!
:P
 
hehe, I like it
nobody would even take me serious denying that... knowing that I own a pinky unicorn that is sitting in my living room
 
lol
I'd spar with you if we ever met and had a gym and equipment to do it with
sounds like fun
 
sounds interesting :-P
 
hey bizzles
 
12:27 AM
Anyone here using Node Serialport?
 
that aurelia thing sounds interesing too, man
 
@Charlie I am
what's up?
 
@rlemon Hi... I'm having some trouble with reading a port after reconnecting... After a while, it becomes really slow, and then crashes.
 
ok, I can't help without seeing code as well ;)
 
@rlemon I'm trying to narrow down the causes. I have a SO question here - stackoverflow.com/questions/28200286/…
 
12:33 AM
kk i'll take a look
your use of labels disturbs me
 
@rlemon Cheers. :] - Btw, isn't also possible to read a serial port from raw NodeJS?
 
 this.openSerialPort = openSerialPort: function(port){
what are you reading from the serialport? @Charlie ? just a stream of text?
 
in angular, can you have different files registering a .config for something like an httpInterceptor?
 
okay this error made me laugh controllers.js: line 30, col 20, Label 'label' on Chicken statement (using dummy data)
 
@rlemon - Oh! That should have been just - this.openSerialPort = function(port){ - ^_^. The yield is a binary stream.
 
12:38 AM
current.device.close() accepts a callback for when the port actually closes.
move currentDevice = new Device(); into that callback
might not be the cause, but it is a good idea anyways
also when you close the port, all listeners are detached. so you don't have to make those calls manually
if you ping me tomorrow I can send you the source of an application that reads a serialport and waits for input. on input it collects and parses stream data in node for node-webkit (mind you a much more recent version.. which I have a workaround to get working on windows which I know it doesn't do right now)
 
@rlemon I'll certainly try the device.close() callback thing, and will test the listener behavior on close again. If I wasn't so vested, I'd be tempted to write a low level module... Thanks for the advice!
 
@Charlie can I assume you've using such old versions because of the windows incompatibility and lack of workaround for node-serialport and node-webkit ??
 
@rlemon Ah... It's a little more complicated than that. I'll have to check my GIT log to recall why I'm on an old version of Node Webkit...
 
there is a lot of issues with the two on windows.
but I've solved it! :P
took like two months. such a simple fix. :P
upgrade nw-gyp and then rebuild the target/namespace of the node-serlalport package using an updated version of node-pre-gyp
bam! working on windows.
 
@rlemon Ah... That was it... I wrote a security object for the app I'm working on, and wanted to use the NW Snapshot stuff to protect the code.
 
A_l
12:50 AM
Hello All,
when I try to use $('li').filter(function () {
some boolean
})
If I put it in loop it not work. only if I call it for once.
their is another way that works?
 
filter is a loop
 
@rlemon It was broken in versions later than 0.7.5, I think. There were also some issues in compiling some native modules on later versions of NW, so I rolled back. I doubt this serialport issue is related to the version I'm using, but I'm weary of that, certainly.
 
A_l
yes but I want to do it several times the filter.
 
ohh I wasn't implying your issue was due to this. I was just suggesting a fix to an issue I myself had with recent versions and windows.
@A_l then you will have to provide more context.
 
@rlemon I know... I was just griping! :}
 
A_l
12:52 AM
Ok,I have some <li> with data-id, and I want to remove the <li> that have the correct data-id
if I do it once with the filter it works
 
basically I've created several applications using node-webkit to communicate via serial. I just recently got them working on windows.
I don't have any of the source with me atm :/
but I will tomorrow and will be glad to help you get past your error if the close callback doesn't work
 
A_l
@rlemon if I call to the filter 1 time or one and wait and than again it works. but if I do it 2 times with loop it doesnt remove.
 
show me the loop code
for (var i = 0; i < 10; i++) {
  $('li').filter(function() {
    return $(this).data("id") === i;
  }).remove();
}
 
A_l
thanks
 
np
 
A_l
1:00 AM
this is not remove all the items
$('li').filter(function() {
return $(this).data("id") === 1;
}).remove();

in this case it works. (no loop)
 
in the loop, what do you expect to be different?
like, what is actually 'wrong' in what is happening
jsfiddle.net/dtca0b0q this works for me
 
A_l
It remove 0 items
 
is $httpProvider in angular version 1.3.1? It keeps giving me an error when I try to use it
 
@A_l removes 1-3 for me
 
A_l
@rlemon yes I see. I dont know what the different I will check. thanks!!
 
1:05 AM
see my second fiddle.
there is no reason for the loop
unless you're showing me not real code
 
A_l
this is not goes really from 1 to 10..
its more like items in array
Thanks!
 
@corvid I'm using it in 1.2.23, not sure about 1.3.1
 
@taco have you used some interceptors in yours?
 
Doc shows it in 1.3.1 code.angularjs.org/1.3.10/docs/api/ng/provider$httpProvider
hmm, SO jacked up the URL, just google it
@corvid yeah, I'm using an interceptor
 
1:14 AM
just for responseError
 
@DemCodeLines images.. I mean VM Images.. OVH have them you can set up a VPS very quickly using an Image (not picture)
 
pre-imaged vagrant boxes ^
 
@taco you don't have to include the providers as dependencies in the top level, right?
 
function error_handler($provide, $httpProvider, $compileProvider) {
//foo...
}
well, I finally got a treeview working in my project today. had to learn a bit about how browserify works, was racking my brain for a couple of days trying to see where the problem was. Didn't want to hack a solution in
 
@corvid yes it is.
 
howd ya do that
 
[https://code.angularjs.org/1.3.10/docs/api/ng/provider/$httpProvider](https://‌​code.angularjs.org/1.3.10/docs/api/ng/provider/$httpProvider)
 
(y)
 
so basically markdown, cool
 
1:30 AM
bleh. Just trying to do this and it keeps failing
angular.module("app")
.factory("errorInterceptor", ["$q", function($q) { ... }]);
.config(["$httpProvider", function($httpProvider) {
  $httpProvider.interceptors.push("errorInterceptor");
}])
 
KSP Y U so goddamn beautiful
 
@BenjaminGruenbaum I don't remember creds. I auth skittles to use it
 
1:45 AM
@corvid why are you using double quotes.... I always use single quotes
 
I like double quotes in case you have to use an apostrophe in a string
 
syntax looks fine to me
 
'' is less work overall
no shift
"" shift + ' twice. vs maybe having to type a single \ to escape
single quotes make sense
just saying
 
PHP is slower if you use double quotes. I wonder if it affects Javascript too
 
I doubt it
in php it differs the interpretation of the string
$world = 'World';
echo "Hello $world";
that works.
with single quotes it doesn't
 
1:50 AM
right
Doesn't seem to be the case in Javascript, according to SO
 
nope
js there is no such mechanism
 
it's a dumb hack tbh
 
closest you get is in .replace syntax (afaik)
$n stuff
but it doesn't care about single or double. just in a string
 
hey @corvid I just used single quotes and your code runs
 
yeah just got it to... weird that it didn't right away.
 
1:52 AM
w/e he wants to use is his choice. it's tabs vs spaces
 
so apparently angular is doing something in the background?
 
but tabs, like single quotes, do make sense
 
@corvid did it run with double quotes?
now I'm curious if angular breaks with double quotes
 
I don't see how it would.
js doesn't care what the string is encased in. (aside from being compatible with their outer quotes)
(again, afaik.)
there might be a minute difference in performance in the actual interpretation of them. but nothing that i've ever seen that would state that we should care
 
it worked fine with double quotes
 
1:56 AM
so what was the issue then?
 
I think I might have done something stupid or mispelled something... not sure tbh
 
Those bother me, so I usually back up my code and cmd-Y until I find the issue >:|
 
I'm just trying to figure out, now that I can intercept errors, how to load views based on the status
 
Well, the error is client-side, so you gotta push it back into the DOM
you can use angulars jQLite or jQuery to put it back in the DOM
 
don't you generally use directives? Can you 'activate" a directive with $rootScope.$broadcast?
 
2:05 AM
I guess you could, that's how I did it :|
 
i don' tknow what the deal is, but i live in an apartment near the river and i have heard nothing but boat horns all evening...ticking me off
 
I don't like the idea of updating $rootScope, but I don't know what $broadcast is
 
Guys, is there any JavaScript library to help me draw geometrical figures?
 
@redshift Maybe it's some boats on the river
 
For example, triangle with perpendicular, etc..
 
2:06 AM
@taco yea but first time its been constant noise like this for the past 2 years
 
where do you live? maybe it's a weather warning
Sharknado mb
 
stl
next to cardinals baseball stadium
 
you could check twitter and use the "near me" feature
 
@redshift on the bright side, you can have a really quick commute wherever the boats are going by doing a sweet action jump onto one from apartment window
 
lol
 
2:09 AM
@corvid good idea
my office is about 1 mile away and i still drive to work
 
it's a good idea, when you take away all the parts that make it a bad idea!
 
lol
id love to walk or bike to work, but this area of town has had 15 homicides for 2015 already...
 
Isn't that where the girls were locked in the basement?
 
@taco no that was out in the east ...i think baltimore area?
@taco where are you from?
 
okay, sorry. that shit was crazy smh
@redshift I dont know. I was a navy brat
Cali, I guess. I live in ATL
 
2:14 AM
gotcha. at least it's easy for you to move around
wish i didn't miss my home town too much
anyone know off the top of their head whether IE9 supports JQuery2+?
 
I think you mean whether jQuery 2 supports IE9
no idea
 
Well from jquery.com/download, jQuery 2.x has the same API as jQuery 1.x, but does not support Internet Explorer 6, 7, or 8.
 
2:55 AM
1.11.x*
 
anyone have much experience with getting person's location to work with maps?
n my web app I'm wanting to add a "time to destination" feature (hopefully will work on browsers for desktop and mobile)
13
A: Using Google Maps API to get travel time data

BarryThe above answer is incorrect - it's against the Google API terms of service. The Google Maps API only allows you to calculate travel time if it's referenced against a Google Map displayed to the user. You can't use the API if you don't display a Google Map to the end user of the service.

:(
developers.google.com/maps/documentation/distancematrix looks useful, but it also says "Use of the Distance Matrix API must relate to the display of information on a Google Map; for example, to determine origin-destination pairs that fall within a specific driving time from one another, before requesting and displaying those destinations on a map. Use of the service in an application that doesn't display a Google map is prohibited."
do you think it'd be okay if it opens google maps in the next page? I plan on having a "let's go" button that opens directions including a map
 
3:56 AM
@SimonSarris !
 
what
what!
hey what's up
 
Hacking away
Yourself?
 
I was actually searching chat for the thing I said about 4chan because I was having a discussion with another friend about skeptic organizations
which are like, anything but skeptical
 
how so?
You're talking about skeptics like atheists, or Skeptics.SE?
 
4:27 AM
@Shmiddty you're right in more than one way.
 
@eyeLoveFiddle Shmiddty is afk: zzz
 
@CapricaSix i just wanted to respond
the room seems dead tonight
caprica, can you help me figure out what i'm doing wrong?
modal form grabber
 
@SomeKittens sorry, was writing an email
atheist organizations
which strikingly seem to act like churches only with more petty conflicts? it's weird.
 
I dunno, there are a lot of petty conflicts in churches (saying this as someone who attends one)
But mostly, I concur. There are "non-churches" out here, which always struck me as odd.
 
http://jsfiddle.net/36tuu41o/
the javascript refuses to work
form grabber specifically
 
4:35 AM
Uncaught ReferenceError: more2 is not defined
come on doge
I love churches @SomeKittens
 
that works on localhost
 
@eyeLoveFiddle I, what
 
@SimonSarris He's not loading jQuery
 
onmousemove='more2()' onkeydown='more2()'
 
see:javascript box
 
4:36 AM
you are not defining those
 
what do you mean?
i have a lot of modals one after another
 
@SimonSarris So how did 4chan relate to skeptics?
 
how do i grab the form input?
 
@SomeKittens skeptic organizations seem very insular in their conferences
ironically they seem very un-skeptic
there seem to be acceptable and not acceptable things to talk about, things to question
just seems awkward
 
@SimonSarris what?
 
4:39 AM
alas
I must concentrate on these emails I am writing
to finish them before mid ngiht
 
Good talking to you
 
good night!
we should chat more, maybe on fb chat sometime
I'd love to hear more from you
 
aby advice?
any
innerHTML="echo";
 
waddup homies!
 
sweet. Kind of got angular.js authentication working
 
4:54 AM
the javascript box won't work for some reason
 
5:07 AM
works for me
 
@eyeLoveFiddle Also same, modal dialog opens without trouble
 
6:01 AM
Hi, in angularjs...when you want a controller-to-directive (with isolate scope) communication...is it good to do a scope.$watch inside the directive on a parent scope variable. Or is it wise to use rootScope event listeners inside the directive?
 
6:20 AM
@SomeKittens because I did it from the browser :p
 
Did what?
 
hello
any one knows any plugin that can help me plot Half Pie chart?
Javascript/Jquery
0
Q: How to Plot a Half pie chart in Jquery

VikramI have two form arrays, $expenditure = $_POST['expenditure']; $revennue = $_POST['revenue']; I have to use the values from these array and plot a Pie chart ,Like half of the pie chart will show the relation of expenditure and other half revenue I tried using Jqplot something like this $(do...

 
6:46 AM
@rlemon I was actually pretty drunk when you wrote that.
 
7:00 AM
@SomeKittens edit the files, in GH
 
@BenjaminGruenbaum oh, you n00b
also you got the URL wrong
 
7:13 AM
I don't think I did
 
oh, it's a redirect
 
 
1 hour later…
JS always makes live happier :) Like for example I was trying to remove a bunch of elements from array by index :) What I haven't thought through is that by removing elements I constantly change the position of other elements in the array. Therefore if I have array [0=> 'foo', 1 => 'bar', 2 => 'baz'] and I remove element at position 0, then on next iteration will be unable to remove element at position 2, since it will be at position 1 :)
 
Start removing at the end.
 
@Eugene You're looking at the problem wrong. What are you trying to do?
var idsToRemove = [0, 2];
var arr = ['foo', 'bar', 'baz'];
var removedIdsArray = arr.filter(function(el, index) { return idsToRemove.indexOf(index) === -1; });
 
First I was collecting indexes, that I need to remove and then I tried to remove them.
Hmm. Looks oretty neat
 
@Eugene Create a new array without the elements whose index is in the idsToRemove array.
So now all you need is to construct the idsToRemove array
And the original array is untouched, you can use it, or discard it (by not returning it out of the function, for example)
 
8:40 AM
Yep. So filter doesn't change elements position until it walks through all of them?
 
@Eugene filter doesn't touch the original array.
It creates a new array, with only elements that pass the filter function.
 
Ou. I see. Great.
 
arr is still ['foo', 'bar', 'baz']
 
Thank you very much
 
removedIdsArray is now ['bar']
 
8:41 AM
I did solve my problem by reversing the array with ids, since it was ordered. :)
 
@Eugene Yeah, traditionally you'd either reverse the array, or iterate it backwards.
for (var i = arr.length; i >= 0; i--) {
Then you can safely remove elements
 
forEach :)
 
But filter is better
@Eugene This is JavaScript
 
Yep. Agreed.
 
PHP doesn't even have filter.
 
8:43 AM
@SecondRikudo array_walk
Pretty much same thing
 
@Eugene not really
If anything, that's similar to .map()
!!> [1, 2, 3].map(function(el) { return el * 2; });
 
@SecondRikudo [2,4,6]
 
.map also creates a new array, instead of changing the old one though
 

« first day (1566 days earlier)      last day (3381 days later) »