« first day (1698 days earlier)      last day (3267 days later) » 

12:22 AM
ksp wat r u doin
6km/s straight into Jool's atmosphere - nothing overheated
 
The canadian exchange rate needs to calm the fuck down
 
I finally added up all the purchases and found out how much I paid for my PC
it ended up being quite a scary number
 
@KendallFrey that's 1.0.2 for you
all the overheats got nerf'd
 
@SomeKittens Really? :(
 
12:29 AM
@tereško How'd you do? I can't imagine it being that high
 
On drugs
 
Holy cow, that's an expensive one
 
@KendallFrey yerp.
 
well .. the monitor is expensive
 
12:33 AM
@tereško Only 8GB of RAM?
 
@SomeKittens it says "2 x 8GB"
 
I count 16
 
Oh, monitor included
 
@SomeKittens Got a TL;DR of what parts need to be protected by heat shields?
 
I Dunno, if you're getting a 3k computer, I'd get an intel CPU
But then again
mOre games are using multi core
 
12:35 AM
> Microsoft Windows 8.1 OEM (64-bit)
€98.93 EUR
 
basically, the expensive bit are: monitor, psu and gpu
 
and the OS
 
@tereško derp.
 
@akaRash OS is 3.17% of total price
 
Only 16GB of RAM?
 
12:37 AM
ReactOS hurhurhur
 
@tereško expensive for what you get out of it.
 
@KendallFrey Wings, solar panels, parachutes, batteries
 
@SomeKittens stfu boy, don't tease me
@SomeKittens ok... wings?
wings exploding sounds like kind of a major problem
 
@KendallFrey depends
not spaceplane so much
 
@SomeKittens well, intention is to later add additional 16GB, if it becomes critical ... though, I cannot think of a scenario
@akaRash care to elaborate?
 
12:39 AM
I thought it was pretty expensive too, but OS and monitor really add up
and the double ssd
and the keyboard
 
:)
the keyboard is worth every cent
 
If you drop the OS, and accessories, it's down to €1949.14 EUR
 
@tereško that OS is objectively inferior to the opensource alternatives for a web developer, and thus expensive for what you get.
 
@akaRash You don't make gaming machines for linux lol
Looks good @tereško
 
> objectively
 
12:41 AM
@akaRash "objectively", I bought 3 OSes there
that licence gives me choice of 7, 8 and or 10 .. which no dodgy torrent shit
 
Personally, I don't use Windows, but I wouldn't say it's objectively better or worse
 
oh, 3 times the garbage. nice.
 
"and" or "or"?
I use Windows because I develop for Windows, and will continue using Windows because I play games on Windows.
 
I was actually surprised by how many of my games work on Linux now
 
KSP supports Linux though shrug
 
12:43 AM
I used to have to reboot to game
Don't really anymore
 
ahaha a dual booter
 
@akaRash as someone who has been using opensource OSes on a daily bases since .. emm .. 2003rd, I find your opinion naive
 
I will keep ranting about it because it wastes loads of my time everytime I have to reboot into it.
 
@SomeGuy ~1050 (from steam library)
probably +100 from GOG
 
Trying to run an application using phonegap. It refuses to run a function of mine with the following error as seen in LogCat -

[INFO:CONSOLE(1223)] "Uncaught TypeError: states.offline is not a function", source: file:///android_asset/www/js/bbs.js (1223)
 
12:47 AM
> states.offline is not a function
 
1 message moved to Trash can
@doodla Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
1 message moved to Trash can
@doodla Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
and states :

