« first day (2310 days earlier)      last day (2635 days later) » 

12:00 AM
@BenjaminGruenbaum hmm what benefits does it have over the way we did it with just css modules?
 
so, gl2d thing kinda works. There's an underlying system that would also easily allow for filling (and then adding support for methods like fillRect and stuff), but it's so hacky I'm ashamed to continue with this project: github.com/towc/GL2d
I can either keep trying until I get something that makes sense, or keep on hacking it through
the idea wasn't to have something extendable and pretty though, but to have something that works without the user needing to know about all of the internal stuff (so if something failed because of my library, they'd see immediately that it was in the .arc function, for instance, instead of going through various layers of abstraction)
so, I guess I'm abandoning it for now
need to look for another open source project then, with what I already know (still sharpening my node/react stuff before I get on with that)
 
@towc I like it
but it would be much cooler if it had bezier support
 
12:16 AM
look at the source. Turns out that if I do want to make something barely presentable, I do need to put the layers of abstractions on it. That's the only way I'd know how to make it more readable/maintainable, at least
@KendallFrey oh god, that's a really bad attempt at encouragement on a childish lost cause -_- you just enforced my fears, but thanks for trying, dad XD
 
You should see the history for my game
 
which one?
 
it's half refactoring
@towc The one I'm working on
 
may I see it?
 
Once I push it
 
12:18 AM
heh, I should actually just find bad/meh code and exercise just refactoring it
up to the point that I won't mind refactoring things
 
I won't see it as a "oh no, I dun wanna refactor, leave me alone, life"
 
It's way more fun to make fun things
 
it is, but I imagine that often the block is not wanting to go back on your steps to make more solid foundations
 
I've found that the biggest obstacle to me being creative is thinking
3
Figure out what you want to add next. Then stop. Don't think about it anymore. Just do it.
If I get bogged down in the details, I never make progress.
this comic was posted in 2011. the hovertext is "2017 called, but I couldn't understand what they were saying over… https://twitter.com/i/web/status/830062457821487104
 
12:28 AM
wait wut, one of the opening credits names in fight club is "meat loaf"
 
12:40 AM
I now store hashed passwords....
I made some mess nesting to much anyway...
need to use some promises to beautify
but works
 
12:56 AM
Nice
 
1:48 AM
in chrome dev tools, under network tab, I see a javascript resource with an image
how can I do it?
 
how to make angular 2 meta tags dynamic?
 
 
1 hour later…
3:05 AM
@towc wtf
Do you not know who meatloaf is
 
Great song
 
meat loaf is great
I can't find a good video of the hugging scene :(
 
In death, a member of Project Mayhem does have a name.
 
Just the other meat loaf scene but im not gonna link it in case towc sees it before he finishes the movie
 
4:08 AM
The new screenshot feature in vivaldi is pretty cool
You can do full page captures w/o using one of those crappy extensions that stitches a bunch of screenshots together
& you can add screenshots to notes and it takes like half a second
Now if they could add automatic uploading to imgur that'd be great
 
4:36 AM
@KendallFrey It still infuriates me when a reboot takes more than 14 seconds.
 
5:01 AM
@GNi33 http://www.nachrichtenleicht.de/bahn-chef-grube-tritt-zurueck.2046.de.html?dram:article_id=377942
Am I reading this right?
This guy quit because they gave him a contract a year shorter than they'd decided in their meeting (and because he'd agreed on a lower salary for the longer contract)?
 
5:15 AM
@SomeGuy Yes
 
Ohai, @copy
Thanks for confirming. I've found translation to be a shit indicator of what an article actually means specifically
How's it going?
 
Good, I'm in Mexico
How are you?
 
@copy Nice, yeah, Badger mentioned that. How are you liking it? Do you speak Spanish?
@copy Not bad at all. I haven't been going to college for the past 2 weeks because I haven't felt like it and it's been such a great time
I finally have some time to _enjoy_ tech again. Read this paper the other day and it was tons of fun
http://www.scs.stanford.edu/nyu/05sp/sched/readings/tcp-attack.pdf
 
@SomeGuy More or less, probably worse than your German
@SomeGuy Cool, been there, done that
 
are you going to build the wall for trump?
 
5:22 AM
@copy Nein, nein, ich kann nichts im Deutsch sprechen! Die Kinder sind Hosen
 
ja, ich bin lernen deustch
 
