« first day (2146 days earlier)      last day (2817 days later) » 

12:02 AM
Hi
 
@Meredith are you still playing pokemon go or did you quite with the update
also do you know an answer for this question superuser.com/questions/1118994/…
 
Yeah I'm still playing
 
I'm trying to figure out a way to index my epubs and other files
 
I don't know any easy ways to do it
 
I have thought of converting them to html files and then having google index them but I think that breaks multiple laws
 
12:04 AM
What are you trying to do?
 
at least in the USA
@Meredith I'm trying to search both my epub and pdf and html files
 
Why?
 
@Meredith I'm creating a google offshoot called foogle
no I just am really bad at remembering were I read stuff
 
Well
Idk about an easy way to do it
Like premade programs
 
node spider is where I have been going
but I don't understand any of the spiders yet because they are to complex
and then I need to generate indexes
 
12:08 AM
But parse the documents, load them into a B-Tree, and you're good to go
 
Javascript code example please
 
Yeah no
 
hahah
 
Nice try
 
how much? jk
I'm aware of binary trees
 
12:09 AM
B-Tree
Different thing
In computer science, a B-tree is a self-balancing tree data structure that keeps data sorted and allows searches, sequential access, insertions, and deletions in logarithmic time. The B-tree is a generalization of a binary search tree in that a node can have more than two children (Comer 1979, p. 123). Unlike self-balancing binary search trees, the B-tree is optimized for systems that read and write large blocks of data. B-trees are a good example of a data structure for external memory. It is commonly used in databases and filesystems. == Overview == In B-trees, internal (non-leaf) nodes can...
 
@Meredith would that account for duplicate content and word ordering importance for search
 
Ehh
Idk
 
there should be a class in college that let's you create a google duplicate
that's it
in nodejs
 
In data structures, we made B-trees
That's the closest you really get
I still don't understand how they work
But I do know that they're used to make databases
 
this is silly that it is 2016 and both google and windows don't do this properly
 
12:13 AM
What?
Reading epubs?
 
@Meredith yes reading epubs
what level in p go
 
Are you sure it doesn't?
 
windows or google
 
Maybe most of them just don't get archived for copyright reasons
Google
Windows probably doesn't care
 
^ bingo
copyright
superuser.com/questions/561392/index-epubs-windows epubs don't get indexed in windows
 
12:28 AM
on further note why doesn't apple and android autocorrect work as well as google
 
@William google gathers more data
 
@KendallFrey well put google on my phone then
 
What phone do you have that doesn't have google?
 
it's not rocket science
@KendallFrey I don't always have internet
not to mention what of my phones doesn't have a cell plan at all
 
Nit
Didn't he simply mean google keyboard?
 
12:39 AM
@Nit link is this a thing i doubt it works no the iphone
 
Can anyone recommend a good library for input validation/casting for node?
 
@r3wt what type of validation?
example please
 
say i have a field in the body, called foo. i want foo to be a numeric string of exactly 6 chars
shit like that
 
Nit
@William Turns out the thing is very different on Android and iPhone in functionality: itunes.apple.com/us/app/gboard-search.-gifs.-emojis/… vs play.google.com/store/apps/…
 
@r3wt I think regex and variabling casting should work fine
but I'm not expert on this
 
12:43 AM
@r3wt Should?
It's an assertion library though
 
@Nit yeah I'm talking about spelling autocorrect neither market that as a fuctionality that i see
 
yeah, totally different from what i'm thinking.
 
Nit
@William Fairly certain the android one did it the last time I used it, but it's been a while so I may be wrong.
 
hey y'all - I can't find a definitive answer in the docs or SO, so figured I'd ask here.

Do you need to return true/false from an onClick function in React?
 
onclick="return fn()"
?
 
12:54 AM
onClick={() => { this.handleButtonClick(); } }
 
did you try
onClick={return () => { return this.handleButtonClick(); } }
hmm I don't know react
onClick={() => { return this.handleButtonClick(); } }
 
oh it's working
 
Um, why {} {} {}{ {} }?
 
