« first day (985 days earlier)      last day (3979 days later) » 

8:00 PM
no , i mean , is it for entire server or that one app
 
@Charles can you suggest the better part..im really concerned about the good parts as I am on learning stage
 
^admin/login/?$ view/admin/login/index.php [NC,L]
ohh.. its for a specific app
 
then put it is the folder that contains the app
 
in the root path, right?
 
wat
 
8:01 PM
in root of my app's folder..
the htaccess must be.
 
i .. comprehend ... you .. not
 
do I have to put the .htaccess file in the root of my application?
@tereško like this: /var/www/myapp/.htaccess
 
if the htaccess file is for the application , then you put in the folder where application is
 
@Trialcoder So, the workflow for the thing is "fetch this URL and store it in that file if the file hasn't been updated in at least 28 days," right? If so, frankly, the exists check is silly. It can be folded into the age check. If the file doesn't exist or it hasn't been updated in 28 days, then fetch the URL and write to the file.
@Trialcoder As written, when this code is called, if the file does not exist, the file will merely be created, but the URL won't be fetched. That seems odd, but it might match whatever requirement you're trying to meet.
 
@Charles I just updated pastebin.com/9zhKXUrL
@Charles yes u r very true with the requirement...for your second block of comment I updated the code as mentioned..however I think we can really refactor the code to make it small .although im not sure with that part
 
8:06 PM
for some reason. apache, doesn't read my .htaccess.
i have put some wrong characters on it, and the error is not returned when accessing the application.
tha AccessFileName is .htaccess
 
@Charles some lines/code is repeating itself..so breaking the DRY concept
 
@Trialcoder Focus on the clarity of the intent of the code, not on popular programming concepts.
 
@Charles very true..actually im learning rails also so mixing language concepts..although i think(may be i m 100% wrong as i am a starter) its good to refactor your code if possible
 
here is a thought .. better focus on learning OOP in general
not some framework that is made for rapid prototyping
.. also, you should not start "learning rails" before you have a solid grasp on ruby itself
 
Mainly the last part, learn ruby before you learn rails.
 
8:19 PM
@tereško very true...an hour or two before Jack suggested to use curl to fetch data instead of what I was using Simple DOM Parser to scrap data....and OMG its really amazing fast now!!!!
u people are simply rocking!!
 
well @tereško is the noob whisperer
 
typedef size_t zend_string_size
 
@ircmaxell Is this what I think it is?
 
yes
After doing 3 files, how this ever worked in the first place, I have no idea
 
@CarrieKendall i tried to watch that series .. it felt , well, flat & boring
 
8:24 PM
@ircmaxell Everything will work with a sufficient amount of magic :)
 
no, like ints being passed to uints being passed to zend_uints
why the compiler isn't yelling right now...
 
every time i see a mod entering a chat, my first thought is: so they have come for me at last
gordon does not count
3
 
@ircmaxell uint and zend_uint is the same ^^
we just like to confuse people by having four names for one type
 
@Trialcoder You can use cURL with Simple DOM Parser, which you shouldn't be using anyways... @Jack sucks :P
 
@NikiC same typedef wise, but other things are not the same (int, etc)
which is why I'm replacing every stringlen everywhere with zend_string_size
 
8:31 PM
@webarto ok ..let me make a cocktail with both
 
Yup.
 
> Great. Please do reach out and provide some insight of what problems require such approach and why.
 
hello guys, do you have any idea what this error mean? 2013-06-28 04:40:31.385 [STDERR] /home/[username]/public_html/git/cgi-bin/git.cgi: line 3: GIT_HTTP_EXPORT_ALL: command not found
 
