« first day (854 days earlier)      last day (4094 days later) » 

12:00 AM
@webarto yay! MIT licensed.
Now I'm going to be filthy rich from instaflare
 
@PeeHaa Whatever that means ^_^
Buy me lots of beer :D
 
@PeeHaa instaflaregrambookitter will give it some serious competition
 
@webarto To me it means a lot. I really loooove MIT like licenses.
 
weird shit happens on friday
 
12:03 AM
Imho there is no advantage of use some GPL to the end user, which it is meant for as I think about ot
So when there is no real advantage to the end user we are looking at the developer, remixer, whatever
 
Word
 
12:25 AM
I'm going out for one last beer. Cya all tomorrow
 
12:38 AM
@PeeHaa: enjoy! :)
 
1:07 AM
Hello :)
Hi, i have a application and it uses default mysql for connection and it has a variable that sets the database charset encoding = UFT-8, What is this? what does it do? & if i switch to DPO do i need this? thanks
 
1:34 AM
are you asking what UTF-8 encoding is ?
its UTF-8 not UFT-8 btw
 
1:48 AM
Hello! I am looking for a photo rating script or function, but not rating out of 1-10, rather A/B rating, where the user is shown two photos at random and selects A or B. The script then rates both photos accordingly. Does anyone even know what this method/system is called? A/B Comparison Rating?
 
@NickFury sorry was busy and yes, also you know variables, in sass you can do $variables... and pass lots of data whats the best way in php
 
@ConnorMiles I'm assuming you meant PDO, you will want to specify the encoding as whatever you are storing the data as. UTF-8 is what you would usually want, make sure the database, the data and the connection all use the same encoding otherwise you can end up with data not properly displaying or not properly saving.
 
@crypticツ how would i do it with pdo?
 
You set it in the DSN
 
@crypticツ is it required?
 
2:00 AM
it's recommended to specify the charset for pretty much anything so you know the data will be the same.
There are countless questions on SO where people have issues with their script not working and it would turn out to be they didn't specify a charset/encoding for something or another.
 
@crypticツ ok thanks, what about my question above about sass variables?
 
I don't understand what the question is asking
 
i have a function($vars) i want to pass $my, $stuff, $cool into $vars?
@crypticツ i have a function($vars) i want to pass $my, $stuff, $cool into $vars?
 
2:23 AM
@ConnorMiles are so you want to be able to access $my, $stuff, $cool inside the function? Or pass it via the function call?
 
via function all like so,

function2($my, $stuff, $cool)

to

function function2($vars){
echo "$vars for example";
}
 
are you using a PHP implementation of SASS?
 
no nothing to so with sass, its just sass was example i want to do it in plain php
 
oh
you would pass the vars as an array
function myfunction($vars)
{
    print_r($vars);
}

myfunction([$my, $stuff, $cool]);
 
2:42 AM
@crypticツ cool thanks ill try now :)
 
@NikiC Maybe :)
I hope so.
I think that would be a great addition.
Almost as good as op-code cache in core!
(That's because I don't do anything that requires opcace :)
 
2:58 AM
doesnt work
what am i doing wrong, i want to be able to return the whole row as array?

function myquery($query, $vars){ global $mysqllogin, $mysqlhost, $mysqlpass, $mysqldb;

try {
$pdo = new PDO("mysql:host=$mysqlhost;dbname=$mysqldb", $mysqllogin, $mysqlpass);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $pdo->prepare($query);
$stmt->execute($vars);
// return $stmt->rowCount();
$stmt->fetchAll();
} catch(PDOException $e) {
echo 'Error: ' . $e->getMessage();
}
}


$adm = array('admhin');
 
3:39 AM
Hi people, greetings from colombia
 
@JuanFernandoz yo
 
@JuanFernandoz Sound
 
so.. Im a lawyer that loves PHP
so rare I know
 
@ConnorMiles want to get all rows ? you are using fetchAll it will return an array containing all of the result set rows
@JuanFernandoz O_o
 
when i call the function then what do i do to retrieve it?
 
3:44 AM
@ConnorMiles use loop
 
ok..
 
some years ago im visit a library and I see a book from Andrew Stopford amazon.ca/PHP-Programming-Windows-Andrew-Stopford/dp/0735711690 and I say to myself "oh what a extrange book" so im buy it and a couple years later Im read it and I don't understand anything xD
But I really tried to undertand and Im fell in love with PHP.
 
141$ are you kidding
 
