« first day (2309 days earlier)      last day (2624 days later) » 

9:00 AM
if you would be so kind to create a room for you and me I might give you something better than the fiddle and something easier to me to reproduce the problem
 
sounds like full root access :P
 
bob
@Riccardo don't think i can
 
@BayLife
do not consider base64 encoding
 
i don´t do anymore ;)
 
9:07 AM
i ve uploaded 128K image file, produced 168K text file :D
 
oO ^^
 
@bob do you have an email address?
 
filesystem sounds so good now
 
yes it is
good luck
 
bob
@Riccardo dontbacock@gmail.com
@Riccardo ?
 
9:16 AM
@bob I just emailed you
 
@ibubi you too
 
bob
@Riccardo ok, i'm there
 
well you should see two select menu inside the popup
 
bob
yeah, i do
 
as you can see the select menus have different values(indexes) then the fields in the table
 
9:20 AM
can someone give me an intelligent idea how to create meaningful incremental file names based on an number (e.g. 123) that is used as the dirName of this files.
 
I've been trying to set their selectedindex and I fail
 
bob
@Riccardo why? i mean what are you trying to do?
 
i'm trying to set the selected indexes of the select menus to the values of the rows of the right table
I mean if you see something in the row the index of the select menu has to point to that something
that's why I'm trying to use the selectedindex
 
bob
so when you change the select in the pop up, you want the values to change in the table on the page?
 
when I need to edit a row I have to have the values to edit as they are in the row
 
bob
9:28 AM
@Riccardo sorry mate, i'm not sure what your trying to do.
 
as a matter of fact the user has to know what he is going to change so the select menu must have the same value as the field in the table
when you click the pencil in the table the first two fiedls in the table become select menus
so what you see in the row should be what you see in the popup
 
bob
@Riccardo oh, ok. got it.
 
@bob I'm almost done
now if you click the pencil anywhere in the table you should see that the select menus points to the fields in the table
 
bob
@Riccardo yeah i understand now. why don't you just use an ajax call on edit icon click, and get the value of the selects?
 
but when you choose another row you still can't see the new values of the select menus
@bob I'll use the ajax when the user is ready to edit a given row
 
bob
9:35 AM
@Riccardo then set a dynamic id on each of the edit buttons, then use jquery to get attr("id") that way it'll get different data for each one.
 
but immediately before the user sends the data to the server he has to see what he is going to change and I'm doing this only client side the server is called when the user clicks save
 
React:
- what is the safest way to compare this.props with new arriving props in shouldComponentUpdate?
 
@bob I'm trying not to use jquery I'm convinced I can do it in pure javascript
 
bob
@Riccardo oh
 
as a matter of fact the whole code you have seen is in pure javascript
 
9:36 AM
@Develoger to know what you expect and then normal comparison ==/ ===
 
bob
@Riccardo I'm not sure how that can be done, sorry
 
and how would you do it using jquery?
 
angular skills anyone? << help vamp
 
@rism shoot it!!
 
cool. so directives...
Given this:
app.directive('hokeyPokey', function () {
    return {
        scope: { place : '@someplace'},
        template: 'His: {{place}} {{customer.name}}<br /> Street: {{customer.street}}',
        link: function ($scope, element, attrs) {
            element.bind('click', function () {
                console.log($scope);
                $scope.place = "auckland";

            });
        }
    };
})
And this:
 
9:42 AM
That looks like it should be a component instead
 
    <div ng-controller="CustomersController">
        <div my-shared-scope></div>

        <div hokey-Pokey someplace='{{place}}'></div>

        <div my-dom-directive>this is a thing</div>

        {{place}}
    </div>
 
I have been tasked with learning React and writing a simple React Native app. I have a week (40 hours). Has anyone got any opinions on how I can learn React effectively? Which tutorials etc? Thanks for your help :)
 
@rism Should be hokey-pokey
 
9:43 AM
Are the official guides the best way to get started?
 
I expected that if I click that section of html - the hokey-pokey would change to "auckland" but the other {{place}} would not - as it's in another controller which i wont dump because it largish
but it doesnt change at all
so is $scope.place the right property
 
@bob it does nothing
 
bob
@Riccardo of course it does nothing on jsfiddle. That's just an example of the code
 
oh ok I got it
thank you for doing ir
 
@Munkie That's hard to judge because you really only get started one time
 
