« first day (2387 days earlier)      last day (2554 days later) » 
00:00 - 16:0016:00 - 00:00

A K
12:00 AM
each script has at least 500 lines of code
 
that's a buttload of python
 
I never knew python code could be that ugly, it's designed to be beautiful
 
A K
there's like 40 components, and they're all sibling components with 1 parent
 
And they wanted me to fix something in the first 3 days, I would have needed 30 days to understand their stupid script.
 
A K
i straight up told the CEO, the way the entire app was built, itll take any experienced developer days just to understand
 
12:03 AM
you're right
 
A K
pure react.js, no redux :(
 
That's what I told my recruiter and then she blacklisted the company
 
@AK Your startup has acquired a lot of technical dept. That happens, especially when you needed to get a viable prototype running quickly. Now, you could explain that to your boss, iteratively reduce that debt and improve the code-base to accommodate new features and needs. Your boss might understand this, you just need to communicate. However, I can understand that such clean-up work is not everyone's favorite job.
I encountered a similar situation, but everyone understood why it happened and knew about the steps and timeline to fix it.
 
A K
I'm getting so tired of working in shit environments :(
 
12:20 AM
@AK If the pay and your position doesn't make up for that, leave. You will probably be the only professional developer there and apart from the money, you can't get much out of such a development position (in terms of acquiring new knowledge, learning new tools etc.).
 
BOOM
multithreaded event loop - checked
that was fun
epoll API is real nice
 
quick question where shall i be keeping my files to be parsed by xampp
??
i know its htdocs but is there any way i can find the path where its located
 
12:43 AM
or how shall i know the url to get into launch the local host website
 
Look into apache/conf/httpd.conf and search for DocumentRoot
 
 
1 hour later…
2:10 AM
If a Post request is successful from Postman, does it mean it should succeed from HTML form too? Does it mean there is no probability of CORS issue?
 
@littlepootis He's practically offering the gun to the cashier
 
2:27 AM
gun jammed too
couldn't even fire it if he wanted too
 
2:42 AM
I did a post request from Postman and Mozilla OpenHTTPRequester. Sending data as json. That is, Content-Type : 'application/json'. But then when am trying to do the same using XMLHttpRequest object, am getting 405 error
var xhr = new XMLHttpRequest();
xhr.open('POST', 'https://dev1-jabs.com');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify(data)));
Am just doing this Ajax call and there is no form submission etc.
 
regex/dom manipulation question --> how can I allow a user to type a string and then programtically wrap that string with some other regex stuff? The jsbin below is as far as I can think.

http://jsbin.com/qovonimare/edit?js,output
 
Any idea what the reason could be ? In Mozilla dev tools, it says Request Method: OPTIONS
 
@KendallFrey :p
 
2:59 AM
0
Q: XMLHttpRequest JSON Post going as form-urlencoded

