« first day (1648 days earlier)      last day (3286 days later) » 

5:00 PM
> alter the calibration on a tractor’s engine.
that would upset a lot of people I know
 
@JanDvorak I don't find it unreadable
 
Perhaps but it's still less readable than plain expressions
 
@FlorianMargaine you're french, you don't count :P
 
Hello
 
> It’s time corporate lawyers left the bullshit to the farmers, who actually need it.
lol
 
5:03 PM
fucking sed
 
@ssube @FlorianMargaine you're french, you can't without a union and a riot count :P (source)
 
chrome extension question.. just wondering if the stats of the chrome extension dashboard is accurate or not..
 
How to echo a variable's value in command line of windows?
 
it doesn't seem accurate at all.. my extension shows only three users while among my friends only it's 10 people who have downloaded it and are using it
 
@ton.yeung old
 
5:04 PM
@JoeSaad caching
 
2 hours ago, by rlemon
http://tholman.com/elevator.js/ hahaha
 
@Mr_Green console.log() if in node.js
 
In command prompt actually..
 
print iirc
 
@ssube, caching on their side? when do they refresh their cache?
 
5:05 PM
@Mr_Green echo
 
unable to initialize device PRN
^ getting this error
 
@Loktar damn, just looked it up
TIL windows cmd.exe has echo
 
dude
 
@Loktar I tried echo
 
5:06 PM
have you guys never wrote batch files..
 
not for windows
 
/me is the only one here who is old enough to have played dos games it seems :/
 
heck, I wrote batch files to call powershell scripts
 
I played dos games.
 
5:07 PM
@Loktar dosbox
 
No, I'm an old fart, too.
 
but I just copy pasted anything I needed
 
SET XPATH = "c:/windows"
echo %XPATH%
printing "%XPATH%" only
 
@KendallFrey ?
 
@Mr_Green thats a user variable
setx variable value
 
5:08 PM
ok
 
@towc try the very first example you gave, 1 : 2pi - 1
 
@Mr_Green open a new shell too after setting it
 
4.712???
 
@Loktar thanks still it is echoing the variable but not the value
 
5:10 PM
ok, I give up
 
C:\Users\jasonbr>echo %test%
TEST
 
you want 2*pi in the false branch
 
in the shell before I did
setx /m test "TEST"
 
inb4 rlemon stfu
@Loktar sext?
 
not to be confused with sext
which will set your windows horniness level to over 9000
and then you get a white screen error.
 
5:11 PM
KSP 1.0 confirmed for monday
 
damn nice!
so it will be out of EA then?
 
yeah
 
user2620028
@Loktar I played dos games and I am younger than you i believe.
 
yeah poor wording, many have probably played dos games now with dosbox especially
 
btw @SomeKittens ^^^
 
5:13 PM
I meant on an actual PC with no vs of windows installed.
which I'm sure is less of the younger population
 
@Loktar access to registry path is denied
^ getting this error
 
@Mr_Green heh thats weird, idk whats going on that case :/
local admin rights?
 
ok thanks
ahh ok
wait
 
try running the command prompt as admin hopefully that works
 
@Loktar I played indiana jones on that
 
5:16 PM
@KendallFrey Yep, been following along on Reddit
 
ey noice
 
although tbf it was windows 95 and I had to reboot in dos mode to be able to play the game
 
it is echoing the same variable but not the value
 
@Loktar I was wrong. Splitting manually is not going to be as straightforward as I naively though.
 
@FlorianMargaine new avatar is freaking me out!
@Mr_Green make sure to open a new prompt after
it will set the var on one, but doesn't have access to the new var in that instance
its kind of annoying how that works, just grabs the vars in initialization it seems
 
5:21 PM
ss64.com/nt/delayedexpansion.html (delayed variable expansion in batch files)
I'm not sure if that's applicable.
 
@Loktar yeah was aware of this but thinking it might be possible in same instance.
thanks though
 
Hi. Can anyone point me any VERY SIMPLE "Upload, Crop, Resize" -javascript lib that handles all of those actions and does not require much time to implement to my site. Lib should support all modern browsers.
 
@makallio85 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.
 
@makallio85 jcrop
 
does anyone here use phonegap/cordova?
 
5:25 PM
@Mr_Green np, hope you get it working. haha hope I didn't come off rude in any of my comments that wasn't my intention :p
 
Of and forgot to mention. Upload should be done via ajax, if possible
 
!!google SIMPLE "Upload, Crop, Resize" -javascript lib
 
heh -javascript kind of kills that search,
 