@copy Haha, yeah? I thought you went to a college you enjoyed?
 
@SomeGuy Yeah, but still sometimes you need a break
 
diese mogen, ich esse brot und liest Zietung
that means the children are pants?
 
any news about js?
 
5:24 AM
@copy Hah, right. Let me know if you have any suggestions for papers to read, though?
 
!!news
 
@neoDev That didn't make much sense. Use the !!/help command to learn more.
 
@SomeGuy This has a lot of interesting papers: wiki.haskell.org/Typeclassopedia
 
i want to know if netlify is suitable for hosting js files on the web?
 
5:26 AM
Depends on if you're interested in PLT
 
are there any downside in netlify? beside not able to use code editors there
 
@copy I'm trying "all the fields" at the moment because I'm not sure what I like or don't like
@jacobian Haven't heard of that
 
netlify is for static pages, so if you don't need database then you can use it
 
@copy Didn't know you did Haskell too, though. I thought you were more into OCaml
@jacobian Sounds good in theory. Not sure how it works out, though. Google around, maybe?
 
Weird
It adds the next element to the front of the list, then reverses it
That would be faster with linked lists I guess
 
5:47 AM
!!var
 
@neoDev ok
 
thank you
 
6:32 AM
@SomeGuy I am, but I also like doing Haskell at times
 
6:55 AM
!!note1
 
@neoDev !!>var h=''; for(let i=1; i<999; i+=i*1){h+=i+' '}
@neoDev "1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 67108864 134217728 268435456 536870912 "
 
7:26 AM
how to generate javascript form using illlustrator cc2017
It is possible
??\
 
illustrator...
javascript form...
 
because i want to generate form with various design
 
dunno
you are a designer?
 
no im a developer?
 
what you mean by form?
!!wiki form
 
7:30 AM
Form is the shape, visual appearance, or configuration of an object. In a wider sense, the form is the way something is or happens. Form may also refer to the following: Form (document), a document (printed or electronic) with spaces in which to write or enter data Form (education), a class, set or group of students Form (exercise), a proper way of performing an exercise Form (horse racing), a record of a racehorse's performance, or similarly for an athlete Form (religion), an academic term for prescriptions or norms on religious practice Form (visual art), a three-dimensional geometrical figure...
 
its just like a registration form @neoDev
 
yeah seems that can be there
but I dunno it
 
it is Difficult??
 
7:34 AM
if you can use code no
with illustrator yes (for me)
 
im also dont know how to use illustrator..
 
oh, well
 
ya
 
do you have an editor?
 
dream viewer
 
7:35 AM
you can use it to create your form
 
i'm currently using dream viewer...
i created form already..
 
I suggest to use $.ajax({...})
 
anyway thanks @neoDev
Ajax..?? why
 
dunno
 
@abdul Do you want to make an online form using an image you made in illustrator?
 
7:46 AM
thats how ??
 
@abdul You can export the illustrator design as svg, which you can use as form background or as static image. If you want it fancy you'll need to find a web designer and tell him/her what you want, face to face.
 
thank you @Sheepy
 
@Thaenor - Seems you have that code - the rest is taken care of by CSS.
 
8:13 AM
where can I find recent server type utilization statistics?
like apache, nginx, node.js etc?
like with percentages
I found this, but not sure if is true.... w3techs.com/technologies/overview/web_server/all
 
8:34 AM
@neoDev They are both good numbers. The builtwith trend tells you a better story since you can see the top 10k. top 100k, top 1m, and so on.
 
so node.js is 0.2%
wow
 
I use nginx with node
 
I'm trying sway... talking about another thing..
have you ever used it?
looks nice
 
what's sway?
 
8:48 AM
I mainly use Apache and IIS. With the occasional Tomcat.
 
@littlepootis created free in 30 seconds
or less
through an online gui
 
Sway is part of MS Office. If it gets popular they will charge for it. If it does not they will discontinue it.
 
9:21 AM
@SomeGuy porn for you paperswelove.org (you probably came across this already but)
@AwalGarg
 
 
1 hour later…
10:37 AM
Hi
 
@KiranReddy 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.
 
Hello
 
@CapricaSix got it
 
 
5 hours later…
3:41 PM
There's no "i" in "team" but there is a "c" "u" in "court"
 
4:03 PM
@Mosho it does the compile time thing.
All the calculations are done in compile time.
Also, turns out SystemJS is a lot more terrible than I thought.
 