Anuj BalanI have a form in a HTML page which does the following: form method="POST" id="myForm" onsubmit="callSlates();"> Javascript function is as follows: function callSlates(){ var form=document.getElementById('myForm'); form.action = "https://dev1-apiservicesweb.dev.jabs.com:8111/api/v1/sy...

 
 
4 hours later…
7:01 AM
@littlepootis I don't think he realizes a gun is a ranged weapon o.O
 
 
2 hours later…
8:55 AM
@FlorianMargaine Bringing back our old tradition: man7.org/linux/man-pages/man2/prctl.2.html
 
9:27 AM
Hey all, while using pastebin.com/AqcMdFWG I get an infinite loop and "Error: Cannot activate an already activated outlet". Can anyone tell me why?
^ When I navigate to /internal-server-error, it just works.
 
9:40 AM
Anyone? :D
 
9:52 AM
The state of JS frameworks is wonderful
It's all so neat, beautiful and easy to setup
My eyes glow at puns like cup.coffe. It's all just so gleeful.
Compare that to boring clang++ main.cpp -o output. Amirite?
 
Haha, totally.
 
@Shoe You mean C++ devs don't have a sense of humor?
Who'd have thought?
 
He he
 
10:08 AM
anyone interested in open source here?
Particularly jquery contributor
!
 
@Hemant yeah, I'm interested. Just used jQuery recently in my projects. Maybe could help me to sharpen further my learned skills in jQuery
 
@Juniuz Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
10:33 AM
What the maximum amount of time I'm allowed to take in order to set up webpack with babel and Vue.js before I'm called stupid?
 
10:47 AM
@Shoe depends
are you doing it for the first time?
if yes, then it's fine to fuck around with it for entire day, especially if you are also doing migration from compass
for the second time .. well .. 20min (including a break for a piss and coffee)
 
?
how to master grunt-cli
 
Read the documentation and use it?
 
@tereško First time IIRC
 
@some
@SomeGuy I find it a bit hard
to learn as a beginner
 
have you tried picking a different hobby?
 
10:59 AM
Haha. Growing pains; you'll learn how to learn more efficiently as time goes on
 
@SomeGuy Its so frustrating .Each day brings new frustrations.Everyting sucks
 
@Shoe You should go back to botany
 
@Hemant this might be a sign, that programming is not for you
 
Botany was relaxing
 
2 mins ago, by tereško
have you tried picking a different hobby?
Are you just forcing yourself into this?
I agree that it can be frustrating, but for you it sounds like it's not something you want to put up with
 
11:01 AM
Most people don't have choice.
 
@littlepootis couldnt disagree more
 
Like if you are from India
 
Exactly.
 
You either become a programmer or die
 
Being a doctor or a lawyer are alternate options too, for some people in India!
 
11:02 AM
@SomeGuy Thats not all time .There are some instants which I learn easily but sometimes I get stuck,I am talking about that
 
@Hemant That's probably going to be life, man. Things will not always be easy and smooth-sailing.
 
Do everyone experience it as a beginner !!
 
exactly
 
@Luna Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
11:05 AM
not really - my reaction usually is curiosity not frustration
 
Thanks
@tereško but if it takes longer !
 
define "longer"
 
say 4-5 hours in a single prob
 
last time, when I was at the "beginner" position, I spent a week banging against the wall of AngularJS
 
I have spent longer than that on a single prob.
 
11:07 AM
Hahaha
 
@tereško thats the difference here.I take it negatively..
:)
 
I've spent days or even weeks on a single (or a single group of) problems
 
How to have cool mind set...I am still a student :)
while it sucks
 
step 1: eat more meat
 
huhH !
 
11:10 AM
@Hemant maybe grab a cup of coffee..take a break
 
Hey all!
 
@xenetics Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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
i need a javascript simple ocr that avoid borders !
 
@Hemant Try making something interesting using what you learn. The best thing about programming is that you can immediately put to use whatever you learn.
 
@tereško what did it mean :/
 
11:11 AM
That also helps you retain knowledge.
It means you need to eat more meat.
 
im making a kind of dictionary app using react
 
Or if you're a vegetarian or vegan..
 
@Hemant humans are apex predators on this planet ... stuck at their desks
 
its for japanese. using one character, i want to find any words containing that chracter in a dicitonary of around 140k lines. i have said dicitonary as a json
what ist he best way to do this?
even just doing import dictionary from 'dict.json' throws errors since it's so huge (around 5mb)
 
any help guys !?
 
11:14 AM
I recently started to learn to touch type.
 
@MustaphaElbazi dunno about borders.. maybe check out github.com/naptha/tesseract.js
 
I went from 15wpm to 45wpm in two weeks.
It was frustrating in the beginning.
 
@littlepootis .. now would be the best time for you to realize, that most of the time you spend reading old code an not writing new one
 
But boy, I'm glad I didn't just give up.
@tereško Well, I'm aware of that.
But it makes it easier for me to use vim.
 
I'm not even sure how much I look at keyboard or not
 
11:17 AM
@suraj
do this look like it's avoiding borders
https://github.com/thiagoalessio/tesseract-ocr-for-php
?
 
@tereško thats's amazing I have to look for special chars ;)
 
0
Q: Using Google Maps C# ASP.net SQL Server to show Map with Markers single user

Ivin RajMultiple Markers using the Latitude and Longitude stored in database in ASP.Net Website. When I click one user Data From the database and get user details of which has been clicked and user Latitude and Longitude should be open on the next page.. <div id="map_canvas" class="tg-location-map tg-h...

 
@littlepootis LGTM
problem is i start with H not J
 
11:33 AM
wat
That'll make it hard for you reach \.
 
nope ! that fine,,,
I can manage
 
11:48 AM
why is this not working
<!--[if lte IE 11]>
        <script>window.location.href='/not-supported'</script>
    <![endif]-->
 
