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

5:00 PM
there is a yellow head who can...
 
@AwalGarg sometimes that is the best way to learn, by teaching yourself so you can't each others.
I've learned a bunch just by doing research to answer questions.
 
ok. Anyone wants to know if it is possible to do X in dev tools and doesn't want to google, ask me. Ok?
 
@AwalGarg How do I order pizza from dev tools?
actually I know how to do that
Apparently you can tweet dominos with an emoji of pizza and they'll send you pizza
 
Figure the API out for your pizza place and XHR magic
Tada! Pizza from devtools
 
posted on May 29, 2015 by Alex R. Young

Antonio Stoilkov sent in jsblocks (GitHub: astoilkov/jsblocks, License: MIT, npm: jsblocks), a new client-side framework that claims to have a rendering performance that is faster than React. It's a full-featured framework, and has some unique features. For example, it aims to improve the debugging experience of client-side apps, so

 
5:03 PM
@Cereal you can disable web security, enable remote debugging, and use the remote tools socket stream to script the browser to take the necessary actions to order it.
quite simple.
 
It's really fascinating that you can touch some glass and have things appear at your doorstep
 
I was wonderinf if people have used, are planning to use polymer for JS projects ? any downsides why not to use it ?
 
Downsides being you have to use it
#nouibestui
 
Its really fascinating when Zirak messages you "don't eat for 40 minutes" then a pizza magically appears.
 
Hahaha
He didn't give it away, though, did he?
 
5:06 PM
Its reall fascinating that I can type my questions in this box and some crazy avatar people automagically send the answer.
 
It's really cool that we can associate so many concepts with these weird shapes in different combinations
 
Aww did you guys smoke without me? :(
 
Hahaha
 
@Feeds new framework? time to rewrite all the things!
 
I need a UI project
 
5:10 PM
@rlemon ^
 
you can do the UI for my site
 
xD
 
because really, I'm struggling
 
lol :D
i typed lemon then realized i can pun it :D
2.9 LameOn
 
@rlemon please change your display name to "rlameon" for a day or so? :D
 
5:12 PM
@Cereal I could
but it'll be in clojurescript
 
I don't know what that entails
 
I wrote some UI using es6 classes and another new dom module. real nice.
 
@Cereal oh damn really?
thats a pretty good deal actually :/
 
@Loktar Yee. Witcher 3 and batman
 
@AwalGarg I use react with rxjs and es6 and systemjs, it's really fun
feels like real programming™
 
5:14 PM
@Mosho I like it too, but either I don't completely understand react or it is missing somethings.
 
such as?
 
Like I don't know how to attach multiple event listeners of the same type.
how to onClick multiple handlers?
 
not sure why you would
 
@Mosho why not? why do you think we use addEventListener instead of onclick in vanilla dom?
 
just because you can doesn't mean you should
event listeners impact performance and they do nothing calling one handler that does all the things can't
but you still can
just not with onClick
 
5:17 PM
@Mosho That makes debugging slightly less fun :/
 
you can use vanilla js in react just like any other framework
use addEventListener in componentDidMount
and remove it in componentWillUnmount
@Cereal it's not javascript
 
Doesn't affect me!
I can't do front end to save my life. I just pretend and people pay me
 
and it's just a table with data?
 
data from a database. There's an upload page, and a player page but yeah. It's.. simple
 
@Mosho so like this: React.create...(componentDidMount: function () { React.findDOMNode(this).addEventListener(...); })
 
5:22 PM
Data doesn't come from databases, it comes from people.
 
@Cereal where is the footer? :P
 
PFFT footers
PFFFT
 
:D
@ssube wow even people come from people so nice...
 
@AwalGarg yeah, that should work if you need to the component root
 
We need to focus our development models around synergizing with the dynamic workflow that modern mobile experts demand from their cloud-enabled services.
 
5:24 PM
if you need another element in the component, you do React.findDomNode(this.refs.anInput)
 
@Mosho mhmm, annoying but ok. Thanks.
 
it would be even more annoying in angular
@Cereal and what needs to be done there?
I mean, that looks pretty good
 
blush
 
sc2overwatch.com/search/java doesn't seem to look good
why does the search bar not reflect back the searched item?
 
To make people like you ask questions >:(
I'll add that to my list of things to do
 
5:28 PM
Hello
I'm back :)
@AwalGarg you here ?
 
@Cereal what is that weird background color on the root element?
@ZahidSaeed hi
 
hi
I came here with another problem
 
also no results should say no results, I should not be staring at a blank sheet
 
<body>? It's a leftover from some other project I copy and pasted from. I noticed that last night. It's removed on the dev side
 
Can you help me @AwalGarg ?
 
5:29 PM
@Cereal but it's great that there are no pesky weirdo animations. good look overall :)
 
@ZahidSaeed just ask your question, and if me or anyone can answer it, they will :)
 
Should I paste my code here ?
With proper indentation ? ;)
 