var states = {

offline : function () {

alert('In offline');
if(!isOfflineSet){
alert("Offline 1st Run");

},

online : function () {

if(timerStarted)
clearInterval(timer);

questions.request();

}

}
@SomeGuy If I'm not wrong, states.offline() is a valid function.
 
Looks like it here
You sure you're including the correct file?
 
They're all in the same file.
 
enable pause on exceptions in the debugger and inspect if it is accessible at that point or not.
 
12:49 AM
Try logging states and see what shows up
 
what is the value of states ?
is it even defined at that point ?
 
If you've embedded weinre, just use a breakpoint
 
@tereško How do I know if it is defined at that point?
 
use breakpoints
 
Logging it will be easier since you're using Phonegap
But eventually, yeah, you should learn how to use breakpoints
 
12:52 AM
@tereško http://i.imgur.com/6MEEbCM.png

I'm calling states.offline() from the highlighted function.
@SomeGuy Could you point me to any resources which could help me debug in phonegap?
 
@doodla are you sure that states is even visible in that scope ?
 
@doodla Move your declaration of states before that entire code block
 
Okie.
 
Read about hoisting in JavaScript
That's what's causing your problem
 
^ maybe causing
 
12:56 AM
Yeah, maybe. Depends on when the function's being called and how
 
@tereško Moved it up. Same error.
 
What's inside the checkConnection function?
 
do you know how scoping works in JS ?
 
var networkState = navigator.connection.type;

        var states = {};
        states[Connection.UNKNOWN]  = 'Unknown';
        states[Connection.ETHERNET] = 'Ethernet';
        states[Connection.WIFI]     = 'WiFi';
        states[Connection.CELL_2G]  = 'Cell 2G';
        states[Connection.CELL_3G]  = 'Cell 3G';
        states[Connection.CELL_4G]  = 'Cell 4G';
        states[Connection.CELL]     = 'Cell Generic';
        states[Connection.NONE]     = 'None';

        var netStatus = states[networkState];
 
Haha, there's your problem
 
12:59 AM
lol
you re-define state in that function
 
holy
hm.
 
the word you are looking for is "fuckballs"
 
Ok. Obvious fuck-up aside. It was giving me the same error when the object was named status. status.offline() is not a function.
is status sort of a global something? I broke my JS for an incredibly long time cause one of my objects was named navigation
 
you probably were doing something wrong
 
@tereško probably. Anyways, checking now.
Hehe, worked.
I'm dumb.
 
1:04 AM
yes window.status is the status bar stringy
But I don't know if phonegap has it or not :/
 
@SomeGuy How do I breakpoint phonegap?
 
I use weinre
 
@SomeGuy their websites says use chrome remote debugging ._. am I missing something?
 
You can do that, but it's easier to use weinre
For Chrome Remote Debugging, you need compatible Chrome versions, and you need to be on the same network
 
ah
 
1:11 AM
Weinre would work even across the world if your computer is accessible from there
 
pretty sure it is possible with chrome as well but yeah it's messy
 
unresolved name `assert`. Did you mean `buffer`
Yes, I always mistype assert that way
 
lol
 
hahahaha
 
@SomeGuy Looks like good old chrome does the job. I'm pretty sure all this wasn't there when I checked about 3 months ago.
 
1:20 AM
Hey all . I am blanking but how do I resize an image proportionally based of a set maxHeight?
 
Exception: TypeError: can't convert number to number
 
@SomeGuy What did we decide on for the book of the month?
@Neal What do you mean?
height: auto; max-height: xxx
 
I want to resize an img on the page based of a set height that will not strect the image
That streches it @monners
bc the width is not right...
 
Ezpz
 
You could use a background image and use background-size: cover;
 
1:29 AM
@monners True. but would that futz with the image?
 
<div style="background-image: url('http://placehold.it/1200x400');"></div>
It will scale and clip the image on the edges, but it won't distort it
And you can keep it centered using background-position: 50%
then just put your max-height on the div
 
@monners ehhh i just tried that. the image doesnt show bc it has no height
 
Gimme a sec, I'll put together a demo for ya
 
@monners thank you.
 
1:41 AM
@monners if i use background-size contain do you know of any feasible way to add a box shadow areoun the backgroun image ?
 
@Neal You cannot do that. Not with CSS at least.
 
@Sheepy How would you propose I do it?
I need to have images with set max heights and box shadows behind them basically is my issue
 
@Sheepy Umm, yes you can.
I'll update my fiddle
 
@monners How?
jsfiddle.net/fajrvsdj/1 update this one if u can @monners
 
@monners Oh, looking forward to it!
 
I only know you can drop shadow an element.
 
Well, the element visually is the image, so just apply to the element
 
it goes around the whole dive and not just the image
I need it to just go around the image
 
Why do you need to use contain?
 
@monners because I need to maintain the full image. cover zooms in
I do not want to ozom
zoom*
 
1:49 AM
@Neal cover only zooms in once you've hit the max height
 
@monners right... I dont want to do that.
contain does the resize that I want. but I still need the shadow
 
I don't have time to do another example. Play around with margins on an img tag, see if you can get that to work with a combination of max-width and max-height, plus margin: auto.
 
@monners believe me I have tried....
 
I don't think I understand the use-case
If it's that complicated, you might be better off using something like flexbox
And that I really don't have time to get into
 
@monners The usecase is that I do not know the size of the images but I need to set a maximum height so that they will show up on the page correctly and they need a shadow behind them
 
1:53 AM
So give them a max-height? set width to auto
 
@Neal And can't that be done with <img> which supports box shadow?
 
@Sheepy no because then the image stretches.
@monners then the image stretches
 
@Neal Even if you apply max-height and/or max-width? That should make the image keep its ratio and contains its size.
 
@Sheepy Exactly
If that's not what you're after then I give up :P
 
Concur :|
 
1:58 AM
@monners it stretches :-( idk why, but it stretches
 
No it doesn't
In that example it absolutely does not stretch
I've even demonstrated by setting the max-height really low, demonstrating all factors in play
 
@Neal Can you define "stretches"? I hope you don't mean "reduce in size"?
 
the width is squished.
 
@Neal give me the inspected dimensions of the img element on that fiddle I just sent you
 
@monners click on the image that says "I Like You" blipit.net/nina/#
see how the Michelle is squished now?
see how the image in the bigger one is squished? Michelle)
 
2:02 AM
:facepalm:
Because you've got min-width: 100% set on it
 
@monners i copy/pasted ur code
 
Yeah, but it's also inhereting from .item img
THAT'S not my code
 
@Neal monner's code does not have min-width.
 
@monners hmmm how do I not make it do that?
 
@Neal Uh, sorry but do you know CSS?
 
2:04 AM
.img-container img { min-width: 0; }
 
@Sheepy I suck @ CSS :-(
 
@Neal Apply the above and it'll fix it.
Then you can buy me a beer :P
 
yay it worked!
Thanks @monners
 
I know, I'm a genius
Feel free to vote on one of my answers
@Neal CSS 4 LYFE
 
@monners :-) Thanks
 
2:09 AM
You're welcome.
 
I hate CSS
and IE9.. :-(
 
@Neal CSS means Cascading Style Sheet. Many properties are inherited. But you can overwrite these inherited properties. Which is what monners told you to do.
And you may hate life before CSS more. It's not that old.
 
@Sheepy Ya I got it ;-) I know what css is, I just suck @ applying it
@Sheepy Tables! TABLES EVERYWHERE!
I had to do that for emails.
 
@Neal What's worse is when you've gotta work on stylesheets built by people that don't really know what they're doing. Pain? You don't know pain...
 
@monners ;-)
 