A simple question: does Random page replacement algorithm suffers from belady's anomaly?
And someone said : random replacement can suffer from belady anomaly coz there can be a case when page selected to be replaced is by fifo policy.
 
@MithleshUpadhyay yes, trivially.
Of course the number of page faults can increase.
 
then -2/3 :(
 
Want a proof?
 
@BenjaminGruenbaum can you write, please?
 
4:07 PM
Let's say I have two pages. I have 4 slots in memory and I just ask for them always in order first the first, then the second then the third, then the fourth.
Now, let's say in my run - my random caching algorithm chooses to cache 1 and 2 always, because it can. I get 50% cache hits.
Now, let's say I have one more slot.
But this time, the random run does what FIFO would do - I get all page misses.
 
@BenjaminGruenbaum yes it's make sense.
 
Why the random OS question?
Test?
 
@BenjaminGruenbaum , yes, it's today exam question : gate.iitr.ernet.in
 
@MithleshUpadhyay Is it an entrance exam of a course exam?
 
@BenjaminGruenbaum , yes to get admission for M.Tech in IITs.
 
4:14 PM
Good luck.
 
@BenjaminGruenbaum , thanks.
 
5:00 PM
@neoDev the json manifest... is throwing syntax errors I can't find ç_ç
 
5:25 PM
hey, would anyone be able to help me
 
@RachelDockter well, it depends I guess.
What do you need?♪
 
its php but i figured its similar to js so ill ask here cuz nobodys on the php chat
$sql = "SELECT * FROM posts WHERE user_id = ?"; //Select all usernames and passwords
$stmt = $conn->prepare($sql); //Prepare the query
$stmt->bind_param("i", $id); //bind username as a string
$stmt->execute(); //Execute the query

$result = $stmt->get_result();
$row = $result->fetch_assoc();
$count = mysqli_num_rows($result);

if (($result->num_rows > 0)) //If there is one post
{
    while($row = mysqli_fetch_assoc($result)) {
        echo $row["username"]. ": " . $row["post"]. " " . $row["date"]. "<br>";
that while loop echos every row except the first row and i have no idea why
it returns all the rows because it goes into the if statment even if theres just 1
 
Well, this is the first time I hear PHP being compared to JS, and there's a PHP room andd you happen to be in it. Anyway I never had to use databases so I'm of no use for you.
 
yeh the php room is pretty dead atm lol but its ok no problem
 
5:40 PM
That would look like a good question for the main site, if the PHP people in the main site weren't (or so I've heard in the PHP chat and in Meta) a bunch of incompetent noobs who upvote each other without even realizing that the proposed solutions are bad.
Unfortunately, PHP is very complex and there are not only syntax but also a lot of good and bad practises that are not immediately evident.
 
yeh i think im gonna post it as a question instead
 
And I don't mean incompetent noobs in a badmouthing perspective
 
lol its ok i get it
 
6:03 PM
@RachelDockter Look at the line before mysqli_num_rows
Which, btw, you don't need or use
 
facepalm
thankyou zirak
 
You're mixing the OOP style and the function calls, which isn't the best code
 
that fixed it
 
I recommend you take a look over what you've written, I'm sure you'll find more things like this.
np
 
The fact that I have no idea how that fixed it while I have engineered the PHP handler for the forms of my company website should have me worry, right?
 
6:10 PM
@Zachiel Well, which line did you remove?
Sorry that wasn't you, which line did Rachel remove?
Not knowing a lot about databases or php, you can see that in the loop she does a mysqli_fetch_assoc which is fine. However, before the loop, there was an errant $result->fetch_assoc which wasn't used anywhere.
Again not knowing much, seeing the while($row = mysqli_fetch_assoc($result)) tells you that $result contains an iterator, and calling fetch_assoc moves the iterator forwards
so it's all reading the context and between the lines. I haven't done any php in over 4 years but was able to gleam that
 
I think I missed the iterator moving, I'm used to c++ style iterators that are explicitly advanced.
 
@Zachiel oh lord, c++ iterators...though you've got the c++11 for (type item : iter)
 
Hi someone can help with loading script order?
 
sure
 
6:28 PM
Hey, is there some site that recomends software architecture patterns for express js?
 
try commonsense.com
 
@towc You said to me?
 
@ZicoPL aye cpn
 
@towc ok
here is my code: jsfiddle.net/w71w3e5y
@towc my problem is that the "new test" (look at console log) will load faster as a "test".
@towc You can see it on my website horbaczewski.info
 
@ZicoPL the promise has no reason to not finish instantly
 
6:40 PM
@towc I used promises so second script should load after first
 
nope it shouldn't
it's not asyncronous
 
and third after second
why?
:)
 
the promise function is only creating the script, not waiting for it to load
oh wait nvm
I don't know what I'm talking about
 
@towc So I didn't understand promises
 
maybe I don't
wait for someone else who knows more about them
 
6:44 PM
@towc yhy, ok, I'm weak in javascript so I try find any help with this shit loader scripts..
 
bob
Heyy peeps, my mate told me my ajax call wasn't safe. and said I should use a different method. I'm not sure how to do it. here is my code jsfiddle.net/13p8ybyq/1
 
7:03 PM
@ZicoPL You're declaring a constant nonce, so you can effectively only load one script
Is that intentional?
 
@Zirak Yes
I use csp
back
I try use csp :P
 
But the nonce is constant
Different scripts require different hashes
 
I will try use hash code i future
ok Ill remove in one sec noce and set only report CSP
and we will see does it work
@Zirak I did as you said
horbaczewski.info
@Zirak sometimes you need more times to refresh code
@Zirak I see that "promise" isn't waiting for an response..
:(
I think that understanding of promises is too complicated for me. Btw. I remove nounce and turn of CSP but effect is the same.
@Zirak you're still here ? :)
 
7:33 PM
I've 2 ideas:
- create global variable
- make async script?
 
Anyone notice the github nav color change?
 
Hey GitHub imma let you finish but Stack Overflow had a black navbar before it was cool
 
7:49 PM
It's weird
I don't like change :p
 
8:37 PM
hello all! Hope everyone is having a great evening :)
 
not everyone
 
8:52 PM
oh ok, sorry to hear this
 
9:19 PM
is there a good reason to start your react routing with <Route path="/"> ... </Route>?
 
9:29 PM
@KirstyMarks hi
 
hey Neo :)
 
