« first day (1038 days earlier)      last day (3900 days later) » 

12:13 AM
@DarylGill Really? "This question has been deleted - no more answers will be accepted."
 
 
1 hour later…
1:50 AM
How can i make this work properly? $hashed_password = crypt($validPassword, '$6$');
 
2:29 AM
@rdlowrey Any luck with the `\n\n` issue?
 
user895378
@LeviMorrison Frustratingly, no. I'm not sure where it's coming from :/
 
user895378
I've resorted to getting as much test coverage as possible in an effort to find the problem.
 
user895378
The bug is definitely living on borrowed time.
 
:) Well it doesn't affect me, so I'm not too worried about it. You'll find it, in time.
 
user895378
Yeah, tests are coming along quite nicely. It's time to really nail down max coverage on the existing stuff anyway.
 
2:36 AM
I've been working on a Semantic Versioning parser and comparison algorithm.
For no real reason, in case you are wondering.
 
user895378
@LeviMorrison Like version_compare()?
 
Yeah, but with semantic versioning (semver.org)
And it's surprisingly difficult to parse and sort. Not impossible but harder than expected.
 
user895378
What functionality is needed that you can't get from version_compare()? (I'm not terribly familiar with the workings of version_compare)
 
It's really straightforward on 1.0.0, it's when you add pre_release and build info like: 1.0.0-rc.1+48e4f51e0b2751ec3bc4a2bde809e46d60eb1d6e
 
user895378
Ah, I didn't think about non-numeric postfixes like rc and alpha and whatnot
 
2:49 AM
Yeah. And allowing alpha numeric and strictly numeric types in the same spot makes things difficult.
There's a section I've called dot separated pre_release identifiers that looks something like this as a regex:
([a-zA-Z0-9-]+|[0-9]+])(?:\.([a-zA-Z0-9-]+|[0-9]+))*
And you treat the alphanumeric and numeric identifiers differently when sorting so you have to distinguish between alphanumeric and numeric at some point (not necessarily parsing stage)
 
user895378
hehe that does sound harder than expected.
 
Also, according to semver, the following version is perfectly legal: 1.0.0--, as is 1.0.0+-
I would have expected more rigid rules there, but at least it makes it easier to parse.
 
3:22 AM
@LeviMorrison Do those suffixes have any meaning, or do you reckon they're just legal for parsing simplicity?
Cause 1.0.0-- sounds alot like 0.9.9 ;-)
 
2 days ago, by Jeremy
I'm creating a game which has multiple "stages." E.g., when the game starts, there are 5 minutes in stage #1. Once those 5 mins end, stage #2 starts. However before stage #2 can begin, a few things need to be done to the DB like count up votes to determine who's to be killed in the game. How should these functions be executed? I don't think letting the first user (who loads the page) running the functions is a good idea. any suggestions? Should something like sockets be used, or something else?
 
user895378
FYI, a DB connection is "something like sockets." And your question is too impossibly vague to get any sort of useful answer :/
 
@rdlowrey Alright, let me type a quick description
 
@Bracketworks To break it down for you: the first - designates the start of the pre-release info, and a single - is a valid pre-release identifier.
 
user895378
Disclaimer: responses should not be misconstrued as a desire to answer all further questions.
 
3:32 AM
@rdlowrey That's fine
 
Similarly the + indicates the start of a build, and a single - is a valid build identifier (I think).
@rdlowrey Oh yeah, I just remembered one somewhat arbitrary restriction on version info: numbers must not be padded with 0's. That makes for a fun parsing time :/
 
@rdlowrey So my game's interface basically has a collection of divs that will be the player cards of users in that game. In one round, users will "vote" on who to kill (these are recorded into a database). At the end of a round (5 minutes), some how the user who got the most votes needs to be updated in the database as killed...
 
user895378
@Jeremy All your problems would be solved by websockets.
 
@rdlowrey Sigh, and that's client side, right?
 
