« first day (780 days earlier)      last day (4186 days later) » 

10:00 PM
There is not much about CI I like and isn't not about being complicated
 
I thought that CI had quite a clean MVC architecture
I haven't used it myself, I wasn't planning to either, I am looking for a CMS that is as flexible as my client
it needs to be easy to reshape the whole thing each time their requirements change
 
@LeaHayes Flexible client. That's a nice way to put it: a client that doesn't know what he wants :)
 
you could say that again... lol
 
I'm going to use that on my job. I like it
Anyway you should use what works for you.
 
I like the way that the template system seems to work, but I was hoping to learn a little more about it
like, is it possible to override specific templates (like you can with WordPress)
If I had a template for viewing a content type, can I have a special template for "Christmas" for example
and a different one for "Halloween" where "Season" would be the content type
 
10:04 PM
I'm pretty sure you can
 
For these reasons, a feature affecting the language itself (new syntax for example) will be considered as 'accepted' if it wins a 2/3 of the votes. Other RFCs require 50% + 1 votes to get 'accepted'
@PeeHaa seen
 
Also FYI Word press is even worse ;)
 
I have found WordPress to be generally quite good over the past 2 years, but it wants to be updated too frequently and things break too easily
What would your CMS of choice be?
I tried Drupal but found it painfully slow
 
@LeaHayes There is a reason it wants to update that often
@LeaHayes Homebrew
I hate being dependent of third parties and I like to reinvent wheels
Especially if the wheel looks like a square rock and doesn't really roll that well
 
@PeeHaa "Wait a minute - this sounds like rock and/or roll"
 
10:13 PM
:) hiya Dave
 
reinventing wheels is fun lol
 
@ShaquinTrifonoff Hello
 
@PeeHaa Hey hey. You people just screwed with me for a few minutes by not having any active requests, was debugging a non-existent problem :-P
 
@MirwaisMaarij hi
 
lol
 
10:17 PM
I have tried and I can't not post this, it's one of my favourite clips ever
 
@ShaquinTrifonoff Have you made any changes to the site because it says Array, gives a warning and the login/register is gone
@ShaquinTrifonoff Also at the buttom please change my name from Mirwais to DamageDz ;p
 
@MirwaisMaarij Yes, I have made changes.
I'll fix it in a min...
@MirwaisMaarij You want you username instead?
 
@ShaquinTrifonoff Yeah
@ShaquinTrifonoff + what changes you made?
 
Rock and/or Roll :D
 
@MirwaisMaarij k, done
@MirwaisMaarij Added support for more than one stylesheet per page :P
 
10:20 PM
@ShaquinTrifonoff Nice :D Also the logo isnt transparent in IE
 
@MirwaisMaarij No, b/c IE doesn't display the logo properly, I had to make it a screenshot, and old IEs display grey instead of transparency :P
 
@ShaquinTrifonoff You can fix that
 
AlphaImageLoader
I know
 
@ShaquinTrifonoff Ah alright, no worries on that part then I dont think anyone else than me would use IE in 2012 :p
 
@PeeHaa But to get a transparent screenshot??
 
10:23 PM
@ShaquinTrifonoff Don't know what a transparent screenshot is. xpix? ;)
 
wikipedia users FTW! :)
 
The logo needs transparency in it, and it is made with HTML+CSS. Renders fine in Chrome/Firefox/etc.
So I used a screenshot for old IE versions
 
I have to disagree - It certainly works and is a very terse line of code. But this code that will cause confusion for other coders (or even you when you look at it in 6 months time.) It's going to need a comment explaining the "nice type conversion hack" - @baba The solution provided by yourself is much clearer as it uses fit for purpose functions. - anyway, just my $0.02. — Joe Green 4 mins ago
 
@ShaquinTrifonoff Oh okay, thats no big deal :)
@ShaquinTrifonoff Just the chatbox need to be made and the american guys still get DNS error that should get fixed by the host anytime soon..
 
10:29 PM
k
 
hi guys, how are you doing?
 
@ShaquinTrifonoff What was the thing that could fix it for them temporarely? Run -> ipconfig?
 
