« first day (2589 days earlier)      last day (2582 days later) » 

00:01
Half full. of Emptiness.
was about to fall asleep at ~7pm, but didn't because I asked a friend out for a pizza at around 8pm, and now I think it'll take a couple of hours until I feel sleepy enough
welp
Why when I click other buttons with other onClicks this onClick is done?
<Button bsStyle="link" className="glyphicon-card" onClick={this.deleteArticle(item)} title="Borrar artículo"><Glyphicon glyph="trash" /></Button>
the scissors are shit, the small screwdrivers are shit
everything else is decent
probably more than I'll ever need
I bought a kit like this with a drill for 25% less last time though
so I hope I'll be able to tell the difference
01:08
morn
01:59
@rlemon damnit, my cr-10 caught the fan disease from yours on their play-date.
loud fan in the control box
it stopped after it ran for a bit, but.. still..
it'll be back
are you doing the 60mm fan upgrade for yours?
02:15
now to build the power rack
@Luggage that's exactly what mine did
then it started being loud for longer.
@Mosho and finish the mickey mouse trim
of course
looking at all the possibilities to buy stuff
stuff I never knew I needed
like a 3d printer?
02:25
shitty site just redirects you home
what's the point of having a url?
hmm doesn't do that for me
ohh, redirects me to the home of the .com site
the US site
ohh, those boxes
seen them. no idea what they are for
new car?
a shopping cart with sticky wheels for $2000
and you can't put things in it
what does it do?
02:29
you push it
you put plates on it and push it around
hobos don't spend $2000 to push a cart around
right. put all your belongs in a cart and push that up and down the street.
except all of your coats. Wear them
it'd be a good workout, especially if you live on a hill
it's probably really heavy duty
a lump of cast iron with wheels
I can see that going for $1350 (USD)
raw materials alone probably cost a couple hundred
@Luggage I think most people jump onto them
I'm using them for box squat (squatting until sitting on the box, then rising)
02:34
so a box you never even put your weight on? :)
what do you mean
ignore it. i had some false image of what squating until you touch the box meant
03:43
hahah
 
1 hour later…
05:01
05:55
hello Goodmorning All.
@TofaaniKaanudo 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
i have asking one Question in Stack . please help me Guys.
4
Q: Crop image via finger(touch) in Ionic App

Tofaani KaanudoI am Working on ionic based Application.My ionic app version is 1.2.4. I want to Crop Functionality in my application. I want to crop image Via Touch with irregular Shape. So any one have Create touch cropper So plz help me. For more clearly, look at below gif what I want. Last 2 day I'm g...

06:26
happy friday @rlemon @FlorianMargaine @KendallFrey
/me goes to bed
07:09
hi guys..
@Sheel 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.
ok sure
I want to export data table as csv using download icon.. Please let me know if osmebody can help me..
if somebody can help me..
1 message moved to Trash can
@Sheel 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
07:12
ok..
var buttons = new $.fn.dataTable.Buttons(oTable1, {
     buttons: [
       '<i class="fa fa-download  nav navbar-right panel_toolbox"></i>'
    ]
}).container().appendTo($('#CSVbutton'));
if I use 'csvHtml5' it works but it is not required, I have to export using download icon that is requirement.
@CapricaSix plaese help me..
@BenjaminGruenbaum and other guys if you can look into this..
07:37
Morning
morning
Hi Kamil
@CapricaSix it is done..
07:55
@Sheel 1. Caprica is a bot.
2. Don't ping people for help. Post once, if somebody is interested and knows the solution they will help. No need to annoy random people with pings.
08:20
Morning.
@onurkaya 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.
08:48
@monners way to go, Aussies, way to go!
@CeyhunTekin 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.
@FlorianMargaine did not expect that the performance improvement is that significant.
09:09
I am getting an error on including jquery ui in a code snippet for an answer. Can anyone of you insert <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></s‌​cript> in the html part?
@Jonathan 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.
It does work on jsfiddle
Here is the link to the answer in question:
https://stackoverflow.com/a/47345304/1694402
09:34
@Jonathan done
But it still is not working, getting $ is not defined :S
never mind, now it is :-)
thanks!
@KarelG I'm just at the very, very beginning, but rust feels so nice
the concept of borrowing is not easily to grasp tho
10:07
0
Q: Record User Typing Exactly with time Difference in JavaScript?