user895378
Literally, all of them. Not just for your game (which could really benefit), but all of your life problems too. When you have websockets you don't even need a girlfriend (as @PeeHaa will tell you).
2
 
3:36 AM
@rdlowrey Haha ^
 
user895378
@Jeremy It's both. You have a websocket server off in space somewhere that sends and receives messages in real time. You wouldn't have to rely on a client to update the DB -- your server-side websocket app would do it automatically and push out updates to all connected parties.
 
user895378
A javascript application on the client-side would be responsible for notifying the server of new votes as well as updating itself based on the information the websocket server broadcasts to all connected parties.
 
@rdlowrey Is the server side with php.net/manual/en/book.sockets.php? Sorry, this is a new technology for me... do you have any great resources that I can read/watch?
 
user895378
@Jeremy Unfortunately it's nothing like that.
 
@rdlowrey Oh, hmff... I guess I'll definitely need some good resources, do you have suggestions?
 
user895378
3:39 AM
Unfortunately from the sound of things a websocket application may be just a bit beyond your pay-grade at this time. Just use the google to read up on what websockets are. It's not something you can "just do" like a normal PHP application.
 
user895378
I don't have anything in particular to recommend, though. Sorry :/
 
@rdlowrey Hmm... so I guess having a domain object called Update, and whoever gets their first updates the database, sounds like a bad idea...
 
user895378
It's just not the sort of problem that's amenable to an Ajax solution IMO.
 
user895378
I've been working on a combination http/websocket server in PHP myself for months and it makes websocket apps about as simple as they can possibly be but it's not ready for public consumption. So I don't really have much to offer in the way of alternatives.
 
@rdlowrey To be honest I haven't even started any front-end. I'm still in the middle of wrapping up the (predictable part of the) model layer in my application, but I need to know how I'll implement this updating action before I move on
So there's no front-end, no controller or view, nothing to stop me from changing how client and server interact.
 
user895378
3:43 AM
Like I said ... if I were you I would learn about websockets. But be warned, any websocket application will necessarily use an event-driven infrastructure on the server-side. You can't just program in a straight-line like you do with PHP web SAPIs. If you want to see an existing implementation have a look at Ratchet.
 
user895378
That implementation will force you to use non-blocking IO for everything, though. Don't say I didn't warn you.
 
@rdlowrey Alright, thanks for your help.
Yeah, I'll look around and see what I can do.
 