nah cool :)
 
5:27 PM
I wanted to discuss with people about this, not with google :D
Is it required to use server side processing to crop images or can this be done in js?
 
^ the thing is that we will discuss with google to discuss with you :P
 
Lol.
 
Oh, speaking of, got my Angular tshirt today!
 
Does people ask their opinions from google?
:D
 
5:28 PM
@makallio85 Sometimes via a web interface, sometimes by emailing one of their engineers.
 
I bet if someone knew of a tool they'd have spoken up. I for one love sharing useful libraries I find.
 
@ShotgunNinja trololol
 
I've been reading confusing examples, I guess
 
5:34 PM
@StevensHaen If A only requires B, why does B care about A?
 
@StevensHaen you pass them
@SomeKittens shit design.
I have that scenario right now
A requires B but B needs to know about stuff from A on init
 
@makallio85 did you even look at the first link I provided?
 
@rlemon in that case, have B export a function
 
I gave you one within 2 seconds of you asking.
 
@SomeKittens which is what I do
and then pass arguments from A into B
 
5:35 PM
How does one of the modules end up importing an empty modules.exports then?
 
then you just started spouting more requirements.. thats not really a discussion, came off more like dictating.
 
@StevensHaen you don't export anything?
make a demo
 
Where's the catch in circular dependencies then?
 
Like how Grunt does it
 
Hello, I've been reading some greasemonkey scripts and most of them seem to have the pattern of appending the code to be run as a 'script' element like this
 
5:36 PM
@j449li 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.
 
Election closes in 2 hours!
Good luck @SecondRikudo!
 
what's the purpose of doing it that way?
 
@j449li It breaks out of the safe but confusing (to some) haven that userscripts normally get and forces itself into the page's own global scope
 
yeah, I was gonna say it has something to do with forcing its way into page context
 
@Loktar Is it required to use server side processing?
 
5:39 PM
@SecondRikudo do you have what it takes?
 
@Loktar I also forgot to mention that support for more types than just jpeg would be mandatory
 
@makallio85 I believe so
 
@JanDvorak and when/why would you want to do that?
 
@j449li When you are confused by the benefits it gives
 
5:40 PM
@Loktar As I think people wont always have just jpeg images
 
if only people cared this much about elections that mattered!
 
I don't do that
 
when voting time in the US comes up I can't wait to hear things like "I dont vote", "It doesnt matter" ect.
 
@Loktar This is why I stop people whenever I hear them say that, and ask them if they'd be happy installing a totalitarian dictator in office.
Usually they look at me crazy and either walk away or ask what the fuck "Totalitarian" means.
 
I didn't vote in SO2015 because all of the choices are equally good. I don't vote in government elections becaus all of the choices are equally bad.
 
5:42 PM
I haven't voted for a single us election
 
that's ok, as long as you claim to be French
 
@JanDvorak ok, thanks!
 
@ShotgunNinja haha
 
@Shog9 does Canadian count?
 
5:44 PM
I only voted in the pre election for moderator, not the actual election
my vote doesn't really matter anyway /me jokes, voted for Second Rodiku(or however you spell the second part)
 
@SomeKittens This is the correct answer.
 
@rlemon only if you're in Quebec.
 
thankfully I am not
 
is the room meeting still taking place?
 
@Loktar jcrop does not seem to have new file upload abilities, it just has cropping for static images in img tag?
 
5:45 PM
@Luggage Haven't heard a cancellation, so yeah.
Bug @Mosho
 
@makallio85 might have to use something different for uploading
 
ohh, i just say thr starred message and thought maybe it was posponed.
 
@Loktar I don't vote because I'm going to do roughly the same stuff, regardless of what the laws are or who made them.
 
@ssube haha
I vote because local elections are hugely important :P
 
@Loktar Yes, with jcrop.. Maybe there are some other libs to pick from.
 
5:47 PM
Laws are like sausages. Some of them are actually good, but you must not know how they're made
 
@makallio85 Im sure there are, let me know if you end up finding one.
 
I try to vote. don't always get a chance to vote (read: lazy and forgetful)
 
Did the chat crash for anyone else?
 
WTF? I've noticed some weird stars on YT videos. I've decided to investigate the DOM. Turns out they're added to literally every recommended video. Through CSS. any idea why?
 
@JanDvorak weird stars?
 
5:55 PM
@SecondRikudo finally, caught you
 
yeah I think we all crashed
 
@SomeKittens I received no pings from thou.
 
IRC room was the most active its been ever.
 