[tag:face-palm
 
im trying to push using http but it returns a 403 error
 
8:47 PM
well ... here is a hint: look at line 3
 
well, line 3 is just this: GIT_HTTP_EXPORT_ALL
on git.cgi
 
Evening @all
 
9:05 PM
o7 all
 
@cspray I realise this is basically just re-iterating what was said yesterday, but I have just been re-considering and re-concluded that any attempt (such as Setty) to implement "proper" enums is just not suitable for anything that I would ever want to put into production. It's an interesting technical exercise though
 
Who's played with imap() & Exchange 2010 in here?
 
@Pheagey I have. Don't.
 
@DaveRandom Seems to be the best of 3 options.
If I can gtet the d@mn'd connection to work...
 
What are you trying to accomplish?
Also, error messages?
Also, can you get a "real" email client to play the game with IMAP and that server?
Also brb smoke
 
9:11 PM
evening
 
Trying to read and process mails on the server for a service account.

Notice: Unknown: Can't connect to url.address.com,993: Refused (errflg=2) in Unknown on line 0

I have Outlook (not express).

I'll be doing the same once I get home.
 
@Pheagey "Refused" implies the socket connection failed, so my first port of call would be to telnet url.address.com 993 and see what happens, then if/when that fails firewall config and check the Exchange IMAP connector settings
@PeeHaa yo
 
Yellow !
 
telnet: connection failed.
I guess I check with the network guys tomorrow.
thanks for the input.
 
@DaveRandom I agree.
 
9:20 PM
@Pheagey Yeh you ain't gonna get very far until that works :-P
 
And with that time to go see how my broken toe is healing! See you guys later
 
@cspray enjoy
 
@tereško The other day, you suggested me to read "PHP Object-Oriented Solutions". I'm on the point of buying it. But then I saw it's from 2008 which means 5 years old. Is that really ok ?
 
@HamZa OOP has been around since the 60s. smalltalk and the term "OOP" came out in the 70s. Most of the patterns have been around for decades, GoF "Design Patterns" came out in 1995.
don't focus on the implementation part. don't focus on which version of PHP it's using. focus on the concepts which are universal to any OO language.
or even apply to non-OO languages, because you don't actually need classes to do OOP.
 
You can also read some compiler theory from the 80's :X
 
9:25 PM
I see, that makes sense
Do you suggest a book ?
@Ocramius yes that might be interesting
 
I haven't read that particular book, so I cannot comment on it in particular. but "it's 5 years old" is the worst excuse when reading a book about universal concepts.
if you want to learn the PHP language or a particular database, you might want to get something more recent. or, you know, just read the manual.
 
@igorw PHP for dummies does a new version every year - must be good =D
 
@igorw I'm pretty fluent in the php syntax/functions. I just need to level up to classes and OOP concepts, and from then learning a pattern
 
@HamZa I'd generally avoid buying books with "PHP" in the title. but maybe this one is good.
 
anyone's stackoverflow css messed up?
 
9:28 PM
@igorw lol, good tip.
@DaveChen nope, are you using adblock ?
 
hmm but it's always worked enabled
 
cache problems ?
 
nah I clear my stuff on a regular basis (for web testing and stuff)
I know ctrl-f5 works too and sometimes I do that too
 
@HamZa i suggest it for people who have no other means of learning about OOP
also, the book has flaws
i would not buy it ... but you might download it from torrents and quickly skip through
 
@tereško what is/are the other mean(s) of learning it ?
 
9:32 PM
lectures and books that are not tied to specific languages
 
I see
 
@igorw Do you have any time to give some advice about Composer/Packagist? Someone thinks I've fucked up and one of my packages has been deleted. github.com/Danack/guzzle/pull/2#issuecomment-20113241
 
@Danack don't use replace. it breaks the internet.
also, don't submit forks to packagist.
 
I just installed php from source for the first time, but I'm getting a "class MySQLi not found" error. I did however, install with ./configure --with-mysqli=mysqlnd (well, not the first time, but the second)
 
That's the bit I don't understand - i) how can a replace in my package, break someone elses? ii) I think I do need to use replace - as I've forked a guzzle and haven't been able to get my changes back into the original project as the maintainer hasn't accepted them.
 
9:41 PM
Anyone got an idea what I might be doign wrong?
 
sigh
 
@Danack the replace is global. there is work in progress to make it more localized and validated, but in general it will affect other packages.
 
That is very scary.
 
it definitely needs to be fixed, I completely agree
here's the recommended procedure: keep your local fork, keep the original name, don't submit it to packagist, just reference your fork from the project that needs the fix.
 