3:59 AM
Okay, I think a valid regex for semantic versioning is:
private $regex = "/
    (?P<major>0|([1-9][0-9])*)
    \.
    (?P<minor>0|([1-9][0-9])*)
    \.
    (?P<patch>0|([1-9][0-9])*)
    (?:
        \-
        (?P<pre_release>([a-zA-Z1-9-][a-zA-Z0-9-]*)|(0|([1-9][0-9]*))(?:\.([a-zA-Z1-9-][a-zA-Z0-9-]*)|(0|([1-9][0-9]*)))*)
    )?
    (?:
        \+
        (?P<build>[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*)
    )?
/x";
It's not too bad compared to some kinds of parsing, but it's a lot hairier than you would have guessed.
 
That is a big ugly regex
 
And I'm not sure it's correct yet either, but I think it is.
 
What does (?: do
 
It's a non-capturing sub-pattern.
 
okay... that's good one to know
 
user652649
4:15 AM
morning
 
And I have matched false positives in my expression. Oh joy. I've found a few errors since I posted but have a few more it seems.
 
4:44 AM
if the minimum number of possible rounds on crypt() is 1000 then why would my system be outputting results with only 50 rounds? Output: $6$rounds=50$ob0t0FFYzA4Az0FlWjjOaXzflUuCfQn8qKrA75JRgoiElmy35zLVF7u4558SxPXoNWS‌​aUmLDKxPYDtpvuWIWs1
 
5:07 AM
morning ...
 
Okay, this regex passes all the tests I can think of for bad and good inputs:
private $regex = "/^
    (?P<major>0|(?:[1-9][0-9]*))
    \.
    (?P<minor>0|(?:[1-9][0-9]*))
    \.
    (?P<patch>0|(?:[1-9][0-9]*))
    (?:
        \-
        (?P<pre_release>
            (?:(?:0|(?:[1-9][0-9]*))|(?:[a-zA-Z1-9-][a-zA-Z0-9-]*))
            (?:
                \.
                (?:(?:0|(?:[1-9][0-9]*))|(?:[a-zA-Z1-9-][a-zA-Z0-9-]*))
            )*
        )
    )?
    (?:
        \+
        (?P<build>
            [0-9a-zA-Z-]+
            (?:\.[a-zA-Z0-9-]+)*
        )
    )?
\$/x";
 
5:24 AM
@LeviMorrison what is that doing exactly ?
 
@JoeWatkins It's parsing a version number according to SemVer.
 
Does anyone know how to SSH change a users permissions to I dont need to chown all the permissions from root user everytime..
 
just for giggles, is there no other way to parse/validate version numbers ... it might work, but it seems complex, to compile regex caches and what not in order to match a version number seems ever so slightly over the top, especially when the regex is complex and will be matched against a few characters
 
1
Q: Correctly using crypt() with SHA512 in PHP

ShadowZzzAll the examples online show the use of crypt like this: $pass = crypt('something','$6$rounds=5000$anexamplestringforsalt$'); But everyone says that you are not supposed to define the rounds or the salt. So how should I use it? Also I am having a problem: when I run the code above, it only r...

 
@Tredged are you logged in as root and modifying the system ?
 
5:28 AM
@JoeWatkins Yes ... but I SFTP also in root and my (netlive domain) can't change or move the files since they are made by root.
and I just want it to have enough permissions so I dont need to change it every time.
 
don't modify your system as root
 
ok but why can't I chown the files
when doing chown -R netlive folder/
the owner file name changes to 504 ..
 
chown user:user -R /path will change owner and group but you would be MUCH better to login as the correct user in the first instance, it is dangerous in so many ways to login as root, even worse login as root remotely, there is no good/correct way to do as you ask ...
 
@JoeWatkins The files still change to 504.
 
you see what I mean, use user:user to change owner and group at the same time ...
 
5:32 AM
I did, and both change to 504
UID 504 and GID 505 @JoeWatkins
 
is that undesirable ?? ( I dunno who 504/5 are without looking at /etc/group and /etc/passwd) ...
permissions up a level are likely no compatible with what you want to do if chown fails to reap desired result ...
the easiest way of avoiding this is not to login as root to change a users files, or for any reason really ...
 
@JoeWatkins I understand, but for now I do have to reset the permissions for those files.
 
checked upper levels from the path you want to correct ?
if you are wanting to change /var/www/myuser/htdocs check /var/www/myuser and /var/www and /var for ex.
 
@JoeWatkins Changing the permissions to my other user (tredgynl) works but (netlive) doesnt so probably there would be something wrong with netlive
@JoeWatkins althou when chwoning netlive doesnt say the user doesnt exists lol
when trying to reset the permissions i get cannot be traversed due to non user or apache ownership (uid or gid) @JoeWatkins
 
6:14 AM
Hey all
 
@JoeWatkins Oh, using Regex's is not the only way, but what do you propose?
You have to keep in mind sort cases like:
1.0.0-alpha vs 1.0.0
1.0.0-alpha vs 1.0.0-alpha.1
1.0.0-alpha.1 vs 1.0.0-alpha.beta
 
@LeviMorrison .* lol
 
@HamZa That's not valid SemVer, not even close.
Yours would allow 1.0.0wtf"()as!^as which is not a version string . . .
 
> (?i)\d+(?:[.]\d+)*(?:-(?:alpha|beta|teta))?(?:[.](?:alpha|beta|teta))?(?:[.]\d+)*
@LeviMorrison regex101.com/r/bL3xL5 // cc @JoeWatkins
 
@HamZa You don't include build numbers: 1.0.0+48e4f51e0b2751ec3bc4a2bde809e46d60eb1d6e
Nor do you include RC releases: 1.0.0-rc.1
 
6:28 AM
You didn't specify it and I'm not familiar with that :)
Anyways, if you guys need help with regex you can ping me
But you need to write every single "expected" case
 
Oh, I have quite a list:
'0.0.0'
'1.0.0'
'1.0.0--'
'1.0.0-alpha'
'1.0.0-beta'
'1.0.0-10'
'1.0.0-alpha.beta'
'1.0.0-alpha.beta.gamma'
'1.0.0-beta.12'
'1.0.0-rc'
'1.0.0-rc.1'
'1.0.0-rc.12'
'1.0.0+a'
'1.0.0+abc'
'1.0.0+abc.01'
'1.0.0-alpha+abc'
There's plenty more as well, but that's a decent start for what is accepted.
I have an even bigger list of things that should not be accepted.
 
ok ... I will think about it later as I need to go
For when do you need it ?
 
I'm pretty sure I already have it worked out: chat.stackoverflow.com/transcript/message/11312436#11312436
 
@LeviMorrison haha so no need for my help :)
 