@ZahidSaeed no. put it in jsfiddle or pastebin
@ZahidSaeed sscce.org
 
@Cereal so idk, I'm looking to write something from scratch
 
5:31 PM
I dunno, if it looks fine I guess it doesn't need to be changed.
I thought it looked stupid ~
 
@Cereal are you a backend guy?
 
Actually I want to calculate the number of checked checkboxes in the table
 
it looks like bootstrap
which isn't bad
 
@AwalGarg Technically in my current job I do both
 
I personally am not a fan
 
5:33 PM
And if someone checks it and then presses the remove button then that corresponding row is deleted
 
I was writing another ui in semantics for fun the other day
 
but results are nice and easy
 
that's what the imgur was
 
@Cereal haha was just asking because I don't like frontend much either but your design is pretty good compared to the shit I write :P
 
@AwalGarg help me :(
 
5:34 PM
@AwalGarg Just don't make the screen smaller. >.>
The table's like "nah, I like this width"
 
@Cereal lol nice
@ZahidSaeed just a sec
 
there's this framework called Om
so I google Om, and it's so many things
 
@AwalGarg no, name changes are 30 day minimums
 
it's a rock band, and a football club, and some hindu mantra, and this:
> The OM/ONE is the world's
first levitating bluetooth speaker.
you wat
 
5:38 PM
Still waiting
 
@ZahidSaeed …
 
@ZahidSaeed be grateful you are helped
 
I'm :)
 
guys
that speaker fucking levitates
 
how?
 
5:41 PM
magic?
 
magnetic levitation is cool, but 1) how do you power the thing? and 2) speakers are usually too heavy for that
 
offtopic: is anyone here familiar with pdftk?
 
@JanDvorak says it has 15 hours battery life
 
Link?
 
TWO HUNDRED BUCKS?!
 
5:43 PM
I can see my cats fucking that up real quick
 
@rlemon cheap, right?
 
definitely something I would buy when drunk
Something arrived at my house today, no idea what it was
I assume I ordered it the last night in france
 
it's also a microphone
 
@AwalGarg nope it was intended to be lameone
lol
 
you talk have calls through that thing
 
5:45 PM
I can imagine it now
HEy how aRE YOU
 
I'm gonna call them to see if they have one that comes with death star graphics
and order 10
 
If you told them you'd order ten, they'd probably make you one that looked like a death star
 
Or make your own vinyl wrap and sell them
 
@ZahidSaeed sorry was afk, you want number of selected checkboxes in a parent element, right?
 
I want the number of selected checkboxes in the childs
 
5:47 PM
@ZahidSaeed quick demo: jsfiddle.net/a3o08udj
 
Using jQuery
 
I don't use jQuery, sorry.
 
I used:
self.tbody.find("input").filter(":checked").length
 
ok
 
But it returns the length of each and every element of input of checked box
I don't want that
In other words, it loops
 
5:49 PM
Why don't you use vanilla js?
All jquery code is just JavaScript.
 
Yes
That's why I want to use it
 
Because working with the DOM is a pain
 
Then what is the best way to do it @copy ?
 
@copy and what I wrote in that fiddle is a pain to write? seriously?
 
That's a trivial example
 
5:52 PM
I agree :)
It's really pain... lol
 
then use it for non trivial things @copy
 
@AwalGarg You asked why someone uses jquery, I told you
 
@copy I didn't. I asked him why is he not using the code I gave him.
 
I don't see it
 
not visible to copies :P
 
5:57 PM
there are two schools: those who hate jQuery, and those who understand its use cases
you can choose to attend classes in both however.
 
