« first day (1868 days earlier)      last day (3074 days later) » 

crl
 
A guy posted that IP thing in the python room. I literally thought he was using the same ISP as me and was under the same IP route!
 
@crl you can now add a third string to the uri and get the same image every time
 
crl
ya, seen it
 
pft
 
@rlemon only if I have a static IP, right?
 
1:02 PM
You should add a "friday" pizza.
 
@AwalGarg no, I still have your ip
it just might change
 
yeah, my IP changes like every hour or so because of connection drops :P
 
You can get IPs just from oneboxing, can't you?
 
yup
 
host image, log IPs, onebox in chat
get everyoen who downloads it
 
1:03 PM
@AwalGarg dropping shouldn't refresh you at the host
my host swaps IP's ~every two weeks
 
@rlemon well it does for me :/ It literally is a auto-disconnect-connect iteration and not a pipe broke in between, another pipe established.
 
#JustIndiaInternetThings
 
@AwalGarg is that image showing your IP address?
 
crl
@CodeMaster no only yours
it's a virus
 
1:05 PM
@CodeMaster the image is a script. it takes your information from the connection and displays it back to you
 
yeah, format your PC to get rid of it
 
@AwalGarg I feel like someone might actually do that
 
I will sell my laptop :D
 
@Cereal I love helping out, you know
 
!!mustache navd
 
booooo
 
weather doesn't work either
 
@crl Only 800 lines ;-)
 
crl
!!unmustache Cereal, well shave basicall
 
jim carrey playing a cop or something
looks odd to see him so serious
 
crl
1:08 PM
not a humoristic movie I guess
 
I hardly recognize him
That beard
 
He's always been one of my favorite actors, I don't like the beard
looks off to me
 
That's jim carrey..?
what
 
I don't believe you
 
1:11 PM
oh crap
 
@AwalGarg I mean it's in the same country
o.O
 
@AwalGarg close.
 
I wouldn't be surprised to hear he's gone like Robin Williams
 
you got the city over, which has less tech. so I'm surprised the city I'm in didn't resolve
 
> Your host is:
kek
 
1:13 PM
@AwalGarg This one tells me I literally live at the other side of my country
But that's what all of those trackers do for my provider
 
I remember when the BBC thought my old company was in Holland for some reason
85.118.156.10
 
@AwalGarg not even close
 
I mostly use a private VPN, but I just happened to be not using one today.
 
Everything we could find anywher showed we were in the UK, mostly in the right place too, but not the BBC!
 
@Abhishrek yes, it says "near", not "close".
 
1:15 PM
close to near
 
finally freenode is up
 
Good way to start the day
it's moving to hear 73000 people sing along with him
 
@rlemon I recommend you try ACDC's last track
tracks* live
 
lol
 
1:18 PM
did you just get ACDC??
 
crl
!!> 'ACDC'.split('').sort().join('')
 
@crl "ACCD"
 
also, yea I've seen that before.
 
@rlemon nope have been a fan since past 5 years
 
I think I started listening to them when I was around 5 years
 
1:20 PM
 
lol
 
@rlemon Remember I used to live under a rock ?
 
Tesla/Edison: An AC/DC cover band.
 
when I was 5 listening to foriegn songs were forbidden by mothers law
@Cerbrus Now that gives me an Idea for thunderstruck
a video with tesla coils and electrocuting chairs ofcourse :D
 
I want when I click on <span>, <div> hides. how? jsfiddle.net/ep34xf2z
 
1:22 PM
That's kinda macabre
@Shafizadeh It doesn't do anything for me.
 
@Cerbrus He wants to know how
 
@Cerbrus yes, that's my question ..!
 
Right
 
1:24 PM
@Cereal thanks, but I want when I click everywhere <div> hides too
@Cerbrus ow. seems correct and simple :-) ! I don't know why I did not think about it
tnx
 
everywhere? As in, the whole document?
 
yes
 
@Cerbrus anyway my problem has been solved
@Cerbrus except <div> ;-)
and as I said, my problem has been solved, tnx buddy
 
Right, np
 
1:27 PM
@Shafizadeh @Cerbrus @Cerbrus jsfiddle.net/rlemon/ep34xf2z/5
the correct way to do it
 
@rlemon tnx :-)
@Cerbrus :D
 
Ok I need a basic outline of how I can take comma seperated values from a textinput box and then perform a function for each line
I think I'm making things far more complicated than they need to be
var lines = $('#fileContent').val().split('\n');        // For each line of the text box
 
#fileContent is a textarea, right?
 