I'm doing a code review
yeah I think you can just do onClick=this.handleButtonClick
 
welcome
 
12:55 AM
yes
 
@littlepootis what year are you in high school
 
Uni freshman..
 
or is it early college don't remmeber
 
doing a code review for a big PR one of the junior devs on my team requested
and I don't really know React
 
go pootis
 
12:57 AM
It sucks.
 
@littlepootis hard sucks or boring sucks or annoying sucks
 
annoying
Because they're teaching shit that just isn't true.
 
hmm are you living on campus
@littlepootis cs is more theoritical then practical
 
@William No, home
 
they often don't teach the stuff that is actually important
 
12:58 AM
It's 15 minutes away
 
well that's good living on campus sucks
 
@William It's a C programming course. And they're teaching absolute shit.
 
hahah
@littlepootis not java suprised
 
@littlepootis No need to be redundant
 
They're probably have never heard of things like indentation.
 
Nit
12:59 AM
C courses are often hit or miss
 
Terms like code quality, standards compliance, -pedantic went over their heads.
 
I wouldn't expect that out of a C course
C courses are usually little more than "for loops and pointers 101"
 
Nit
Likewise, really. The point of intro C courses is usually basic algorithms and pointer stuff.
 
All I basically do during a C class is open my notebook, write down every single incorrect thing that they puke.
@Meredith File I/O is the most advanced thing in this course..
 
And that's about what you get in every C class
 
Nit
1:01 AM
I don't know why you would expect more from what is obviously a beginner's class
 
Because, guess what, you're not at school to learn how to program
You do that on your own
If they're teaching you how to become an amazing coder, you're at the wrong school
 
They also told us C was standardized in 1999, and the compiler that's used is from 1991.
 
1991 hahahah
that is before i was born
 
Turbo C++ 3.0
Oh, also things like <conio.h> which I've never heard before.
 
Nit
It's actually '89 or sth, @William
 
1:03 AM
It is '89. Yes.
 
!!urban sth
 
@William sth s'n'n, sumthn, somethin, something
 
Also, my instructor has been teaching C for 17 years.
2016 - 17 = 1999
> They also told us C was standardized in 1999
Makes no sense
 
for my microcontroller class, I had to complete every assignment in C and raw .asm
that was fun
 
@Codeman assembly wf
wtf
 
1:05 AM
@William it was a microcontrollers class
 
Nit
Assembly is a must-have in microcontroller classes
 
Well, that was a microcontroller class.
 
I hate hardware classes
 
also I studied computer engineering, not CS
 
Nit
If you don't do assembly there you're simply doing it wrong
 
1:05 AM
 
Like it's way easier than actual CS
 
I designed a 4 bit CPU in one class, that was fun
 
But everything is so boring
And takes forever
 
@Meredith if your hardware classes are easier than your CS classes, you do not have a good instructor
 
Oh yeah you spent 20 hours designing a CPU? Now spend another 10 programming it
 
1:05 AM
programming with a toothpick
 
@Meredith did you use ideal transistors for your CPU design?
 
Nit
I also graduated from comp eng, not comp sci, but where I took it, the courses were great
 
yeah, I learned a shitload
 
@Codeman No we never went down to the transistor level
 
I know how everything from the metal to network stack works
 
Nit
1:06 AM
I don't do hardware outside of hobby anymore, but it's still interesting as hell
 
@Meredith that's why :P idealized gates are easy
I had to do the Si layout and everything for mine
that was my ALU
the little boxes have components inside of them
and yes, it took a long time. lol
 
Not loading
 
here's the full report isthisonthetest.com/?q=node/13
used a combination of technologies
 
Nit
@littlepootis Coming back to your C thing, working with very bare tooling has its own virtues, namely you can't simply press a shortcut to fix your typos etc. It's a valuable lesson to beginners, imho, though I understand it can be annoying if you're already feeling at home
Don't your courses offer experience based pass?
 
pass transistor, CMOS, transmission gates
 
1:08 AM
@Nit I use vim.. so..
 