2:14 AM
So always be considerate and ask the professionals :D
 
@Neal You can stop thinking that you suck, because you won't. You just need to accept it, experiment, and learn. :)
 
@monners been there, done that.
 
Mind voting on one of my questions/answers?
 
@monners Working on programs built by people who don't really know programming is worse, from my experience >_<
 
Well yeah, that too
 
2:16 AM
@monners remind me in 23 hours stackoverflow.com/questions/29488371/…
 
!!remind
 
@monners That didn't make much sense. Use the !!/help command to learn more.
 
Damn
 
@monners why is it faster to use a document fragment in your question?
 
@Asher Because you're only interacting with the DOM once
DOM manipulation is expensive
 
2:21 AM
Is the speed mostly from the .forEach()?
ooh yeah, good point.
Thanks!
 
Inserting HTML string would be even faster :) Fastest, even.
 
What do you mean by inserting a HTML string?
 
!!mdn element.insertAdjacentHTML
 
Hmm. How do I ask Caprica to reply to somebody else?
 
2:28 AM
!!tell Sheepy sandbox
 
@Sheepy Please go and play in the Sandbox
 
Yeah, insertAdjacentHTML() is nice to know about. However, you would need to make everything text before inserting it. I'm still kinda surprised that would be the fastest.
 
@Asher It is fastest because JavaScript do String fast, JavaScript do DOM slow, and native code do DOM fast.
 
Okay, good to know about.
 
2:57 AM
I had thought Caprica was a general SO bot. Apparently she is a JS bot?
 
Yeah, just JS bot, and maybe in a handful of other rooms, but she's "native" to the JS room. (Coded primarily by Zirak, a regular)
 
Hi guys, I have created a bookmarklet and it work in jsfiddle but not on my page... Do you have an idea why ? jsfiddle.net/sgu92etu/1
 
3:58 AM
@rlemon pong
 
I <3 babel so much
well, es6, but babel makes it possible
 
@Loktar marvellous
 
thanks, doesn't even use canvas O.O!
uses svg
learned a bit about svg while doing it (a small amt) but man it seems powerful as well
 
Yes SVG can do lots of things now.
 
now it scales. Man I need to mess more with svg for sure.
 
4:13 AM
What time is it over there, @Loktar
 
11:13
 
4:23 AM
 
 
1 hour later…
5:36 AM
anyone here familiar with Ejabberd by any chance?
 
5:57 AM
is creating a function using the new Function(args,body) considered bad?
 
Hello, I need a little help regard to capitalize the word after full stop and space. using javascript
When keypress, I want to know that if there is any fullstop followed by space, than the next char should be capital
 
can src and dest be the same folder when using a grunt plugin??
 
6:15 AM
@vamsiampolu no it can't, especially due to grunt build which initially removes all the files from dest folder. Sources and built sources are two different things.
 
@vamsiampolu I don't think so. I see it as the final puzzle piece to eliminate eval.
But you should very, very rarely use it. Most projects shouldn't need it.
 