IE 10, 11 don't support them.
 
I suspected
damn it
 
Hi Guys, this is the json output code jsfiddle.net/tdL7xqe3 , I used jsfiddle.net/tdL7xqe3/1 to extract the value but couldnt use the value to plot as the value is in object. how can i get jsfiddle.net/tdL7xqe3 this value plot in my graph?
this is highcharts.com/studies/live-server.htm what i am trying to do with actual value.
 
12:34 PM
this solves so many problems for me
type NestedPartial<T> = {[K in keyof T]?: NestedPartial<T[K]>}
 
2
Q: Update multiple records in a Model with Waterline on Mongodb

SuisseGiven is an array with book objects, where each status has to be updated: var books = [ { id: '58b2e58', status: 'pending' }, { id: '5903703', status: 'pending' } ] var status = {status: 'accepted'} I tried this: Book.update(books, status).exec(f...

 
12:47 PM
my json returning value with "4", how to remove "" from value?
 
Hi!
I have a very strange case:
I tried to run parseInt on "111111111111111110" and a very unexpected result came out...
 
Well, don't leave us in suspense.. :)
 
It changed the last '1' to a '0'.
Also, @CinSbSangpi, you could just use .slice(1, -1) on the output.
 
you don't even need to parse, just put 111111111111111110 in the console and hit enter
 
Yes, that is messed up...
 
1:01 PM
@Isti115...didnt get it.. can u explain? .slice(1,-1)?
 
!!> 111111111111111110 > Number.MAX_SAFE_INTEGER
 
@Luggage true
 
I think that it should be inside according to the spec:
http://www.ecma-international.org/ecma-262/5.1/#sec-8.5
 
@Mosho I know
We have something similar in our codebase
 
@CinSbSangpi: If you have the value let's say named result, and you have result = '"4"' then result.slice(1, -1) will be '4'
 
1:03 PM
!!> JSON.parse('"4"')
 
@Luggage "4"
 
@CinSbSangpi Just JSON.parse it? @Isti115
 
Too sloooooooooow.
 
jGen.writeStringField("bits-per-second-rx", spb.getBitsPerSecondRx().getBigInteger().toString());

jGen.writeStringField("bits-per-second-rx", spb.getBitsPerSecondRx().getBigInteger().toString().slice(1,-1)); ??
 
Yes, that works as well, but IMO slice is better. I mean, isn't parsing a bit overkill for getting rid of extra quotation marks?
@CinSbSangpi: Yes, I think that should be correct.
 
1:05 PM
potato potato (read that as if I pronounced them differently)
 
:D
Also, back to the huge number, that means that I will need to either operate with it as string or bring in some BigNum library, right?
 
i guess.. I have avoided needing to deal with that particularly annoying bit of JS
 
doesn't like it --got error "symbol: method slice(int,int)"
 
O.o
Try the JSON.parse(value) way then!
@Luggage: Thanks for showing me Number.MAX_SAFE_INTEGER, I didn't know about it before. I will try to solve it somehow, bye! :)
 
@Isti115 thx
 
1:08 PM
o/
 
guys, anyone knows of a typescript "documentator" that actually works?
I have a whole project with decent comments and whatnot, but I need to turn that into an actual documentation
 
@CinSbSangpi: You're welcome! I hope that you will be able to figure it out! :)
 
!!summon 139
!!live
 
shameless plug so you guys can see the decency of the comments x)
 
@SomeGuy that's a bit big. Look up signalfd if you want something fun. Then look up epoll and weep at the poetic beauty.
 
1:11 PM
@MadaraUchiha I'm not dead! Honest!
 
@Isti115 not sure.yet
 
If you want something less fun, look up aio and see how it's implemented. Then cry.
 
I'll pass, for now.
 
A little quiz: even if it were well implemented, why does it still suck?
The answer starts with an "o" and ends with an "n"
(when I said "how it's implemented", I just meant from a design point of view, no need to look at the code)
 
OpinioN?
It wasn't clear from < 1 minute of skimming the man page on aio, so I give up.
 
1:20 PM
@Luggage it's not immediately obvious
 
ugh. a project i use, react-select, has tons of open issues and even lots of PRs but nothing is moving: github.com/JedWatson/react-select/pulls
in the words of my president: Sad!
 