NaneI am trying to record User Typing with exact time difference by letter by letter to replay it.I would like to do this in React But set Timeout function while replaying text is not one by one but this is expected behavior but i want one by one Like Queue System Please Don't suggest any Plugins ...

Could you please Help me with tha
t
10:22
What does this expression do?
  function cacheFn(q, fn) {
    return cache[q] ? cache[q] : cache[q] = fn(q), cache[q];
  }
specifically the last one cache[q] = fn(q), cache[q] is confusing
ah, the comma operator can be confusing
It's the same as:
!!> 4, 5
@Zirak 5
Comma evaluates what's on the left, but results in what's on the right
So cache[q] = ..., cache[q] runs the assignment on the left, and then results in cache[q]
In this case it's also redundant since the result of an assignment is the assigned value
    fn(q);
    this.cache[q] = this.cache[q];
like this?
this.cache[q] = fn(q);
this.cache[q];
Assigning something to itself is a tad weird
10:26
I am reading this code jsfiddle.net/rockyjreed/8GcSF/117 (line 68)
oh my
10:44
a clean approach is just
if (! cache[q]) cache[q] = fn(q);
return cache[q];
but that probably does not get accepted since it's not a one-liner...
And it has a space between ! and cache
Unacceptable
hemh, winston logger @types are outdated :/
Sucks about your @types though :(
update: the docs are for the winston 3.0.0, which is the newest, but not yet official version of it
so I say meh the types are ok
11:01
@rlemon can anyone point me to some documentation around the rules about having iframes and inline javascript on the same page? Or just explain what is happening for this interaction:
<html>
<body>
<iframe />
<script type="application/javascript">
  alert('this doesnt show an alert');
</script>
</body>
</html>
swapping the order of the iframe and the script:
<html>
<body>
<script type="application/javascript">
  alert('this does show an alert');
</script>
<iframe />
</body>
</html>
makes it behave as expected for me.
ooops - sorry. didn't mean to ping you Mr Lemon.
@OliverSalzburg if( ! cache[q])
11:17
a =!    b ? c : d
11:35
I'm curious if there are devs that would misinterpret that :P
Like the fireworks operator, while (x <=-- y)
@towc it doesn't need to be that complicated to confuse people:
171
Q: What's this =! operator?

m0nhawkI was surprised by this code: if (a =! b) { // let it be on false ... } But a is never assigned by a value. What's this operator about?

fair
operator precedence should be a thing
I have a teeny tiny annoyance problem
11:45
your little toe?
@KamilSolecki everything's going to be ok
you don't have to worry for much longer
that reminds me that wiki has a weird definition for "toe"
* looks it up *
> Toes are the digits of the foot of a tetrapod. (wiki)
I want to write a rest-api test, e.g. given a specific request expecting a certain response. A quick google search lead to Frisby. Yet its typescript support seems lacking and its tests seems to become nested quickly. Do any of you have experience with some api testing libary that you would like to share?
So in winston, if I make a custom format, I have the option to add a logging level (warn, info etc.).
It's not pretty full words how I'd want that, so I gotta change that.
Now, I can either make some conditionals or an array map OR define custom logging levels. Conditionals are meh and waste of space here, custom formats will cause annoyance because they also influence how I call the logger, which causes me improper casing with ex. logger.Error();
I have the worst life problems I know
@k0pernikus mocha + chai with chai-http
@KarelG I wish I could use Markdown directly in my code to have the important bits of code rendered in bold and emphasis
if( **!**cache[ *q* ] )
11:53
eh
uuh, that might be an interesting plugin for vim and stuff
!! afk lunch
//   b      i
  if(!cache[q])
well, more of a blog post kind of thing
but you can still use comments to warn about certain interesting bits :)
// ↓      ↓
if(!cache[q])
or, for the vim plugin, have it in a separate file, that expands and goes back as the original one does, and gives you commands for making a certain selection bold or italic
but also allows you to edit the styling file separately
@towc Emphasizing code like that doesn't do anything without explaining why.
If I saw that comment I'd be so confused
well, if it would help oliver :P
I probably wouldn't use that myself, but I can see how it could be great for showcasing stuff
12:04
Hey everyone!
I'm trying to build some code, it's meant to run in electron but I'm still researching just to see what fits.
I used Youtube's sample API and managed to upload a video through their API
yayyyyy
But what I actually want is to make a livestream with the camera.
But I don't understand what any of those requires parameters are :/
@KarelG I was kidding. Always assume I'm kidding ;D
@OliverSalzburg KarelG is afk: lunch
I'm lunching at the keyboard right now
@Thaenor I'm guessing id is the video id of the youtube livestream, and part is some kind of data that youtube will send to your video source when it connects.
isn't there any tutorial explaining the flow?
12:15
@Thaenor there's an example in java down the page
there should be some tuts on the google docs
they usually do keep the docs well maintained with examples
@KamilSolecki For a second there I though you actually meant google docs
@Thaenor Maybe start by creating a broadcast
@OliverSalzburg So I have to assume that you are kidding when you said that I always should assume that you are kidding?
@KendallFrey who knows, there might be some there too!
12:19
@OliverSalzburg thanks
besides
there is a big blue text
that's what I was looking at
" see an example "
I need to browse that code carefully
@KarelG Definitely maybe
12:20
It's been years since I've dabbled in Java
probably python will be easy to translate
@nsikak 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.
longer still xD
no worries
There probably is no JS example to suggest to people that this is not something to be done from the browser
12:21
I can understand and thats what matters
@OliverSalzburg couldn't this be done over electron?
okay am new here. can ajax questions also be answered here
or there is a different room
we are the room for internet stuff and all other cool stuff
like 3d printing
or pimple popping
you call it
@Thaenor I have no experience with it. But I'm assuming the hard part is not setting up the stream and broadcast in YouTube, but transcoding the stream and actually sending it their way
@nsikak (yes you can)
okay i have this php code have just written
12:23
PHP!
We love that
<?php $notarray = DataDB::getInstance()->select_from_where('pro_print_group','product_category_id',$cat);
					while ($row = mysqli_fetch_assoc($notarray)) {?>
					 <div class="col-sm-12">
					  <label for="quantity"><?php echo DataDB::getInstance()->get_name_from_id('group_n','print_type_group','print_type_group_id',$row['print_type_group_id']); ?></label>
					  <div class="printd-group">
					   <?php
					   $not = DataDB::getInstance()->select_from_where('print_type','print_type_group_id',$row['print_type_group_id']);
@KamilSolecki or shoulder dislocating 101
it is been a long period when I have seen a webpage returning HTTP 508
^ 7th dislocation in < 1 week. My doctor now recommends me to not use my shoulder :/
Fuck. Thanks for the screenshot. That really helps a lot in finding the option :P
12:25
the problem is the radio button is unique. so i cant explicitly get the value of each radio group on my ajax page so that i can insert to db
@OliverSalzburg I think the same thing... but alas I'm unsure.
My current use case is simple. I have an electron app that uses the camera API and shows the camera output on screen. That's all cool but now I want to send it over to youtube and have it create a livestream
Now that I've gotten authentication out of the way, my concern is that very thing
@ShrekOverflow how :O
12:55
@ShrekOverflow damn, that's a lot of pron
13:06
You can work on your T-Rex impression in the meanwhile
@Loktar @KendallFrey @FlorianMargaine w-ooooo, friday!
also, check out my new light switch
cc @Luggage @hilli_micha ^ :P
Classic, I like it ^^
Oh wow, nice, is that on thingiverse?
Guys Can you please let me know how to clear the browsers cache using javascript
i have used lot of things but nothing seems to be worked
@hilli_micha yea
13:08
@rlemon nice
@kirankumar You don't
You can request tons of resources, have them cached and older resources evicted
I hear that's how the pros do it
I don't clear anything, my browser history goes waaaay back :D
I printed the nosupport plate, and added my own
cleanest support removal I've ever had
@kirankumar but in chrome, I heard opening the devtools and do a CTRL + F5 usally does the trick
Nice. That was still with Cura, right?
13:12
yup
if i have an update the user will not get the update since it is loading from the cache
can't exactly remember my support settings. I think it was like grid, 9% infil
@kirankumar you don't clear the entire cache, you let the browser know it is a new resource
@chade_ I want it using code
Just request the resource with cache-control: no-cache
@rlemon I'm more a "hit-switch-one-time-to-turn-on/off" guy. That seems to require more effort to switch a light state.
13:27
@KarelG ofc
but it's my office. so, meh
lights only go on when I get home from work, then go off before bed
and it's fun :D
what does holly say about that ?
"again??" ?
@rlemon Now make an enormous lever to do the same thing
Bolted to the ground
@rlemon beyond awesome!
@KarelG she laughed and called me a nerd
You should add 2 indicator lights
13:29
nice reaction
For that industrial switch feel
the indicator light is the fact that I can see in the room again
Oh so that white thingy is in fact an indicator light
I wanna make this glow when the print is complete
just because.
mount it to the top of the printer.
that, or turn it into a desk lamp
It could be a Sweet shape for a lava lamp
Ive always wanted to build a lava lamp bong
13:32
a hot oil/wax bong?
@rlemon that's a dildo
@ssube so a users ISP is saying we're (the device) spamming ssh attempts to other ips. (I don't have the device nor do I have access to it, their ISP shut down their internet :/)
when I do get the device, besides the network logs, where should I look ?
we've had an ISP report this before, they were .. idk.. high? they 'spam' they saw was us trying to connect to our own cloud server
but, you know, due diligence
@rlemon Well, how aggressively are you connecting?
And you should probably check your own application logs, where you keep track of all connection attempts
Right?
I'm re-connecting aggressively. no wait time.
if a connection is dropped
also, you can't make this shit up fox2detroit.com/news/local-news/…
tl;dr undercover cops posing as drug dealers get into a fight with undercover cops posing as drug buyers.
Maybe someone cracked your box open and started scanning other hosts :P
Burn it and send a replacement
13:41
@OliverSalzburg I'm not ruling out that the device was accessed.
they're sending back the sd the device runs on
in BA this morning:
Maybe setup logwatch and have the logs send to your CnC daily?
a friend said "is there a bigger state fetish going on?"
@OliverSalzburg yea, that's something I need to do. I'm busy writing the new version which has plans for that, so putting it in the old version is .. well.. I should probably do that
@towc is the red army that close?
13:44
I think it was cosplayers of some sort
they seemed really happy and were taking pictures with people
it was weird
@rlemon Regardless, you probably want to implement some sort of backoff in your reconnection mechanism. I've managed to lock out entire networks due to a device hammering a server, triggering fail2ban
Its more likely They were shooting a movie / doing a play than being a group of 80+ yo cosplayers
@OliverSalzburg fair point.
normally isn't an issue. we've got hundreds of devices out there. guess it was only a matter of time
Stuff starts happening at scale :P
!!giphy ohh my
why do you reconnect without a timeout?
seemed like a good idea at the time
Nuclear chickens i see
it never is unless the connection is kept locally
also it's a real time data monitor / controller
so my mindset was "reconnect that shit ASAP"
13:51
you could have peeked each interval :P
like sending "hello" to the server. If it responds, init ssh
I probably could have done a lot of things
but I designed this like 4-5 years ago
anyone here use react virtualized? I can't decide if it's great or really meh
at least you know what to not do at the next project :)
I have made mistakes in the past too tho
yea next one doesn't use ssh :D
Good morning all
Anyone here have any knowledge/opinion on crypterium?
interesting..
Oi droplet.
My buddy just showed me it here: crypterium.io and it can't be that simple....

« first day (2589 days earlier)      last day (2582 days later) »