Nit
So?
 
@Nit nope.
@Nit vim pretty bare
 
but yeah, 280 transistors for a 4-bit ALU, not bad :P
 
Nit
Using a specific editor has very little to do with actual coding
And you can easily conf Vim to do all kinds of autocomplete shenanigans
 
@Codeman where did you got to school you sound like a genius
 
1:09 AM
Western Michigan University
 
go midwest
 
top 250 public research university
 
@Nit I don't normally use Autocomplete.
 
I'm not a genius, I just worked pretty hard my last two years of college
 
Was your degree in CS?
Or EE?
 
1:10 AM
computer engineering
 
Oh
 
Trust me, I'd rather write my code in Notepad than that POS editor.
 
I was just CS + math
 
notepadd++
 
My course is named "BE in Computer Science and Engineering"
So, yeah, it's got fair share of both.
 
1:11 AM
oh I got a math minor
 
Math minor hype
 
lol I got a math minor for free
I had to take thru calc 4 and discrete math
 
What's calc 4?
 
^
 
We only went up to 3
 
1:12 AM
diffeq and linear systems
 
Oh
Yeah we had to take linear algebra and diff eq
 
calc didn't really click for me until calc 4
 
Diff. eq are Calc 4?
 
> 3. No more than two grades of "D" or "DC" in courses presented for graduation may be counted for graduation.
 
Didn't call it calc 4 though
 
1:13 AM
what is a dc?
 
calc 3 was multivariate calculus
@William my school used .5 based grading. AB = 3.5, BC = 2.5, DC = 1.5, etc
 
wtf so no As?
 
We've got Diff Calc. and Vect. Calc. in the first sem.
 
Nit
@William The gradient is A, AB, B, BC etc
 
1:14 AM
no, you still have ABCD
 
Nit
If I understood correctly
 
yes
so instead of A- and B+ (which are 3.6666666 and 3.33333 which makes the math hard) you have AB which is 3.5
 
ODE, LDE, Laplace Trans. in the second
 
I learned to stop worrying about GPA
 
I took eng calc 1 and 2 which was basically derivation/fundamental theorem of algebra and integration, respectively
but we had to do crazy stuff like flux and curl integrals
yeah we did ODEs and LDEs
I did laplace and fourier and all that stuff in Circuits and later much more advanced stuff in linear systems
 
1:16 AM
I never got to really apply laplace/fourier
 
Oh my god what is Residue Theorem.
 
Don't worry about that for now
 
@Meredith I had to use it a lot in digital signal processing, circuits, and control systems
 
@littlepootis has to do with the residue left on your computer from thermal past from a cpu
 
we didn't have to do any complex analysis stuff
 
1:18 AM
@William lol
 
I took a class on complex analysis
Ehh
I just don't like analysis in general
 
Nit
It's one of those neat things which you learn for the class and then completely forget afterwards
 
yeah
linear algebra is probably the most useful thing I got out of my math degree
 
i hated linear algebra had to w the class
 
Linear algebra seems great
 
1:19 AM
I guess we did a bit of applied complex analysis in circuits
 
Until you learn about quaternions
Then you're like, why did we waste all that time on transformation matrices?
 
you have to have complex diffeqs down pat to do well in circuits
heh, I didn't get that far
 
My abstract algebra professor liked them
 
makes sense
 
Is angular 2 ready for use yet?
 
1:22 AM
I didn't get to that either
@user6582640 angular 2? why would you ever use that when angular 3 is right around the corner?
 
I tried to focus on abstract math
 
like is it bug free and being adopted yet?
 
Just cuz it's a little easier for me
 
haha codeman
 
anyone here understand ubunt
 
1:23 AM
good little javascript developer troll eh? ;)
 
they keep changing everything and it getting annoying
 
I got to take a class on topology
 
angular wasn't totally impossible to learn
 
Which is a really neat branch of math
 
no idea how steep a learning curve angular 2 will have
 
1:23 AM
@William yes
 
but it does have server side rendering
 
Nit
@user6582640 angular 2 is in release candidate, so unless it's a throwaway project, no
 