bob
9:51 AM
@Riccardo no worries, you will have to handle the response in a php file. but the easiest way to do this is use a while loop to echo out all of the rows from a database then use jquery to get the html table row id then you can change it's information with an update statement.
 
That all sounds perfectly fine to me
 
ha-hah google IS my friend. $scope.$apply();
 
@rism Your problem is that you're using the link function not for its intended purpose
 
Can you guys think of a valid reason to close this meta question? The OP is concerned about looking bad if he's casting too many upvotes, Being concerned that 14600 (40 * 365) upvotes in one year is bad, while he's only cast 33 votes over the past 2 months...
Imo, the question is pointless speculation about an unrealistic scenario, but I can't really find a good reason to close it...
 
Well, there are users for whom this is realistic
 
10:05 AM
> Does having a lot of upvotes on your record make you look less intelligent and less upvotes make you look like more of a bright guy?
 
Ward, Vancouver, BC, Canada
10.5k 5 33 50
You know ;P
 
> The decrease in the upvoting is related to the increase in less interesting questions. But then, does no upvoting makes even the dumb guys look intelligent and vice versa?
 
@Cerbrus I don't see any reason to close, it's just ordinary stupid
 
Oh, yea... Can't close stupid :-/
 
I downvoted though
 
@DenysSéguret itssomething.png
 
Jokes apart I'm sure my voting profile would bring fire on me if I tried to be elected as moderator...
 
Then you haven't looked at mine yet, @DenysSéguret.
 
wat xD
 
10:10 AM
@OliverSalzburg 10/10 my good man
 
Hi, Are there any JS guys here that have started with Angular2 that can help with the logic and code of creating either a pipe or filter for some data in Ionic 2? stackoverflow.com/questions/42139522/…
 
@Cerbrus Impressive. I'll try to remember that you're a dangerous psychopath from now on
 
hi, someone could me tell something about: script.js range?
 
😈
 
I'm talking about that 2nd script could see definitions from the previous script
<script type="text/javascript" src="js/library.js"></script>
<script type="text/javascript" src="js/index.js"></script>
some code from index.js not see swiper definition from library.js
a little advice? :)
 
10:19 AM
don't drive your car on the footpath
 
Hit the gym and don't repost
 
pinch your nose when passing near trashcans
 
hey
I need some help understanding some code... I'm using font face observer that loads a web font. When it does it sets sessionStorage.fontsLoaded = true; otherwise it's false.
then, the article that recomends this does the following
if (sessionStorage.fontsLoaded) {
  var html = document.documentElement;

  html.classList.add('fonts-loaded');
}
how does this prevent the font from loading if it's cached?
it's one of those cases where things work but I don't know how. As far as I can tell that final if statement only adds a class element to the html tag.
 
Presumably by checking the classList of html for 'fonts-loaded'
 
swiper not is not defined
 
10:27 AM
Swiper no swiping!
 
@rism but I'm not implementing any of that checks... and the tutorials mention nothing about it.
 
@OliverSalzburg ?
 
hells bells - those notifications are kinda loud when you have some buds in
heart rate almost below a 100 - give me a sec
@Thaenor I would put money on somewhere in your code there being some thing like:
if (html.classList.contains('fonts-loaded')) return;
 
@rism it's just a test project that does nothing but load the font. Unless that's part of the font face observer framework
but then again, that if is called AFTER the font is supposedly loaded by FFO
 
10:52 AM
.fonts-loaded body {
  font-family: Output Sans, Verdana, sans-serif;
}
I misread your initial post
sessionStorage.fontsLoaded is the flag
that flag is checked and the class applied to the document which in turn affects css selectors
thus applying related loaded fonts
 
11:12 AM
@rism So I'm missing that bit? I don't understand
 
12:17 PM
I'm creating jquery widget to launch the tooltipster and I've added one input field to accept search input but I'm not able to get the text from the input field?
 
@PunithK 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:37 PM
@PunithK do you have a JSFiddle?
 
@FlorianMargaine @Loktar @SterlingArcher @KendallFrey 🎵 Friday Friday! 🎵
 
welp, it's happening: Vote on the WebAssembly logo
5
 
12:54 PM
#3
 
@SterlingArcher At first I forgot who Jordan was, but all the "fam" reminded me
@rlemon That's pretty good
 
1:11 PM
@AwalGarg You asked some time ago about things which use Skia, perhaps Nidium?
 
JAVASCRIPT WITHOUT LOOPS hint: they use loops
 