Permission to cut classes to get actual work done?
 
depends on which school
 
@rlemon former :P
 
jQuery helps many people get work done. Just because you're biased against it doesn't negate said fact.
 
6:00 PM
@Abhishrek you know one for mercurial?
 
@Zirak like potatoes?
 
jQuery helps bad developers continue to be bad developers; it also helps good developers not waste time
take your pick
 
@NickDugger It has nothing to do with bad developers
 
No, but bad developers flock to it
 
!!s/rak/rak is /
 
6:02 PM
@AwalGarg tak is e your pick (source)
 
I use it to disrespect projects I hate
 
@AwalGarg @Zirak is like potatoes? (source)
 
usually wordpress
 
Wordpress is bad, though
 
@rlemon Whether I like potatoes? Sure, I'm fond of potatoes.
 
6:02 PM
yeah, so why compliment it with good front end
 
@AwalGarg who the fuck uses mercurial ?
 
@Mosho because that's your job
and mine
 
@Abhishrek It is great for laaarge projects like FF :D
 
@NickDugger no it's not, my job is too make stuff that work
 
jsfiddle.net/803ytxjL What we really needed
 
6:03 PM
anything beyond is my choice
 
My job is to kick ass and drink milk
 
@AwalGarg oh git is good for small projects like linux
got it.
 
and I'm all out of asses to kick
 
@Abhishrek Linux may have more history than Firefox (maybe not), but you can't argue that browsers today are much, much bigger and more complex than kernels.
 
@AwalGarg Go back to sc2overwatch.com
and replace boostrap css with this
 
6:05 PM
two guys from AngelList contacted me last night. I'm not interested in moving to where they are, but am gonna see how it plays out
 
Still on the search page ;;
 
ok sorry :P
doing on front on
 
hiding the search button helps too. I Think it looks nice
 
6:07 PM
 
People play videogames?
 
user1596138
Heh
 
