« first day (1136 days earlier)      last day (4035 days later) » 

20:00
@AbhishekHingnikar * Used as a noun
m59
m59
Is there a decent way to search your own answers?
@connor.js sorry some serious brain malfunction !
Well my explanation is wrong, but it was right so fffffuuuuuuu you
not a tasteful picture.
20:00
;P
@rlemon niether
wait lemme take a picture without the cover
@connor.js you saying that isn't tasteful?
20:02
@rlemon It most certainly is not appropriate behaviour, tut tut
because of Colonel mustard? or the word Nazi? maybe you dislike the monocle... does the monocle bother you?
bald people offend me. so I can understand how it might not be appropriate for this online discussion. I apologize.
@rlemon o_O whats so wrong about bald peopl
crap
@rlemon intolerance of the follicley challenged offends me.
20:04
@rlemon I was joking wtf, but, the name "nazi" is better off forgotten.
You know why we learn history?
1
Q: Did the chat *PING* get louder?

qwertynlThe sound when someone pings me seems to have gotten louder and almost blasted my ears off (I have headphones on) Is there any way to change the volume of it? I still want it on but at a MUCH lower volume.

To prevent repeating it
Sorry all. but now I have a headache.
@rlemon see now
@Shea History is re-written to suit agenda friend ;)
!!aliens
20:06
and yes i have tons of headphones
hey y'all, what is "module pattern" in JS?
fail!
That seemed appropriate
@connor.js nahh never forgotten. There is no point in forgetting about our dark human history. We need to look back on it and take it for what it is... we also don't need to post pictures of army men pointing guns are innocent people (@AbhishekHingnikar) - the word nazi or nazism alone just describes an ideology or the person following it.
aliens is not history....
20:06
Conspiracy and shit
@rlemon Okay man ! Sorry !
@connor.js Not my fault if you can't make the connection
m59
m59
LOLZZ yes, let us forget about Nazis and have another holocaust.
@Shea Yes it's a conspiracy
!!s/conspiracy/connorspiracy/
20:07
@rlemon @Shea Yes it's a connorspiracy (source)
m59
m59
@connor.js just tried to get us to promote Nazism. That's definitely a conspiracy.
helloo
@m59 the moon landing was a lie! A LIE!
also, the cake.
@m59 I have a database object that needs to be retrieved from a include file and then to be used by another .php file that is loaded into a div container through ajax.
20:08
Chem trails in the sky!!!
@rlemon is there a free way to get rid of grooveshark's I am here
m59
m59
@AGirlSaidMySmileIsCute I don't know what you just said, kid, but you're special.
@rlemon I don't personally believe it happened, but then again, who gives a shit. it's not as though anyone else was trying to go there
Alright, let me explain.
20:09
does someone know which function shall I use for example
I've got
array = [ 1,2 ,3 ,4, 5, 6]
@connor.js any free person can point a laser at the reflectors on the moon and bounce a signal back. the only way for it to be positioned exactly where we want it to be is for it to be there and setup by someone - so someone was on the moon. We can all agree on that. If you want to choose conspiracy or aliens or giant goat people from mars go ahead.
@m59 I said "who gives a shit" who want's to go to the fucking moon?
people have been to the moon. and it was more than likely us.
20:10
then I want serach that values if these values exist in another array
just do WorkerBench.init(); WorkerBench.start();
> Giant goat people from mars
^ likely.
^ agreed
I'll believe it when I see it..
20:11
picture from mars... looks like a giant goat person to me
Is that a gopher?
@RUJordan the protocol , the animal or the product ?
I'll believe in atoms and bacteria when I see them
And I'm not talking about a microscope
The animal
20:12
fuck you @Shea i was about to be a smart ass
@m59 There are 3 files. First one is called create.php which has the following line: "$db = new PDO(.....);" The other two files I have are poll.php and index.php. Poll.php uses the database and outputs stuff. index is the main file, the page that the user sees. Inside index.php, there is a div container and with the use of jquery/ajax, i load poll.php into that div container. So whatever is outputted by poll.php prints inside that div container.
Anyone can just feed a fake image through a microscope
However, here is the problem:
@connor.js problem is: you've already seen it. We've (the people doing the research and making the efforts) are giving you all of the information. You instantly dismiss it saying "nope, made up!" so there will never be proof good enough for conspiracy theorist like you because you are ingrained to think everyone and everything is a lie.
20:13
@rlemon on the subject of conspiracies, honest opinion
but it isn't! the cake is!
@Shea take 2 lenses make one yourself ?
@AbhishekHingnikar It was my turn. Now you go
ps you can just culture them on a tissue to observe macroscopic effects
The cake isn't a lie, I baked one last night.
20:14
!!s/ba/fuc/
@AbhishekHingnikar The cake isn't a lie, I fucked one last night. (source)
the ancients told me
I saw it written in their caves!
m59
m59
@AGirlSaidMySmileIsCute the real solution is to stop writing hacky disaster code =D
@rlemon Scientist's invented aids, why would i trust them?
THE CAKE IS A LIE!
20:14
@connor.js who the fuck told you that ?
@AbhishekHingnikar Lot's of research
they did anthrax iirc
@connor.js they also invented every other drug we use to combat it as well as all other known disease (assuming we go with the government created aids theory)
@connor.js nah Aids came to us from eating monkeys
in africa.
@m59 poll.php assumes that the database variable is already made and the connection has already been made (which has been made). inside create.php (the first file), the line "$db=new pdo(...);" instantiates a new pdo object, but since that file is included in index.php, the object carries over to index.php and since poll.php is also being used in index.php, it is assumed it will have access to the "$db" object since it's already carried over from "include."
20:15
Scientists also invented heroin looking for a medical purpose. Jokes on science tho.
Aids is a swindle???
I will agree that aids seems MORE LIKELY something man made (and fucked up) but I wouldn't stake my life on it. and I wouldn't ignore science because it has made a few mistakes.
It doesn't, though. Keeps saying $db isn't defined.
Everyone has to believe in some conspiracy though.
ignoring science because it has made mistakes in the past is just ignorant and wrong.
20:16
@rlemon That's one big fucking mistake don't you think?
AIDS is caused by the human immunodeficiency virus (HIV), which originated in non-human primates in Sub-Saharan Africa and was transferred to humans during the late 19th or early 20th century. Two types of HIV exist: HIV-1 and HIV-2. HIV-1 is more virulent, is more easily transmitted and is the cause of the vast majority of HIV infections globally. The pandemic strain of HIV-1 is closely related to a virus found in the chimpanzees of the subspecies Pan troglodytes troglodytes, which lives in the forests of the Central African nations of Cameroon, Equatorial Guinea, Gabon, Republic of Con...
@RUJordan cocain used to be a sedative.
m59
m59
@AGirlSaidMySmileIsCute I'm sorry, my brain can't take it. You really ought to just write good object oriented code and auto-load your classes.
@rlemon still is -- used as a local anesthetic for eye surgeries
I believe there are secret societies, just because "secret societies are cool". But I don't think they have as much influence as people would make you believe.
20:17
@m59 So I should basically "include" the create.php file in every single file that requires access to DB?
@connor.js so was the nuclear bomb. but without nuclear fission /reactors we wouldn't be where we are today in science / ecology / and astronomy.
I mean, who wouldn't want their own secret clubhouse?
m59
m59
sigh :(
no
@rlemon You obviously didn't watch that video
20:17
@Shea wanna join my secret order of the lemons? I am Robert Lemon of the Oxford Lemons and I invite you!
I had a secret clubhouse until I got a nail through the hand.. then I had to tear it down.
@connor.js I would be afraid if you learned of the Zeitgeist movement.
@rlemon I thought you would never ask :D
BAM! Tinfoil hat!
m59
m59
@AGirlSaidMySmileIsCute What you have is an X/Y problem. Google it. All of these issues are because of a bad architecture. So, you need to present your goal and ask about a good starting point, then work from there.
20:19
eheheh Now I do not want to break the rules
but this news is a top
m59
m59
Your goal is not to include some file - you just ended up there because you wrote a bunch of messy code.
> PAGE NOT FOUND It's a bird! It's a plane! Actually, it's nothing. We couldn't find the page you were looking for. Click here to return to the last page you were on.
@connor.js Btw, we already know about hydrogen powered vehicles. The problem is that it takes a lot of energy just to separate enough hydrogen from oxygen in water
A fuel cell is a device that converts the chemical energy from a fuel into electricity through a chemical reaction with oxygen or another oxidizing agent. Hydrogen is the most common fuel, but hydrocarbons such as natural gas and alcohols like methanol are sometimes used. Fuel cells are different from batteries in that they require a constant source of fuel and oxygen/air to sustain the chemical reaction; however, fuel cells can produce electricity continually for as long as these inputs are supplied. The first fuel cells were invented almost simultaneously in 1838 by two physicists...
@m59 Goal is to create a website
20:21
A hydrogen vehicle is a vehicle that uses hydrogen as its onboard fuel for motive power. Hydrogen vehicles include hydrogen fueled space rockets, as well as automobiles and other transportation vehicles. The power plants of such vehicles convert the chemical energy of hydrogen to mechanical energy either by burning hydrogen in an internal combustion engine, or by reacting hydrogen with oxygen in a fuel cell to run electric motors. Widespread use of hydrogen for fueling transportation is a key element of a proposed hydrogen economy. Hydrogen fuel does not occur naturally on Earth and thus...
m59
m59
@rlemon aww man Zeitgeist :(
great movie
m59
m59
sigh
@Shea Boeing have just created their most advanced drone that runs on hydrogen
m59
m59
brain dead liars created that.
20:21
horrible when people get all tinfoil hat about it
m59
m59
Almost everything they had to say about religion was just down right made up.
Oh sorry, I thought you were talking about water-to-hydrogen powered vehicles
@m59 Already have a basic custom DB class and custom notification center class. However, I can't just include those objects in the index file and do everything there, right?
I'm at a loss for words here
It also fly's for hours on end
20:22
@m59 I (unlike many as it turns out) am able to appreciate that it is a very interesting movie while not being suckered into jumping on the band wagon
however some points are debatable from many stances.
m59
m59
It's just highly frustrating considering the amount of bibles in the world (and that you can read it online) and yet people will argue with me about how the bible says this and that and so on just because Zeitgeist said so.
So I have a few other files which deal with different parts of the website, such as fetching from the Database, using the custom object, and displaying the standings of the teams (its a sports website).
m59
m59
@AGirlSaidMySmileIsCute then you probably want a RESTful api that will handle your ajax calls
it is amazing how many arguments I've been in where people misquote the bible to help their religious position. It is even more amazing how many religious people have never read the bible but feel the need to scripture people like they know what they are talking about (and in those cases they are mostly out of context, or misquoted)
@m59 wut
The problem is dependencies.
m59
m59
20:24
then write object oriented code and auto load your classes, like I said =D
Different parts of website require access to DB, but I don't want to "include" the db object file in every single of those files.
m59
m59
sigh.
!!afk this is lame
@RUJordan Nobody cares.
20:26
C:\Users\Abhishek\Work\Goph-Client-Static\node_modules\grunt-contrib-imagemin\no‌​de_modules\gifsicle\node_modules\bin-wrapper\node_modules\download\node_modules\r‌​equest\node_modules\form-data\node_modules\combined-stream\node_modules\delayed-s‌​tream\lib
WHAT THE FUCK^
@BenjaminGruenbaum ah, I only used the debugger thus far.
@m59 here i am: de.php.net/__autoload
except confused
@FlorianMargaine doesn't work.
that is what i HATE about npm
@AGirlSaidMySmileIsCute that's so horrible :(
20:27
@BenjaminGruenbaum ?
nothing to see here
@AGirlSaidMySmileIsCute not having a real loading system, and being too bad as a language to be able to solve this userland.
autoload sucks
@SomeKittens once I show them how to read my license... no
@rlemon SomeKittens is afk: leaving on a jet plane, pretty sure I'll be back tomorrow.
20:28
@AGirlSaidMySmileIsCute yeah ^^
@AGirlSaidMySmileIsCute You need to practice different design patterns. The best thing to do, really, is to try some different stuff locally using WAMP/XAMPP to see what works and what doesn't.
@Shea ever heard of civil-liberties.com?
m59
m59
@BenjaminGruenbaum autoload sucks??
I've been there, and I really wouldn't put much thought into that site
m59
m59
20:33
@BenjaminGruenbaum that's what you just said, is it not?
@m59 yes.
It sucks to not have a real module loader.
United States vs.
United States vs.
United States Of America
Hurr durrr
m59
m59
Better than not having anything =D
seriously, what the heck
To have a broken type system with broken classes and shit.
20:34
<?php
function __autoload($class_name) {
    include $class_name . '.php';
}

$obj  = new MyClass1();
$obj2 = new MyClass2();
?>
To have OOP design in a language driven by "OOH! Look at what Java has! Let's add that"
php docs suck that i can't even understand how to use this
@Shea That wasn't clever or funny. I'm simply asking if you've heard of the site, there is more to follow
@AGirlSaidMySmileIsCute why are you using PHP?
I don't have another choice.
20:35
@connor.js Yes I have. Buy my book.
@Shea what book?
@AGirlSaidMySmileIsCute how so?
m59
m59
@AGirlSaidMySmileIsCute that makes perfect sense. You just need to learn php. Have you ever written a class?
@Shea Do you agree the you lot think im very in denial?
@m59 Coming from a vb/c#/c++/java background, yes I have.
20:37
@m59 no, autoloading doesn't make sense - it's a hack to cover for the way classes were thoughtlessly hacked into the language.
The trolls must be out. I see tiny icons in the room listing and people @pinging them.
@Incognito who :)?
@BenjaminGruenbaum blocked people
Tiny icons = shea and "a girl said... whatever"
maybe not
m59
m59
20:38
<?php
function __autoload($class_name) {
    include $class_name . '.php'; //MyClass1.php
}

$obj  = new MyClass1();
?>
trolls trolls
be back later - compiled ^^
m59
m59
makes pretty good sense to me.
all trolls.
@m59 where does it get placed?
20:38
@Incognito FFFFFFUUUUUU YOOOU
!!tell Incognito fudgeyou
m59
m59
where is what placed?
how does it know which class needs to be loaded
Says the guy that's never here
the code you posted above and said that it makes sense to you.
m59
m59
20:39
because you instantiated that class.
@Shea So do you?
@connor.js Dude, I honestly have no idea what you're talking about at this point
m59
m59
$db = MyDbClass(); //includes MyDbClass.php
about as straightforward as it gets..
@Shea do you think i'm in denial?
There's more important things at hand. Someone called me a troll
@connor.js About what? Being gay? I don't know you that well, I couldn't say
20:40
@Shea It's just i've got a list of pages that would make you probably one of the most in denial people of all time
Seriously though, denial for what?
in PHP, 1 min ago, by Benjamin Gruenbaum
@ircmaxell you can try - but I bet it'd be double clawed ^^
especially being from ca
@connor.js I think you take what people say on this chat way too seriously
@m59 Sure, but there are like ten files that need access to the DB and I have instantiated the DB class once in the entire code tree. How do all those files get access to the "$db" variable that is instantiated in some other file?
20:41
@connor.js And that statement doesn't make you look good either
@Shea You don't know what it means
Because you don't know what im referring to
m59
m59
@AGirlSaidMySmileIsCute it's all one file, if those files are included, just like my original link explained
hi guyz
@connor.js Elighten me
If not, stop talking to me
m59
m59
20:43
you can think of includes as copy/pasting that code right into the thing including
need some help on nodejs and socket.io
@Shea Ill put half of my life on it you won't really even 1/4
I'm not able to explain myself to you :(
read*
@AGirlSaidMySmileIsCute don't bother ^^
20:43
I know what include is. Alright, let's try this again in a more simpler way.
try the php room
It's in a book, it must be right
@Shea I picked that one especially seeing as it was written by your fellow american who studies the history of it
@BenjaminGruenbaum is it to me?
20:44
hey
@Shea No, it's in a "treaty"
can some one help me
plz
?
!!tell prog.Dusan welcome
@prog.Dusan Welcome to the JavaScript chat! Please review the room pseudo-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.
i've got an array with dict objects
20:45
@faisal00813 no who the heck are you?
1) Don't ever assume someone is ignorant. 2) Don't ever talk about conspiracy theories in front of people you associate yourself with often.
Why the heck am I still here?
I have work
poll.php (gets latest poll data from database), articles.php (gets latest posted articles), admin.php (UI for changing stuff in the db like you see in forum software like phpbb or vbulletin). You have all sorts of files like that.
All require access to DB
and another array with dict object
!!afk will be back when this room straightens up and the regs show up. Who the heck are you people?
20:45
@BenjaminGruenbaum Apricots are people too!
@BenjaminGruenbaum ok bro
@Shea Sorry, what conspiracy theory are you referring to?
i need something like this
now I can't go in every single file and instantiate a new DB object.
need some tip on socket.io....plz guyz anyone!!
20:46
> Don't ever talk about conspiracy theories in front of people you associate yourself with often.
That's a good one ;)
@connor.js Like I said, I have no idea wtf you are talking about. You're sitting here wasting my time, because you can't make a point. Bye bye now.
@prog.Dusan Pro tip: Never say "plz" when you want to be taken seriously.
@Shea There is my in denial point proven almost instantly, thanks :)
@prog.Dusan Pro tip: Read the top right corner of the chat room, it tells you to just ask.
/* Installing couchdb */
m59
m59
20:47
@AGirlSaidMySmileIsCute pastebin.com/7UWKC8Eh
array = [ {user: "1", "userData": {''name": "dusan", ''ristic"}}, {user: "12", "userData": {''name": "dusan", ''ristic"}}{user: "123", "userData": {''name": "dusan", ''ristic"}}{user: "1234", "userData": {''name": "dusan", ''ristic"}}]
@connor.js No, it's not denial. It's being skeptical about anything you, personally, say.
array1 = [ {user: "12", "userData": {''name": "dusan", ''ristic"}}{user: "123", "userData": {''name": "dusan", ''ristic"}}{user: "1234", "userData": {''name": "dusan", ''ristic"}}]
I'm having some issues with a project. Can someone clone this repo and cat the file? gist.github.com/7418419.git
@Shea You asked for the links :) in which i now assume you're ignoring
20:48
I need search if object from one array exist in another
That should say for itself, how much I value your opinions.
@connor.js orealllyy? Did I?
Fuck off now :)
@Shea Yes you did
6 mins ago, by Shea
@connor.js Elighten me
!!> new XMLHttpRequest
@AbhishekHingnikar "ReferenceError: XMLHttpRequest is not defined"
@connor.js Just serach for objects from first array to another, and show all item which are exist in first and second array
20:49
@m59 But this assumes that all files are linked with each other.
@connor.js it's a _.intersection
this was funny
What if I have poll.php in one directory and articles.php in another directory and they have absolutely nothing to do with each other, but both use a $db connection?
but I need entire object not just array
everyone do XMLHttpRequest = null; in browser :D
m59
m59
20:50
@AGirlSaidMySmileIsCute LOL! then of course you need to include the database file in both!?
@AbhishekHingnikar Jokes on you. ActiveXObject("")
m59
m59
what the heck are you even talking about?
@Shea Anyway's i'm off now, have fun reading about "Treaty of paris 1783" :)
@AGirlSaidMySmileIsCute You delete PHP and Apache and get Python
@Incognito Haha
m59
m59
20:50
you want things to magically exist in files?
@m59 THAT would make my life really easy.
whatever, it's pointless to explain
thanks for the help
m59
m59
I think you're talking about something that doesn't mean anything.
Room dies...
20:52
new (function(){
     var window = null;
     var document = null;
     var XMLHttpRequest = null;
     (function(){
        console.log(window,document,XMLHttpRequest,this);
     })();
})();
if I am including a file through ajax to be displayed inside a container that is in index.php, then whatever exists in index.php should be visible to that ajax imported file too, but it isn't.
how to ensure that the this always refers to the context of the external function ?
is there a way ? [the this could be insanely nested inside a function ]
@AbhishekHingnikar bind is all init?
m59
m59
@AGirlSaidMySmileIsCute no, that makes no sense.
The page loads, php is done
alright, im done
peace
m59
m59
20:53
gone
Then, ajax goes to a page where the php runs (starting a new)
!!>new (function(){ (function(){ console.log(this); })(); })();
@AbhishekHingnikar [object WorkerErrorEvent]
m59
m59
and pulls the result into the other page
Caprica can't be trusted :-/
m59
m59
the php has nothing to do with one another @AGirlSaidMySmileIsCute
20:54
@AbhishekHingnikar it will be global
let me try to explain this in detail
yeah is there no way to ensure that the global is never found ?
@AbhishekHingnikar not that i'm aware of, I always have to use a dozen binds in nested functions
or create a self
@Raynos , @Zirak , @Octavien ^ expert help pls
m59
m59
@AGirlSaidMySmileIsCute I'm pretty positive I understood you. Are you sure you understand what I said? Php serves the page and is GONE. that page then makes an ajax call back to the server, php servers that page and is GONE. and the page it gave you is then pulled into the original page.
20:57
page starts > include file with code for a new declaration of database > computer reaches end of page > encounters a js file reference between <script> tags > js file uses ajax to fetch the contents of "poll.php" and replaces the contents of an empty div named "container" with whatever the contents of poll.php are > container then loads poll.php (really the output of poll.php, but the code is still loaded in the div)
m59
m59
Yes, exactly like what I just said.
here is the tricky part.
m59
m59
There is no php code loaded in anything on the page.
ever
@connor.js its a good question to ask on main so .. i am asking :D
@AbhishekHingnikar troll
20:59
the external code put into that container uses the DB to fetch and output stuff. The DB variable is already included from the top of the page when the new declaration of DB was created.
but the container code is unable to use that db as it keeps saying that the variable isn't defined.
@AbhishekHingnikar Hey, just incase ------ that was a joke
m59
m59
There is NO php code ON or IN a page EVER.
Dude.
php code is on the server
html etc is in the browser
@connor.js which one ?
m59
m59
there is absolutely no connection

« first day (1136 days earlier)      last day (4035 days later) »