« first day (2193 days earlier)      last day (2772 days later) » 

12:00 AM
 
@littlepootis in tails you do things
it's a quick solution for combining whonix and kali, if you will
 
In whonix, things do you.
 
it's a short-term setup
 
Like soviet russia
 
in whonix, you just have it sit and get things to bridge over it
whonix is just about controlling the bridging, and it's quite effective. Unless you use the whonix workbench, in which case you suck
so with whonix+kali you can customize however much you want
tails is meant to be easily loadable in any machine and allows you to do things instantly, but with a lesser degree of "setup customization" and possibilities of things to do
ok, openbsd is running fine again on that machine
time to fix firmware problems :D exactly what I wanted to do at 1am before school
I mean, I can only blame myself
gnoming it, and now I shouldn't encounter any issues
I don't even know what could go wrong now
 
12:58 AM
ended up going for a pure i3 install
awal would be proud
 
morning guys
does anyone know how can i replicate the chrome inspect element feature in my own scripts.
i want to be able to click on any element and have the xpath / css selector recorded down in my database / files
 
@Ming you can look at the target of a click event on the window
@Ming oh. Add a uuid to each element, then send that to the servers and decode it
 
umm. how exactly to do that. sry dont fully get. what did you mean target of a click event?
 
never mind about that
it's a possibility, but not what you really want if you want to send the data to the server
 
can i render my page in phantom / electron and from there record down my clicks?
eg: getting the xpath of the elements
let me rephrase...
How can i inject JS into a webpage to efficiently inspect its DOM elements
 
1:12 AM
that really depends on your needs
 
@Ming it's open source, look it up
 
will do. thanks.
 
