« first day (2566 days earlier)      last day (2374 days later) » 

9:01 PM
Hi All
 
!!afk
 
@Sagar 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.
 
to install node js
i went here
which one do i click for the download?
 
releases
 
thank you
 
9:04 PM
Usually use to download it here
 
is this installation
npm?
im just trying to do that
add linq.js to my project, but it requires npm? then node.js wtf
 
and?
 
instructions left out additional steps for retards like me
so im here to ask around
 
not having access to node/npm while developing a web application is odd
 
im using an MVC app
first time i looked at node.js
 
9:08 PM
Could you let us know your operating system
 
just get the minified file
put it in your project where you put other js libs, and reference it
 
@Sagar win 10 64bit
@KevinB ah okay
 
usually if you install nodejs. You will also get npm installed
Especially in windows
after installation
 
if you're not using npm and webpack/gulp/whatever to build your project, there's not much use in following npm's installation guide
because it won't help
 
In browser or in node env ?
@Traitor Where you want to run linq ?
 
9:14 PM
in the <script> tag
locally?
 
As you want to run only in browser. As sad by @kevinb You might not need npm or node as well.
 
well installation was successful
then i ran npm install linq
 
Unless you want to take advantage of tree shaking, build optimization and using many libraries. using webpack like things.
 
i try an example and i get error: 'Enumerable is not defined'
honestly i just want to get started
how do i reference linq to my project? i m getting error when i run an example
 
9:21 PM
const Enumerable = require('linq');
 
Hello everyone :)
 
'require is not defined '
 
require won't work if you don't have something that supports require
 
Hi NewToJS
 
i thought i installed node.js and installed the linq package :/
 
9:22 PM
You are running it with node ?
 
right, but you didn't update your MVC project to use a transpiler that makes require work.
so you've gotta do things the old fasioned way
 
ah
 
You have to run node yourJavaScriptFile.js
 
im using VS 2015
in the console?
 
the root is the global object, so you should be able to simply access linq on window or directly.
linq.dosomething()
 
9:24 PM
okay let me be more specific, i open VS, create an MVC project, add my jquery-1.10.2.js
 
I have an opinion based question
 
add node.exe
 
uhoh
 
install linq
try running
const Enumerable = require('linq');
                    var objects = [
                        { Date: new Date(2000, 1, 1), Id: 1 },
                        { Date: new Date(2010, 5, 5), Id: 2 },
                        { Date: new Date(2000, 1, 1), Id: 3 }
                    ];

                    // ref compare, can not grouping
                    Enumerable.from(objects)
                        .groupBy("$.Date", "$.Id",
                            function (key, group) { return { date: key, ids: group.toJoinedString(',') } })
 
cmon now
you can't use require.
we already said that
 
9:26 PM
remove that
'Enumerable is not defined'
 
great, now my fb feed is full of @SterlingArcher
not that I don't enjoy this, just saying
 
window.Enumerable
 
replace require('linq') with window.Enumerable
 
ok did that
'cannot read property 'from' of undefined
 
sounds like an incompatibility
 
9:29 PM
:/
i downloaded the windows one
 
windows one what
you don't need node.js or npm
those are unrelated to your problem
you currently aren't using them to build your project, so they're unrelated
 
i followed this
but i think i get what u mean
 
yes, you followed a guide that assumes you're using a setup that you are not using
 
This is painful to read
 
so going back, how do i use linq?
 
9:31 PM
include it on you page
then use it
 
does linq even work in the browser? I thought it was meant to talk to databases and shit
 
just like jquery
 
You want run linq on server ?
 
his server is asp
so...
i doubt it.
and i'm fairly certain this linq lib is meant for use on a browser
it has IE8 fixes
 
@KevinB fair point
 
9:37 PM
@david it is not
they are used to write queries in general
 
by minified i meant the linq.min.js file, not the minify.js
 
@Mosho Huh, that's slightly more useful I guess
 
9:52 PM
@Loktar nice
cc @KendallFrey @FlorianMargaine ^^
 
10:06 PM
☢️
 
i just bought a puppy
 
pics?
 
🐶
 
Ah balls. “Changing the design to show accurate geometry is not appropriate in this context.” On to 100k I guess! https://petition.parliament.uk/petitions/202305
Calling all UK citizens and residents ^
 
wat's it for
 
10:11 PM
fixing science
 
science is fine, the road signs are the problem
 
@BenFortune you'd better sign that
 
@KendallFrey lmao
the full response is a gem
people trolling the government
government trolling them back
classic UK
 
> Additionally the public funding required to change every football sign
clearly they didn't read the whole petition
it covers that
 
10:13 PM
> The higher level of attention needed to understand the geometry could distract a driver’s view away from the road for longer than necessary which could therefore increase the risk of an incident.
 