@rlemon Everyone should just use lambda calculus so they can write loops without branching
 
Can you just do the smart thing and simply move loops into npm modules?
 
@OliverSalzburg I will cut you
 
1:23 PM
@rlemon tl;dr array functions are nice
 
1:34 PM
@Zirak yea, but the title was lame
 
Has anyone used AWS Lambda? If so, have you made anything cool?
 
does anyone find that function arguments using {} is just annoying?
I prefer to work with the parent object, or know what it is called from looking at the code, not at runtime
 
@SuperUberDuper nah
 
1:53 PM
wow. Was searching for an error on my iPad that didn´t exist´s on my Desktop PC... finally it was the use of let -.-
does something like dev-tools also exist for ipad? Or how you do that?
 
2:16 PM
@SuperUberDuper Could you show an example?
@elsololobo If you need to debug JS on iOS, the first step is to kill yourself
 
@OliverSalzburg would generally prefer options that let me stay alive :P
 
Oh, you're that kind of developer
 
2:44 PM
@elsololobo Ah. I see that you have met the new IE known as Safari. But yes, it can be remote debugged like android browsers, but with Mac Safari.
 
i´m too low paid for a mac :S
 
@elsololobo Tell the one who make you develop for iOS. I'd say you are not supposed to develop for iOS without a Mac, by Apple's design.
 
Remember when the web was platform agnostic?
Yeah.
 
i´ll ask. But it is just a really small web-app that needs to run on an Ipad, so it would probably be cheaper to get a new developer than by me mac :P
 
user2620028
new developer would ask for a mac to work on an ios app as well though
 
user2620028
2:48 PM
endless loop
 
or they ask for developer with a mac ;)
loop breaked
 
discrimination!
 
user2620028
@elsololobo the would have already killed themselves
 
^^
does someone like to have some small css fun on Friday and help me to get this three div´s in a row, with activated ipad in the dev tools ? jsfiddle.net/skcwxj1w/1
 
user2620028
wtf
 
2:52 PM
so bad? haha
 
its very interesting
 
user2620028
do you have to use floats?
 
user2620028
i mean.... its easy to do with floats too but have you ever used flex?
 
i can do what ever i want, they must just be in a row
nope, almost never do frontend
 
user2620028
2:54 PM
ahh
 
that´s propably the reasons why i´m so low paid ^^
 
user2620028
any reason they have margin top on them?
 
there is a table on my real page
above
 
Interesting. Last I checked, backend dev has higher average wage than frontend. The world change so fast.
 
user2620028
 
user2620028
2:57 PM
thats floats like what you were doing
 
user2620028
read up on the box-sizing: border-box there and how that works
 
ahaha @SterlingArcher i.imgur.com/pKDW6pb.jpg
 
user2620028
your initial problems there were you were floating one of them right and two of them left. That doesn't really work the way you wanted it to. And then the other problem is with widths, you are taking up 100% of the screen. But then you are adding 1px borders to each of the boxes that take up extra space. So it wasn't able to fit within 100% width
 
user2620028
@elsololobo the other way you can do it is with display: flex like i did here, jsfiddle.net/skcwxj1w/3
 
user2620028
display flex is a completely different beast and you should read up on it if you are going to use it. I think it is probably easier to understand than floats are however
 
user6820627
3:00 PM
what does doot mean?
 
@HatterIsMad love you <3 thanks buddy.
 
user2620028
@elsololobo don't forget there that i specified a wildcard on the box-sizing: border-box. if you just dump that into your page it will apply to every element on your page and that might not be what you want.
 
oke, we will see
even with the wildcard, it looks perfectly fine on my ipad! gracias
@HatterIsMad just one thing. If I would like the entire div not to be display on start-up and set display: none everything is curshed
 
user2620028
i think you are looking for visibility instead of display
 
user2620028
or are you setting the display back to block or inline or something after you make it visible again?
 
user2620028
3:07 PM
the parent node has to be display: flex if you are using flex
 
currently just ` $('#selectedItem').show();` and $('#selectedItem').css('display', 'none');
 
user2620028
ahh yeah the problem is you are using jquery
 
user2620028
.show sets it back to display: block
 
ah so just use .css ?
 
user2620028
yeah
 
3:09 PM
what would the .css() look like to display it, if inital state is display: none?
 
user2620028
$('#selectedItem').css('display', 'flex');
 
user2620028
that was your last freebie. im going back to work
 