@Loktar yeah we crashed for like 30 seconds
 
@SecondRikudo 301 views ★
.view-count::after, .yt-lockup-meta-info::after {content: "★"; ...}
 
5:57 PM
@SecondRikudo Hmm, whoops. Thought I did
anyway, here's RC0 for the canonical: gist.github.com/SomeKittens/49222d46c0b3e1002fe8
 
@SomeKittens From initial impression, looks good
 
Hurrah!
 
!!nudge 110 Review Kittens' answer more deeply
 
@SecondRikudo Nudge #1 registered.
 
Schools almost over yay
 
6:10 PM
that means it is almost closing !
 
@SomeKittens interesting find
finally i changed my avatar. Now no generic one \o/
 
@KarelG Find?
 
idk why i added that word... maybe it's because i'm busy with a report.
 
@Loktar so do you watch kids shows and pass it off like you're just watching with the kids
even tho there are not kids in the room
@SomeKittens wouldn't
xhr.onerror = function () {
      reject(xhr.statusText);
    };
bind be useful here?
xhr.onerror = reject.bind(null, xhr.statusText);
or would it bind the current status text ??
yea, nvm. Just answered myself.
 
Yup. Also, didn't want to confuse the answer
 
6:16 PM
yeah, that's a completely different kind of binding :P
 
@KendallFrey I abused bind to seed arguments ALL the damn time
is that bad?
 
that's what it's for
 
It takes more arguments. I don't think so.
 
@Luggage setTimeout also accepts a string ;)
 
partial application is useful
 
6:17 PM
just because you can, doesn't mean you should.
 
if js functions were curried by default, you would use it everywhere
with arrow functions, you can make properly curried functions with only slightly mental syntax
 
Is it possible to remove specific indexes from a jQuery selector array?
 
var multiply = x => y => x * y;
multiply(2)(3)
 
@r3wt yes
 
not traditional JS syntax, but hey
 
6:19 PM
even looks like Haskell in coffeescript ;-D
 
@SomeKittens : i found the next line params: String | Object, as part of the option object. But in the statement, i found params && typeof params === 'object' condition.
if the supplied param is of type string, then nothing happens. or am i reading it wrong
 
xhr.send(params);
it'll be called with the string value
 
ah, yes... thanks
 
say i'm at index 5 in an .each() loop. now i've hit a condition where i need to trim my iterable from index 6 to index 10. fuck i'm drawing a blank
 
.filter
 
6:22 PM
ie, those need to be removed
or skipped
not grepped
 
jQuery 'sets' have .filter
you can use it to remove index's as you see fit
 $(selector).filter(function (i, el) {
     return i !== 3; // removes 4'th item.
 })
 
but can i filter the iterable from inside the each loop?
 
sounds like your problem could be solved by refactoring
in Lounge<C++>, 24 secs ago, by rightfold
I think I'm the only one in this room who likes Go.
@dystroy you like Go right?
 
@Luggage yeah, saturday
 
@rlemon haha yeah, I dont even pass it off though
there are some shows I actually like
Gravity Falls is one
and Steven Universe
 
6:28 PM
GF was teasing me for watching Video Game Highschool
 
@rlemon unfortunately not. The form has about 120 inputs in 6 sections. radio buttons, checkboxes, and selects may hide/show some fields. i need to find which fields should be visibile and only output those in the "confirmation step
 
the main chick on that is SMOKING
 
hah I've seen ads for that never watched it though
 
^ the main reason I watch it
not going to lie
 
:D
 
6:30 PM
Does The Last Airbender count as a kids show?
 
probably. but it is still good
Ben10 as well
 
The original Ben10 was pretty decent.
Sequels? Ehh...
 
I liked them all
the live action movie was terrible
 
liar
 
 
6:31 PM
I guess I didn't get terribly far into either of the sequels; but it bothered me that they took both Gwen and Kevins powers and made them a lot less interesting.
 
half a mind to just tell them it isn't possible
 
@r3wt FYI $(this).attr('whatever') ... this.whatever
:P
also this.checked
 
doesn't work for attributes that have a hyphen in their name
 
also I still think you're just going at this the wrong way
 
so for consistencies sake, just use attr
what is the proper approach?
 
6:33 PM
but.. that is wrong
use the property that it is mapped too
and if you have data-* attributes then we can talk about using .data
 
what would an attribute with a hypen be mapped to?
 
because IE sucks
@r3wt invalid :P unless data-*
then we use data-*
 
you're trolling right?
 
