« first day (2221 days earlier)      last day (2952 days later) » 

00:18
Only had to reinstall it twice nbd
 
1 hour later…
01:43
can anyone test my yeoman generator: github.com/deostroll/generator-mono
02:17
People still use yeoman?
02:35
Yeoman is nice if you're new to an environment
I use it for latex too since it can be a pain to start a project
is there anybody using Ionic?
02:52
I have a dashboard component with lot of chart components in them. The dashboard component also has a "Refresh" button which is suppose to refresh all chart data. I am looking for a approach where Refresh button tells dashboard component to refresh and dashboard component queries up all charts in it and calls each charts refresh method. To achieve this should I use a controller or service ? How should I go about this ?
oh btw i am using angular JS v 1.5
$watch
My understanding, service is do nothing with UI.
Anybody familiar with FB OAuth?
@Jesse Thanks, I will read about $watch
@Jesse who will be watching , the chart components ?
My suggestion is: refresh button should change value of refresh-flag, chart components watches this refresh flag, so it could create connection between refresh button and chart component
@Jesse how soon should I flip it back to off ?
03:09
you can use a list with tasks or deferred.
@Jesse Thanks, I will try that
not sure if it is the best practice
03:20
I have a ton of code in a script that works
but it wont display any alert messages
what is going on?
03:40
alert disabled?
user6820627
asking too broad question: how can i make the terminal like this? netlify.com
Like, the design or the functionality?
user6820627
both. i am inspecting the source to see command run client or server
Depends on where it's run. You can emulate a CPU in the browser, run linux, and interface with it directly from the browser using something like v86. Or you can just send the command to the server, run it in a vm/whatever, and get the output back.
user6820627
@littlepootis i see now. it runs on client
user6820627
03:46
$ echo s
-bash: echo: command not found
$ echo s
-bash: echo: command not found
$
user6820627
ok, what about design?
You can write your own or use a library
I've come across several
user6820627
04:03
ok thanks
o/
nevermind...
04:59
o/
@Jesse Just reached office, okay I will try to get a second opnion
@OliverSalzburg How should I approach this problem ? chat.stackoverflow.com/transcript/message/34029218#34029218 . Jesse told me that I should be using $watch but he is not sure (chat.stackoverflow.com/transcript/message/34029237#34029237) .
05:33
Hi All, I am looking for a react.js freelancer, anybody available ?
05:59
Is it a good practice to put angular app in IIFE like this guy did ? jsfiddle.net/jeremylikness/zba74rk3
06:11
how can I check for two events ?
shift + leftclick in javascript?
06:31
@qaispak listen keyboard event
but I want keyboard + mouse
like hold down shift and click left
@Jesse
you are doing multi-selection function?
I guess
is that a thing I should look into?
I have same experience, let me check.
can I post a line of code here?
just to show you an example of what I'm kind of looking for?
06:39
ng-mousedown&ng-keydown, if you are using Angular, they should help
button.oncontextmenu = ( e ) => { rightClickAction( e ); }
this is used to get the right click
I want to get left click + shift in similar fashion.
maybe doable
1 message moved to Trash can
@Jesse Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
I will try that and see if it works @Jesse
07:16
didn't work :(
07:39
@BenjaminGruenbaum nice :)
@Luggage It was #2 for a couple hours before that ^_^
08:27
Any gulp user here ? Did you encounter the incompatibility of gulp 3 with node 7 ? What did you do then ? Use the unreleased Gulp 4 or downgrade to node 6 ?
@FlyingGambit Usually, you wouldn't even have a refresh button or watchers
You have your dataset and you bind your component to it. The component should automatically refresh when the data changes
If the component does not provide that functionality (because it isn't built "the Angular way"), then you would need to watch yourself ($watch or, more likely, $watchCollection)
@qaispak check this
@OliverSalzburg True, the chart data needs to be fetched via rest call so refresh just gets the new dataset in my case. Also found that bind expressions can be used stackoverflow.com/a/36035086/5936814 but not sure how it works, still learning that part
@FlyingGambit Component bindings are important, but seem secondary in this context. Obviously you're going to want to bind your data to the chart component :)
If the refresh actually has to fetch new data from the backend, then it should do just that. You might just need to take care to update your existing data set, instead of creating a new one, which then might not be bound to your component
We do that by always keeping the same array and just manipulating it when the data updates, instead of creating a new array.
Maybe github.com/oliversalzburg/absync is something you wanna have a look at, just for funzies ;P
08:45
guys i have made a navbar for mobile view. Usually I used bootstrap but due to lacking some features I want to make a custom menu But I got stuck in one part.
http://codepen.io/sus_hill/pen/QKPjYN
heres my pen, where i am stuck is, I want to collapse PRODUCTS li if someone click in About li
Hello
Anybody experienced with Node JS?
@SusHill Everything looks fine here
@Vlad Yes
I dont have any knowledge abbout node.js
I have version 0.10.25 installed on my Ubuntu 14.04. Is my version old to use Angular JS 2.
@OliverSalzburg I want to collapse the Product dropdown if clicked in about for dropdown
08:48
I tried installing Angular JS 2 quick start app and found that some of the dependencies are not available
Should I upgrade Node JS to version 7?
@SusHill Yeah, you don't have to repeat yourself
It collapses on it's own for me. I don't even have to click anything. Is this issue specific to mobile?
@Vlad Angular runs in the browser. So, no
@OliverSalzburg which browser are you in?
@Vlad That is a completely different topic. The application you're trying to run probably has dependencies (such as build tools) which require Node. That has nothing to do with Angular. That being said, yes, your Node version is ancient af and you should update it
@SusHill Chrome stable
@OliverSalzburg This guide angular.io/docs/js/latest/quickstart.html shows 404 errors for some angular 2 registries when I try to install with npm install. Should update Node to be able to download those registries?
Pretty shitty quick start guide if it doesn't even mention that you need Node and what version of it
@Vlad The, also ancient af, version of npm you're running is probably not capable of working with scoped npm modules. When you update Node, you'll also get a new version of npm
08:56
@OliverSalzburg I don't think you understand it
@SusHill Then explain it. And try to do that without repeating the same stuff you said already ;P
@SusHill That looks very different from what I see on the pen
both product and about are opened
@SusHill You might have want to mention that your issue is specific to when the width of the browser window is very small
It seems like kind of an important detail
08:59
yea man i was talking about mobile nav
That's hardly the same thing
Whatever, if you want to collapse your node, then, do it
If you implemented this, I don't see where the problem is
The state seems to be controlled by a CSS class, so adjust the class for all the nodes that you want to adjust when you want to adjust it
Meh. It says Node is already the latest, but still 0.10.25 :D
Damn I have when I need to remove things.
Should I? Ubuntu 14.04
^
Ubuntu repositories don't have any newer Node
I removed it and again it installed 0.10.25 :D
09:10
Well it's going to if that's the latest the Ubuntu repo has.
Yeah yeah, so I guess update NPM
what the...
npmjs.com/package/n works just fine for updating node in my experience
I'm done
09:12
@OliverSalzburg can you find any way to do that?
@SusHill Sure I can, but I prefer solving problems in my own code instead of doing that for others for free
or can I update NPM ? :D
Damn that shitty angular quick start tutorial :)))
@Vlad Read the fucking link
Why do I need another tool
@Vlad Maybe computers aren't for you
09:17
1 message moved to Trash can
@SusHill Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
    :34032138 does like this help?
     $('span.submenu-button').click(function(){
     $(this).next().toggle();
});
@SusHill I dunno, does it help?
I would assume it doesn't
@OliverSalzburg what made you think of that?
It seems to toggle the next item, when I would think you'd want to toggle all items that are not within the current branch
Or, more specifically, collapse them, not toggle
So it's probably wrong in 2 regards
But one should be able to see that easily while trying that code
So n is another npm? :))
09:29
no
I don't know if you're trolling or just dense.
Am, ok. I see.
Was supposed to read Node docs but... trying other things
:))
so much to read... docs for this docs for that...
So what testing tool do you prefer, Jasmine Mocha or QUnit?
10:01
Now running two versions of Node :)
v7 in one and v0.10.25 in other terminal <3
#whatcouldpossiblygowrong
Speed doesn't kill you. Suddenly becoming stationary. That's what get you :P
@BenFortune om, nom it worked. Thank you :)
@Vlad Sudden acceleration can be just as bad.
Δv is a killer.
Although proper application of Δv can be loads of fun :D
@Cerbrus how do you accelaterate suddenly?
Of course using Ferrari La Ferrari :P
mm motorcycle
@Vlad Proper application of Δv. Also, proper application of throttle / clutch.
10:13
Fighter pilots getting launched from carriers make a Ferrari look slow
~250 km/h in 2 seconds or so I think I read somewhere
user3119231
o/
\o
/o\
10:14
:D
lol <-- You can never see that as "just letters" any more
SO needs twitch emoticons Kappa :P
@ivarni i cannot disagree. Never felt how fighter planes fly.
@Vlad have a look. That's pretty damn fast.
Colonel John Paul Stapp, (July 11, 1910 – November 13, 1999) M.D., Ph.D., was an American career U.S. Air Force officer, flight surgeon, physician, biophysicist, and pioneer in studying the effects of acceleration and deceleration forces on humans. He was a colleague and contemporary of Chuck Yeager, and became known as "the fastest man on earth". == Early years == Born in Salvador de Bahia, Brazil, Stapp was the eldest of four sons of Reverend and Mrs. Charles F. Stapp, Baptist missionaries. He studied in Texas at Brownwood High School in Brownwood and San Marcos Baptist Academy in San Marcos...
Some knowledge for y'all!
10:24
"the fastest man on earth", I imagine that being a terrible pickup-line
Wrong, the fastest man on earth is James May driving Bugatti Veyron at speed of 427 km/h. But of course that was beat by a german driver driving Bugatti Veyron Super sport at speed of 432 km/h :P
@ivarni Anything with sexual innuendo is usually a terrible pickup-line
@Vlad You need to read more
> Stapp reached a speed of 632 mph (1,017 km/h)
@OliverSalzburg joking. Will get to that bit.
And it has been beaten but it sure took a while
@Cerbrus it's giving energy to Goku
10:30
@Neoares you mean trunks
no, I mean goku
he's the only one that can do the Genkidama
lately trunks is in the give me your energy business
- DBS episode 66
I don't follow DBS
haha :D
it has no sense
10:31
you should atleast watch the latest episode, feels like a completely different anime from when DBS started
like DBGT
no, I don't like story contradictions
I stopped counting story contradictions since saiyan saga
1228 km/h D:
that is like mach one?
@Abhishrek tell me one from DBZ
10:39
that's useless
they don't event mention the inconsistence with gods on the majin buu saga
You asked me to give you one inconsistency, I give you a list. You reject them all 😶, also its a wiki, you can edit it :D
yes
but I meant the several ones
> It is uncertain how Yajirobe is able to create a necklace where a string is depicted going through a Dragon Ball, as they are considered virtually impervious to damage. This is likely due to aesthetic reasons.
this is pointless IMO
Why do we need to drive at speed of 1200 km/h? But of course, science is not about why, its about why not :P :)))
11:09
How close is TypeScript to JavaScript ? :D
How to convert this to JS?
Using the typescript compiler.
1 message moved to Trash can
@Vlad Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
export class AppComponent {
	  title = 'Tour of Heroes';
	  hero = 'Windstorm';
	}