I hesitate between giving out the answer or waiting for @SomeGuy to think about it
 
Yea, give him a chance, since I don't really know shit about it
I am not in a position to appreciate what I assume is clever.
 
Hey guys
I have a question
What is a runtime
Is it a program?
Or just a library
 
It could be either. Node is a runtime, and it's a program.
 
1:28 PM
I would like to understand what it is. But my google search was not productive
 
But a runtime could be a "library" that you never start directly (kinda like it is in .NET.. but not really)
 
What is it's function?
 
it passes butter
 
A runtime is something your code runs with, a library is a collection of functions you add to your runtime and then call, a framework is like a library except it lays down structure and calls your code instead of you calling it.
 
It provides many functions (e.g. node's filesystem functions) but also core language features (like garbage collection)
 
1:30 PM
@rlemon I want new episodes so bad :(
 
soon
 
Also, lil-dicky is coming to Israel :D @rlemon on July 4th
 
i haven't seen the one released season 3 yet, i want to binge watch
 
2 days ago, by rlemon
someone get some bread, cuz I'm jelly.
 
lol, my recollection of that evening is not too complete :D
Also, doing a meetup where me, @Zirak, Google engineer working on Node, Google engineer working on Node+Kubernetes, and a relatively well known Hebrew JS speaker are going to give talks. Those of you in Israel (like @Royi ) are welcome to attend, videos come out after 6-8 weeks
 
1:35 PM
Pls guys can you please explain like explaining to a baby?
I dont understand. I would like to understand the basics. Thank you
 
I don't usually have the runtime talk with my children until they are older.
> Just say no to Java
 
I have a javascript code say, alert("i am a noob")
 
> No optimization until you are married
 
what really happens
Is the runtime involved in displaying that alert?
 
Minimally at least, yes.
in node/browser world i think that the runtime will be involved in any function call, but the implementation for alert() is by the browser.
if we over-simplify the JS runtimes and ignore compling and other details. We can just say that "the js runtime RUNS your code. Your code can't run itself".
 
1:46 PM
not yet, at least
 
With languages like C, you can make a binary (.exe) that has no runtime. It only needs an operating system. But JS uses a runtime.
 
Doesn't C normally use a runtime?
 
yea, but it doesn't require it
or you can statically link the bits you need
 
and an operating system is basically just a special kind of runtime
 
but the OS runs YOUR code, which then loads a runtime library in c-world. Not like JS
 
1:49 PM
I have written C to run outside an OS, now that I think of it
 
What is the runtime's role in displaying an alert please tell me
 
Your pedantry probably doesn't help this guy understand where I am trying to make the border between runtime and not to be more obvious than in real life.
 
@KendallFrey pls dont scold me for asking such a question
 
he didn't scold you..
 
He usually scolds me when i ask questions.. :)
 
1:51 PM
@ILikeToMoveItMoveIt A runtime doesn't necessarily need to be used to display an alert
 
you deserve it for the "explain it to me like i am a baby" request.
 
@ILikeToMoveItMoveIt Dude, I used the word "fucking" for emphasis once. That's not scolding.
 
@KendallFrey :P but luggage said it minimally requires the runtime
 
10 mins ago, by Luggage
in node/browser world i think that the runtime will be involved in any function call, but the implementation for alert() is by the browser.
 
I was explaining with crayons
 
1:53 PM
For a math calculation say, math.randon(), will the runtime have any involvment?
 
@ILikeToMoveItMoveIt It could, but there's no reason it has to
 
You could say it's provided by the runtime and be "accurate enough". But in reality it might be more like a "standard library" that comes with a runtime.
 
The runtime is concerned with things like executing functions, like Luggage said
But specific functions don't usually come from the runtime
 
smart languages split their runtime and stdlib, or at least define the latter as a module for the former, but JS skipped that step :)
 
Alert is a function right?
 
1:56 PM
yes
 
runtime: Runs code. (like yours, build-in code, 3rd party code, all JS)
standard library: things like Math.random (and the DOM and alert() when you are in a browser)
3rd party library: things like jQuery
 
and the DOM library, with elements and alert'
 
@ssube i thought it was the browser's function to do that
 
blink
 
it does. most runtimes provide both the standard library and a special one for themselves.
 
1:59 PM
I was blinking in disbelief, not referring to the blink engine. I see how that could be confusing.
 