oh no Im buy it here in colombia
about 20 dollars some years ago.
 
3:48 AM
but here in latin america the people just hate PHP
u.u
so in my city they are some groups of everything (javascript, etc) and they gonna have reunions, conferences, etc but not PHP
that say that PHP is a discontinued anguage
 
@JuanFernandoz people abuse php instead using . doing lots of bad practice ,bad or not security ...
 
language
So.. Im trying to learn javascript (I undertand so much things) but I think that js have a disorganized structure compare to my beauty PHP way to do thinks work.
 
has anyone got spare time to help with pdo, its pissing me off :D
 
@DaveRandom you are now room owner ... sounds good ....:)
 
@JuanFernandoz afaik the brazilian and peruvian communities are flourishing
 
3:58 AM
how do i store data like this in a array? $isuser ? "and ikind <> $kind_for_agent" : "
 
huh?
 
but Im really worried I mean. Do you think that PHP have a very slow development? Im see some js thinks like meteor or node.js and I say to myself: Oh why PHP is so slow to implement new thinks? My impression I guess.
 
@NickFury me?
 
@ConnorMiles yeah care to elaborate ?
 
its ok ive done it now, thanks :)
 
4:09 AM
+1 solving yourself
 
Though, when i user pdo (return fetchAll() )it never works for me
 
@ConnorMiles if you using exactly same you show in message it wont
it should be something like return $sth->fetchAll();
 
4:24 AM
I have a question: what its better : a folder for every single user to manage specify thinks like files etc or one single folder for all the users to the same think. Remember that I'm not an expert Im only learning every day.
 
@JuanFernandoz you can store in database ?
 
off course but some we have so many thinks in files and its necessary for example html files (so many of them for every user).
 
@JuanFernandoz what exactly you want to do ?
 
well there is a server for the colombian goverment and this server
and the users consult some data in this server
Im doing a service that use curl
making some request to this server and use file_get_content to download the data
so, later the user visit my site and can see the same data in other format with mayor options and possibilities than in the original site
Im download only the necessary data with dom
 
@JuanFernandoz it could be like store file in folders and keep link in database
 
4:31 AM
yes, but not exactly, Im show this data to the user using ajax
and jqgrid
do Im load the file with jqgrid, ajax Dom and php
not bad for a single lawyer :P
 
@JuanFernandoz sorry gotta go ... boss calling me ,,,
 
have a nice night
 
@JuanFernandoz night
 
@NullPointer yes i use return $stmt->fetchAll();
can someone help me with pdo?
 
 
2 hours later…
6:19 AM
hello, i just followed this tutorial youtube.com/watch?v=B1_yi7HM0Cg and im just wondering where i start when i want to use sessions to check logged in on every page
 
7:13 AM
@ConnorMiles just store id in session and check that id is set
 
Thanks all the same, but ive done it :)
 
3 hours ago, by Nick Fury
+1 solving yourself
 
+2 now
 
@ConnorMiles :P
 
7:27 AM
@NullPointer why do i get a whitespace erro with this in array 'stylesheet' => "$app['root']/default.css",
 
 
1 hour later…
8:57 AM
morning
 
morning
hi do u have my above question answer
 
mornings
 
I can't even read questions anymore.
 
So guys .. how about this "clean up of +" ?
 
9:12 AM
@tereško I dreamed last night about it.
 
lolwut
 
My thought was that OOP should be blocked if there is the PHP tag as well.
But that would not work fine.
 
Maybe we can write script that detects anti-patterns.
 
Hi guys
 