> A_tough_gang_of_Spinning_Tops.jpg
 
1:24 AM
cool
If you're developing a new app for a company, do you just get started with angular?
 
I just realized the Wave Optics unit lectures are done being taught.
I don't really know what it is.
 
I wonder if they're going to ask to upgrade for 200ms worth of load time
 
But I got an A on a wave optics test.
@William what desktop environment is that?
 
I remember the last time I got an A on a test
 
@littlepootis the picture isn't right
 
Nit
1:26 AM
@user6582640 No one upgrades just to be on the newer version
 
> Is it possible to have single click on the dock icons activate expose by default?
I don't know about this, but you can setup hot corners with unity-tweak-tool.
Also, wait. What dock?
Unity has a dock now?
 
Nit
@user6582640 But to answer your real question, the water is rather murky around Angular at the moment. Angular 2 isn't ready yet and will take quite some time to get battle tested. Angular 1 doesn't have a fixed support timeline either (stackoverflow.com/a/37037365/1470607).
 
HOLY SHIT I'VE GOT A POLYMERS TEST TODAY
 
Not sure if you can do that with single child
 
1:35 AM
click
in ubuntu 12.04 it was the default behavior
some idiot changed it
 
aight I'm out, have fun kids
thanks for the React help
 
@littlepootis can you upvote my question I can't really put a bounty because I have such few rep points
?? you there
thanks!
 
how to talk to a klingon wearing headphones
 
2:04 AM
some idiot downvoted my question could someone vote it back up please
2
Q: Single Click Expose

Liam WilliamIs it possible to have single click on the dock icons activate expose by default? If you have a single window open in ubuntu it doesn't activate expose but if you have multiple windows open it does. This cause issues when I tried to use expose on several different windows in ubuntu.

 
Hi all
 
YAY ITS RAINING AND IM SKIPPING COLLEGE WHOOOOOOOOOOOOooooo
Cold just hit me fuck
 
m..
2:26 AM
@littlepootis for all of us with online classes it is raining, classes are still on nooooooo.
 
@m.. Welcome to the JavaScript chat! Please review the room 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.
 
@copy hey it seems ocaml's lwt is basically a promise lib with introspection and cancellation support and a not so friendly API :P Do you perhaps know of some wrapper/lib providing a better api? I mean, lwt's api is fine but it is a bit verbose I think. And the .wait call is the equivalent of Promise.deferred which is a bit annoying.
 
m..
What is the adoption of ecmascript 6 like? I haven seen nodejs and others implement it.
*I have seen
 
@m.. pretty good
 
@m.. Excellent in non-Safari modern browsers. Warmed up in Node. Non-exist in other implementations.
 
m..
2:39 AM
@littlepootis The struggles of a modern world.
 
There are things like babel that convert ES6 to ES5.
But it's not worth it.
IMO*
* - you can ignore them
 
that converts *some ES6.
 
most, no?
 
m..
@littlepootis What are some benefits of ecma6 other than better promises, and arrow syntax?
 
I'm pretty content with ES5 + Bluebird
 
m..
2:42 AM
@littlepootis So true, I have just gotten comfortable
 
@m.. well, I don't really use anything other than promises.
 
excellent in node too if you use the recent versions. modules are supported nowhere though. and you mostly just need ES5 and bluebird and a real text editor.
 
m..
@AwalGarg am so glad that is the case.
 
Most new features in ES6 don't actually solve the real problems with JS anyways. Takes a bit to realize.
 
I have a passing familiarity with the other features, but I don't really know they use-cases.
 
m..
2:44 AM
Other than some syntax changes and the additions of the class definition, I don't really see the change either.
 
@m.. You mean you haven't used let, const, template strings, typed arrays, map, set, class syntax, or any of those convenience functions on existing objects? That's in addition to spread, proxy, symbol, subclass, module, and the iterator that you may have indirectly used but don't know.
 
Um, indirectly?
 
m..
@Sheepy I will concede that it has been a good push forward, but mostly it has been not in you face.
 
