« first day (1313 days earlier)      last day (3861 days later) » 

19:01
eih
the Transistor game looks awesome
I don't often play too many indie style games.
Then again recently I find I don't play many games.
hi guys. I'm back! woot
Time is far too easily consumed by another addiction.
@ircmaxell i wish that were true there are many beers I have tried that I wouldn't drink even if they were free
19:10
hello all
i am here for some information
and discussion
i am working on affilaite sytem, ecommerce platform in php
i suggested my management to use doctrine with code igniter
@baig772 Okay?
@Pitchinnate there's always a point at which you'd drink it ;-)
A hot summer day and BBQ food makes me a sucker for an ice cold beer.
are there any limitations for doctrine regarding this platform?
@ircmaxell i don't know, I started a beer tasting event with a friend so I have tried a lot of beers
19:13
:-)
@baig772 the limitations are on CodeIgniter's side
@ircmaxell ok, as PHP is now depriciating mysql extensions, i should use PDO instead of doctrine?
it's a general consensus (here at least) that it should be avoided as much as practical
Having actually worked in a CI system of a fairly decent size I can safely say you want to avoid it like the plague
That's a bit unfair on the plague.
If there was something you'd want to avoid more than the plague that would be CI
19:15
seems like people here are not happy with CI :)
Also the company backing it is trying to find somebody else to take over full time maintenance of the project
Or at least they were a few months ago
@baig772 Pdo vs Doctrine is not a simple decision. It strongly depends on what you're building, the requirements, skills of developers, etc
@baig772 I looked over the docs and such, and I agree that it will depend on Codeigniter.
now i am in another worry, people here are not happy with CI :)
19:17
I personally use PDO, but that's only because I don't use much Doctrine. So, I wouldn't advocate for either.
alright, lets go with PDO then, i am still unsure abiut finding a developer with doctrine's skill set in my area
@baig772 People here aren't often fond of many sizeable frameworks. CI doesn't rank well even among them.
@baig772 It's been a while, but after googling up stuff, I remember doing a project a long time ago similar to this issue
@baig772 I remember we ended up using Laravel rather than CI
ahhh ok
@baig772 (for a framework)
19:20
@baig772 Just hire a developer who is smart enough to learn rather than specialised in. IMO.
@baig772 and I think I went with PDO. But honestly, I don't think it's that black and white. You just gotta determine whether or not you want Doctrine or PDO. I forgot my reasons.
ammm ok.
I agree with @Fabien . With a quick google searching, or even some book, you can easily learn stuff.
well what do u people suggest regarding framework, if I have to build an ecommerce system?
@baig772 You want to hire someone who is dynamic and can learn by themselves..
@baig772 To be honest, I moved away from PHP development for a year or two now, but last time I checked Laravel was the one I hear about.
19:22
well but everything is possible, i just dont want the project to be a pain
requirements will be changing a lot
No framework will make that painless
@baig772 You want to address the problem before you go deeper into the rabbit hole
@baig772 Laravel still requires some work to set everything up to your needs. It's just like like using Django for Python: you still have to do a lot of things.
the project is still in discussion phase,i have to suggest some good methedology
@baig772 I haven't used CI in a whle, but I found Laravel's (and other frameworks) template system to be useful
@baig772 You may also want to check out what Facebook used as a framework for PHP (before they wrote the PHP to C thing)
hmm well there is a thing, the project is already developed in YII, and the previous developers messed alot, so we want a revamp
19:26
Of course, that's what PHP developers do.
have worked on zend and CI and found these 2 more comfortable and develoepr firendly
We implement things in shitty frameworks so other developers can come along and re-implement it in their shitty framework.
@baig772 Absolutely do not use CI.
Whatever choice you make, do not use CI or CakePHP. Their level of crap is over 9000.
@SecondRikudo, now i am confused :)
Agreed with @SecondRikudo . DON'T USE CakePHP dear god.
it will RAPE YOU
19:28
@baig772 What's so confusing?
If you use CI or CakePHP we'll come to your house and bludgeon you to death with a large PHP elephant.
i think YII already have raped me :p
@baig772 , @cspray is just being a bit biased. But there's truth in it.
@baig772 If you think Yii raped you, boy have I got news for you...
say it then :p
@baig772 Nah, tell me what's the project about
What are you making?
19:29
its an ecommerce system, affiliate system
@baig772 So, a danger with PHP is that sometimes it's inconsistent in implementation, so that's how you get messy code everywhere. When a new coder comes in, he may not understand it because of just the way it is written
@KevinTomiyoshiYang I don't have a problem with messy code.
@baig772 In general, PHP is easily written to be confusing, and using a framework helps barely.
Messy code happens.
I have a problem with messy dependencies.
@KevinTomiyoshiYang s/PHP/programming
19:30
Does this chatroom allow asking for help with a question?
Because when your dependencies are messy, not only the code is messy, but you can't fix it without breaking anything else.
@PhDeOliveira It does, fire away.
yeah... I don't know what to say
looks like I missed a framework fanboy
@SecondRikudo True. I agree
19:31
@KevinTomiyoshiYang, to avoid this, I have made some set of rules
so there will be no messy code (i hope) in future
what was the good news @SecondRikudo?
@baig772 That's good. Just reallllly enforce it. Or try to.
@baig772 Rule #1 of programming in real life: There will be messy code.
20 mins ago, by baig772
i suggested my management to use doctrine with code igniter
for fuck sake
@baig772 This Clean Code I: Arguments video has a good section about the feelings of rebuilding old projects that turned sour.
@tereško, its 2o mins late :p
19:32
The best you can do is make the dependency parts clean. The way the different components talk to each other should be very clean, and through interfaces.
got it
ahh daggum it i just deleted my post
was this the good news if i am raped by YII?
@PhDeOliveira Ask away.
so @SecondRikudo
19:33
easy with the rape talk
ok
0
Q: Covert Array into ul li list

