« first day (1156 days earlier)      last day (3792 days later) » 

12:00 PM
don't use logic to get through your life and then betray it to make a point ...
 
@JoeWatkins It's not fluff, it's the core philosophical debate.
 
@crypticツ Most of people think that life started 2013 years ago or 1400ish years ago, that's the problem.
STAHP No. 2
 
@webarto actually, the popular number is 6000 years
or was it 10000
 
somewhere between
 
@JoeWatkins If you're genuinely interested, I'll gladly recommend a book or two. Or articles to start.
 
12:01 PM
@webarto I think if it was easy to get the whole world to adopt a different calendar system, it would be done already
 
@JoeWatkins I think a good introduction (assuming you've read Kuhn, which you should since it's very light reading and goo) is Popper and Quine
 
@Leigh and what would you pick as "year zero" ? Unix time ?
 
^ sounds good to me
 
^ that
 
that's because you are a developer
 
12:03 PM
yeah anything before 1970 is pretty pointless now ...
 
@JoeWatkins "The Logic of Scientific Discovery" by Popper, after the paradigm shift book of Kuhn should give you a very solid start.
 
It's settled! Time began in 1970!
 
Quine is generally a much harder read.
 
Everyone, please be at the meeting at 1387109001
 
Popper and Kuhn are much lighter
 
12:03 PM
@BenjaminGruenbaum have you seen some of the Dawkins talks?
 
@tereško I don't know what I'd pick. But we accept these basically arbitrary numbers for years and months and days because they're so ingrained in our existing systems, changing them would be too much work. year 0 being approximately 2013 years ago or 6000 years ago makes no actual difference.
 
@BenjaminGruenbaum I'm not into questioning logic, or philosophy or whatever you want to call it ...
 
@RonniSkansing no, but I've read the books.
 
you just need a fixed point to count from, doesn't matter what it is
 
@JoeWatkins fine, then don't pretend to magically 'know better' than religious people.
 
12:04 PM
@BenjaminGruenbaum what did you think of them? I would +1 the live debates, they are very funny none the less
 
@RonniSkansing I really liked the selfish gene (good), didn't like the god delusion (it smells of propaganda) .
 
@BenjaminGruenbaum I don't follow ...
 
@RonniSkansing live debates are a horrible way to get your facts straight.
 
how can you expect people to agree on a new calendar , if americans think that 07/12/2013 is in summer ?
 
@BenjaminGruenbaum i think they show the true ignorence of some religious people
 
12:06 PM
12 mins ago, by Joe Watkins
@Muhammet it does, it definitely does take a special kind of person to believe that anyone can fly anywhere on a winged horse, rise from the dead, be born of a virgin, or any other such nonsense that you regularly find in these books ...
@JoeWatkins you are those people.
You're just more aware of them than of yourself.
 
what are you talking about ?
I'm what people ?
 
@RonniSkansing "some people who argue for position X are stupid" says nothing about position X.
 
@BenjaminGruenbaum but position X has no ground in reality says a lot about position X :)
 
@JoeWatkins the quote from above. That believe strange things without questioning them. Worse, you make assumptions on the people who believe things that are just as quirky because you haven't read the philosophy to back it up.
@Patrick how would you measure "ground in reality".
 
@BenjaminGruenbaum, saying stuff like there is life after dead is a tese
without grounds
 
12:07 PM
I need to read philosophy to know how the damn world around me works ??
I don't think so actually ...
 
@BenjaminGruenbaum by the scientific method
 
And adding anything more to that is just pure crazy
 
@JoeWatkins then we agree to disagree :) If you rely on facts and science without ever questioning or learning its methods or pondering about life and what it's all about, and then call people who have another belief system silly - I got nothing more to say to you about that :P
@Patrick what is this scientific method? What is scientific proof?
 
goto to open your own room, too much off topic here, please.
 
The scientific method is a body of techniques for investigating phenomena, acquiring new knowledge, or correcting and integrating previous knowledge. To be termed scientific, a method of inquiry must be based on empirical and measurable evidence subject to specific principles of reasoning. "[4] Rules for the study of natural philosophy", , from Book 3, The System of the World. The Oxford English Dictionary defines the scientific method as: "a method or procedure that has characterized natural science since the 17th century, consisting in systematic observation, measurement, and experi...
 
12:09 PM
 
@RonniSkansing maybe it is. I don't believe in life after death myself but have you really checked the other side.
 
@BenjaminGruenbaum exactly!
 
@tereško @Patrick thanks for wiki links. I've never heard of this scientific method before -_-
 
we cannot! But we know how some of the brain works. And when it composes it is pretty logicial there is NO life...
Taking just 1 step beyound death is a tese
and a disturbing one
 
@randomdev but php sucks :P
 
12:10 PM
@BenjaminGruenbaum there is no reason to assume that there is life after death. Burden of proof
 
Everything about religion, will be trashed binned now.
 
@bwoebi it's sunday
 
@bwoebi , you will be at it for some time ...
 
12:11 PM
@tereško everything new about it I mean
 
@bwoebi That's the right attitude ;)
 
1 message moved to /bin/gif
1 message moved to bin
^ hmpf
1 message moved to /bin/gif
1 message moved to /bin/gif
stop… please…
 
hey, mine was a good one
 
@bwoebi can you stop that please
 
12:13 PM
@Leigh atheist was in the URL
 