no I'm not
custom attributes should be used only with dataset
custom attributes were invalid previously without data-(. dunno if HTML5 allows them
 
@r3wt Name a valid attribute that has a hypen in it?
 
6:35 PM
i use lots of data-* attributes
 
Mornings o/
 
hence the reason i use attr()
 
@r3wt then you can use jQuery.fn.data
 
@rlemon what about on custom tags?
 
!!jQuery jQuery.data
 
@ssube now allowed in HTML5
:(
 
why not just use attribute selector, since they are all attributes.
 
why not use a hammer to put screws in drywall
surely it will work
do it the right way :P
$(this).is(':checked') if you already have 'this' then you don't need to re-wrap it with jQuery to check the checked property
this.checked will suffice.
also, what is the point of checking typeof against false?
 
@rlemon probably because they needed them on custom tags
@r3wt why specify 'data-' 17 million extra times?
be smart: be lazy
 
you linked me to the wrong page, its api.jquery.com/data
 
6:40 PM
same shit, different entry
 
jQuery's docs are just like the lib: a dozen ways to do the same thing, all of them slow. :P
 
I go straight to the source code now
I hate their docs
 
hi everyone, I'm not a usual lurker in the JS room (and I'm also a n00b with JS programming), but sometimes I dabble with web development. If anyone needed a crappy nodemap jQuery plugin, well there's one now.
 
/me just doesn't use jQuery
 
6:42 PM
@rlemon Huh, that's nifty. I wonder if that could be generalized to other codebases...
 
probably.
 
jQuery's docs are amazing
You're just not their target audience
 
Benji is in troll mode again.
/me goes back to work
 
@BenjaminGruenbaum pssst, can haz review pl0x? gist.github.com/SomeKittens/49222d46c0b3e1002fe8
 
not trolling at all
 
6:43 PM
Anyone know how to convert youtube to mp3?
 
use jquery
 
@Woodrow I'd suggest not just randomly trolling chat rooms
 
@Woodrow Type that into Google
 
in HTML / CSS / WebDesign, 18 secs ago, by PeeHaa
@Woodrow Just do some research instead of asking it in every room on the network
 
@Woodrow I do
 
6:44 PM
!!google github youtube to mp3
 
that'll be $5
 
It's amazing how much work people will do to avoid doing any research themselves.
 
@PeeHaa go hunt him further cus the vampire detector is detecting a possibility.
 
~~( !! false )
thats how much i know about javascript
 
!!> ~~( !! false )
 
@SomeKittens 0
 
!!false is just false
false coerces to 0
 
@BenjaminGruenbaum Not a chance
 
6:46 PM
!!tell r3wt resources
 
~~x is just x for x that's a UInt32, it just performs conversion
 
well ive now wasted most of the day
 
x|0 should be the same as ~~x
 
6:50 PM
@ssube except only one operation
which is faster
 
~~x|0; // just in case
 
micro optimizations are the best optimizations
 
@rlemon lol
 
by replacing two bitwise complements with a single bitwise OR, you can save a whole 3-5 CPU cycles
 
dude, that is like 1 second over 4 weeks
think of the latency!
 
6:53 PM
there are starving children that don't have access to clean fibre, and we're over here wasting hundreds of thousands of bitwise operations
 
o|0 doesn't look as 'fun' as ~~o
so there is always that
 
o|0 looks like o_0 but with a bigger nose
 
these micro-optimization is only useful if the resource is under heavy consumption.
 
~~o|0
 
but i admit that i'm implementing it everywhere ...
 
6:56 PM
don't use ~~0 or o|0 in JS.
 
these micro-optimizations should be done by the compiler, not by engineers
 
Math.floor(~~o|0) >>0
 
unless you absolutely know that you'll only ever work with numbers under int max, they'll break on you eventually
 
I used to use ~~ and |0 in animations because they reported faster on chrome
 
we have a bunch of record IDs that are longs and used to coerce to numbers with |0 until we ran into our first ID at 4.5b
 
6:57 PM
now it seems like they are on par, or slower than Math.floor
 
then boom
without bitwise ops, we can handle larger IDs (still not the full long range, since double starts losing precision well before longs, but enough)
bumped the cap from 4.2b to at least a few trillion records
 
!!> Number.MAX_SAFE_INTEGER
 
@KendallFrey 9007199254740991
 
is the value you're looking for
 
!!> Math.max()
 
6:59 PM
@rlemon null
 
just use this
awwww
 
we'll run out of disk well before we hit 9 quintillion records
 
stupid cap
 

« first day (1648 days earlier)      last day (3286 days later) »