@FlorianMargaine Do you use a gui client for postgres? I'm asking for a...uhh...friend
 
@HatterIsMad <3
freebie haha good word
 
@Zirak HeidiSQL
Sorry for not being @FlorianMargaine ;P
 
3:13 PM
@FlorianMargaine @KendallFrey @rlemon is it, can it truly be, it must be, yes it's fridaaaaay
 
@OliverSalzburg Non-windows?
 
pgAdmin (3 and 4) is garbage
 
@OliverSalzburg Holy fuck yes
 
@Zirak pgModeler maybe
We use that only for, well, modelling
But it can also act as a regular SQL client
 
They might be amazing for a power IT super sysadmin, but I just want a non-very-tech coworker to do some SELECTs and UPDATEs
 
3:14 PM
Well then I'm out, this is all the tools we use and I would feel comfortable recommending :\
 
@OliverSalzburg Thanks anyway
I've downloaded a bunch of clients and they're either too stupid or too smart
Honestly, it's something that phpmyadmin did sort of right
 
pgAdmin 3 is slightly more usable IMHO than 4 is, if that is any help :P
I only have Windows experience with it anyway though
 
Datagrip?
 
I have seen an enterprise system handbook teaching user to login to sql server manager and type queries to get data. Had to pickup my jaws twice, first for seeing the users in action, second for seeing the handbook.
 
@BenFortune Doesn't support several Postgres features
 
3:19 PM
Heard good things about dbeaver.jkiss.org too
 
Also, JetBrains IDE
 
@BenFortune It's waaaaay too smart, and commercial
 
3:36 PM
port 8080 will be default loaclhost port. So when you run it will remove from URL as well — Abdulla Nilam Oct 13 '15 at 14:15
lmao I forgot about this guy
 
@SterlingArcher I've been memeing you
:(
I spend my morning working hard to procure the best and dankest memes just for you and I get no love
 
I've been busy 😬 catching up
 
I also took that photo of @Luggage from yesterday and shrunk his face
not his head.. just his face
 
@Luggage lol nice try, I was actually out near West VA. My brother bought a house and asked me to come see it
plus I have a gf why would women at a bar entice me to go out anymore xD
I go out for the bros now
Welp, lemon isnt gonna. So it's up to @Loktar to buy it. cornhub.com is officially for sale, and we need it.
 
Why is domain squatting not illegal yet?
Or at least enforced more
 
3:44 PM
I'm pretty sure it used to be a "mirror" of pornhub but with corn videos
So I guess they got sick of it lol
 
I don't think they purchased the domain for the prank
just changed their logos
 
> hard shucking like you've never seen!
Snorted
 
They missed the opportunity for a hardpore pun
 
3:50 PM
@SterlingArcher you can't snort corn
 
@Zirak sorry, I'm not retarded
 
@FlorianMargaine See the above video
I thought you were my special friend :'(
 
@Zirak that took a dark turn
 
@Zirak otherwise, I had a Lisp REPL pg client, it was pretty nice...
 
@Zirak I feel violated
 
3:55 PM
@KendallFrey Come play the kazoo with me ┬┴┬┴┤ ͜ʖ ͡°) ├┬┴┬┴
 
ahhh
 
@Zirak I think I a brain
@SterlingArcher so, uh, haven't had sex in 2 years? congrats!
 
What?
Sir I'll have you know I sexed your @KendallFrey's mom just this morning!
 
lol someone bought it already @SterlingArcher
 
4:00 PM
it is parked
 
ooh yea
fuck that
youcorn.com is gone too
 
I don't have $10,000 for a joke domain
 
xcornster.com is available
@rlemon I bet theyd take $400
that's a pretty standard offer
I've been selling mine to anyone who asks
made some decent money last year
 
freaking rlemon.com is $2395
 
haha one of them, zombiechat.com the dude has done nothing with
I made 650 on that one
 
4:12 PM
@SterlingArcher provape (makers of provari) out of business. expensive USA made mods can't compete with $45 mods coming from China
 
Hello, I'd like some help with a test I'm writing using React and Enzyme
I have a test that looks like this:
it('should do the thing', () => {
  wrapper(<MyComponent value="foo" />);
  wrapper.setProps({ value="bar" });
  wrapper.update();
  console.log(wrapper.debug());
  expect(wrapper.props().value).to.eq('bar');
});
When I call setProps and update on the Enzyme wrapper, the component isn't updating
I can clearly see this because of the output from console.log(wrapper.debug()); - the component is definitely still using the previous value of the prop
 