@MirwaisMaarij Run -> ipconfig /flushdns might help.
And change nameservers to the faster Google Public DNS :)
 
hey everyone
 
10:33 PM
Hi, Dr. Nick!
 
XD
 
@MirwaisMaarij The problems on the site are now fixed.
 
Hi There!!
 
hello
 
10:37 PM
@ShaquinTrifonoff Ah I see now, great :)
 
I have a problem...
regarding SQL query.. is it ok to post in this chat room?
 
@MirwaisMaarij BTW, the chat is a headache :-/
 
@ShaquinTrifonoff xD
 
@MonicaThaneer If anybody is here and can/wants to help you they will
What is the question?
 
great! :)

So i have a select query executed successfully which results 3 colums with 6 rows suppose
 
10:38 PM
been doing some sql today too
 
now i have a table (Table 1 ) with 3 columns and i want to insert the select query data into this table at a go!
Any clue on how to do that ?? :-|
 
INSERT SELECT
 
SELECT SSN, emp_ssn, ticket_number
FROM disputes, credit_card, customer
WHERE credit_card_no = card_number
AND account_number = account_num
);
I have tried doing

INSERT INTO requests(Customer_SSN, Employee_SSN, ticket_no) VALUES ((
SELECT SSN, emp_ssn, ticket_number
FROM disputes, credit_card, customer
WHERE credit_card_no = card_number
AND account_number = account_num
));
 
INSERT INTO sometable (disputes, cc, customer) SELECT your select statement
 
but an error pops up saying #1241 - Operand should contain 1 column(s)
 