Okay - I understand why it's been removed now - thanks for that. Can you advise what I should do in this scenario:
i) I have forked guzzle/guzzle to guzzle/danackguzzle.
ii) I have a library called intathwebz/FlickrGuzzle that requires the forked version.
iii) I (and other people) want to use the FlickrGuzzle project.
Everyone would have to manually add VCS repositories to their own composer.json - as the repository entry only has any effect in the root composer.json.
 
9:47 PM
I don't know what the context of your patch to guzzle is, but will you keep your fork of guzzle up to date?
 
I try to - but I'm lazy.
Actually if the replace is global it just basically can't be used at the moment can it?
 
it can be used just fine, but not for your use case. the intended use case is for renamed packages and "full" packages that include a bunch of other ones (such as guzzle, symfony, zf).
 
Actually - to add to the confusion, I haven't actually added replace to my version yet. The replace exists in the original guzzle version. github.com/guzzle/guzzle/blob/master/composer.json#L22
 
your use case quickly becomes very messy once you look at the broader ecosystem. because you have other people depending on guzzle, you're not updating your fork, but something, somewhere, is depending on your fork. so the user is screwed because he gets your outdated fork...
yes, the replace exists for the use case I mentioned. guzzle has small packages for each component, and one full package that contains all of them.
usually you will get the independent small ones. which are generated by subtree-splitting the main repository. but if you have the situation where you need to fix a bug, you'll be forking the repo and then you want that to still work, and use your github repo to replace all of those small packages.
 
"usually you will get the independent small ones." Really? That may be true for the combined repositories like Symfony where the components are useful themselves, I can't see that happening for Guzzle where the components are only useful within guzzle.
 
9:56 PM
you can use sub-components of guzzle without getting all of it
I have used them, for example the parser
you don't have to install the plugins, they are optional
the list probably goes on... this is definitely real and useful
my suggestion would be to try harder to get your fix accepted. if it's really that critical for you, try and get it fixed.
the other options don't seem sustainable, because they both involve you maintaining your fork over a long time.
 
Ok. So basically - if I want to fork a project and keep it forked, use it in a library, which is then used in other people's applications, is there currently a sensible way of doing that other than telling people "If you want to use this project, you need to add VCS repostitories to your root composer.json" ?
 
a) the VCS repo allows you to keep the code base as is, keep the package name as is, but forces all users to add it, which is obviously a pain.
b) if you make a full fork, you will have to 1) rename the package, 2) remove the replace, 3) adjust all of the namespaces from Guzzle to your own namespace, to avoid clashes between actual guzzle and your modified guzzle.
a is more work for your users, less work for you; b is less work for your users, much more work for you, and you will probably never update it ever because you'll just get merge conflicts all over the place.
both of those options suck, which is why I'd try harder to get your fix upstream merged or else work around it.
 
Hanging yourself is easier.
 
or... don't use guzzle if it's that much of a deal breaker
@webarto easier for you, harder for your family
 
it's always hard for someone, isn't it
 
10:05 PM
Well thanks for the help - at least now I understand the problem. I'm still not sure why replace is global. I thought it could work sensibly within a composer project.
It also seems like a massive massive security hole - if people have been getting my project by accident, then I could have done naughty things.
 
SELECT
...
        COUNT(t.toilet_id) AS t__0
      FROM fun f
        LEFT JOIN toilet_paper t
          ON f.toilet_paper_id = t.id
        LEFT JOIN toilet t2
          ON t.toilet_id = t2.id
            AND (t2.deleted_at IS NULL)
      WHERE (t2.created_at > NOW() - INTERVAL 1 YEAR)
      GROUP BY t.toilet_id
      HAVING t__0 > 1
      ORDER BY t__0 DESC
HELP
 
it could be made to work very locally, but would probably be more messy because people (like yourself :D) would abuse it and cause all sorts of other issues.
 
Super slow.
 
@igorw If people want to abuse themselves - let them go for it.
 
anyway, that's not the way it works, yes there needs to be safeguards, no approving replace requests on packagist all day long will not be a fun job, oh well. :)
and the problem is that this affects everyone.
even if you put a "local" replace, it's never local.
if you replace symfony, then somebody depends on your package, then an end user uses that other package, they're fucked as well. you could say it's now their fault, but that's not helping, now is it.
honestly I don't see replace working as a third party thing, ever.
 