Hello,
 
@DMVamsi 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.
 
What do I need to do to get my test to work correctly?
This question: stackoverflow.com/questions/34944907/… makes it look like I'm doing everything I need to
The documentation: airbnb.io/enzyme/docs/api/ShallowWrapper/setProps.html makes it look like I don't even need to call wrapper.update()
 
1 message moved to Trash can
@DMVamsi 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
 
4:37 PM
github.com/i-tu/Hasklig vs. github.com/tonsky/FiraCode ? What font do you guys use?
 
in our ide?
 
Yeah
 
Nevermind, I was making a different mistake in my test :P
 
whatever the ide uses
 
Whats the default for sublime? consolas?
 
4:40 PM
I saw that Hasklig was a fork of source code pro. I was looking to get a font with ligatures raw.githubusercontent.com/tonsky/FiraCode/master/showcases/…
 
Agt
hi
 
@Agt 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.
 
@Zirak Thanks. Btw, that looks interesting, but... JavaScript? Again? No. p.nf/nidium-vids/layout.mp4 - at 0:58 in this video, I quote: <UIButton ... id="undefined">.
 
what do if designer is busy and can't give me them sweet designs?
 
Agt
0
Q: How i can Node JS Cluster HTTP Get Request multi thread

Agthi i now create uptime monitors project.I new begginers Node JS. I want use cpu %100. How i can check example 10.000 website response header status. I not understand cluster i want use my server maximum performance wor websites uptime monitors. my request code here var req = http.get({ ho...

can help me ?
 
4:54 PM
native modules landed in FF
 
@Agt I'm not sure what you're trying to do.
 
tell you native modules landed in FF
 
I don't like how the link to meta so is now on the right
 
hey erik
 
4:58 PM
Hey
 
holy shit they've been busy
 
@MadaraUchiha I am guessing I am too late now :P
 
!!afk have a good weekend yall
 
@AwalGarg a bit.
 
@MadaraUchiha I mean, the answer on that question seems right and he seems to have included the details you asked for as well. What else is there? :P
 
5:05 PM
@AwalGarg Nothing, hence, you're late :D
 
cool :)
 
TIL importing and requiring aren't exactly the same thing
 
Agt
@littlepootis thanks for reply :). I want check 10.000 web site http status check (200,500,31 vs.) İ want use multi threading node js.
i can little speak english sory
 
16
A: ES6 Class Multiple inheritance

Poelinca DorinCheck my example bellow, super method working as expected. Using a few tricks even instanceof works (most of the time): // base class class A { foo() { console.log(`from A -> inside instance of A: ${this instanceof A}`); } } // B mixin, will need a wrapper over it to be used const B ...

This is multiple inheritance or multilevel
Because AFAIK, it looks to me multilevel
 
@ankitbug94 Nice
 
5:19 PM
Why are flowers so expensive
 
is that your dinner?
 
Yeah I'm going to a new extreme vegan level
 
way to go
 
@Zirak Nice? I am more of asking than pointing
 
@ankitbug94 oh, I was just amused at his solution. And it's not really multiple inheritance, you don't have several immediate parents - you've got a long inheritance chain
 
5:34 PM
@ankitbug94 This is multilevel
You can probably do multiple inheritance by iterating on some prototypes and using Symbol.hasInstance
 
@MadaraUchiha Yeah! Any workaround to do multiple besides mixins( no latebindings). Only solution looks to me I should change my code structure now
 
But you almost certainly can't do it with the extends syntax.
I imagine some decorator like
@multiExtend(ClassA, ClassB)
class C {
  ...
}
 
Oh! Decorators are not needed in this case. I need to really inherit not mutate
 
@ankitbug94 Like I said, JavaScript doesn't have native multiple inheritence.
Your only way is to dynamically alter your class's prototype, and implement a [[hasInstance]] (read: Symbol.hasInstance).
 
Will late binding in parents work in that case?
 
oh shit that's amazing dude
 
This is one of those songs I have to move my head to lol
 
man I need a new speaker system :(
 
Spencer just makes it better
 
just blew my sub lol
it's like 5 years old though I guess
 
5:41 PM
LOL oh no :(
 
hahah now I only have treble
#worthit
 
Abigail will do that to a sub lol
 
Abigail ? stardew valley ?
 

« first day (2309 days earlier)      last day (2624 days later) »