10:41 PM
Well this sucks
My post in dba died without a response
:(....
 
@VoidWhisperer died as in?
 
@peehaa died as in no answers
 
@VoidWhisperer Give it some time
 
peehaa: it's like 5th or 6th down on the list at this point :/
 
@VoidWhisperer Questions without answers pop back up on the frontpage once in a while
 
10:43 PM
I just hope i don't have to wait extremely long.. because I'd rather finish this project 'now' than 'in while'
in a while*
 
@ShaquinTrifonoff Where it says on the tab-bar Home | Gaming Media the logo on the side, did you make that? (the blue with letter 'G')
 
@MirwaisMaarij Yeah, made it in 5mins
 
Evening everyone!
 
@ShaquinTrifonoff It's pretty good, but could you change the borders around it from blue to red?
 
Have anyone used ZF2?
 
10:47 PM
@MirwaisMaarij ok
 
@Eugene Hiya
Looked at it a bit
 
@PeeHaa hi
I have a question about routing mainly
I'm trying to implement someting similar to they standard patter routing.
 
@MirwaisMaarij Do you want any blue in it?
 
@ShaquinTrifonoff Nope
 
Without looking at the code they wrote
 
10:49 PM
@MirwaisMaarij ok
 
$route = new Zend_Controller_Router_Route(
    ':module/:controller/:action/*',
    array('module' => 'default')
);
$router->addRoute('default', $route);
 
The router isn't that different from v1
 
Main question is, my current path is /customer/signIn and it describes only controller and action how will it map module part then? Should I start maping backwards? Starting from action? And if module part is missing then it is default? What if I have only /dashboard how will it know, that this only a controller part and not action or module?
 
@MirwaisMaarij favicon changed
 
@Eugene You can create custom routes. Which is something I am a huge fan of (not limited to Zend FW, but more the concept). You could map /anything/in/url/whatever to Controller, module, action whatever.
 
10:56 PM
@ShaquinTrifonoff Not for me..
 
@PeeHaa but this is konda hardcoding, no?
 
@ShaquinTrifonoff Still blue
 
@MirwaisMaarij You have to update the browser's cache of it: Go to gamingmedia.org/favicon.ico
 
I'm mainly interested in how to apply the base patter ':module/:controller/:action/*' to url.
 
@Eugene The same hardcoding as a direct URL -> controller::action mapping
 
10:57 PM
It is my current nemesis.
 
@ShaquinTrifonoff I just need to open that link and it'll update?
 
I don't get it.
 
@ShaquinTrifonoff Ah yes it did,
 
@MirwaisMaarij Should do, if it doesn't refresh the favicon page a couple of times
 
@ShaquinTrifonoff Yeah, it looks great :)
 
10:58 PM
@PeeHaa But imagen you have a handred diff. modules, where each one has even more controllers and each controller has even more actions, could you imagen such map?
 
@Eugene That is the drawback
 
Gahhhh >.<
 
100 modules, wtf?
 
But lets face it...
 
I wish sql had an easy way to do this
 
11:00 PM
Ah what @webarto just stated
 
@ShaquinTrifonoff Hmm to make it look even cooler, could you change the first G letter in the logo to thin black border that glows red?
 
@PeeHaa I wish I had a unicorn, but wishes don't change reality. So back to issue.)
 
I have 4 modules, and two dozen of controllers, and application is huge. So it is hard to imagine 100 modules.
 
@webarto but I assume you also have some unified pattern?
 
I cannot think of any (web)application that needs that or even has it @webarto
 
11:01 PM
@MirwaisMaarij In the logo, not the icon?
 
@webarto like :module/:controller/:action/*
 
Yes, default pattern.
module/controller/action/param1name/param1value/...
 
@Eugene i think that what zf do is get the module name and then it try to instantiate it, please correctme if im wrong
 
So my question is, how can I apply for example /customer/signIn url to this pattern if module part is missing or even /dashboard if it only describes the controller and uses default module and action?
 
@Eugene singing customers?
 
11:04 PM
:P
 
@JuanAntonioOrozco are you talking about zf second edition?
@ShaquinTrifonoff bugfixed
 
amm im haven used second edition but it looks similar to the first edition
 
@Eugene For me, module is a subdomain e.g. module.domain.com/controller/action
 
@JuanAntonioOrozco It is
 
11:06 PM
ok
 
Also you can use Regex to match, of course... there are numerous options.
 
@ShaquinTrifonoff Yes in the logo
 
@webarto so how would you apply such url /customer/signIn to that route pattern :module/:controller/:action/*?
 
default module is default :) Then you are left with :controller and :action, and you can specify that one to... e.g. index, index
 
11:18 PM
so with bcrypt, you use a random salt each time your create a hash? and then you pass your old hash in as your salt when validating?
 
@radleybobins What is your PHP version?
And yes
kinda
 
@webarto but how from the uri you will know what is what? For example first part is customer, how will you know that this is controller and not module?
 
@peeha 5.2.16
 
k. Too bad
 
whys that?
 
11:25 PM
php has ternary operators?
O.o
 
If you wouldn't have a 4.5 years old PHP version you could have used the password_compat lib which will be native in 5.5
@VoidWhisperer Most "C like" languages have
 
well knowing that would've made my life hella simpler :L
 
Meh. It often makes the code less readable imho
 
user1125394
@Eugene teresko has done a framework for handling urls with routing
 
With great (ternary) operators comes great responsibility.
 
11:31 PM
lol
 
@peehaa: I use it for variable definitions because it makes your code look crummy if you have ifs for defining variables everywhere :D
 
@VoidWhisperer I hope you don't mean variable definitions from posted or qs data.
 
$limit = $_GET['Name'] != "" ? 5000 : 10;
using that for a query loop limiter
:P
 
Is $_GET['name'] always set?
 
that doesn't make sense
 
11:34 PM
No
Get name is NOT always set
 
You may want to enable error reporting in that case
 
then you are getting E_NOTICE
 
Well then what would a better way to detect it be? $_GET['Name'] == null?
 
$name = filter_input(INPUT_GET, 'Name', FILTER_SANITIZE_STRING);
 
11:36 PM
@MirwaisMaarij I changed the logo
 
if(isset($_GET['Name']) && ! empty($_GET['Name'])) ...
 
Is there really the need for that EVERYTIME you use get..?
 
@ShaquinTrifonoff How can it update for me?
 
@webarto No need for the isset()
 
@MirwaisMaarij Firefox
 
11:36 PM
@VoidWhisperer No, but you should sanitize your inputs.
 
to prevent sql injection? Isn't that what mysql_real_escape_string is for?
 
wait, wouldn't it throw notice if Name is not defined (doesn't exist) @Jack
 
@ShaquinTrifonoff I dont see any updates in the logo
 
@webarto No, empty takes care of that
 
@webarto empty() does implicit isset check
 
11:38 PM
@MirwaisMaarij In Firefox, try +
 
@VoidWhisperer No, sql injection has nothing to do with that ... and ... mysql_real_escape_string() ? seriously, switch to pdo / mysqli
 
I can't
 
WHY NOT
 
Don't have acess over the php configuration on my server :(
 
@VoidWhisperer Please, don't use mysql_* functions in new code. They are no longer maintained and the deprecation process has begun on it. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
11:39 PM
@VoidWhisperer Most servers come with PDO
 
Oh, goodies, I haven't accessed $_GET in a while like that :P
 
My server is hell of old
-.-
 
How can i tell if pdo is enabled?
or mysqli for that matter
 
user1125394
[ 'name'       => '',
'parameters' => [ 'notation' => '[/:controller[[/:id]/:action]]' ],
'urls'       => [ '/users',
                 '/archive/list',
                 '/document/5/edit' ],
'expected'   => [ [ 'controller' => 'users' ],
                 [ 'controller' => 'archive', 'action' => 'list' ],
                 [ 'controller' => 'document', 'action' => 'edit', 'id' => '5' ] ] ]
 
11:39 PM
Oh right, and old servers must always run old software @.@
 
$db = new PDO(); - what errors are reported? :P
@VoidWhisperer ^
 
user1125394
@Eugene an example ^, id is optionnal, in your case module would be
 
@VoidWhisperer Check phpinfo(), simple.
 
@VoidWhisperer Unless your server is > 7 years old (and never updated your PHP) yous hould be fine :)
And if the above is the case you're an idiot :)
Are there still > 5.1 installations without at least pdo_mysql?
 
It seems I have mysqli
O.o
as it seems to be enabled.. Ok then..
Time to go learn how to use mysqli as opposed to mysql :|
 
11:42 PM
@VoidWhisperer No PDO?
 
Which one is better..?
 
PDO is easier
Both are good
 
it has pdo, it would seem
 
PDO FTW!
 
PDO drivers sqlite, mysql, sqlite2
 
11:43 PM
Use PDO then
 
While you are at it upgrade to postgres :D
 
hehe
 
Time to go learn pdo then! To the php manual!
 
@VoidWhisperer See, you can use the same method to access multiple DB types :)
 
:P
Shaquin.. er
I use mysql dbs only. :|
lol
 
11:44 PM
I know
But if you learn PDO, and have to use sqlite later...
nvm
 
Thank god i learned java before coming back to php, because i actually understand OOP now, which seems to be what php is becoming
 
Well ... some form of OOP anyway.
2
 
Oops, you mentioned Java.
 
But some is still a whole lot better than none ;-)
 
@MirwaisMaarij Can you see the changes to the logo yet?
 
11:47 PM
@Jack He shoots. He scores!
 
Can someone point me in the direction of a tutorial to get me started off with pdo? ;P
 
9 mins ago, by PeeHaa
@VoidWhisperer Please, don't use mysql_* functions in new code. They are no longer maintained and the deprecation process has begun on it. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
Wow. I'm slow. xD
 
It happens :)
 
@ShaquinTrifonoff Nope
 
11:50 PM
@MirwaisMaarij Hmm... do you want to see it over TeamViewer?
 
Taking a quick look at pdo, it almost seems to resemble how the JDBC driver works :o
 
@ShaquinTrifonoff In like 30 mins
 
Where was I when php became this, it almost looks alot like java to me (atleast how the pdo driver works LOL)
 
I believe much of the OOP inspirations came from Java, but with the peculiarities of PHP =D
 
11:54 PM
@VoidWhisperer I wouldn't say PHP is like Java. But PHP has (although it still has it quircks) become fucking great.
 
Yep
Question
when using pdo, would it be more effective to loop through data via foreach query as row etc, or statement->fetchAll
then loop through it
 
windows keep changing my keybord layuot, thats anoying when im using arrays >.<
 

« first day (780 days earlier)      last day (4186 days later) »