Good morning.
 
6:33 AM
@Duikboot hello there
 
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib');

include('Net/SSH2.php');
$ssh = new Net_SSH2('xxxxxxxxx');
if (!$ssh->login('xxxxx, 'xxxxx')) {
exit('Login Failed');
}
$ssh->exec('mysql -u xxxx -h localhost -pxxxxxxx');
?>
When i use this "mysql -u xxxx -h localhost -pxxxxxxx" command with console it's working perfect but when i used it with php my script file is loading ,loading...................? why ?
 
7:01 AM
good morning
 
Computer skills:
o Excellent debugging and testing skills
o Extensive experience with major procedural programming languages such as PHP, JAVA or 'C'
o Good experience in Object Oriented Methodologies
o Experience in Internet protocols, TCP/IP, HTTP, FTP, SSL, SMTP etc.
who writes job offers like this?
what I read: everything is bugged, we have no clue about the technology we use, you'll double as the sysadmin
 
right, because Java is procedural :), in any case, you should take the offer, sounds pretty good!
 
7:18 AM
@HamZa I spotted your +100 bounty :)
Java is major procedural ;-)
 
^ doesn't a foreach still count as a forloop? :P
 
@DaveChen Yeah, so?
Doesn't asort() count as a forloop either?
 
everything is a loop, right? as long as it runs the same statement twice or more?
 
no, as long as it's inside a loop construct.
writing a statement two times doesn't make it a loop :)
in fact, that's an unwound loop.
The bottom line is that OP is asking to optimize the lower part of the code, but my argument is that the top part should be optimized instead :)
 
fair enough, +1, hope you get the bounty
 
7:26 AM
Mornings
 
That would be nice, but the exercise itself was more fun :)
hola!
 
@Gordon Why is C in quotes? It's almost as if they don't believe it's a language...
I love how according to them Java is a procedural language as well
 
@DaveRandom yeah. That's the only thing they got right ;)
 
@Gordon If it's a QA job for programs that interact over the network then that looks like a pretty good requirements list. Otherwise I agree with you.
 
7:32 AM
@DaveRandom I see a lot of procedural Java, honestly. And they may have put C in quotes to distinguish it from C++.
Realistically I'm giving them way too much benefit of doubt >.<
 
hi
I have to install an extension on my webserver
 
I like the term "major programming language" though :)
 
Do you know where to install it?
I have to add that one
to my webserver
 
@PeeHaa/@Gordon/anyone else with karma on docs, please can you merge my patch? Now that it 5.5.2 is released it's actually missing from the docs
@LeviMorrison Yeh but if they are the kind of people who write procedural Java...
 