2:21 AM
c2 wiki taken down :(
 
user6820627
what is this?
 
Page not found
Mornin all
 
user6820627
@choz you dont have enough rep to view it. 10k only.
 
Still not sure why deleted questions are 10k only..
 
2:23 AM
Oh i see..
 
It's stupid
 
user6820627
@littlepootis because you are not 10k yet :D
 
user6820627
you should ask that question here
 
user6820627

SO Close Vote Reviewers

This room is for support and discussion about reviewing and co...
 
It should be on google cache..
 
user6820627
2:25 AM
The requested URL /search?q=cache:stackoverflow.com/questions/1/… was not found on this server. That’s all we know.
 
user6820627
have you ever tried noob question query?
 
2:39 AM
In IE, is there a setting where it allows js to stop window/tab from being closed?
 
user6820627
@AWeb-Developer yes! while(1){}
 
@LearnHowToBeTransparent lol, why not google google
 
user6820627
@AWeb-Developer google.com/search?q=google&rct=j => click on google.com => now search.
 
user6820627
or step 1 you can change to bing.com/…
 
3:01 AM
Ayyy
 
 
2 hours later…
user5503464
5:05 AM
0
Q: How to check two fields in a document while registering in Express.js , mongodb?

ko001I have designed schema for user and registration time i am checking the email (unique)already exist or not .if already registered i am throwing mes 'email address is already in use'. this is working fine now i want to check two fields email and mobilenumber . how can i achieve this ?? help me ou...

 
user5503464
help me out
 
7:33 AM
Hey there javascripters, "undefined" confusion here. Anybody care to explain why this produces a reference error? jsfiddle.net/00rb295d From the top rated answers on stackoverflow i thought a whatever == null check would be sufficient to test for undefined variables, but it seems this is not the case? please @ notify me if you answer thanks!
 
@Sharky If something is null then it's not undefined. It is defined, as null
You want typeof whatever === "undefined"
 
greetings programs!
suddenly seeing 'xcvxcvxv' appear in the console of the Chrome Dev Tools, and it stays appended to the bottom of any console output. i've seen it before a looong time ago but can't recall what the solution was back then (senility and google not helping)
and tidbits of related wisdom or fix or pointing to a solution would earn eternal gratitude
 
8:10 AM
@KendallFrey I queried my maths teacher about stuff like dv/dx=v^6. The method to solve it is "separation of variables"
 
@OliverSalzburg Hello Oliver thanks for the reply. i know, undefined is a variable that has not even been declared. Null is just a declared object which has not been assigned any value. The reason i asked here in chat is specifically this answer (the advice for ninja's part) stackoverflow.com/a/5515385/953684 and the highest rated comment which says "...you forgot/don't know how Javascript coerces" so i guess that answer and that comment are wrong?
 
@Sharky The answer is stupid, but correct
There is a difference between a variable being undefined and having an undefined value
When I run const a = undefined then a === undefined but b would not === undefined, as b is not defined at all
If that seems confusing, that is because it is confusing
 
8:26 AM
 
Thanks @BenFortune :D
 
Couldn't think of a better way to visualise it lol
 
@KendallFrey You're monetizing that? Damn bro, you'll be rich in no time!
Oh, @Sharky, the comment below that answer is just as stupid as the answer itself. Because x === undefined || x === null is not the same thing as x == null
And thinking that it is or mindlessly following SO answers/comments will lead you to some hard-to-debug problems :P
 
8:43 AM
x == null only works as long as x is declared as undefined. That answer is indeed not very good.
 
@OliverSalzburg it is the same
except null can't be redefined
which is fairly moot for 99.999% of cases
 
oh damn, i3 is like vim but as a desktop environment
this is amazing
 
what is i3?
 
A window manager
 
@Mosho It is not
 
8:58 AM
prove it
 
@Mosho const x = 0;
Run that against both expressions, the result will not be the same
 
wrong
 
Hello\
 
@SonuBamniya 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.
 
@OliverSalzburg no u lol
 
9:01 AM
I want to call only controller which is needed for view in AngularJS, but I don't want to make it complicated by using Require JS, is there any other way to do this.
 
@Mosho Huh, I was wrong
Thanks for showing me :)
 
:>
 
user5915322
Hey guys
 
user5915322
  $('#drive-breadcrumb .breadcrumb-arrow:first').remove();
 
user5915322
with this i remove the first breadcum arrwow
 
user5915322
9:13 AM
how can i delete the first 3 ?
 
user5915322
instead of first
 
$('#drive-breadcrumb .breadcrumb-arrow:lt(3)').remove();
 
#drive-breadcrumb .breadcrumb-arrow:nth-child(-n+3)
 
user5915322
nope didn't work
 
$('#drive-breadcrumb .breadcrumb-arrow').slice(0,2).remove();
 
user5915322
9:24 AM
thnx
 
user5915322
i think i know the problem
 
what the $#%&! is 'xcvxcvxv' ? (appears in my console dev tab in Chrome)
..and hello! :D
 
it's Skynet
 
9:41 AM
@thedigitalmouse Which dev tab?
 
oh um... when using the chrome dev tools, xcvxcvxv now appears in the console tab.
 
Maybe you smashed your left hand on the keyboard?
Or someone is in your tubes
 
@thedigitalmouse screenshot?
 
years ago i saw it too, but just can't recall how it got there and what i did to remove it... possibly an extension of some sort has added it, but I can't see how as i've only added AdBlock and a Vue.js monitor. but AdBlock has been there for months and only now i'm seeing the xcvxcvxv
sure.. one moment
 
@OliverSalzburg @BenFortune Thanks for the information guys! Oliver your comment in that answer made it clear to me. I can understand what's happening.
 
10:02 AM
> Another way to think about [referentially transparent functions] is that reality is largely referentially transparent. If you think of gravity as a function, then gravitational force is the return value of calling that function on two objects. Therefore, the next time you’re in a programming interview, you can demonstrate your functional programming knowledge by knocking everything off your interviewer’s desk. (This also demonstrates that you know how to apply a function over a collection.)
haha
 
@BenFortune sorry for the delay - got dragged into a meeting
 
@thedigitalmouse maybe you turned on roman numerals for line numbers?
@thedigitalmouse oh that's the input box for the console
 
ha ha... that might make sense if everything was that way :P
@bitten correct
or well... the client console output
 
i don't know -how- it got there.. maybe a real mouse walked across the keyboard?
and the dirty input does persist across refreshes of that tab and navigation
 
10:21 AM
Hey Guys, I have 2 projects : 1st one using Nodejs which contains all my components and the 2nd one using Spring and Vue to render template and so on. Actually i want to know if there is any way to compile my components in my 1st project one by one without instantiate Vue.js in order to use it in the 2nd project ?
 
@MariaMinh 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:34 AM
@Mico 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.
1 message moved to Trash can
@Mico Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
storeDecorator = (f) => () => {
f();
window.localStorage.setItem(STORAGE_KEY, JSON.stringify(this.items));
};

is this correct usage of the decorator pattern or have I understood the pattern wrong? With that I can do stuff like `this.addItem = item => storeDecorator(item => this.items.push(item))`. I tried googling about decorator pattern, but didn't quite find anything like that..
 
@bitten the xcvxcvxv is there all the time, appended to the bottom of the console text, regardless of what is being output in the console - it just moves down a line as needed. so unless the mouse is walking over my keyboard between eye-blinks, i am confounded.
 
@thedigitalmouse haha, well the input is persistent. the part with the blue arrow ">" indicates input that can be executed by the browser, an input field where you can enter js to be run
just select the "xcvxcvvxv" text like you would any other text, and delete it
or press enter to try and run it, but i think you'll get "xcvxcvvxv is not defined"
 
Best gulp and CLI process to shorten CSS selectors and refractor HTML and JS accordingly?
 
@MariaMinh i think the short answer is 'no'. you need a new Vue object running in order for your code to interpret the components, or transpile them into plain javascript before being sent to the client. so you kinda need to do both projects at the same time.
that is certainly the case for me where I have a main.js node file that gathers up the js and *.vue components (I separated them instead of having them all in the client.js file) and uses browserify and babelify to wrap them all up into a single client.js file to push to the browser. slows down development a bit (20-30 seconds to transpile) but keeps everything neat and compartmentalized.
@bitten doh! now i feel silly that it was me that was making the xcvxcvvxv appear... so you were right, there was a 'mouse' running across the keyboard.... getting senile in my old age :D
 
10:53 AM
@thedigitalmouse thanks ;)
 