I heard TS is a superset of JS, but never actually tried it. Not sure if it's still true.
export class AppComponent {
     constructor(){
         this.title = 'Tour of Heroes';
         this.hero = 'Windstorm';
     }
}
That will be $10
user3119231
11:12
Send me via paypal ok? [email protected] thx
user3119231
I will invest it in sport bets
:D hey, not asking you to do my job. Wanted some help. No problem. I can handle myself.
last time I tried TS, the only documentation it had was its language specification as a .docx file
Ok. Not really skilled with these NPM modules. How to utilize typescript compiler with Node? npmjs.com/package/typescript-compiler
Should I create a separate folder with js file and run the js file with node command?
node myfile.js right?
And print the result with console.log()?
There are so many ways to do that.
You can just tsc yourfile
node resultingfile.js
11:24
@Maurize web.de is such a shitty provider
user3119231
@OliverSalzburg it's old and I'm using it for dump
Same here ;D
It says command not recognized when I type only 'tsc'
I am missing something
A good operating system
I'm running an angular application where on selecting an item from a drop down list, it calls a function say load() which makes another dropdown list visible. When I take the item value as URL parameter and call the load() function, it doesn't work. Any idea why?
11:34
Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"ia32"})
ok gonna save file then with Node
Hey, in angular 1.5, can bindings be used as an alternative emit ?
^ for inter component communication
For all the searches I did , I am just seeing examples of child to parent communication examples only... using bindings, there is no parent --> child example for the same
So how do I run typescript-compiler on my computer? :)))
Any ideas?
Virtual Machine :P
@FlyingGambit Yes, but you'd probably want to use shared controllers for parent → child
If it's a very fixed parent-child relationship, as in you control both components and don't care about other people, you'll use shared controllers or & bindings, depending on how flexible you need/want to be
If you want to let everyone in on the fun, you use events
Shared controllers is the shit, use them if you can
@OliverSalzburg In my case its one parent and multiple childs, would shared controllers be beneficial in this case ? Also in one article , it mentioned that parent child binding is considered as bad practise
@OliverSalzburg XD
11:50
@FlyingGambit I don't see why that would be bad practice. Having a parent that controls children though whatever means seems to be a pretty common pattern IMHO
In case of bindings, yeah, probably not that great. That's why you'd use shared controllers
Intercomponent Communication is short and sweet
Hi All is there a web dashboard for charts that uses csv files to present data that is free to use ?
@user3504751 Could you be more specific
We need to narrow it down from all the web dashboards that use CSV and are free to use
@OliverSalzburg Apologies for not specifying this earlier, apparently I am bad at explaining things. I have one master refresh button, which when clicked has to call the refresh function on the chart. There are multiple charts and each chart's refresh function is different as they have different urls and parameters (some cases the number of params are also different).
sure , i have done some excel spreadsheets and want to make a dashboard that uses meter gauges, (the ones that use color bars not needles) to reflect some figures from a csv file... i know there are so many out there but wondered which might be best, i liked the example from here but canvas.js doesnt seem to be free canvasjs.com/samples/dashboards/annual-sales-website-traffic
so basically that , with csv upload functionality and free
and its only the gauges at the top of the example that I really want tbh
@OliverSalzburg haha 😃
user3119231
12:04
LMAO this is how to pet a bear youtube.com/watch?v=O6URpGymR7A
@OliverSalzburg i also had a look at the metro bootstrap dashboard which had some circular progress bars in it and was free but has no upload csv automation
OliverSalzburg is in high demand :O
i like the dashboard from elite dangerous where the outfitting shows curcular charts to reflect the upgrade %'s something like that
So if Google made Angular 1 in JS why they prefer more TypeScript than JS for Angular 2? The tutorials are not made in JS
:)
@Vlad They just want to promote Microsoft
12:18
-_-
Google likes languages allowing greater projects with bad or average coders. Typed languages are obviously easier there
When you look at some of their things, it looks like they're much more at ease with java than javascript. Closure for example looks like it was done by coders who hate JS
Yeah, plain JS is tricky for newcomers. People that know good plain Crockford JavaScript are rare?
It's hard maintaining big JS projects, hard to deny that they can go absolutely mad in a way no Java program can
D:
how easy is it to add a csv functionality into a bootstrap metro dashboard template do you think /
12:22
@FlyingGambit Well, it all depends on how complex you wanna get with this. Just broadcasting a REFRESH_CHART event and listening for that in your chart components is definitely quick and easy. But you could also have your dashboard expect it have chart component children, which share a controller, through which they register themselves on the dashboard parent
The dashboard parent would then invoke the refresh on the chart children as needed
Given that the dashboard expects a specific child component, the interface of the child is defined
Which makes for happy coding
i dont need real time updating , just periodically a csv file dropped into a dir structire or something like that
So learning Angular 1 might be bad choice. Lets say I choose other JS MVC framework. Which one would that be? Durandal JS ?
You probably would have to transclude the children into the dashboard
i really liked this example and knowing that canvasjs allows for csv input it all looks great , but is a paid solution something just like this would be great tbh canvasjs.com/samples/dashboards/annual-sales-website-traffic
@OliverSalzburg I don't mind taking the hard route as long as it is the right way of doing it. "But you could also have your dashboard expect it have chart component children, which share a controller, through which they register themselves on the dashboard parent" ... I will give it a try.
12:27
But again whats wrong with Angular 1? Yeah yeah, it will become old and you must upgrade to Angular 2 :D
if only excel could allow you to export sheets as dashboard , but it doesnt
chartfx looks good
@FlyingGambit That being said, I've never built something with components where I would try to transclude the same slot multiple times. Could be interesting! :D
@OliverSalzburg Letting the newbie experiment and blow his head XD
12:44
pretty straight forward actually , i will take the bootstrap metro dashboard and create a custom js that takes the csv entries and slots them into the appropriate classes , done
ahoy
user6820627
learn specs first. tools.ietf.org/html/rfc4180
user6820627
or don't parse csv, tsv instead
thanks
user6820627
12:46
everything start with specs.
well initial excel dashboard looks really bad and dont want figures to be seen so simple web dashboard made sense
will manual entry figures until additional csv functionality gets done , probably lots of problems along the way , would of liked to of used canvas.js but it isn't free so will do my own
thanks for the specs
13:02
userstyles.org/styles/37035/github-dark I was using some crap theme before for github.
this one is outstanding
@rlemon ooh
works on gist.github.com as well
so sexy
I use dark reader
@rlemon Neat, github.com/StylishThemes/GitHub-Dark-Script seems preferable for installation though
noted
13:10
They also have an Stack Overflow dark theme
I don't go on main enough for it to bother me
github/here/google
@-moz-document regexp("^https?:\\/\\/((android|photo|programmers|wordpress)\\.)?stackexchange\\.com‌​.*")
The fuck is this
I am really pleased right now for realizing how to easily setup up express route aliases with spread!
0
A: Calling already defined routes in other routes in Express NodeJS

