« first day (2200 days earlier)      last day (2740 days later) » 

Wes
12:02 AM
@Loktar i imagine you being like me tomorrow. 10cm distance from the tv screen, beer, food and then backup beer and backup food... and backup TV, too :D
just in case..
 
 
1 hour later…
1:25 AM
@Shmiddty p = (C + (i > 46) + 1) * inverse(2^(i+1), len) % len
Where you can calculate the inverse using the extended euclidean algorithm
There might no solution for some values of len, I think gcd(2^(i+1), len) needs to be 1
 
 
1 hour later…
2:33 AM
@Wes just watch next weeks episode instead don't watch this one
haha good ep though can't wait until you see it
 
3:28 AM
Not sure if you guys enjoy the CodeReview.SE site, but I just posted my React code there in case you're interested.
 
 
1 hour later…
user4196492
4:48 AM
Minecraft uses seeds to generate worlds. I wanted to simplify this concept by using a seed to make random points in number and position.
 
user3119231
6:11 AM
Are websites down?
 
Yes, all the websites are down.
 
6:28 AM
yeeey
 
6:45 AM
I wonder why log(button1['onclick']) succeeds whereas ['onclick'].forEach(e => log(button1[e])) says 'cannot read onclick of undefined', codepen.io/anon/pen/jrdLKv?editors=1111?
 
o/
 
@LittleAlien because you should use more semicolons :P
currently it's parsing it as (log(2)['onclick']).forEach
 
user3119231
3d printed ar-15? LOL ghostgunner.net
 
oh god I love this:
!!> function a(p){ var obj={}; obj[a]=a; return obj}; a(a)[a](a)[a](a)[a](a)[a](a)[a](a)[a](a)[a](a)[a](a)[a](a)[a](a)[a](a)[a](a)[a](‌​a)[a]
 
7:00 AM
@towc "function a(p){ var obj={}; obj[a]=a; return obj}"
 
@copy thanks, that worked :) but apparently I overcomplicated it
 
user3119231
@towc lol
 
7:55 AM
any one know how to fix this problem url ?stackoverflow.com/questions/40213094/set-the-url-get
 
8:32 AM
greetings, programs!
o/
anyone comfy with node's cpr() module, or regex? trying to filter out CVS files during a copy (from within node), and from what I can tell, the regex is fine but still get CVS directories in the build directory (code snippet to follow)
 
1 message moved to Trash can
@thedigitalmouse Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
it is formatted you silly bot. :P
 
1 message moved to Trash can
@thedigitalmouse Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
    cpr('./public', 'build/public/', {
      deleteFirst: true,
      overwrite: true,
      confirm: true,
      filter: '^((?!CVS).)*$'
    }, function (err) {
     if (err) {
      console.log(colors.red.bold('Something went wrong during copy: '), err.stack);
      return console.error(err);
     }
     console.log(colors.blue.bold('...copied ./public to build directory!'));
    });
 
:))))
 
8:53 AM
/me shakes the chat room vigorously
anyone awake yet? :D
 
Nope
 
hey guys, does anybody know how to enable create a js console where to see all js errors and log ?
in web of course
 
Press F12
 
not firebug or default console in ff
I saw at someone a nice console displaued on web where he can see and log js errors
 
8:57 AM
Ask them then
 
just pipe out your log entries to a separate html page and have it refresh every second or so... :D
 
@thedigitalmouse and how can I do that ?
:D
 
console.log = document.write.bind(document);
Please don't do that
 
?
 
8:59 AM
well, just write out your log stuff to document.write() as Ben suggested, or just keep appending to a child element (like a <div>) :)
it's dirty, but works. :P
 
hmmmm
 
so (for an evil example and probably not the way you should do it) you create a webpage with a <div id="log"></div>, then you create a function that appends your log entry to the content of that <div> element, every time you call that function...
don't even have to create a new webpage either.. just add that div to your page that you are working on
ok.. i'm done being a bad influence! :D
you might want to look into an extension or plugin for your browser that has that functionality you seek.
 