@littlepootis Like Array.from, new Set(iterable), and a number of other methods.
 
@Sheepy I worked on a project where Maps and Iterators/Gen would have made my life easier. But this was 4 years ago.
@Sheepy I shim them.
 
2:55 AM
I just display a upgrade browser message.
 
I don't use Sets though
 
m..
That is true for me too, have not used sets.
 
@Sheepy Um, I don't have a choice
 
Yeah. I would shim in non-pet projects too.
 
I don't do frontend, and the other guy has experience working with the older browsers.
 
2:57 AM
But in my toys I use Set. And WeakMap. Every things I listed (except subclass) and more..
Like CSS variable. Love it.
Oh, wow. ES6 is getting really close to 100% support. Chrome 97%, Edge 95%, Firefox 92%, Node 92%. And even Safari, once the loser, seems to be 100%?!
 
Even IE9 supports 70% of ES6...
 
@littlepootis What? Where? You means Edge or ES5?
 
and ES2016 is tiny
Imagine, every major browser having fully implemented the full spec
 
@Sheepy ES6
think about it
 
@littlepootis I don't get it. The compat table shows IE 10 at 3% and IE 11 at 11% ES6 support.
 
3:11 AM
You'll eventually getit.
And when you do, you'll be enlightened.
 
Are you saying 70% of JS is ES5 and the other 30% is ES6?
 
No, 70% of it is ES6
The unsupported thing is also ES6.
 
Is that 70% rounded up from 66.67%?
 
No, 69
lmao
 
3:31 AM
I think I get it. You mean IE9 support 83% of ES5 which is 83% of ES6 (ES5 divided by ES6).
 
Is anyone pretty good at interpreting reg expressions?
var IS_REGEXP = /^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;
carrot means start (I think) \s is whitespace.... yeah I need help with this
 
* means zero or more
Wait, I'm going to give this a try
() probably captures
 
so is this trying to read a date
 
[] is a group
 
hmm
 
3:39 AM
+ one or more
Why is there a for?
 
no idea
 
@user6582640 I don't think so
 
would that just be part of the string?
I'm really bad at regex
 
something without white space + for+
yeah idk what this is trying to do
it's part of the code for a datepicker
let me show you the comments
// 11111111 22222222
var IS_REGEXP = /^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;
really ironic that the chat room filtered the whitespace there..
 
3:43 AM
@user6582640 This is looking for the word " for " (the first one if multiple) and get everything before and after it without leading / trailing spaces.
This may be easier to read: /^\s*(.+?)\s+for\s+(.+)\s*$/
 
hello folks
 
@MichaelBruce Welcome to the JavaScript chat! Please review the room 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.
 
I literally just went and upvoted one of your questions/answers on SA for helping. Thank you @Sheepy
 
10 rep received. Thanks~
 
Here's the relevant question if you feel like answering. Right now there's this mysterious reg exp and the datepicker is calling .match on it
0
Q: Regex TypeError: Cannot read property '1' of null

user6582640My datepicker regular expression is trying matches on a null aray. How do I fix it? Not sure what clazz should equal if the array is null. I'm thinking a simple if (matches[1]) { etc } but I'm not sure what to do if matches is null. Clazz is used elsewhere twice in the code. Do I just set clazz t...

 
3:49 AM
I would like to select a target that is the very next child of a DOM node. But it also must be in the family line from target to currentTarget. The reason is I want to toggle a class to a card which is in a page of other cards. The parent element holds ALL the cards. Current target is any number of tags on top of each card. The problem is the class is being added to the currentTarget, I just want it added to the closest child of the main parent that is on that currentTargets family line.
I hope this made sense.
 
@Sheepy It doesn't do the same thing though
. doesn't match newlines
 
@Ryan Yeah. Too bad that JS doesn't have dot-match-all modifier.
 
@Sheepy There's a proposal for it!
 
@Ryan I am more looking forward to look behind, to be honest :p But dot match all is nice too!
 

« first day (2146 days earlier)      last day (2817 days later) »