Oliver SalzburgIf you have a lot of middleware on your route, you can benefit from spreading: const router = express.Router(); const myMiddleware = [ authenticationMiddleware(), validityCheckMiddleware(), myActualRequestHandler ]; router.get( "/foo", ...myMiddleware ); router.get( "/v1/foo", ...m...

!!should I use morgan
@rlemon No
13:24
!!should I use morgan
@BenFortune Frankly my dear, I don't give a dean
13:34
hello, does anybody know here that is the best way to realize "delay" function with babel?
@Dr.Tranquility 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.
> Quebec, which produces about 77% of the world’s maple syrup, is the Saudi Arabia of the sweet, sticky stuff, and the FPAQ is its OPEC.
best quote I've ever read
@rlemon Hahaha, that's the greatest thing I've ever heard
1 message moved to Trash can
@Dr.Tranquility 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
13:37
The Maple syrup cartel
You know - what is delay (debounce) for example in angular js
Maybe somebody did implement it as a decorator or a package for babel
did you google for "debounce es6"
I have an angular app where a function creates a dropdown list. When I call the function from the ng-click of a button, it works, but the function doesn't work when I call it from javascript
the function is executed but changes are not reflected in the UI
@rlemon thank you
but there is strange solutions with promises, there is not ES7 way
@codeln You need to trigger a scope digest. Try $scope.$apply()
13:41
@Dr.Tranquility so you want async/await solution?
@rlemon I guess github.com/developit/decko is what I want, thank you
@OliverSalzburg Looking into it, thanks
ohh so you literally wanted someone to write the decorator for you
😬
golly, passport makes life super easy
❤️
40 minutes -> github oauth is done
passport is bestport
^ hook to get you going on a monday morning

« first day (2221 days earlier)      last day (2952 days later) »