SO do a nice version in their stack snippets.
 
ah yes.. seen that before... neat idea, and he provides the code for you too!
 
9:08 AM
They only output that to the original console though.
Plus there's no stack traces
Pretty pointless
 
"2. Stack trace to know what methods were called."
 
Hello
All
I need a small help
 
That's not a stack trace, it doesn't let you follow it
 
y
:|
in wicket for eample is a small and nice console
and cand be enabled with simple "true"
:))
but for porjects that use wicket
 
@PriteshMahajan do not need to ask for help, just dive in and ask your question. if someone is awake, they might be able to help
 
9:27 AM
The official website of React seems to have changed the tutorial page.
 
they....'reacted'? :D
 
if someone is familiar with express and mysql, could you please help me here?
0
Q: After first restAPI call, no further call´s are possible

BayLifeI´m working with express, mysql and bluebird promises to create a restful api and got a confusing error. The first database call works perfectly, but if I try to make another the server crashes. I guess it must belong to how the connection is established, but I got it directly from the bluebird ...

 
morning
 
9:42 AM
0
Q: bcrypt.compare is not working from same password

Pritesh MahajanI have used bcrypt module for encrypt password. When i register my user at that time bcrypt module successfully encrypt user password its working fine.But when i try to login with same username and Password its not match from database encrypted password and showing me error message that is "Passw...

 
morning @bitten o/
 
@PriteshMahajan alert? Are you comparing the password on the client side? O__o
 
user3119231
seems like that
 
wow such
 
@PriteshMahajan Lol alert, also not checking err.
 
10:03 AM
Anyone here interested in meta discussions ?
 
user3119231
It's monday, I'm only interested in my bed
 
@Maurize You work from home ? :P
 
yeah sure
 
@littlepootis Maybe you forgot to save
 
10:13 AM
Wat
It's ddd.
 
...or restart the application after you changed the file
 
I'm pretty sure I compiled it minutes ago, before launching the debugger, added -gs everywhere. And it still fails..
Compiled it again, still fails.
 
@littlepootis Compiling doesn't fix bugs...
 
I dunno, but if someone were to ask me, who is more likely to make a mistake: gdb or @littlepootis?...
 
10:21 AM
@OliverSalzburg Hi :) I have again a Question. Would i logically after fetching a user from db do the null check in the service module (business logic) or in the controller (where the api end point is)
in general it doesn´t make much sense to do this in the service, because i would have nevertheless to do a check again in the controller or?
to specify if status 200 or 404 will be send
 
10:34 AM
@BayLife We perform that check early and "translate" it to a RecordNotFoundError, which we throw and process through the exception handling chain. We handle that error as late as possible and return a 404
If our success handler would receive a null input, that would be a classic 500 error :P
 
Hi All
I need help in HTML minification
I am an iOS developer & I have to minify HTML & JS files
can anyone help me
?
I found GULP provide such features but don't know how to work with them
 
@BayLife I found that that is important decision and can be annoying later on if you don't get it right from the start. Like you would treat null as a valid result, meaning your DB returned no results. And some time later you suddenly get [] as a result. Stuff like that
 
any technical difference between <div></div> and <div/>?
 
Well any way around submitting array input elements. I can get the checkboxes value but rather true is being submitted
<div *ngFor="let contractor_type of contractor_types;let i = index;" class="pull-left margin-right">
                        <label htmlFor="{{ contractor_type | lowercase }}">
                            {{ contractor_type }} :
                        </label>
                        <input type="checkbox" name="_contractor_type[{{i}}]" [value]="contractor_type|lowercase" ngModel>
                    </div>
When I try to submit the form I get this data in form.value in Angularjs 2
_contractor_type[0]    :    null
_contractor_type[1]    :    true
_contractor_type[2]    :    true
_contractor_type[3]    : null
 