I guess those could accurately be called second-party libraries.
 
and XSS is 4th party code :)
 
Sorry guys i am just a college kid trying to learn stuff. :( and i suck at javascript
 
you're already too old
 
2:01 PM
(that's a joke 😀 )
 
most of us are college age or shortly thereafter
 
Wow. Can you guys pls recommend any site that will give me a good low level inderstanding of how javascript works?
Or it gous can share how you all got soo good with javascript that would be great.! :)
 
time.
 
2:04 PM
writing code
I didn't have to understand all the components of the js engine to start writing bad code and learning from it
 
writing and refactoring and testing and repeating
 
You also don't need to know how an internal combustion engine works to start learning how to drive.
 
and some are pre-college
 
they don't count, though
 
thanks
 
2:05 PM
:)
 
But will that help me understand how javascript works under the hood?
 
It'll get you off our backs. :)
 
yes. Will it help you write better javascript? yes. But is it going to be worth the minor improvement compared to other things you can learn about, taking the effort into consideration? no.
 
Thank for the website ssube
Thanks guys. For the help. Will talk to you all tomorrow as a better javascripter.
 
2:10 PM
before you try to understand how JS works under the hood, learn the language thoroughly
the runtime semantics, especially the way the spec describes them, make no sense unless you know the language well
 
2:23 PM
is istanbul still pretty much the only coverage tool for js?
 
@ssube speak for yourself
The average age has gone up, especially since a lot of regulars have been staying
Even @SomeGuy is now almost an adult
 
I suppose that is inevitable
but yes, we do have a few geriatric patients :p
I'm sorry I forgot about you
 
Speaking of, when is the baby for, @BadgerCat?
@ssube I'm far from the oldest :P
 
gist.github.com/luggage66/… This started in TypeScript 2.3
 
I forgot 2.3 came out
 
2:36 PM
@Luggage fun
 
yea. seems it's tossing my reference away.
 
the generic defaults alone will save me like half my code base <3
 
i really wish it wouldn't do that.
 
Hi guys, could someone take a look at this? stackoverflow.com/questions/43696771/…
 
I have other files where the 'classnames' library is only used in JSX, too. They don't have the same problem.
 
2:43 PM
TIL about FormData and FileReader
 
@Luggage that's really bad :(
I assume there's an issue about it
 
I'm searching, but the issues list on github is a shit show
 
@Luggage hmm, I just tried to reproduce
with TS 2.3.2
seems to work
I mean, I'm not running it
but this is what I get back
 
yea, it doesn't have the problem in other files..
 
if you can reproduce it in a repo I'll poke around
 
2:54 PM
psting my real file in ts playground seems to produce something valid too
yea. will try.
it could be a webpack issue, too. i'll make a non-webpack version with tsc and check
the generated code is missing the import, but it's all webpacked up
gist updated with what i see in webpack and my REAL file (which is no much different than my sample)
 
I'll take a look later, off to the gym
 
3:16 PM
Hi, I'm unable to update labels of a chart. I'm using ng2-charts. On the line chart example here. Labels are defined with this line public lineChartLabels:Array<any> = ['January', 'February', 'March', 'April', 'May', 'June', 'July']; After this line executed I'm changing the value of lineChartLabels with 7 different strings but I can't see any changes on the chart. Do you have any idea?
 
@Mosho ok. I can reproduce with a minimal example. And I found out what code causes the problem (but not why). github.com/luggage66/ts23issue
yarn install && node_modules/.bin/tsc --watch
Then. If you remove the {...buttonProps} from this line it'll produce the correct output with the classnames library imported. If you leave it, it drops it.
 
you should definitely post that on the main tracker, I bet the answer will be interesting even if it's not a bug
 
yea. I'll make my example even more minimal first. I added a bunch of code once i realized that my original minimal exmaple worked. Then I knew it some some code that wasn't directly related to classnames.
and check it it's a specific target, etc.
 
hey guys, im writing plain text on canvas. how do i know which fonts i can use?
 
3:36 PM
ok. target, jsx: reserve all have no effect. It's the type of the variable that is spread.
// another way to 'fix'

- let buttonProps;
+ let buttonProps: object;
i think i saw some isues about spreading i am going to look at.
 
00:00 - 16:0016:00 - 00:00

« first day (2387 days earlier)      last day (2554 days later) »