@Mosho lol yeah
> The higher level of attention needed to understand the geometry could distract a driver’s view away from the road for longer than necessary which could therefore increase the risk of an incident.
fek
 
too slow :D
 
ha, they think people look at road signs
 
one could argue that an incorrect geometry would cause people like Kendall to become confused and/or angry and increase the risk of an accident
 
@rlemon lmao
 
10:14 PM
@rlemon is that really an increase?
> Sean, you're receiving this email based on your recent IT purchasing on Amazon.
> Upgrade to a free Amazon Business account and access exclusive features.
wow Amazon, calling me out on my network hardware like that
 
lol
speaking of Amazon, can I see where a package is being shipped from before it is shipped?
> Being shipped today
but doesn't say from where
 
honestly
 
depends on the tracking #?
 
to this day I don't really know what IT is
if someone says "I'm in IT"
 
Information Technology
 
10:17 PM
tech support
 
@rlemon yeah, smartass
 
@Mosho you asked
 
IT fixes computers in the office
 
anyway, if someone says "I'm in IT"
 
😉
 
10:17 PM
I have 0 idea what he does
@ssube see that's not how it's used
 
Could mean anything to do with computers, depending on the dumbassery
 
he's an actor
or playing tag
 
@ssube IT means, I work with computers in more of a capacity than a receptionist
 
@rlemon that's more accurate
 
yeah, outside of IT it definitely means "anything computers"
 
10:18 PM
and that's not accurate at all
 
within IT, I'd say it usually means tech support
 
so if someone had an actual, real job
 
within tech support, who knows?
 
Hmm. I've been trying to build a promise chain to put into a db task. Promises come from array. Any idea why this would not be valid? :
 
they wouldn't say "I'm in IT"
 
10:18 PM
in the last 'big' software company I worked in the 'IT' department was the server guys
 
@Mosho basically that
 
not the programmers, the server admins
like ssube
 
IT is the word you use when you don't have a better one
 
so now we come to the matter of an "IT" degree
 
I'm guessing that could mean either plugging together electric lego, or Excel on steroids
 
10:21 PM
is it something that someone "in IT" gets when people start to ask questions
 
You may have noticed that I'm not fond of the term...
 
but IT Crowd is so funny
 
and also, I see "Information Technology" is an actual, serious thing
as expected
 
someone ionic?
 
@IvanMoreFlores 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.
 
10:23 PM
how do people who do what actual Information Technology people do feel about this
 
        return queries.reduce((current, next) => {
            return db.manyOrNone(current).then(val => {
                db.manyOrNone(next);
            });
        }, Promise.resolve());
Could someone point out where I've messed up?
Im trying to build a query chain so I can later put that into a task
 
db.manyOrNone might not be expecting a promise to be passed in...
 
@KamilSolecki probably want current.then(whatever)
 
yep
 
I've tried that too, not much luck.
Every single time im getting 'Invalid query format'
 
10:25 PM
"trying" and "luck" should not be a factor
maybe read what the stuff you're using do
 
and I've checked that the queries in the array are 100% correct
 
return current.then(val => db.manyOrNone(next))?
 
0
Q: button 'myLocationButton' ionic 3 - maps native

Ivan More FloresDoes anyone know how to move the google maps 'myLocationButton', down to the highlighted location? This image shows the desired location of the button. loadMap() { //let location = new LatLng(-34.9290, 138.6010); this.map = new GoogleMap('map', { 'controls': { 'compass':...

 
@Loktar @KendallFrey good youtube channels for printing?
 
@rlemon Maker's Muse is the first one that comes to mind
3D Printing Nerd but only because ElectroBOOM mentioned him today
 
10:37 PM
lol
 
Oh my god
Im retarded
stuff is working, I was just sending a request with a user that doesnt exist lol
 
I won't argue :P
 
lol
 
!!giphy facedesk
 
I've wasted days doing that with networks
 
lol I dropped a random number in postman and totally forgot about it
anyways, thanks for trying to help :P
 
So this Windows update is supposed to take a while... See you on the other side.
 
me data is telling me that mr. citrus has 617 messages of his stored in my db
seems right as I've only scraped data for 2 or 3 days
yay, progress
rejoice \o/
Time to gratify meself with some Archer
 
10:52 PM
@rlemon here is my puppy
 
@hsimah nice
 
his name is Laiko and he is a pomeranian husky cross
he will be my best friend and we are going to go on adventures together
 
Laiko the dog and hsimah the human
 
10 minutes
 
Apparently I watched 5 episodes of archer while asleep
 
10:59 PM
netflix pauses every episode if you're awake and every season if you're asleep :P
 
lol
 

« first day (2566 days earlier)      last day (2374 days later) »