« first day (2046 days earlier)      last day (2904 days later) » 

8:00 PM
Can I store Injected code in a variable?
What I want to do is:

onCodeInjection(saveCode('InjectedCode')) // Injected Code is stored in a variable with name InjectedCode, as when called console.log(InjectedCode); it returns the recorded code...
 
@hedgehog so that's not good. You might be able to run node there, but it's not likely.
 
Is it even possible?
 
@ssube i can, dont worry
 
@XeiadAhmidWhdAmerr yeah, sure, do a text ajax request, store response in a variable. probably not very useful though.
 
Can you explain how that is done or a link for it?
 
8:04 PM
i'd rather not
ajax is pretty well documented
 
I don't understand what you mean
Like I open up about:blank, execute a code, let the code be "var x = 1;"

I want to store the string "var x = 1;" in a variable, so

recordExec(y) // where y is the variable name..
Or should I "Ask A Question" bout it?
 
like... var y = "var x = 1;";? or are you wanting to automagically do that when anyone enters something into the console.
 
@XeiadAhmidWhdAmerr that's unclear and probably a dupe, so I wouldn't open a new question
 
that was an or question, what was the yes to.
 
8:08 PM
var y = "var x = 1;";
I'm just asking about IF it is even possible..
 
you can store any string in a variable, yeah
 
well, yeah at that point you're just storing a string in a variable, doesn't matter that it looks like it could be valid js
 
Are you making something like jsconsole.com ?
 
It is not about storing it
 
then you're being unclear
 
8:10 PM
I want the browser itself to save it in a variable
I want this to happen
 
you can save that string ...
y will hold var x = 1;
 
Like a keylogger?.. save what you type in a variable..
 
@XeiadAhmidWhdAmerr what kind of variable? a normal var foo = "bar" one?
 
recordCode(y); // Executing this should all the injected code in a variable y
var x = 1; // Execute
var z = 2; // Execute

console.log(y); // Should return:
<< "var x = 1;var z = 2;"
 
recordCode(y) can't change the value of the y variable, if it's a string
 
8:13 PM
He wants to record what he typed, in the Console.
 
unless it access it directly, but you wouldn't need to pass it in as a parameter at that poitn
 
@cswl EXACTLY!
 
yeah, that ain't a thing
 
that's what i assumed, but he never actually said that (till now)
 
unless you make your own console
somebody here wrote a page that does that, runs a JS repl in a sandbox of sorts
 
8:14 PM
So it isn't possible for the regular browsers?
 
I think by injection he meant, running Javascript via console in Developer Tools.
 
@XeiadAhmidWhdAmerr you can implement something like the console
 
@ssube Yes, I've been searching for that for 2 days.. Do you know how I could do it?
 
not a clue, tbh
 
8:19 PM
??
 
If you just want to save JavaScript snippets.. i think firefox has something called Scratchpad..
 
No, not snippets, I want everything to be recorded, even if I enter a code that returns an error, I want it to be recorded
 
the console does that already
it has history, like most consoles
 
How can I access that?
 
arrow keys
there might be an API for it, you'd have to check the chrome debugger docs
 
8:20 PM
@XeiadAhmidWhdAmerr you can't do that. Nope.
 
Compile from source and implement and expose a console.history maybe..
 
Hi All, I have a question. How do i import csv data to table at front end.

any pointers or suggestions would be greatly appreciated.....
 
I'm doing something odd right now. I'm trying to figure out a schema in a schemaless database: MongoDB :|
 
@Patrick check if NPM has a CSV module you can use to parse the file and get the data
 
Doesn't seems a simple job. Gotcha use a tool then
 
8:23 PM
thanks ssube. i will have a look
 
..
I found this chrome.experimental.devtools.console.getMessages(function callback)
 
@ssube- my front end is in angular. backend in c#. can i use NPM in this case ?
 
@Patrick yep
you just need something that will bundle the module into your angular stuff
if you're using webpack, gulp, grunt, browserify, etc, you're good already
 
thanks @ssube- i just needed a path on how to get this. appreciate your help
 
That look like only for extensions, so you'd have to write one then...
 
8:31 PM
@cswl- need to write one for import ? or you are referencing it to someone else's comment
 
Sorry, yeah it was for @XeiadAhmidWhdAmerr
 
ok
 
Nvm, I am asking a question about it...
 
hello
what you think about it?
 
8:44 PM
 
@MattewDeveloper Lorum ipsum not dolor valar bad. But sit amet try consectetur to align adipisicing picture to right. Eum, atque mollitia sed.
 
@MattewDeveloper that picture is interesting, in the most midwestern way.
it definitely looks enough like a diddler that I would throw out the resume
 
@KarelG lorem ipsum is a text for do space
 
i'm trolling you :P
> @MattewDeveloper Lorum ipsum not dolor valar bad. But sit amet try consectetur to align adipisicing picture to right. Eum, atque mollitia sed.
 
@ssube a classy diddler, though
 
8:47 PM
* to right of the text
 
@Luggage it looks like a neckbeard men's rights nutter
 
that c# room issue is still going? So much wasted time.
I wish there was a dollar value on that
 
@Luggage don't think so?
 
you had a starred message about it 3h ago so I assumed there was still drama
 
Good afternoon peeps
 
8:52 PM
@Luggage nah, Jan was asking about it
 
ah
 
the mods were pretty concise and consistent
 
man.. i need more tests against my code.
I finally got around to upgrading to babel6 which required me to fix my require/imports and I'm nervous about it.
 
@KendallFrey little knowledge, that emoticon ( :-) ) was used to mark a joke. Something from '80
the second emoticon is then :-(
 
9:08 PM
looks like you need more chrome
 
I'm gonna try to get use to my taskbar on the top
feels really weird
 
Hey guys.. could you help me verify this quick one
 
is there any node autoreload tool I can deploy in less than 5 minutes?
 
I have manipulated the BIG-flex, but i'm unsure if the actually parentNode is BIG and not BIG-flex
 
actually I've never used it, but I've heard of it, and I think that's what you want.
 
9:17 PM
@BartekBanachewicz nodemon is what i use
 
@BartekBanachewicz if you want an operationalized thing for test/prod servers, use forever. If you just want something to assist local dev, use nodemon
 
@Shea i want saving a file make restart the server
for dev
 
@BartekBanachewicz nodemon
 
so it seems that nodemon is what I want
 
@BartekBanachewicz Nodemon
 
9:18 PM
let's see
it's really refreshing to be able to work with new node at least
 
@Shea is really helpful
 
feels kinda fresh, just awkward so far
I really hope I can get use to it, cause I actually really like it
 
@SomeKittens @Abhishrek thanks
exactly what I wanted
 
@Luggage Do I need more chrome?
C:\Users\abhis
λ ps -W | grep chrome | wc -l
56
 
9:34 PM
You can never have too much chrome.
 
@Luggage WITNESS ME
 
@Luggage look up the mirror/chrome lambo
there are a few that apparently drive around Tokyo being obnoxious
 
That thing is obnoxious while parked.
 
9:37 PM
Can't buy taste.
and Japanese start at a disadvantage there, anyway. :)
Just as bad as I imagined.
 
 
2 hours later…
anybody in here use eslint?
trying to make window ok for one line
it's a temp hack that I'm not even connecting to the app, just need to store it for now but I don't want it to break the CI server will kick it back because of the linting error
 
11:50 PM
"trying to make window ok for one line" <- what does this mean?
 

« first day (2046 days earlier)      last day (2904 days later) »