« first day (2554 days earlier)      last day (2386 days later) » 

12:06 AM
Where can I manually set CORS for CouchDB? I tried add-cors-to-couchdb NPM module, but I think my security may be locked down somewhere.
 
how are you testing?
 
Error: status 500 {"error":"error","reason":"eacces"}
 
gotta love webpack
 
@taco that isn't how you're testing
 
release notes for 3.7.0: add ContextExclusionPlugin to exclude files in a context (@timse)
looking for any documentation
NONE
 
12:18 AM
@rlemon well, it was an incomplete sentence; I'm not sure what ya meant
 
you're making a call and getting an error, show me the call
lol show me the call
I'm trying to see if you've neglected to provide the correct headers on the client
 
Oh, vue-table-2 is making the call
<vuetable v-ref:vuetable class="table-striped"
:api-url="apiUrl"....snipped>
I'm just putting the couchdb db url in the component. Bleh
 
probably just gonna use Express with a Couchdb module
I also tried using npmjs.com/package/add-cors-to-couchdb (which makes the curl calls for CouchDB 1/2) - no luck. Tried modifying CouchDB (but IT's config mgmt is funky)
 
talking about couchdb, if you want to store data, let's say users and comments which those users made somewhere, would you rather create two distinct couch databases or is it best practice to include those comments as object entirely into the users data
 
12:32 AM
@jAndy do you know how to create views? I generally create views and add a "type"
not an expert, but I poke around this doc occasionally github.com/eHealthAfrica/couchdb-best-practices
 
I'm just learning couchdb, so yes I'm into views a little. The thing which bothers me with views are two things. 1) it's just a map/reducer which you can easily write yourself in node when you collect data and b) you need to have a ton of view references in your application in order to acquire different data
 
Just got a new laptop at work (with that touch bar! might program it)
 
but.. that's just my first impression
 