Morning
 
8:07 AM
Morning
 
@salathe Thanks :-)
 
@DaveRandom Thank you! :)
 
Good morning
 
@igorw Say I'm releasing 1.0.0-alpha.1 of my code. Is that a valid version number for composer? It's a valid semantic version, so I thought I'd ask.
I cannot to find a documentation page that defines a valid version number.
 
8:25 AM
helllo
by the way how to return value from sql ?
function GetContentDetail($ContentID , $mysqli){
if ($stmt = $mysqli->prepare("SELECT contentname, contenttitle, contenttext, contentmedia,contenttype , inputdate , category FROM content WHERE ContentID = ? LIMIT 1")) {
$stmt->bind_param('i', $ContentID); // Bind "$category" to parameter.
$stmt->execute(); // Execute the prepared query.
$stmt->store_result();
$stmt->bind_result($contentname, $contenttitle, $contenttext, $contentmedia, $contenttype, $inputdate, $category); // get variables from result.
is it true :
if($stmt->num_rows == 1) { // If the content exists

return $contentname, $contenttitle, $contenttext, $contentmedia, $contenttype, $inputdate, $category

}
? thks
 
Pastebin is not a crime.
 
Ugh, sometimes I wonder what the 'i' stands for in mysqli, definitely not an improvement if you'd ask me =p
 
@SabilValdano You can't return multiple values like this, they have to go in an array.
Also, ctrl-k or pastebin
That wall of text is sad.
 
morning
 
@Jack mysqli is an improvement if you don't write it in a fugly manner.
 
8:28 AM
@SweetieBelle ah ya, forgot to use pastebin
@SweetieBelle maybe like this one ? stackoverflow.com/questions/3451906/… array on php?
 
@SabilValdano return array($oneVariable, $anotherVariable);
You can specify keys too if that helps
 
Morning
 
@SweetieBelle I prefer returning result objects. You maintain intellisense and refactoring is not nightmare of searching/replacing strings.
 
return array(
    'name'   => $name,
    'age'    => $age,
    'height' => $height,
    'weight' => $weight
);
 
8:32 AM
Damnit, had the metal version of Jurassic Park in my head all the way to work this morning
 
@Leri I normally just return like this.
 
@SweetieBelle I'd definitely be using a class for that and returning an instance.
 
@SweetieBelle ahhh got it ! thank you , btw so if i want to call it on the UI , just use list($x,$y,$z) = anotherfunction(); ?
 
@LeviMorrison Moar classes? :(
 
8:33 AM
When it has a well defined structure, definitely.
 
@SweetieBelle What's wrong with moar classes?
 
@Leri I don't necessarily want 44 classes representing users (or classes with half the attributes not defined representing users, as they will break class integrity).
 
Leri !== Levi .. but it gets confusing sometimes ;-)
 
Quite often we only want to return a subset of data
@Jack I know, that was directed to Leri.
 
Too many similarities ;-)
 
8:36 AM
If they set the same avatar I'd be confused. :P
 
any recomendation how about save image , better save its directory or save as mediumblob ?
 
If you have 44 classes representing users you're doing it wrong :)
 
@SweetieBelle When you don't know structure, yes, returning array is better but that should not be a case for users.
 
@Jack What if you want to be able to implement ACLs so different departments can only access certain parts of the user record?
 
@SabilValdano Most people will save it on file system and store the reference.
 
8:38 AM
I usually use Directory than using blob type , but since I met my friend he said better use blob..
 
@Jack I have a User class, but I don't want to pass an entire User object if all I need is a last4.
 
@NikiC You're still alive, hooray
 
@jack I See, I only use blob when i was high school , but surprised yesterday my friend said that better use blob
 
@Jack or a last4, surname, dob and 2 digits of a passphrase.
 
@SweetieBelle You need to have separate class for that and map it with user object. Anyway, this is how I'd do it.
 
8:40 AM
@SabilValdano It has some advantages to store in a database.
 
@Leri Yes, that would result in 40+ User classes. :P
 
@SweetieBelle Since when line of code and number of defined classes is a problem (if architecture is correct, of course)?
 
@SweetieBelle Then you separate that data I guess; still only one User though.
 
only good reason for using blobs is when you use it in conjunction with contraints/collapse.. rather convenient to ie. delete a user row from the database and knowing it's profile (including profile avatar thingie) will also be removed. Without having to code anything seperate for that..
 
hummm i have statments on getting data from sql, if it's exist so it'll return array and if not it'll return false, so in ui is it okay , to make statement --- if getcontent($cid, $mysqli) == false return error msg else give me an array list to show>?
 
8:45 AM
Morning
 
Damn im getting sick
 
@DamienOvereem humm I See
 
Just arrived at work but got cold and warm at the same time and sweating a lot in my chemise : /sucks
please no flu, please no flu,
 
That's probably the flu:)
 
8:46 AM
If you had a real flu, you wouldn't come out of bed.
 
That means you get to call your boss and take a week off to play some mmo while lying in bed ;p
 
@SweetieBelle We got that iframe scraping thing sorted. A guy on elance did it.
 
@Jack That's man-flu.
 
@Jimbo As opposed to animal-flu?
 
> Man flu is a pejoratively used phrase that refers to the idea that men, when they have a cold, exaggerate and claim they have the flu. Whilst a commonly used phrase in the UK, it is referred to in other cultures[1] and there is a continuing discussion over the scientific basis for the phrase.
 
8:49 AM
@salathe yw :-) Also news.php.net/php.doc/969384585 (apologies for stupid whitespace, I only have Gmail access here). Also on the DOE the patch is still showing up with no content (i.e. no files shown under it) - should I just delete it or will is sort itself out?
 