@ircmaxell github is allowing me to make a pull request from your repo. :)
 
Hi all..need little help..this is a part of an array pastebin.com/apSJZvZG that I am tring to save in a text file ..which one is a better and easy approach for its traversal ..some 7000K values
 
@igorw wait, what?
 
"if you replace symfony, then somebody depends on your package, then an end user uses that other package, they're fucked as well." Well if they're including my package, then they're explicitly trusting my code, so I don't see the problem of trusting my composer.json.
 
@igorw Great, I wasn't the only one finding it weird...
 
10:11 PM
from the file..means i know how to iterate..but will it be going to save in tat format
like array format..or I need to serialize it ??
 
@ircmaxell why not, I guess. :)
 
I thought that the 'conflicts' was meant to help resolve when there are clashing versions of the same package. I guess it doesn't then.
 
@Danack sure, they should always be aware of all of their deps. but now it's no longer in their control which symfony they get. unless they remove the entire other package. now imagine 20 packages that use your symfony, which are suddenly incompatible with the original, and maybe didn't even have to be.
 
/me is out
 
10:14 PM
@ircmaxell Passing out?
I would.
 
later
 
whateva
;P
 
@Danack conflict exists usually to blacklist specific versions of a package that have a bug breaking a library.
 
So, it turns out that dependency management might be hard.
 
say X depends on guzzle 1.0.*, now guzzle 1.0.4 comes out which has a fatal bug. then guzzle 1.0.5 comes out which fixes that bug. X can blacklist the bad 1.0.4 version with conflict.
no shit ;-)
at scale, once people are involved, that's when it gets hard.
 
10:18 PM
yeah yeah - I get the conflict example now.
 
hope I could at least clarify some things, happy to answer questions or help out if needed
 
Yes - I understand the problem now thank-you. I am really scared by the apparent massive security hole, that an idiot like me could stumble across. Scary to think what someone could do if they deliberately replaced a project.
Also not being able to fork packages, whilst maintaing 3rd party ability to use either is not feasible long term.
 
yes, it's a problem. :-(
so far it's mostly been a gentlemans agreement, aka "don't be an asshole". but security-wise there needs to be a lot of work done. not only on replaces but also ensuring authenticity of packages in general.
 
k - thanks for the help. I will now go meditate on it.
 
if you want to help out getting it fixed, get on IRC and join #composer-dev in freenode
 
10:22 PM
Is there are much dick-waving on there as in php internals ?
 
no, just get shit done and be happy
 
cool - cheers for the help mate.
 
10:46 PM
@igorw If X depends on Guzzle, then I'd say it's in seriously deep **** regardless of what version of Guzzle it is :]
 
handbags
 
lol
 
@LeviMorrison Other than 'just use curl' do you recommend any alternative to Guzzle?
 
@Danack "Just use curl" . . . are you insane?
The PHP cURL API is garbage.
Last time I checked Guzzle actually depends on it too.
 
yeah - but Guzzle is easier to use....So do you have a recommendation for a library that allows APIs to be built easily without doing low-level stuff?
 
10:51 PM
Indeed, my friend I do have a recommendation.
Disclaimer: I help* with the project.
* A tiny bit.
And it's only in version 0.3.0 but we've already been using it for various things.
 
k - cheers. for the record I like the final result of Guzzle as it does allow an API to be built which is very simple to use, but yeah, it's a lot of code to do not much.
 
woah
@rdlowrey awesome stuff
/cc @LeviMorrison (if you're helping him)
 
11:06 PM
@LeviMorrison meh.
 
@igorw well, they haven't really been applying semver :S
 
@Ocramius those breaks were a fail, yes.
 
11:53 PM
I've found a reproducible segfault in php...
Don't really knwo what to do with it, though, as the situation in which it happens is far from the minimal sample, but I don't even know which of my own code is part of the cause, let alone which phpunit code (well, it's probably the code coverage component, but that's all I know)
 

« first day (985 days earlier)      last day (3979 days later) »