I'm a bit bored
I went out but was not so exciting
maybe I'll start some project
instead ^.^
@KirstyMarks do you want to collaborate on a cool project?
 
HI Neo, would love to but my JS knowledge is somewhat limited im afraid :)
 
cool
do not worry, I can teach you something if you want
I'm not a master but I know something xD
what do you want to do?
 
hahah im no way near that lol oh i dunno lol. Im just playing aroud with some things atm :)
around*
 
9:34 PM
:)
ok
never mind
 
sowwy, no im just cooking tea among other things ha
 
because people cook tea now
 
9:48 PM
when i been working late yes
 
sorry, thought your first language was english
 
yes it is, however there is a divide in the UK of what people define as "tea" based on your location and place of birth.
 
oh no, the issue is that I've never heard anyone say they cook tea ;)
 
oh, haha
 
you cook meat, vegetables or meth
we usually say "make" or "brew" tea
"put some tea on"
 
9:51 PM
not at all :) especially in Derbyshire or Yorkshire when we are cooking tea, we are making our late evening meal :)
 
hello, i'm working my way through the first exercism.io problem on javascript, and I can't seem to get any output :-l

https://gist.github.com/ipatch/48522a579354bef95eca2885624b970b

i tried running the program with `node hello-world.js Chris`
 
you're only defining an export, not using it
imagine module.exports is just another variable that has nothing special about it
no place in your code is generating a new instance of your constructor and .helloing it
also, you're returning unconditionally. There's no sane instance in which your last uncommented console.log will be called
 
hmmm, i was under the impression running node hello-world.js Chris would output Hello, Chris!
 
10:07 PM
no way m8
also, input means nothing
you need to look at how to get command line arguments in nodejs
 
yeah it's using argc or something like that :/
is there not a simple way to write a "Hello, #{inputName}!" in JS and run it from the command line?
 
10:29 PM
did some further reading, and apparently the hello-world.js program is suppose to work with a test suite.
 
10:47 PM
@KirstyMarks easy :)
someone have time for help me?
with promises in javascript
 
 
1 hour later…
11:53 PM
!!welcome ZicoPL
 
@ZicoPL 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.
 

« first day (2310 days earlier)      last day (2635 days later) »