@Leri They define a problem when they don't improve maintainability.
 
@Jimbo Lol, that's the first time I've heard of the term
 
@Jack Ohhhh, it's a British thing I think :P
 
My doctor stated that what most people refer to as the flu here is just the common cold ;-)
 
@DaveRandom You suck.
 
8:52 AM
@Jimbo I don't know about man-flu, but I do know that I rarely even get a cold, but when one gets past my immune system it's usually a bad-ass one that knocks me off my feet.
 
You need to say that you like kittens, god dammit!
 
@DaveRandom Yeah same, I rarely get anything but when I get something it's the plague.
 
When you have a flu, you sweat it out.
 
@DaveRandom I'm exactly the same - if I'm lucky, it's a one-day flu
 
@SweetieBelle When correctly implementing OOP in web apps don't improve maintainability, either you're doing it wrong or project is messed up. :)
 
I feel Im swaeting it out
i feel disgusted about myself.
 
@Leri The project isn't a web app, PHP/web is just one front-end into it
 
Damnit - hit my limit today
 
posted on August 18, 2013 by Benjamin Eberlei

Speedup Symfony2 on Vagrant boxes Using Symfony2 inside a Vagrant box is considered to be very slow (here, here), even when using NFS. I can confirm the experience and know many others that reported the same. Without looking at an actual benchmark (mistake!) I always considered the problem to be related to the huge number of files that a Symfony project normally ships with and the I/O that i

 
@Leri It's primarily a C++/OracleDB project
 
8:57 AM
@webarto Better?
Damn it GMail stop adding line breaks where I didn't put them!
 
@DaveRandom You're in! :D
 
@SweetieBelle Yeah, that's something what I meant in messed up project.
 
@DaveRandom help a brother out with XML ... (string) $point->attributes()->lat, is this the proper way to get string?
 
@webarto Is that .... simple xml?
 
Not so Simple XML, yes.
 