@vamsiampolu depends on the plugin
 
@Sheepy Let me describe the actual problem,I have a dynamic object that has a series of conditions that need to performed on a geojson object...I am using multiple reduce statements,one per condition and one for the entire query object,something like this:
uh oh,i think i will put it in a pastebin
then i filter using this
how can i do this without using so many operations
 
1 message moved to Trash can
@pirabdulwakeel Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
6:24 AM
can somebody help me in google maps javascript api v3?
 
@AmitPandey 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.
 
@Thomas @ivarni okay,will avoid using this in case it is subjective
 
thanks
 
Code look nice and maintainable. With Function you write less code but it'd be like leaning to the Dark Side. I'd say it is up to you to decide what is better written with Function and what is better with an object pattern (present approach).
 
@AmitPandey don't ask if you can ask, just ask. Go ahead, if we can we'll help you
 
6:27 AM
@vamsiampolu I see no reason to avoid it if you don't want to keep the src file. For example, when I run uglify on a previously concatenated file then I've no reason to keep the src so I set dest to the same file and overwrite it
 
ok,thats what i want to do,i would like to remove the whitespace from handlebars templates so that it generates much smaller strings
 
i am using Google maps api v3 for work for my application. currently i am passing client id with <script> tag and loading google maps api into my my page. and then sending geocode request to find a lat/long value for given address. but i asked to use crypto key with my application.
i want to know where i can place digital signature in my request ?
 
Just don't overwrite any files you'll be editing later. My build is multi-stepped with the first step being browserify and the next step being uglify, the browserify step doesn't overwrite src because that's the files I actually edit, but the uglify step can overwrite what the previous step created without any problems
 
true,i only wanted to use this because of the other question i asked,if i dont need that,i dont need this,but it is always good to know...isnt the shimming situation the same as requirejs with browserify...
 
7:06 AM
I need help guys
Can someone try checking out following SVN
http://svn.process-one.net/ejabberd-modules/mysql/trunk/
and ./build.sh on your machine?
It doesn't seem like any Erlang stuffs compile on my EC2
 
@Shaik 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.
 
hey can and one help me on this post..
0
Q: Add a value to y:axis if all the values are Zero after filtering

ShaikHave a JavaScript Which removes Duplicates of labels label:'Adnim' and count only "1" y:1, by Skipping Zeros"0" y:0, this is Working perfect but the issue is if all the values of a particular label are zero then for that labes it gives output nothing. Example:1 {y:0,label:'Adnim'}, ...

oops any*
 
7:22 AM
Hey, how awesome your software must be in order for it to be listed as default available software in Ubuntu apt-get?
 
@EnglishMaster Pretty awesome I guess? Why would you need that though, if you could just set up a PPA?
 
Ye, but I want my software to be shipped (in some way) with Ubuntu distribution, so I can show it to my kids later on.
 
i.e. go to freenode, schmooze up to Ubuntu maintainers until loved enough, get package added
 
Plus, it will help me to gain popularity at school.
Let's say I have pretty awesome software called "yomama" (no offense)
I can just wear t-shirts saying
"Girls, find me @
apt-get install yom (tab)
My number @ README.txt"
and I get all their attention.
@wonderb0lt right
or t-shirts saying
"apt-get install yom(tab)
yomama -u creator -e | grep number"
 
@EnglishMaster I can definitely see that work out just the way you want
Lot of people in school know what apt-get is
 
7:37 AM
sure
better than yum
yum sounds funny anyways.
apt-get sounds professional
 
emerge tho, sounds even more epic like spoken by a wizard of the command line
 
Yeah
It's looks pretty hacker-ish when you constantly apt-get update in your class on your laptop though. It's an alternative to Window's "treeview".
 
make is better
 
You should occasionally do "netstat" in order to show a lot of IPAddresses are under your radar.
 
oh hey.
I reached 20k rep.
13
 
7:44 AM
@FlorianMargaine \o/
Rejoice!~
 
@FlorianMargaine Nice!!
I'm proud of you.
 
@copy ?
hm
I shouldn't run cat /var/log/big_log_file
when a tail -n 50 is enough
 
u should set up Logstash & Elasticsearch (storage) and feed your log into Logstash whenever it becomes big then delete it.
Then you'll be able to do a lot of craps when Logs are structured and stored in Elasticsearch, you can just view it in plain or generate it into graph
 
sure
or I just use tail -n 50
 
It's pretty easy to set them up though
is it Apache log?
or syslog
 
7:53 AM
mysql log
it's also a VM that I delete/recreate 10x/day
 
wtf
Mysql log?
 
yes, mysql log
 
What does Mysql record in its log file?
 
so many things
 

« first day (1698 days earlier)      last day (3267 days later) »