PhDeOliveiraSo I have a file that has strings of file paths that look like this.. ./CatDV/S1/SFX/steam/6004_90_04 LargeHeadlightSm.wav ./CatDV/S1/SFX/steam/AirHissPressureRe HIT032001.wav ./CatDV/S1/SFX/steam/Impact_Metal_Bullet_Hit(1).wav ./CatDV/S1/SFX/steam/Impact_Metal_Bullet_Hit.wav ./CatDV/S1/SFX/stea...

I got an awesome answer by a fellow user
but in his answer he has a call_user_func() that echo's the ul li
@baig772 Yii is terrible. Cake and CodeIgniter are worse.
my question is how do I reform that to save it to a variable?
dn't want to move to wordpress for this project :p
@PhDeOliveira So you want to use this PHP array, and output a ul li list?
19:35
concatinating and return the varibale is the answer, but his function is so complex (to me) that everything i try outputs a null
@KevinTomiyoshiYang correct
@PhDeOliveira I think this is doable. Let me read through your post.
@KevinTomiyoshiYang cool cool.
@SecondRikudo, i am still waiting for the news boy :p
@baig772 Wordpress is nice for a little bakery website, or...etc. Defnitely not good for ecommerce.
yeah
19:36
I agree with that
@baig772 Well, I'd roll my own
Make my own framework for this
would you say magento is a good platform for ecommerce?
Fact is, there are very little good frameworks nowadays, and none of them fit all possible cases.
@SecondRikudo which one is closest?
@PhDeOliveira It seems your post is answered. What is the problem?
19:38
@baig772 I'd say Symfony, or Zend.
@baig772 @SecondRikudo Doesn't Facebook use Zend?
@KevinTomiyoshiYang it was.. so he's echo'ing the ul li.. i want to save it to a variable and return so i could move that to a different function
I've heard of Symfony
@KevinTomiyoshiYang Facebook is a completely different beast. You shouldn't take it as an example.
@SecondRikudo true. I just remembered them using it.
19:39
i've been trying to concatenate it but i must be doing something wrong because i keep getting a null
I see. okay.
@KevinTomiyoshiYang no
@PhDeOliveira I see. Okay
@ircmaxell they didn't? Huh..
no
This is not JavaScript. You don't need to (and shouldn't) be using immediately-executing anonymous functions. Additionally, please don't rely on order-of-execution of comma separated echo variables like that. That's simply abuse. Separate out the code so it's readable. — ircmaxell 5 mins ago
@PhDeOliveira Are you trying to store it into some variable in PHP? or JS?
19:42
@KevinTomiyoshiYang PHP
@PhDeOliveira okay.
@KevinTomiyoshiYang I have no idea what he did in that call_user_func ,but it works.. just need that in a $variable so i can use else where
@PhDeOliveira can you show me your code block for it? Like an updated version? I want to see how u concat
@KevinTomiyoshiYang yeah ok i'll take me a minute since i axed it out of frustration
19:44
@PhDeOliveira He is using recursion.
@Jimbo word, nerd
@CarrieKendall Ha, I like it
@KevinTomiyoshiYang a little disclaimer - you'll probably laugh, but i'm kind of a novice
I'm the hiphopopotamus my lyrics are bottomless
@PhDeOliveira it's okay. No need to be sorry. What matters is you are taking action and asking rather than giving up
@PhDeOliveira I'm no pro, either.
@NikiC but echoing using !array_walk... to get the timing right, but to not output anything??? seriously?
@KevinTomiyoshiYang definitely need to read up on it
@ircmaxell oh
echo $a, !array_walk(...), $b
I don't care about using , in general. I care about using it as an ordering mechanism in a really weird way
19:49
I didn't see that part
Well, that's batshit crazy
@KevinTomiyoshiYang here you are
@NikiC which is why I said please :-P
I'm going to refactor it, and edit it
@hakre is a code obfuscator :D
The first one that actually works!
@NikiC Is his code really so bad?
@bwoebi Dunno in general. But that piece in particular is ^^
19:52
@NikiC code obfuscator?
how do you mean?
@NikiC about what particular piece are we talking?
1
A: Covert Array into ul li list