@MariaMinh welcome! hopefully that helps somehow
i still want a copy of the StackOverflow chatroom source. i really like the 'edit when you screw up' feature :D
 
How do I zip arrays? In Scala I have [[a,b,c][1,2,3]].zip or [a,b,c].zip([1,2,3]) == [[a,1], [b,2], [c,3]]
 
const [foo, bar] = array; foo.map((x, i) => [x, bar[i]]);
 
11:23 AM
Thanks. Here is extended version Array.prototype.zip = function(...those) {return this.map((v, i) => those.reduce((result, that) => [...result, that[i]], v))};
 
@OliverSalzburg Nope, Content ID is
 
user5503464
help me out
 
user5503464
0
Q: How to check two fields in a document while registering in Express.js , mongodb?

ko001I have designed schema for user and registration time i am checking the email (unique)already exist or not .if already registered i am throwing mes 'email address is already in use'. this is working fine now i want to check two fields email and mobilenumber . how can i achieve this ?? help me ou...

 
11:38 AM
Hiya, am back from long holidays
 
@thedigitalmouse :p
 
@KendallFrey :sigh:
dark when I leave for work
I hate this time of year.
 
@rlemon that's because u are from Canada :P
 
good portion of the USA is the same or worse than I am
 
11:51 AM
not Asia though
 
no one cares about Asia tho
 
@rlemon yep
 
@rlemon debateable
 
get you a beautiful LED strip to light your way XD
 
@KendallFrey your light strip show was a solid 6/10
your lighting design needs some work :D but good work on the eng side of it
 
11:54 AM
TBH I never want to put that much effort into one song again
 
you need to figure out how to generate them
 
You can't do that, for the same reason you can't generate great music
It's a work of art.
 
you can generate good music, and good art. then generate thousands of iterations of it and pick the greatest one and tweak it by hand
probably more fun than doing it by hand initially
 
If you can mass-produce great art, it isn't great art anymore :P
I already have tools to generate some kind of animation
 
my boy kurzweil did that in the 80s? (90s?)
generated HS student level art
 
11:56 AM
spectrogram is the most useful
 
and poetry
 
what ? generate songs from coding ?
 
But to actually make something interesting, I'd need to spend a stupid amount of time doing sound analysis
I'd love for you to show me up though :P
 
if I ever get the time to start a new project :P those led strips look neat
a lot less work than what I'm doing
(making my own matrix)
 
Adafruit has LED matrices
they take a ton of RAM to run though
 
11:59 AM
@Mathematics not sure if people have done that, probably have. google.ca/… but I was talking about artwork.
 
because basically they have so many pixels
 
the learning algo's would probably carry over
@KendallFrey I'm making my own 12led strip. addressable and full color
the pain in the ass is the amount of i/o I need
for speed, 3 leds share one set of rgb and I pulse the common cathode to get different colours
 
are you going with i/o for every LED?
 
the arduino mega timing isn't allowing any better than that
@KendallFrey 3 leds = 6 i/o
3 PWM and 3 digital
 