what do you call the "entry point" in the application ? (not only in php but c# and java too)
 
@hakre hi
 
9:54 AM
-1
A: Structuring classes and objects in CodeIgniter for future upgrades?

Anthony JimenezBy "Are new instances used in CI a lot" you probably mean if OOP is used in Codeigniter, if so then yes, you should probably read a bit more about OOP and the MVC pattern, which Codeigniter uses.

... of .. the internets
 
meh
 
Google Chrome rendering issue
http://stackoverflow.com/questions/14871225/datatable-redraw-issue-in-chrome
 
sigh
 
10:31 AM
Good Morning My Neighbours
 
anyone uses PHP RF?
i'm passing to PHP RF from PHP OOP is not so hard
 
Even good Internet connections can benefit from chunking because it allows for parallel "threads" — Jack 51 secs ago
 
10:54 AM
hey guys, I want to create something like facebook's post wall but I cant decide how much table I need as I'd have different but similiar objects: links, images, videos. Links have ref, thumbnail, title, description. Images have title, src and maybe I'd store some other information like width/height...etc. So I hardly thinking should I create only one big table or create different tables for each type of entries? What do you think?
 
11:04 AM
What are the parsers used in php
 
@gowri well .. php is interpreted by Zend Engine
if that's what you meant
 
I got a question "What are the two type of parser available in php " in php
on interview
 
HTML & XML
 
my answer to it would be "what"
 
I answered XML and XHTML
can i ask another
Which interface type allows you to chain methods of an object together?
 
11:16 AM
did you expect:
> Question limit reached, insert coin to continue
 
lol
 
@gowri it is not dependent on the interface
 
Very Lame question
Chain of Responsibility pattern
that question can mean anything
Even Strategy can have chain methods
 
to chain methods your object's methods have to return another object
 
I answered (->)
 
11:17 AM
or you have to use a modad
 
operator
 
lol
 
i feel same
 
lol
It asked "interface type" not "Operator Type"
 
i was once asked "explain objects for someone who knows nothing about programming"
 
11:19 AM
Which company set this kind of ambiguous questions
 
local start up
 
since that question was asked right after "explain, why manhole covers are round" , i answer "you do not explain objects to non-programmers"
 
Do you know how difficult to explain proxy to someone who has no knowledge of the internet ? come to Africa
 
here is my impression: that company is filled with people who thought that googling "interview questions for startups" was a genius idea
 
lol
 
11:21 AM
lol
Which POSIX character matches any character? My answer is = *
 
lolwut
 
is that wrong .
 
i don't know
i think of myself as a decently skilled developer - but i have no idea what is POSIX character
 
Yeah . I don't know how they set this question.
 
and , i have a suspicion that right answer might be "."
 
11:24 AM
lol
 
since dot is used in regular expressions to signify "any symbol"
 
In computing, a regular expression is a specific pattern that provides concise and flexible means to "match" (specify and recognize) strings of text, such as particular characters, words, or patterns of characters. Common abbreviations for "regular expression" include regex and regexp. The concept of regular expressions was first popularized by utilities provided with Unix distributions, in particular the editor ed and the filter grep. A regular expression is written in a formal language that can be interpreted by a regular expression processor, which is a program that either serves as a p...
never had of POSIX character only POSIX character classes
 
At compile time static values are bound with ?
 
i have seen "POSIX" mentioned in two context:
- when compiling or searching for software on freebsd
- as a tab in rexv.org
@gowri PHP is no compiled , use of static values is a bad practice and php supports late static binding since 5.3
 
* is a metacharacter that matches the preceding pattern element zero or more times.
 
11:28 AM
oh s h i t , I answered matrix
 
. = Normally matches any character except a newline
 
@gowri that's a honest ffs-answer
 
@Baba: Yes, I think too
ffs-answer ?
 
FFS - for fucks sake
an answer that you give when you cannot stand the stupidity anymore
it's when you have to choose whether to grin or start throwing things
 
11
Q: Web Developer interview questions

BabaI read an article today that listed some basic questions about web development: Describe how POST data was submitted to a server by a browser. Explain a number of HTTP status codes (except maybe 404 and 500). Explain SOLID or name a design pattern. Explain ways to improve a page load speed or u...

I experimented with that ... i could not stop laughing when very good developers could not answer those questions ...
 
11:44 AM
-4
Q: how to get add total index in for loop?

Usman AliI want to find out the total amount of key in for loop, for example 'total' => array( 'a' => '12', 'b' => '4', 'c' => '6' ), i am getting this data to use for loop like that foreach($checkOut as $value =>$key) { ...

 
    What the hell is wrong here:

$update = "UPDATE  `rbaevent`.`appointment` SET  'NoAvailable' =  '$newNo' WHERE  'appointment'.'Date' =  '$date' AND  'appointment'.'TimeSlot' =  '$timeslot';";
 
Monring people
 
@PeeHaa Good Morning :)
Welcome to StackOverflow where people develop shopping cart without knowing how to add variables
 
lol
P.S. not so loud please :(
 
11:55 AM
lol
 
morning ...:)
 
morning @NullPointer
 
@NullPointer Good Morning ... Welcome
 
how you guys doing ?
 
Sleepy ..... room has been a bit quiet ...
 
11:58 AM
@NullPointer Having a headache :(
 
@NikiC hi .. morning
When do you think we can fix PHP SPL Issues
 

« first day (854 days earlier)      last day (4094 days later) »