hakreAs you don't know the depth of your tree, you can make use of recursive function calls to display the ul/li tree. This actually works like in this yesterdays question, however, you have different decision points here: $file = './CatDV/S1/SFX/steam/6004_90_04 LargeHeadlightSm.wav ./CatDV/S1/SFX/s...

@NikiC that code is easily readable?!
So comma separated echo variables is not good practice?
I can't even understand what he wrote
@PhDeOliveira It is not bad practice in general
The particular usage is bad
19:54
@NikiC it is good practice or it is not?
@Nikic I see
@NikiC how would you do it then?
because i look at that and i go googly-eyed
Oh wow...hard to read.
@PhDeOliveira @ircmaxell will tell you in a minute ;)
stackoverflow.com/q/23791960/168868 and how did this person get 4k rep
@Nikic Hey-o
Okay, peeps, this is the correct answer here:
3
A: nginx error connect to php5-fpm.sock failed (13: Permission denied)

artooroAll the fixes currently mentioned here basically enable the security hole all over again. What I ended up doing is adding the following lines to my PHP-FPM configuration file. listen.owner = www-data listen.group = www-data Make sure that www-data is actually the user the nginx worker is runn...

We need to get this a lot more visible.
The top answers just re-enable the security problem the change prevented.
20:02
I do not agree with most of the arguments regarding the design intentions. Any programming language tryes to keep the things as simple and as readable as possible. The thing with PHP is that it's at a higher level than other languages. It was made for web, so it evolved like so (http processor). Because it's at a high level, and designed for web it's "easyer" to understand. It's focused on web. You can learn java at the same pase as PHP if you use it for web (use the same language features that php provides) . -1 — Geo C. 13 hours ago
Utter nonsense. — Joe Watkins 1 min ago
0
A: Covert Array into ul li list