@Neoares in jsx? no. in html, yes
 
10:46 AM
@Gagan_iOS You can use certain plugins with gulp that would do what you want. You should do some research, this is pretty basic stuff
 
@bitten what difference in html
 
Hi this is suresh..
 
@suresh 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.
 
@Neoares depends on the browser, but most modern browsers will interpret <div /> as just <div>
 
:o
 
10:49 AM
so <p />hi becomes <p>hi and then most browsers will close the paragraph tag shortly after, depending on what follows
 
@CapricaSix can i know what is fs in javascript? while surfing in stackoverflow i saw require('fs') ,is included ,can i know how it will happen with out the file existence
 
and by html, i'm talking about html5 here
 
@Oliver thanks
 
but <p />hi makes no sense
but <div id="myid"/> does
 
if the element is a foreign or void element then "there may be a single "/"" but it has no effect on void elements
@Neoares i know, i was just showing how it's parsed :p
 
10:52 AM
I see
thanks :D
 
@suresh It's part of the node.js api.
 
@Neoares yes, but it's just not part of the spec
 
without the file existence you're probably fucked
 
normal elements can't be self closing :(
 
@BenFortune Is there any similar functions exist in javascript
 
10:54 AM
that's the spec for how an element is to be composed
 
nice
 
@OliverSalzburg ah ok. With the error translation you mean something like this here? kostasbariotis.com/rest-api-error-handling-with-express-js
 
this looks really nice!
 
@suresh It is JavaScript, just on the server. You can't read filesystems in a browser as it'd be a security issue.
 
11:05 AM
OliverSalzburg ah perfect. Love you man :)
 
ah love you :p
 
@BenFortune cool.. Then there is no way to loop the folders and access the files in it from the browser level..?
 
@suresh no
 
hello guys, I want to auto select a dropdown list if users select the another dropdown list. https://fiddle.jshell.net/sus_hill/m6odbyug/
for example if user want to see the year 2015 then the sorting should be see by year
 
11:26 AM
@SusHill So?
 
@BenFortune :) thanx a lot
 
@bitten amazing
 
@littlepootis yeah, their api with features/exclude is really nice too
 
12:15 PM
worked on winjs?
 
12:26 PM
I got a new small project
It should be as fast as possible
should I use jquery or go with JavaScript only?
 
well written code probably won't make much difference
but js will be faster without being abstracted
 
@Mr_Green Try both, benchmark
 
hello ! When adding a second point with addPoint(lan,lon) the animation speed doubles . I think this has to do with requestAnimationFrame called more than once. Can someone help me keep the animation speed constant ? codepen.io/atomtm/pen/LRrJwW?editors=1111
 
@atomtm 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.
 
12:36 PM
@rlemon that a proof of reincarnation .. at least for project managers
 
I just getting error this error EXCEPTION: Uncaught (in promise): TypeError: values.map is not a function

<select class="form-control costcodelist" name="_cc_id[]" multiple="true" ngModel>
When I remove ngModel from select element then it works fine but then I don't get any value on form submission
Using angularjs 2 with template driven form
 
user3119231
1:17 PM
@rlemon exactly what I needed to survive monday
 
user3119231
I watched the whole video. I will work with wood.
 
I like his push stick
I think I'll make one tonight
I've got one of these notched ones
I hate it
 
user3119231
I think I will try these wood rings with triforce.
 
1:28 PM
I was thinking of doing the wood wings, then filling the center with epoxy and powder dye
coasters
@Loktar
you need to get a new 'collection' shot
^ 5K upvotes in /r/gaming
 
It that a GameStop?
 
HAMMERTIME!
 
user3119231
@rlemon Nice pipboy
 
1 ask = 1 invite
 
@rlemon I wanted to be funny but apparently it backfired
 