@Cereal you might wanna pick more decent colors for highlighting the rows in the table, but otherwise it looks really nice. Better than most "modern" websites we get to see these days.
(also, I didn't get my footer yet :P)
 
I'll make you your damn footer. I'm at work, so just throwing css from bootswatch in to see how it looks
 
:D
 
6:10 PM
3 hour bus ride after work is when I can fix
 
hahaha ok
wait normalize doesn't set box-sizing on *? :O
 
I think I'm going to mix like 3 of these together
 
@Zirak wat
 
More code yes, more complex probably no
 
yeah. Plenty more code, since UIs take obscene amounts of code, but way less complicated and touchy compared to handling hardware.
 
6:19 PM
And handling multiple cores and schedulers
 
@BenjaminGruenbaum had the submodules discussion I had with you with someone else today, and they raised exactly the same point as you about package managers doing the version management thing. But today it striked to me that git is a version control system, so why don't we let it do version control?
 
@AwalGarg BenjaminGruenbaum is afk: dinner.
 
And file systems
 
are those really part of the kernel, though? more like plugins
all drivers are just kernel plugins, really
and kernels are just plugins for the hardware to talk to the software
and hardware is just a plugin for electrons
When you get down to it, it's all just plugins, man. jQuery was right all along.
 
And electrons are just a plugin for God
 
6:26 PM
God is just a plugin for uranus
 
s/r/r /
 
@Zirak shouldn't cap be informing me of BenjaminGruenbaum's afkness only once?
 
user1596138
@BenjaminGruenbaum hey. You get your car fixed/scheduled to be?
 
@Jhawins BenjaminGruenbaum is afk: dinner.
 
6:42 PM
Where is the error in this code?
<script type="text/javascript">
function HightLightKeywords() {
var container = document.getElementById("result");
var keywords = new Array();


for (int i = 0; i < keywords.Count; i++)
{
Response.Write(string.Format("keywords['{0}'] = '{1}';", i, keywords[i]));
}

for (var i = 0; i < keywords.length; i++)
{
var a = new RegExp(keywords[i], "igm");
container.innerHTML = container.innerHTML.replace(a, "<span style='background:#FF0;'>" + keywords[i] + "</span>");
}

HightLightKeywords();
</script>
 
Where does the console tell you the error is?
 
@Harish keywords.Count? what is that?
 
@towc
solve
 
well the box on the right is 77
what's the two dots?
division?
 
looks to be so
also, solve it with code
:D
you want to solve for all solutions
 
6:44 PM
Are order of operations applied?
 
@AwalGarg its a object of list items.
 
naturally.
also, you can only use the numbers 1..9
and only once
see it's getting more interesting!
see above
 
ohhh
ok
 
I was going to use 0 a lot
lame
 
lol
 
6:46 PM
What was the ES6 way to for a for..in(?) for both key and value? I thought something like for (let [k, v] of thing)?
 
for(d,v : thing) would make the most sense to me, but I have zero idea
 
@rlemon doesn't provide keys AFAIK
 
It doesn't. I'm looking for the destructuring for loop
 
If you want the key and value, you probably still need to use forEach.
 
6:49 PM
yeah for..of is only really good for generators and really simple iteration
 
well, solving with code would be quite easy..
 
are trimRight and trimLeft actually usable in general?
 
ecma has those functions?
 
user1596138
@AwalGarg If you want keys use for in. That's what it's for.
 
@Jhawins No, I'm pretty sure it's for weeding out the bad programmers who do for(obj in array)
 
6:52 PM
I've installed Ubuntu but the graphics looks bad (at least on firefox)
Do I need to install something else?
 
user1596138
@Retsam for (key in array)
 
@Catgocat fonts, I imagine
 
@Jhawins for(key in obj)
 
Exactly
@Cereal So now what
 
!!tel catgo google ubuntu fonts
 
6:53 PM
@catgo google ubuntu fonts
 
user1596138
@rlemon Err. Yeah. @Retsam was being a poo head and confused me
 
we don't have a google command?
 
user1596138
Only problem with for..in is that it iterates over like everything lol
 
tel is an echo alias
 
And the mouse sensibility is very high
 
6:54 PM
I was deliberately illustrating a mistake that I've seen other people make?
 
user1596138
And sometimes the cows get sick
 
can someone tell me what is best , to load classes from an a tag or do the whole thing with jquery ?
 
user1596138
Since we're just spouting bs hahaha
 
@Catgocat try this sudo apt-get install ttf-mscorefonts-installer culmus
 
@Cereal MOuse sensibility is very high and in system settings is on low can't get it any lower
 
6:56 PM
lower the dpi on your mouse? is your resolution low?
 
no, resolution is fine (I think?)
 
user1596138
for each (k in v) {
  // yeahhhhh old school
}
 
mouse dpi is like 60000000000000000000000000000000
 
In seriousness I broke a bunch of people's code at my first job because I added a function to the array prototype, and it turned out a ton of people were doing:
 
@Catgocat system specs? (as in screen res, mouse model etc..)
 
6:56 PM
how do I open the command line though ?
1080p 60hz + R.A.T 5 mouse
 
for(x in array) {
    x = array[x];
    //....
}
 
@Catgocat ctrl alt t
 
or better put "can you load content from a div from an external html file into a div on the current page and apply other classes from an a tag
 
user1596138
3 mins ago, by Jhawins
Only problem with for..in is that it iterates over like everything lol
 
using for...in on an array is blasphemic
 
6:57 PM
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
 
user1596138
Also, stop adding functions to Array
 
afonso@afonso-ubuntu:~$ apt-get install ttf-mscorefonts-installer culmus
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
 
@Catgocat execute: sudo !!
 
user1596138
!!bin that
 
@Jhawins That didn't make much sense. Maybe you meant: ban
 
6:58 PM
@Jhawins It was for sanity. We were using essentially like ES3 JS.
(This was in TestComplete, which if you've never had the unfortunate experience of working with... it's not a fun time)
 
user1596138
lol yeah that sucks
 
old
 
sudo apt-get install ttf-mscorefonts-installer culmus
@AwalGarg
 
Where I'm missing semicolon in this javascript code?
 
6:59 PM
@Catgocat yeah put in your password now
 
for (int i = 0; i < keywords.length; i++)
{
Response.Write(string.Format("keywords['{0}'] = '{1}';", i, keywords[i]);
}
 
(not here, in the terminal)
 
You're missing a parenthesis, not a semicolon
 

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