9:01 AM
(string)$point['lat']
Eat that, DOMDocument! :)
 
    <trkpt lat="48.222044" lon="14.303972">
        <ele>269.31</ele>
        <time>2013-08-11T13:34:37Z</time>
        <extensions>
            <gpxtpx:TrackPointExtension>
                <gpxtpx:speed>19.22</gpxtpx:speed>
                <gpxtpx:course>33.88</gpxtpx:course>
            </gpxtpx:TrackPointExtension>
        </extensions>
    </trkpt>
wat
 
@DaveRandom for your disable_compression doc patch, the note is out of place on that page... can you make it a Changelog entry? :)
 
@Leri Most real world projects aren't ideal. Refactoring 12MLOC probably isn't an option at this stage. :P
 
That's not a project, that's a monster!
 
When I hear something like that I, in fact, hear bullshit :P
 
9:05 AM
@SweetieBelle I'd call it set of projects. But I think it's always possible to somehow separate/encapsulate your code from other parts. Well, it's just me.
 
@salathe Ahh OK no worries, I was following the format from the LibXML constants page. Should I note the required OpenSSL version in the body of the changelog entry?
@webarto DOM ftw. Also what @Jack said.
 
@DaveRandom Yeah, this is crap, so "how to use DOM" ?
DOMDocument::loadXML, doh.
/me f* hates touchpad
 
@DaveRandom Can an end-user have PHP >= 5.4.13 with OpenSSL < 1.0.0?
 
@webarto It's a lot more verbose, if you're just reading and SimpleXML is serving your purposes maybe don't bother
 
$xml = simplexml_load_file('Current.gpx');
$xml->registerXPathNamespace('g', 'http://www.topografix.com/GPX/1/1');

$tracks = $xml->xpath('/g:gpx/g:trk');

$points = [];

foreach ($tracks as $key => $track)
{
  $track->registerXPathNamespace('g', 'http://www.topografix.com/GPX/1/1');
  $name = (string) $track->name;
  foreach ($track->xpath('g:trkseg/g:trkpt') as $key => $point)
  {
    $ns = $point->getNamespaces(true);
    $extensions = $point->extensions->children($ns['gpxtpx']);

    $points[$name][] = [
^ big ass paste
 
9:08 AM
@Leri I dont work on the PHP project, I'm on core (C++/Oracle).
 
@salathe Checking the bundled version now. Although you can build it with any version you like so... I don't know, are the docs usually based on the bundled versions? Seems like there should a note for the lego fans...
 
@DaveRandom I think the OpenSSL version should be there... "belt and braces" :)
 
@webarto so .. what's wrong with that?
 
@Jack Nothing, just checking if I'm doinitrite. Thanks.
 
@webarto Yeah, so, attributes in SimpleXML can be done using array deref :)
 
9:13 AM
@SweetieBelle I see. Well, I have not touched C++ for a while and I hardly remember it, so can't be sure how well it's possible to encapsulate your code from other parts. I still think that what I said (about isolating your code) is general for programming. The question is: does it worth or not? In your case, the answer is definitely negative. ;)
 
@Jack ['@attributes]['lat']` :) Yeah, since I had namespaces and shit, decided to go "OOP". Thanks!
 
Wud? No, just ['lat'] :)
 
@webarto Maybe you want to take a look at this?
 
@Jack I suck.
 
posted on August 19, 2013 by Qafoo - PHP

The topic of Test Driven Development (TDD) and unit-testing usually creates heated discussions among developers. We at Qafoo are not an exception and the topic how to apply TDD in our daily work regularly leads to heated discussions. One reason for this is that both TDD and unit-testing combined are by some people seen dogmatically as the only way to do software development.

 
9:17 AM
@Leri Our code contains the API for all of the other code. If we changed how we output data, we would have to refactor every application that connects to our main API which includes the PHP web frontend.
 
@Leri Looks good but might be an overkill, this is just for personal use (getting GPX file from Garmin and plotting into Google Maps). Thanks!
 
hi , need advice , is it correct or ... pastebin.com/7ZKv8qWg
 
@SabilValdano Does it run without errors and produce desired results?
 