1:35 PM
Are people still legitimately asking or is the DNS thing done with?
room topic changed to JavaScript: Topic: JavaScript, ECMAScript. Read this: javascriptroom.github.io/rules. Before asking inform yourself on the XY problem goo.gl/taIqf | devdocs.io Documentationâ„¢ Helps. Room meta discussions: github.com/JavaScriptRoom/culture [ecmascript] [ecmascript-next] [javascript] [node.js]
 
room topic changed to JavaScript - badger badger badger badger: Topic: JavaScript, ECMAScript. Read this: javascriptroom.github.io/rules. Before asking inform yourself on the XY problem goo.gl/taIqf | devdocs.io Documentationâ„¢ Helps. Room meta discussions: github.com/JavaScriptRoom/culture [mushroom] [mushroom] [snake]
 
Mushroom?
Ohh, you got that in the description
 
yea.
old. :)
 
just like you! :D
\o/
 
1:38 PM
That's why I know it.
 
had to test the double tag in sandbox first
didn't expect it to work.
not sure why I 10'd that.
 
oh.. thanks for bringing that devil out of the grave
 
mondays man
 
I've got a big bag of crabs here
I'm gonna put them in my mouth ohh yeah
 
Being from MD, nothing seems odd about that sentence.
 
thats what happens to me after a weekend in a cheap brothel
 
bush x*
:(
 
#00ff00 to #ff0000
 
1:51 PM
I remember actually being quite angry about that in the 90's
 
about what
 
their name change
Bush was a Canadian rock band in the early 1970s, which evolved from the respected club act Mandala. Mandala had a minor Canadian hit with the song "Love-Itis". Bush consisted of ex-Mandala bandmates Domenic Troiano, Roy Kenner, Hugh Sullivan and Pentti Glan, plus Prakash John. The group released a single eponymous album in 1970. The band recorded on the RCA label in Canada and Dunhill in the US, and toured with label mates Steppenwolf and Three Dog Night. Three Dog Night released one of their songs, "I Can Hear You Calling" as the B-side of their successful single "Joy to the World". The song...
 
Hey guys
 
hey folks
I have a complex problem to solve
 
Hey! Are they some people interested on getting geUserMedia js api (camera/microphone) working on iOS or macOS? I'm looking for testers
 
@fathyb 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.
 
lolflag
 
2:06 PM
Hi Sterling
how are you
 
Cmon... at least flag the actually flaggable shit I say
I'm tired and cranky
 
at work?
 
 
:l
Okaayhzxhhzhhzhhshas
 
@CapricaSix sorry for the spam, i'll review room rules :)
 
2:09 PM
i.imgur.com/EcrD3Sn.gifv @Jhawins @rlemon lmfao
 
you need to sub to whatcouldgowrong
that was up there last week
 
@rlemon hah nice
 
@BenFortune ohh btw, found my relays -- holly thought she threw them out, turns out she just hid them in a box with my old cds
so now I have a water pump being controlled by my arduino which is getting signals from my moisture sensors.
I'm gonna grow so much fucking corn man...
 
s/c/p/
 
Guys is it possible to import database from Mssql or oracle and dump that database in to my sql server using mssql api from my web application??
 
2:21 PM
I'm actually growing potatoes, but corn man.. love that stuff.
 
@Learning its possible everything is possible
 
comes out the same way it goes in #renewableresource
 
But is there any api for mssql or oracle is available to do that
 
@littlepootis if everything is possible then it is impossible for anything to be impossible. therefore everything isn't possible.
 
I am trying something like this
 
2:32 PM
Neat, new date relative view on caniuse.com
 
More progress on my UI lib for electron apps
 
@Wes what ever happened to neon?
 
@rlemon Haha neat, how do the moisture sensors work?
 
they're alright
they have a trim pot on them so you can calibrate them
hasn't drifted from what I can tell
the analog OR digital option is nice
 
2:55 PM
@SterlingArcher Nah, it's not like the other characters move when she teleports backwards.
 
@SterlingArcher containment breach
 

« first day (2200 days earlier)      last day (2740 days later) »