Right, you reduce your views to emit just the data you need. If you look at the logs, it's compacting data fairly frequently. I'm not fully aware of the optimizations done, but our bigger apps (that I didn't develop) are used by millions and I monitor them. Rarely any performance issues
 
I guess the "solution" or the couchdb way for my original question are linked documents then
 
12:40 AM
anybody know how I can get a stack overflow sticker again
 
1:06 AM
cya rlemon, jAndy
 
morn
 
1:31 AM
 
2:14 AM
Lantern doesn't work.
It's pretty annoying with websites blocked.
We're kept away from all the awesomeness happening worldwide.
 
 
1 hour later…
3:29 AM
🍦 🍰
 
happy birthday
 
 
2 hours later…
5:38 AM
Ello.
 
6:28 AM
hi
 
morning
 
What do you guys think about the idea to make Caps invocation trigger "Cap, " instead of "!!", so we can actually "talk to her"?
 
Will cause problems
People often 'mock' talk to her
 
Which is exactly why it would be so great. She would actually answer to natural requests.
Could make a test run of course, having that trigger ofr a day or three and see what happens
!!lick KamilSolecki
 
@Metallkiller Mmmmmmm @KamilSolecki tastes just like schinkenspeck!
 
7:24 AM
Hi everyone! I'm completely confused with CORS again. I try a http post query on server from an angular 4 app, I don't set custom headers in the request. When trying the query in Firefox, console shows me a first OPTIONS query, which is fine, then a POST query, wich returns http 200 OK, just below, I see the "cross origin request blocked" message, and I get an error
From the network developer tab I can see "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data"
Now, in Chrome, I dont have this
In the chrome console, I can see the same (quite) message concerning CORS : No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '...' is therefore not allowed access.
But, in the Network tab, I can see the JSON response I expect...
 
Ace
how do i get a JS list and pass it to a c# in MVC, actionResult?
 
7:45 AM
@Julo0sS smells like a server issue
CORS is mostly configured server-side. Your error is confusing, though.
also hello, all
 
Hi @Squiggle
Well, I'm requesting data on an alfresco backend, and did configure cors within web.xml as I found on the internet, so I think this should be ok... but it's not... And, I can't get why I can see a result in the chrome tab and not on my firefox (I noticed that on another version of firefox it shows me data too... strange)
 
@Julo0sS You need to set Access-Control-Allow-Origin on your OPTIONS response
...to the host the request is originating from, or *
 
@OliverSalzburg Well, it's automatically set, I don't have to set the allow-origin on my options request, I can see 'Access-Control-Allow-Origin myRequestingOrigin'; on my response headers... that's weird
Then, after my "OPTIONS" request, I can see (still in the console) the POST request, which returns 200 OK
and just below, I see the angular (core.es5.js) error (JSON.parse thing), and just under it I can see the "Cross-Origin Request Blocked" message
 
it's odd that you get a valid response AND an error
 
Indeed
 
7:53 AM
are you sure these relate to the same request?
 
Maybe your response to the POST is invalid JSON, so the request parsing fails and the failure is misinterpreted as a CORS failure
Start with the first error you see :P
Wah, new GitHub activity page
 
@Squiggle What I'm guessing now is that the response (from alf backend) is XML, and has to be parsed to json with angular. That may be the reason why I get the error, BUT that doesnt explain why I have something readable returned on chrome, and nothing on firefox. Btw, I still have the cors blocked message on both chrome & ff
 
And what request is the failing one according to the network tab?
 
none. Options = 200 & Post = 200. The cors message comes after
 
7:58 AM
Options response is empty (ok with that), and post response seems empty in the console tab (here is the problem, but guess it's because of the cors)
 
Is the message coming from Angular or the browser itself?
 
I'll post a screenshot
 
What other CORS headers are you sending in response to the OPTIONS request? Just in case you're not allowing POST or something ;D
Well, the "No 'Access-Control-Allow-Origin' header is present on ..." is pretty clear though :/
 
@OliverSalzburg I completely agree with that
@OliverSalzburg Post is allowed, I have nothing special in the options... and options is ok (it allows the post call just after)
 
Yeah, sounds a lot like there is more going on
 
8:14 AM
So I installed (finally) a dark GH theme
but I must have chosen Clown Monokai
 
Basically, I'm sure the alfresco backend returns me XML data (<token>TOKEN_dsqfs</token>). This may be why I get a "JSON parse" error since the first character of the expected json return is "<".
 
dear god these colors
 
Monokai <3
 
Yeah, but clown version of it :P
I like monokai dimmed
although as of now I'm using mostly One Dark (the one that atom has)
 
@Julo0sS Well, that's a problem regardless of CORS
 
8:22 AM
@OliverSalzburg Can't find a decent solution without installing xml2json library to project, here is my http call :
return this.http.post(url,{'username':username,'password':password},{headers:headers}).map(response => {
    return response.json();
});
my component just subscribes to it and tries to console the result
headers is just : let headers = new Headers({ 'Accept': 'q=0.8;application/xml;q=0.9'});
 
8:38 AM
help what does a bar over a set mean? the inverse within universe? whats it called begins with c
yes it means the compliment
 
Anybody remembers that post about medical UK facilities using commodore or an equally old machines?
If so do share a link
 
Yeah this
Thanks
 
Whoah what the fuck SO
 
try to disable the plugin
:D
 
8:50 AM
@BenFortune I came to accept this
 
SO and its scrolling problems, eh
 
First time it's ever happened
 
Never seen that
 
seemed to happen more when I had the plugin enabled
but it does happen without it from time to time as well
 
"the plugin"
 
8:51 AM
For me it doesn't happen anymore
But it used to
After chrome update all is fine for now
 
blame the chrome
 
blame the lemon
 
9:07 AM
Blame the squeezeable substance inside a fruit
Inb4 I didn't wanna 'blame the juice'
 
@KamilSolecki One more line like that and I'm leaving the UNESCO!
 
@BenFortune howd u get it dark
 
About time, it's almost noon!
 
Looks like he's working from there ;D
 
@chade_ 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.
 
9:16 AM
@Tobiq VIP
 
is it free
 
@Tobiq No, gotta pay
nothing to see here
 
how much?
 
about three fiddy
 
Annual membership starts at $1000/year
 
9:24 AM
All payments go to Citrus Inc.
 
1000 to get a black chat
 
No, all VIP features
 
Not just that.
 
id rather manually change the css everytime
 
@littlepootis please do show him a screen of some features like advanced timestamps
 
9:25 AM
 
@Tobiq I'm pretty sure it might be illegal
TOS violation and such
 
vip for freee prntscr.com/gwv40g
 
@KamilSolecki No it goes to Squezzeable Fruit Substances & Co.
 
@Tobiq Watch it, you might get suspended for that
 
@Tobiq uuuuh I'm flagging
 
9:27 AM
Hide the evidence
 
for what?
 
For violating TOS?
 
@Tobiq My eyes!!!
 
i can edit any css on my computer
@chade_ i personally adore the extra contrast
 
Hacking premium features is like hacking YouTube to enable background play on mobile without using YouTube red
It's the same
 
9:28 AM
ok who do i pay for red background
 
@Tobiq I'm done talking to you. Closes chat tab
 
@tobiq what about this
 
just get a plugin for automatic syuntax highlight
 
yeah, do that
tell us when you're done
 
do it
towc got SO gold membership two days ago.
 
yup, it's great
 
how good do you feel now
 
Don't forget to notify SO admins too
 
got a lecture
 
my basil doesn't love me, how do you think I feel?
 
9:32 AM
vue is a language now?
 
my flatmate made me buy basil @towc
 
@littlepootis aye 😉 and doesn't have rust
 
but i cant cook for shit
@littlepootis i personally prefer not to have my chatbox overlay my screen
 
@littlepootis it's for the template/script/style format I think
 
any one knows how i can center the 'rdlc report' in Report Viewer? it is aligned on left side of the report viewer? (google couldn't help)
 
9:36 AM
@littlepootis your screen is so small xD
watched that pic in my 2k monitor
weird, it's not 720 nor 1080
it's something in between
 
1600x900
 
@Tobiq It's just for writing code.
 
yes
 
never seen such a screen
 
@Neoares It's 20 inch.
And old.
 
9:38 AM
it's perfect for a xbox one then
 
im 1600x900 too
 
Only 1080p or my old shitty 4:3 1200xsth
 
I have 1080 laptop and 2k monitor
 
I hate my 15.6 1080.
Everything's tiny.
 
@Neoares me too! :D
 
9:39 AM
o/
 
I have to scale the display.
 
@littlepootis Like [insert your term here]
 
your penis
 
yes... my 2k monitor is 25"
and I don't see things very big
so I guess 25" is the minimum for 2k
 
@littlepootis TRIGGERED
@Neoares Yeah i'm fine with 27"
 
9:44 AM
oh, so yours is 2 inches bigger than mine
!!giphy Kappa
 
you need 34'' with 3440x1440, trust me
 
too much
 
@KamilSolecki Nice :D
 
10:19 AM
should I start using yarn?
 
uhm... can someone tell me how I would plot a directional derivative? @KamilSolecki ?
 
Hi. Quick question: When installing a package 'locally' (project-specific, not global) with npm and I want to use its CLI, will I have to add the project to my PATH variable? seems weird to me.
 
I've calculated it, I just have no clue what to do with it now
 
@ngmir You can use npx, or create an npm run script for your project
 
@BenFortune Thanks a lot. I will look into that.
 
10:23 AM
Highly recommend npx, ships with npm 5.2+, or you can simply npm install -g npx
 
@GNi33 well you cant really 'plot' it
you can mark it on the function plot tho
 
okay, how would that look like though?
 
a directional derivative can be thought of as a point moving with a velocity v
so mark that point on the input space
mark the velocity vector
and you should be done
 
okay, bare with me for a sec here
I have a function
and a point on that function, from which I calculated the directional derivative in regards to a certain vector
the vector is something like [cos(alpha), sin(alpha)]^T
so now I need to plot it in regards to that vector
so basically I have the vector, and the function that is the directional derivative
and it asks me to mark the gradient as well
I'm lost :D
 
@FlorianMargaine @KendallFrey @Loktar happy Friday!
 
FFFUUUUUUUUUUUUUUUCK
 
did you step on a lego brick?
 
sorry I can't yell at the office
@GNi33 no, even worse
 
Hi @everyone
Hope you all are doing good.
I am new to Javascript and nodeJS, and stuck with something very noob and had no luck yet.
If anyone is free I could use some help.
 
10:44 AM
I'm using a library that has terrible docs
 
@sghosh968 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.
 
Two Lego bricks?
 
you wanted to listen to Rebecca Black on this fine friday, but got rickrolled?
 
You hit yourself in the nuts with your own mouse? Because that happens sometimes.
 
@Metallkiller no, I'd say the equivalent is 4 lego bricks
@rlemon how can that even happen?
 
10:44 AM
@CapricaSix Oh sure will have a look a that :-)
 
@rlemon Not sure I wanna know about your kind of development
 
if it's a wired mouse I can understand
 
@Neoares mouse with a cord man.
 
@GNi33 ok. Lets start from the beggining. Can you give me the point, vector and function?
 
sure, give me a sec
 
10:45 AM
(also sorry for long breaks inbetween messages im doing work in the meantime :P)
 
. -> ()=>{}
there you go
 
@KamilSolecki haha, no worries. I'm at the office as well. If it would be cool with you, I could ask you again on the afternoon sometime?
Then I'd actually be at home working directly on this stuff
 
absolutely, I think that will be better for both of us :D
 
yeah :) Thanks for being willing to help me out here, really appreaciate it!
 
@rlemon I took your advice and opened a new issue for Caps invocation trigger.
 
10:54 AM
I have a question. Often times, when I run git rm --cached <path_here> I get this:
fatal: pathspec '<my_path>' did not match any files
but also
it does get removed from cache
and.. just works how it should
not that it is of any issue, I just wonder why that happens
 
Hey folks
what's happening
 
the time
 
Wow you are so funny
 
ikr
 
11:05 AM
I wish you id
did*
 
Ace
hey guys
who wants to party with me? im celebrating finishing a 4 month MVC project :3
finally done
 
Wohoo
 
Ace
finally done, im so proud
 
@BenFortune nice! what are the terminals used for?
 
11:09 AM
> The devices show detailed information about their tasks, their productivity and more.
Raspberry says you're slacking off! GET ON IT!
 
@BenFortune Nice
 
that's really great
 
Ace
let's hype this chat up!
 
@OliverSalzburg It's my Spanish half-brother, Spaniak
 
anybody working with couchdb on regular basis?
 
11:21 AM
@Zirak lol
xDDDD
 
@littlepootis 0thats my dream
 
 
damn
 
we also have a little dot in france that belongs to spain
and a bigger one in an italian island
 
wait, I thought you were spanish
 
11:33 AM
I am
I'm talking about spain
 
@ssube @KamilSolecki @KevinB i.redd.it/1qw9ztloghrz.jpg
 
dear god
 
Can someone have a look at these lines of ajax code kopy.io/TCt1P , I do not udnerstand why this.var is undefined
 
make sure to bind the method
also, don't use the module object
 
module is a brave variable name
So brave! :')
 
11:48 AM
towc I did bind it or what do you mean?
 
hmm, google doesn't seem to recognize the word "latter"
in google docs
 
you fucked it up!
seriously randall..
 
yeah wtf @SomeKittens
hey it's Friday the 13th
Which of us gets sacrificed this time?
 
even if that isn't ocean, and now that I think of it it isn't... does it go to mexico
unanswered
 
@rlemon Wait you weren't joking?
 
11:53 AM
dude it's early
anything not inside of the borders is coastline
it made sense
 
the USA is an island of freedom
 
@FlorianMargaine If you're working with C: (global-set-key (kbd "C-x C-o") #'ff-find-other-file)
It jumps between the c and h files
C-x C-o was delete-blank-lines and you never used it anyway
 
whats a wednesday frog
 

« first day (2554 days earlier)      last day (2386 days later) »