hm
my strip only has 1 input, and 1 output (which I don't use)
 
12:02 PM
I tried to share more than three leds per set of pwm but the megas timing was a bit off.
 
I want to try making a game that runs on it
pong is so far the most interesting genre of game I've seen
 
yeah I didn't quite get that one
My main issue is lack of inputs
I only have various bits from scrap
 
what does this mean? Learning redux..

let AddTodo = ({ dispatch }) => {
its used with: AddTodo = connect()(AddTodo)
some fancy es6 stuff, which I can't remember
 
12:18 PM
@SuperUberDuper What part do you want explained?
let? Arrow functions? Destructuring?
 
({ dispatch })
 
That's destructuring an argument
 
used like this:
let AddTodo = ({ dispatch }) => {
  let input

  return (
    <div>
      <form onSubmit={e => {
        e.preventDefault()
        if (!input.value.trim()) {
          return
        }
        dispatch(addTodo(input.value))
        input.value = ''
      }}>
        <input ref={node => {
          input = node
        }} />
        <button type="submit">
          Add Todo
        </button>
      </form>
    </div>
  )
}
AddTodo = connect()(AddTodo)
woa, nice colours
 
Still destructuring an argument
 
12:20 PM
Look up es2015 object destructure
 
thx
only react codebases I come across this
is everyone else sticking to es5 lol
 
nah, you just haven't found them yet
 
mind you, I spent the last year supporting ie8 in my day job
doing some catchup now
 
That could be a part of it
 
was good money though
 
12:23 PM
i had hard time with bootstrap
 
enough savings to last till next May
 
Depending on your needs and such you could always transpile down with babel or the likes. IE8 and such would still need them polyfills, though
 
want to make this site responsive but i think, it is impossible to achieve it with bootstrap what do u suggest
 
> it is impossible to achieve it with bootstrap
well that isn't true.
 
@rlemon my problem is the height
 
12:25 PM
so fix it?
 
mobile first + bootstrap and you shouldn't have any issues
 
simplify your design?
 
what do u mean about mobile first
it is a technic i don't know
@rlemon should i have to use percentage
 
the question is way too broad.
so my answer is as well.
mobile first + bootstrap
go read on how to do mobile first with bootstrap
 
12:29 PM
thanks i'll search
 
@KendallFrey
 
...what's that?
 
those are the nuts for the hold down posts for launches
 
they are 'split' with explosives to release the holddown post
 
12:31 PM
@rlemon but that's just nuts!
 
> "The guys at Rockwell said those bolts would actually break from the thrust of the engines if the pyro devices didn't fire."
so the backup is... rocket engines are gonna break it regardless :D
 
one more question: what about height, what height should i have to be careful in mobile and tablet. i know width but height is the issue. i got a link about mobile first code.tutsplus.com/tutorials/… and codemyviews.com/blog/mobilefirst all of them are easy and i i knew them
 
@SterlingArcher i.imgur.com/Kb8uL75.gifv Weeeeeeee!
 
nice!
 
is it possible to make the absolute position values be affected by changes in margin?
I thought getBoundingClientRect does the job
 
12:36 PM
-4
Q: Lowering header ad in php

Imran IslimI need to lower Google ad, it is hidden in the header view screenshot All i have is the header template that is </head> <body> I placed the ad between the two and added div center to align it at the center. I need to drop it so it leaves few px below the header. Any help?

:D
 
dam 4
@elsololobo do u want to make it 5
:D
 
no it´s just funny that he said " this is my code" which includes just head> <body>
^^
but yeah he deserves it
 
Bad questions get downvotes
That's the point of them
 
@rlemon is it a good i idea to use percentage
 
@Luggage but what is the {dispatch} as an arrow function param?
 
12:41 PM
Dude.. I'm not going to review your entire design to figure out why it isn't responsive.
Go read some tutorials on the topic I told you about
 
but with the different height all of my design will mixed up.i finished bootstrap long time ago and know it. but this web is different. each section has different color and i should have to design base one screen size height and width
the menu of the web would be something like this
 
@Sandro for the last time, go read some tuts on mobile first responsive design.
or, ask actual questions. "height doesn't work on this website"
isn't a good question.
 
user3119231
12:56 PM
Good day, developers and programmers
 
user3119231
@rlemon this is so evil... :D
 
good day to walk !
 
anyone has any experience working on XMPP systems ?
 
user3119231
o/
 
user3119231
you missed an 'a'
 
1:02 PM
0
Q: Getting confirmation if the message has been received by the XMPP server?

ShashiI am trying to implement the single tick functionality which will ensure the chats are at-least being delivered to the XMPP server. I have done the research following "XEP-0198: Stream Management" I need to send an "r" and "a" stanza for acknowledgement. <r xmlns='urn:xmpp:sm:3'/> <a xml...

 
user3119231
oh you seriously meant xmpp.
 
user5915322
question guys i have a google drive api but every click he reloads the data
 
user5915322
getting it from google drive
 
user5915322
how can i make an function repeatly used
 
user5915322
when i make and function if else
 
1:04 PM
 
user5915322
he wil only do it once
 
user3119231
@S.Oruc setInterval(function, delay); ?
 
user5915322
no nvm it's to hard to explain
 
user5915322
i will come back with a better question
 
@Maurize Yes I do! what you thought ??
 
user3119231
1:06 PM
I thought of xampp
 
haha
NOPE
although deal with that a lot, our backend is obviously in PHP (y)
 
I have problem with nodejs and docker, I try run "docker exec -i -t td_nginx /bin/bash" and I have response "stderr: the input device is not a TTY"
 
did you search the error message and try these links?
 
user3119231
btw did they remove teams from so?
 
95
Q: The Un-shipping of Teams

bluefeetFor almost the past year, we've had Teams in private beta and while we believe in its potential value, after a lot of consideration we've decided to un-ship the idea for the time being. Teams will shut down in about a week, meaning you will no longer be able to access, join, or create ne...

 
user3119231
1:18 PM
For those interested, we currently have 295 teams and 8 of those teams have more than 50 users. -> Fine, this room was one of the 8 teams.
 
Completely forgot teams was a thing, what was it even there for?
 
user3119231
19
A: The Un-shipping of Teams

SklivvzTeams have been removed in build rev 2016.8.9.3873 - long live teams!

 
That doesn't answer my question :P
 
user3119231
But it's funny.
 
user3119231
Teams was part of our plan to serve programmers better, and it was created as a way for groups of users to share info about themselves. This included professional teams, open-source projects, and even internal Stack Overflow groups working towards a common goal.
 
1:21 PM
Ah, thanks
lol
 
@Maurize And nobody noticed
 
Is this 6-8 weeks the same timeframe that we should expect chat flags to be fixed? ;) — Sterling Archer 14 secs ago
 
savage
seriously tho, It's a wonder they put ANY effort into the chat
as of right now there are 144 chat users online
probably > 100,000 main users online
well, maybe reduce that by a factor of ten
 
@KendallFrey dammit that LED strip is cool
 
I should figure out a way I can load the animations from SD card and sync to audio from the arduino itself
 
1:29 PM
Dammit Kendall. Link to your strip. I guess I'll buy one
 
Link them via serialport and you can make DJs very happy
 
I prefer the WS2801's
 
user3119231
I want one, too.
 
Any addressable strip would work.
 
1:30 PM
Signing a lease today :D
 
I wanna do lights for my bar with it.
 
user3119231
^
 
12leds needs a 25 dollar arduino to run. So the strip is actually saving me money
 
!!summon 139
 
@Hans1984 I will appear in that room after 1 more invocation(s)
 
1:33 PM
!!summon 19132
 
@Hans1984 Already registered; still need 1 more
 
free caprica!
:(
 
@rlemon adafruit.com/products/1461 or any other WS2812 strip
 
!!summon 139
 
There is a limit to length, since all the pixels are stored in RAM
 
1:37 PM
thx Rahul cat@Rahul
 
!!unsummon 139
!!unsummon 19132
in Sandbox, 2 days ago, by rlemon
Caprica is not being added to new rooms which have killed her in the past until I get around to making it so people can't kill her for fun -- you did this to yourselves.
 
Guessing this is related?
 
well I never killed her
but i understand
 
too many pings about the bot being dead in the past month only to find out someone killed her for fun
so until that is patched, I'm restricting the rooms she is in
 
i see
stupid ppl :(
 
1:38 PM
yup
 
i understand
 
might work on that today, might not.
depends on how issues go
 
ok
 
user3119231
hm, questions on so are no longer what they were.
 
entropy isn't what it used to be
 
1:49 PM
!!are you there?
 
@Neoares Not a chance
 
oh
 
!!refresh
alright, someone (non owner) try to run !!die
 
!!die
 
@littlepootis You do not have permission to use the command die
 
1:58 PM
done and done
@Hans1984 you can summon her to your room now
@Zirak eslint is complaining about a LOT
> ✖ 50 problems (2 errors, 48 warnings)
 

« first day (2193 days earlier)      last day (2772 days later) »