@salathe Fixed. It seems there is no bundled OpenSSL anyway, so it definitely needs to be there as it's dependent on the user's system.
 
@SweetieBelle for me it's the first time to code like that in PHP , and the result is the data is not updated , but don't see the params on the paste bin, I already remove some of them to make it public :)
$insert_stmt->execute(); is it final statment on insert / update ? if its fired so it suppose to update the data?
 
9:21 AM
@webarto You're welcome.
 
I Need something like visual studio to debug PHP code :(
 
phpStorm / Zend Studio can do that too
 
cause I already left PHP for decade because of asp :(
@Jack Look up on the internet and ever ask here before about it , I like to try Zend but it's totally free or ? want to do it with Net Bean but the configuration take some time :(
@Jack sorry I mean PhpStorm
 
Free shmee ... I don't mind paying for something that helps me :)
 
9:28 AM
@Jack Yes! If I make good software I expect to get payed for it, same goes for them I recon.
 
@Jack @dragon112 Agree with both of you :)
 
Crap, it's 3:30am here. I need to go to bed. Good night, room 11.
 
@Jack Agree 100%.
 
so PHP storm is the answer if i want something like VS ?
 
@SabilValdano Actually, Xdebug is the answer.
 
9:38 AM
@Leri humm still confuse about use only Xdebug maybe I'll lookup more refrence about them :)
 
@SabilValdano VS does lot's of things. Exactly, what do you want?
 
@SabilValdano There are PHP extensions for VS
 
@Leri just simple debugging and tracing error, cause right now I Code PHP on notepad ++ and use Xampp and Chrome debugger for JS things
 
@SabilValdano You can evaluate PHPStorm for 30 days for free
 
@SweetieBelle huuum just heard about that , I'll lookup for them :)
@Leigh yup just download them, i'll try to use it first
 
9:41 AM
@SweetieBelle I hate VS for PHP development.
 
@dragon112 Who does not?
Anyway, VS 13 looks promising.
 
NetBeans is good enough
 
@dragon112 hahah same here, ever try debug web with Extjs and it very very hurts
 
Meh I'm not looking at VS for PHP development. I'll use it for C# though
 
Hi everyone, is there a tool to test the performance of programming logic in PHP ? e.g. which functions use most time. I always use microtime() to mark the timings .
 
9:42 AM
@dragon112 Me too, I hate VS period but if someone's ingrained in using it...
 
@DaveRandom Did you get my elephpant e-mail?
 
I always use Notepad for PHP development :)
 
@iroegbu I don't use NetBeans even for java development..
 
I use Komodo IDE for PHP
 
@SweetieBelle I don't dislike it for C# development, but that's the only reason I have it installed
 
9:43 AM
@iroegbu hummm, I Want to use them before
 
@dragon112 I don't use C#
 
@Leri I think NetBeans is good enough for PHP, I don't do Java much.
 
@SweetieBelle VC++ is good as well.
 
@SweetieBelle seems good but too xpensive for side project :p
 
@Jimbo Yeh did I not reply? Sorry, your request is noted. Basically as soon as I have 30-40 homes for them I'm going to send out a mail just confirming it and then push the big red metaphorical button
 
9:48 AM
@iroegbu It's way too heavy (at least, from my personal experience).
 
You probably have very small RAM :p but I do agree with you
 
@DaveRandom Nope no reply, no worries - here's a big red button for you
2
 
ever use net bean for java dev , but found eclipse much better from them :)
 
I use emacs for Java development :P
 
I mostly use substance abuse
 
9:53 AM
okay let's go home!
thanks for your recomendation :)
 
@DaveRandom How many homes do you have for them?
 
@salathe 15 so far
 
it's time for Cubicle Party
 
@SabilValdano I'm not in a cubicle, Have lots and lots of space
 
@DaveRandom If I want 20, can you press that big red button? :)
 

« first day (1038 days earlier)      last day (3900 days later) »