@bwoebi so what?
 
@JoeWatkins I'm not the first one which asks to stop.
 
Hey guys
How to check php version specifically?
echo PHP_MAJOR_VERSION gives 5
but let's say I need the exact version
 
php -v
 
1 message moved to bin
 
12:15 PM
phpversion()
 
@SabTheCoder PHP_VERSION
 
I need it in my script to check
Thanks Joe and Leigh
 
exec('php -v')... :P
 
i bet praying makes the compiler more forgiving...
 
WOW a process to get a version number ?
 
12:16 PM
I need this to use password_compat
if (PHP_VERSION <5.5.0){
require 'password.php';
 
how are you adding to this zip file ?
5.5.0
parse error
you can't do that, you want version_compare
 
hmm. Lemme check how to use that
if (version_compare(PHP_VERSION, '5.5.0', '<')) {
require 'password.php';
}
 
does it really create a zip, you sure it's not gzcompressed ?
 
That good @JoeWatkins?
 
@SabTheCoder see manual ...
 
12:20 PM
I saw it and I made it based on manual
 
then it will work :)
@randomdev not sure without looking, but that's the loop that writes the output, you want to write directly to the zip file I imagine there's a method, but no idea what ...
 
Yup works perfect :D
Awesome. Thanks @JoeWatkins
 
there's a password compat extension on ircmaxells github @SabTheCoder if you can install ext's ...
 
Yep
I'm having php 5.4 on my system
I use that
but I want to make it flexible.
if it's 5.5.0 no need for password_compat
 
@randomdev opens output for writing
is handle
you can if you are sending data elsewhere I guess...
wat?
 
12:27 PM
@J
@JoeWatkins Why does a slash at the end of a .php strips out the css?
 
relative paths in the css are broken probably
 
example www.example.com/reister.php/ (notice the / at the end)
How can i prevent this?
without the / it works perfect though
I got register.php in my root
then the css is in theme/styles/style.css
ya
 
@randomdev why would you want the contents of the file you are writing ???
 
okay lemme try
Nop
it's not working. Now the whole css doesn't work
<link rel="stylesheet" href="/theme/styles/style.css" />
opera
yep
same thing
no style when there is / before theme in my link tag
when I remove it from the link tag it work
okay
I'm there
styles 404 not found
Not Found

The requested URL /theme/styles/style.css was not found on this server.
the / before theme is the problem
ohhhhh
yep
but why does it work without the / at the end then?
but when I have the / after register.php/ it breaks
all my 3 browsers do that
is that normal?
aha
I'll simply put the style in my root then
 
12:37 PM
but theme is in my root folder
 
It's not the browser treating it as a directory because of a trailing slash, the browser displays what the server indicates is there.
 
putting the app does not work either
yah. app is in the root
but doesn't work
<link rel="stylesheet" href="app/theme/styles/style.css" />
 
@webarto wow, just, wow ...
 
<link rel="stylesheet" href="/app/theme/styles/style.css" />
fixed it :D
ya
but now I understand how to debug this problem :) Thanks
Guess I must do the same for my image files
perfect :D
I really don't know when Africa will emerge
Africa is vast and statistically speaking, there could be more "brains" than USA
But the problem is NO EDUCATION, poverty and the rest
If I were to get a new language to learn, that would be chinese
@randomdev Same. Had to learn french and english. No out!
We were taught a third language
 
^ same
 
12:50 PM
Arabic, chinese etc but it was up to the student to decide
I didn't take them cuz I didn't like it lol
but now I regret
maybe I;ll take a language class in uni lol
When China emerges it will be a necessity to learn Chinese.
There will be a day when it will be mandatory to learn that at school
I'm sure about that
 
1:32 PM
Morning
 
gm
can anyone here help me for typeahead.js i am really stuck
 
user3010322
Morning.
 
@karanpujara That's not PHP.
Morning
You can "feed" it with whatever.
It's still Javascript.
How do you write it? Not registering where?
 
I'm trying to figure out how to display my database content on my main page
What would be the best approach to that?
There will be a picture, Title and a short description
I mean, in terms of using arrays
I'm not sure how to proceed
Yup
SHould I put all in an array and loop through each?
mysqli prepared statements
procedural style though, still newbie
That's where I'm stuck
I'm not sure how to proceed
Making a multidimensional array?
I'm lost tbh
And I'm worried about some contraints, such as showing only 10 latest files
Is there a procedural way of doing it?
I saw the second one, but it's not procedural
okay
Lemme read that
Thanks
I am reading a book
I get the basics of it
But I'm not really sure where to apply it
It's the hardest thing I've encountered so far with php
And i'm not yet on objects
Here's what I'm trying to display
It's just html for now
I got the infos in my database.
I guess I should make use of each of their ID
which i assigned as primary key
Yea.
Should it be a multidimensional array though?
So I just make a $array = [];
then my query will fill it and loop
 
1:58 PM
Is it good to use cookies in order to store cached content?
 
and let it sit
If it's cached why would you use cookies to cache it?
I still don't have a solid grasp of cookies but yeah, that's not what it's for
I'm not sure how to properly use them anyways lol
 
@SabTheCoder I mean to use cookies for cache storage
@randomdev And I don't want to keep large amounts of data
 
Jay
I was wondering if someone could help me with this
 

« first day (1156 days earlier)      last day (3792 days later) »