ircmaxellI have refactored the god-aweful code in @hakre's answer to be slightly less god-aweful. It's using the same aglorithm: $file = './CatDV/S1/SFX/steam/6004_90_04 LargeHeadlightSm.wav ./CatDV/S1/SFX/steam/AirHissPressureRe HIT032001.wav ./CatDV/S1/SFX/steam/Impact_Metal_Bullet_Hit(1).wav ./CatDV/S...

s/aweful/awful
@ircmaxell ha!
@JoeWatkins nah, I intended to indicate how I'm in awe of the awfulness of it :-P
Why didn't anyone use recursive iterators for that?
20:04
very clever :D
@LeviMorrison I just cleaned up the algorithm used there. I haven't really looked at the answer and though about how I'd do it
@ircmaxell The !isset($node[$segment]) check is a regression in readability
Cheers @LeviMorrison. I actually did that top answer yesterday. granted it's only my Pi, but switched to the other now.
@NikiC preference for how to fix that?
because I do want to initialize the variable first
I don't want to rely on the auto-array-magic-bullshit that makes a varaible an array when you access it like one, unless it's a string
hum
I don't initialize it in cases like these
For top-level yes, but when using by-ref nesting...
20:07
$node = &$node[$segment]; to me is wrong, because what happens if a prior element was shorter, and $node[$segment] is a string. Bad things start happening
@ircmaxell Anyway, I'd put $cb in a separate function as well
Lambda recursion is somewhat confusing, imho
making it a separate named function? Yeah, that's fair, I'll refactor
I'm also not sure why Hakre is using references? As far as I can tell he doesn't need them, or at least some of them.
i need help regarding PEAR MDB2 ...
20:10
@NikiC updated
helllo hello mic testing'
@PuzzledBoy ask your question..
@ircmaxell Do you have any useful links (maybe a blog post) on 5.5 generators? Bored of the arbitrary range examples, I need to see a good reason to use these
@PuzzledBoy nobody is using pear nowadays. just so you know
@LeviMorrison also, I can't stand the recursiveIterator API.
20:21
@ircmaxell Well, I don't blame you there.
@ircmaxell Seriously, I prefer @hakre code
RecursiveIterator::hasChildren() doesn't say the iterator has children, but the currently iterated on item has children. Really weird stateful design
@bwoebi good for you
I think in this instance using an Iterator isn't actually that helpful, in retrospect.
@LeviMorrison yeah, I looked to try to do it, and really didn't seen any obvious way. Would love to see one though
If you had actual directories and not strings representing them I would probably go for an iterator solution.
20:30
@ircmaxell sigh, and then they wonder why I can't get Iterators no matter how hard I try.
Oh def, RecursiveDirectoryIterator
I get most of them, but it's this Recursive crap that gets me every time.
@SecondRikudo Don't feel bad. Nobody really knows how half the SPL works ;)
@NikiC I mean, you got this RecursiveIterator, which holds items at an unknown depth, awesome. But then you get this RecursiveIteratorIterator, which I have no idea what it does.
And you get confusing names like hasChildren instead of currentItemHasChildren or something
@SecondRikudo Turns a RecursiveIterator into an Iterator, obviously :D
20:33
@NikiC Not that obvious apparently.
Also why would you need to turn it into an Iterator? By definition a RecursiveIterator is an Iterator.
It doesn't actually traverse into its children :)
@LeviMorrison Well what's the point of it being a recursive iterator then?
It tells you if the current spot has children or not ^^
@LeviMorrison Why would I care if I can't traverse them?!
More importantly, why can't I just traverse them?!?!!
@SecondRikudo Oh, you can; it just doesn't do it for you.
20:35
@LeviMorrison Okay, why the hell not?
That's what a RecursiveIteratorIterator does.
lol
@LeviMorrison I will smack you in the face with a meteor.
You know I will.
MindExplosions.gif
Wow, this is fun. Watching @Levi explain recursive iterators to himself. Really a trippy experience
@LeviMorrison Why would I want two classes for two halves of the same responsibility?
20:37
I'm glad I was the fuel for all of this! everyone's help us much appreciated!
@SecondRikudo It let's you insert the recursion logic yourself. What if you don't always want to recursively follow it? What about doing some task before and after recursion?
@LeviMorrison Then it shouldn't be a class.
It should be an interface.
Which it is.
Wow the naming there sucks.
Wow the naming there sucks.
Yeah, it does. I agree heartily on that one :)
But it makes a great drinking game. :)
@salathe Yeah, yeah, I knew this would come up.
I don't drink. So you can go and chop your own liver somewhere.
And just for you
Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator Iterator
Good luck.
20:41
Bitter much? (see what I did there?)
@salathe :P
That TV show is pointless.
(see what I did there?)
I don't even know what show it is
20:44
Does anyone have any contacts with Travis-CI? Because this sucks.
regarding PHP PEAR and MDB2
my question here
http://stackoverflow.com/questions/23792590/warning-fatal-error-requiremdb2-php-after-install-php-pear-and-mdb2
regarding PHP PEAR and MDB2
@salathe Aha, a double joke!
@PuzzledBoy Are you just starting to use MDB2?
Are there any resources out there that might show you how to go about doing drill downs into data tables via links. For example, I have the table headings to allow you to sort by say State. Click on the table heading and it sorts by state. Click on the data, "Florida" within the table and it does a background query on only those where state=Florida. Click on "Sunny County" within the table and it drills down even further to do a query where state=Florida & County=Sunny County.
@Danack yes just trying to test is this working or not. because need to use it in a Project.
20:59
@PuzzledBoy If you really need to use it in a project I would recommend downloading the files yourself and putting them in a library directory in your project so that you can just include them yourself. But if you're just starting a project I would recommend not using MDB2. Pear is (as you're finding out) pretty crap.
PHP ships with PDO which is a decent SQL abstraction layer, though I also doubt that you actually need an SQL abstraction layer.
@Danack PDO is not a DBAL. It just is a common interface. All SQL and behavior is specific to the RDBMS in question
@PuzzledBoy I stand corrected - in which case one of the Doctrine projects would be appropriate doctrine-project.org/projects.html and almost certainly be better.
¡No pasarán! :D
Apple maps upgraded the world to match their data?
6
21:15
muahahaha
21:27
@Danack it remembered me more google maps… but well.
@bwoebi Not sure if it's appropriate to correct people's English - but s/remembered/reminded.
Mornig
nite
21:43
hello all!
I have a snippet that is driving me insane does someone mind taking a look:
		    foreach ($results_urls as $key => $value) {
				if ($countreal == $key) {
					$continue = FALSE;
				}else{
					 $results_page = curl($value);
					 $results_data .= scrape_between($results_page, "<!-- END: CHECKOUT PROGRESS BAR-->", "<div id=\"feefo_comments\" style=\"clear: both\">");
				$continue = FALSE;
				}
				sleep(2);
		    }
sleep just breaks the foreach....
@Danack last time you corrected my in the inverse direction :-D
@vimes1984 wut? sleep "breaks the foreach"?
as in if i don't include the sleep the foreach works exactly as expected but if i include it just blank screen...
I wondering if i need to have sleep turned on in the php.ini or something..
"blank screen". How many urls are in the array?
21:47
60
that means that loop will take 2 minutes to run
ok but the page act's like it's stopped loading
the parameter to sleep is seconds
@vimes1984 output buffering
I gotta run, later
How to notice that it's midnight: server is slower as midnight cronjobs are executed
22:11
@bwoebi Which begs the question: Why midnight? It's not the point of lowest activity for sure...
@NikiC I have no idea...
@bwoebi I guess there's just the appeal to use 00:00 ^^
@PuzzledBoy Gosh i hate MDB2. I'm doing a little rain dance everything I move a class from MDB2 to Doctrine.
@webarto In soviet Russia, road hits you!
 
1 hour later…
user924016
23:29
oh new design on bitbucket..
23:46
@DaveRandom Nah, in Bosnia :D

« first day (1313 days earlier)      last day (3861 days later) »