yes
for (var i = 0; i < lines.length; i++) {
 
1:32 PM
.split(/[\r\n]+/) <-- also catch carriage-returns
 
oo ty
and then I'm splitting on each comma
var myArray = lines[i].split(',');
 
Oh, and as bonus, that regex also removes empty lines
 
and reference each 'word' with myArray[...]
 
any linux/unix guys here? Just wondering what the 2nd line in this script does?: gist.github.com/isaacs/… #node #install-script
 
@djsmiley2k That's the simplest thing you can do
 
1:37 PM
@Zirak ok cool.
 
@Cerbrus It's normalized, newlines will always be \n
 
3 mins ago, by Cerbrus
Oh, and as bonus, that regex also removes empty lines
 
@deostroll The dot executes a script
 
@deostroll sources that file
aka loads the values
 
That can't hurt :P
 
1:38 PM
but that isn't a script; its a config file for bash
 
yeah empty line removal is something I was planning for later ;D
/me removes it from the buglist
 
And the config file is a bash script
 
its supposed to load the config file on startup of bash
 
errrm no it's not
 
Read its contents
 
1:39 PM
and it sources, not executes
 
...the bashrc isn't a bash script?
 
81
Q: What is the difference between executing a bash script and sourcing a bash script?

Scottie TWhat is the difference between executing a bash script like A and sourcing a bash script like B? A >./myscript B >source myscript

it loads the variables in the file, into the current shell.
 
that .sh file probably isn't a shell script.
 
meh, trivial differences
 
@Zirak errrr
it wouldn't work if you executed it
with /bin/bash ./.bashrc
 
1:40 PM
For the sake of answering his question it's the same shit
 
as you'd loose the change they'd just echo'd into the file
...
 
You're correct, of course, and we're losing effort arguing this
 
@djsmiley2k but each time I run the script its adding that last line in there...thats bad isn't it?
 
Not bad, but unnessicary
actually yeah it's bad :D
do it a few hundred times and it might actually be noticable
 
The Seagull Nebula
space is pretty
 
1:44 PM
@AwalGarg You'll find this amusing: You can Array.from a form to get its elements as an arraty
 
Sadly I'm not actually starting with a form
:(
but that's an entirely different story
 
@rlemon Only when it's in an excited state.
 
@Zirak you're obviously correct. The difference is that one executes within the current shell, while the other creates a subshell
 
@rlemon are those not computer colored though
 
Turn on this tablet for the first time in 4 years. Update it. Won't run the play store
ohh man
 
1:47 PM
@Mosho yea I don't think that is true colour
 
that's cool though
look what I found
 
1:49 PM
Deathstar spotted.
 
wtf is that
 
@FlorianMargaine It wasn't a "correct" or "incorrect". He was "correcter" because what the OP linked to was sourcing, and I said "execute".
But I was stupid and insisted and wasted everyone's time.
 
there are a lot of artifacts in google sky
 
@Zirak he said incorrect stuff
 
Did I?
 
1:51 PM
 
plz educate me, we are all here to learn
 
military base?
 
Got a new job :)
 
@FlorianMargaine Maybe you'll think of something pretty: I have a bunch of inputs named min-x and max-x for varying values of x. I want to turn that into { x: { min: a, max: b }, y: { ... } }
 
I'll be signing the contract monday
 
1:51 PM
Gratz
 
@Neil Congrats!
 
Hmmm
 
The one with the fancy office?
 
New guy joining my team on monday
-_-
 
@djsmiley2k yes. You can absolutely execute ~/.bashrc.
 
1:52 PM
second job as a programmer that I've ever had
 
it just won't be very useful
 
yes
but . isn't executing
well it is
 
urgh. D:
 
makes me wanna play KSP tho
 
1:53 PM
i'll be working for a bank that does a lot of mobile and electronic payment stuff online
 
I said "executing" because one usually sees soruce and dot when the file doesn't have the execute bit.
 
14 mins ago, by Zirak
And the config file is a bash script
14 mins ago, by djsmiley2k
errrm no it's not
 
But again, it's not worth the argument
 
yes, it is.
 
/r/space is such a trap
 
1:53 PM
@Zirak I'm not sure what you mean :/
 
Ohh, an argument. Lemme get my laptop
 
Happy friday everyone :)
 
oohhh shit
@FlorianMargaine @Loktar happy rebecca.blackfriday
 
// @FlorianMargaine
// input:
<input name="min-foo" value="4" />
<input name="max-foo" value="6" />
<input name="min-bar" value="barson" />
<input name="max-bar" value="bardaughter" />
// output:
{
    foo: {
        min: 4,
        max: 6
    },
    bar: {
        min: "barson",
        max: "bardaughter"
    }
}
 
@Zirak hardcode ['foo', 'bar'] and work with that?
 
1:56 PM
nah, I want it more dynamic than that
 
that'd be ugly
 
.split() the name, add the properties?
 
or have a separate hidden input with the foo, bar array
or what @Luggage said... but as a separate step, in the way to have this [foo, bar] array
 
not too ugly. lets think of it as input:
[ { name: 'min-foo', value: '4' }, {} ] and deal with the inputs, later.
 
@FlorianMargaine you're right, everything gets executed with /bin/sh or another interpeter if called even when not marked as a script with a shabang
 
1:58 PM
.forEach(x => x.name.split('-').reduce(...)
 
hm.
# git status
Killed
#
fun fun fun
 
So appogies @Zirak it DOES execute.
 
It soooo doesn't matter
 
hehe
Well I've learnt something, which is good :P
 

« first day (1868 days earlier)      last day (3074 days later) »