« first day (1040 days earlier)      last day (3907 days later) » 

7:01 AM
How the hell are we supposed to pronounce phamlp?
 
Sem
@tereško See? I knew you would love it :D
 
Lmao ..
 
compass has a pretty cool tool for generating sprite images and the associated css classes...
 
: Phlegm (; "inflammation, humour caused by heat") is a liquid secreted by the mucous membranes of mammalians. Its definition is limited to the mucus produced by the respiratory system, excluding that from the nasal passages, and particularly that which is expelled by coughing (sputum). Phlegm is in essence a water-based gel consisting of glycoproteins, immunoglobulins, lipids and other substances. Its composition varies depending on climate, genetics, and state of the immune system. Its color can vary from transparent to pale or dark yellow and green, from light to dark brown, and even to...
 
Okay, that's just gross.
 
Sem
7:02 AM
Why man, why
 
you wanted to know how to pronounce it =P
 
is there anyway to configure a ssh tunnel in windows xp to remote server and the ubuntu server to remote server @tereško and it should be activate when windows start and the ubuntu server start
 
Well I'm out...
 
They should call it phlamp then :)
 
7:04 AM
@Orangepill I first saw this in highschool
it was LONG time ago
@ఠ_ఠ you could write a service which performs such operation
 
Does anybody have a other opinion helpwise about my question: I'm calculating some things with value's from a query, and use strtotime() in a variable for this monday's date. How would I on a mouse click update the variable to another one ?
 
@Tredged are you aware that variables in PHP live only as long as the execution of the application ?
by the time when you see anything, that you can click with a mouse, the application is already finished
 
@tereško I do, but how else would I be able to switch ? thats what I am asking. I need to know the best way ..
 
Don't ask for the best way if we can't figure out any way.
 
@Jack If you said that I'd knew, but that doesn't mean I can't ask, does it?
 
7:11 AM
@tereško tunnel is ok now
in ubuntu
but i need to configure it in windows too
 
putty might be of some help.
 
i'm doing it using php script
 
using this I assume
 
7:26 AM
/me waits to see if sqlite3 will suffer the same fate as json because of stupid clauses in headers ...
 
Good morning.
 
@JoeWatkins what do you mean? json has clauses in headers?
 
Hello guys
good morning
 
This software shall be used for good, not evil ... that's the reason that ext/json has been removed by debian/fedora (probably others)
sqlite3 has similar stupid clauses ... lxr.php.net/xref/PHP_5_5/README.REDIST.BINS#100
stupider actually ...
 
Because Debian is ... evil?
 
@JoeWatkins ah I see. Well, so now NSA can say who is allowed to use sqlite then I guess. Because only they know who is good and who is evil and you can't question them because how they decide is secret. Yeah, nice if the software is written in the US.
 
@hakre That's not true, Santa knows as well.
 
@JoeWatkins Well, there is absent of copyright: "The author disclaims copyright to this source code."
 
evil is subjective.
 
Probably everyone knows that youtube I just posted. I never saw it before.
 
7:32 AM
Also in case that does not work (due to higher copyright or moral rights), there is the intention from the author written with *"May"*s which is not binding.
 
disclaims copyright should the following requirements be met is how it reads to me ..
 
that afterwards. In the absence of license part. I don't read that "May" is binding at all.
 
does nobody else think it a bid odd that the people who work for the legal system cannot define good or evil ...
 
mornin chaps
 
Especially as the base "evil" / "good" and what "you" take/give is highly subjective.
But you are right that such sentences are hard to deal with for legal personell.
 
7:34 AM
morning
 
@jack you know he gave ibm and its customers permission to do evil with json right
 
@JoeWatkins: But now as you say it, how is that license compatible with the PHP license?
 
Anyone please help in javascript,
I have hidden field, on change i have to call my own function, like below,
<input type="hidden" value="" name="userid" id="useid" onchange="js_func()" />
but it's not working. And hidden field is changed by a framework, i can't change that code. Also boss don't like setInterval and an such way to trigger event
 
morning @mralien
 
And as that are no licensing terms, why does the PHP project take those sentences over and make them part of their terms?
 
7:35 AM
@web2students.com it will not work since events are triggered only by user actions
 
you have to call your code separately in this case
 
I'm using regEx to parse the job postings from two sites in this format jobsearch.abcd.com/php-jobs and I've successfully retrieved the results. All i want to know is if i make this as an app, sending automated requests is allowed or I face any possible problems in the run?
 
@JoeWatkins: This should be put there perhaps instead: sqlite.org/copyright.html
 
how @AlmaDoMundo?
 
7:37 AM
what do you mean - how? just call your event handler code - and that's it
 
I mean how to call onchange?
 
you are expected to call your event handler code, not 'call an event'
 
If I got a query and select for example price from that query and its in a loop, how would I count that value up and then display it?
 
@hakre copyright.html is much clearer, but it seems to matter what's in headers that we've been using for years ...
 
@Tredged I guess += will do the stuff :p
 
7:39 AM
@AlmaDoMundo That what I tought but for some reason, the output value isnt what its supossed to be ..
 
then you need some debug magic
first spell is var_dump
 
@tredged then you are doing something wrong...
 
I var_dumped the += variable and got (float) but it doesnt count the way UP it should do. and I dumped without += and then it says string(value) but those values are correct. @Orangepill @AlmaDoMundo
 
@Orangepill php.net/manual/en/book.ssh2.php i'm using phpseclibrary
it's faster
 
Pff.. 70.6k questions Close Votes only 2 days ago it hit 70k.. already at 70.6k now ..
 
7:42 AM
@JoeWatkins can you bring that up to somebody who is willing and has power to decide on that and who is willing to improve the situation?
I don't know who takes care for that in the PHP group.
 
nobody in the php group cares, its package maintainers that care ...
 
@JoeWatkins well that file you linked is in trunk not inside the extension package. - oh you mean the package managers from downstream distributors.
 
How can I receive ALL the projects from a client? pastie.org/private/4ip0z24rldlhpp6fcra
I have multiple tables with the client_id and the project id. but I want to receive all the data from a specific client ( so all projects under that client )
 
yeah ... no one at php cares, we haven't removed ext/json lxr.php.net/xref/PHP_5_5/ext/json/utf8_decode.c#18
 
I have trouble believing that a php implementation of ssh is faster then compiled plugin.
extention rather
 
7:47 AM
I've heard such words muttered before. @Orangepill ... not sure if that's really true.
 
Good moaning.
 
@jack didn't say it wasn't the case... just hard the believe. If it is the case the extention is poorly implemented.
 
MYSQL Question:
mysqldump -ppass -u root user> dbname.sql
 
Morning
 
hi, @Leri
 
7:51 AM
where will be located dbname.sql file ?
 
@Orangepill Ah, well, transfers go via the streams layer .. perhaps that's messing up a few things?
 
0
A: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: ".P"

LeriThe answer provided by Mark Byers will work just fine if there're only % chars that need to be escaped but will fail if url contains percent-encoded chars. To avoid this there's a little bit more work needed. In percent-encoding (url-encoding) only reserved and unreserved chars won't be percent-...

 
hello guys
0
Q: unique validation is not working in Update case in YII?

Amit SinglaI have applied unique validation for Employee Code. it is working fine for Add Emp case. But i am not getting why it is not working in case of Update, here is the code i have used for this: My rule method is : public function rules() { return array( array('is_active', 'numerical', ...

 
Holy ASCII art!
 
please help me
 
7:52 AM
@Jack - where
 
@AlmaDoMundo In my answer.
 
@jack is the streams interface known to be overly crippling to performance?
@davechen he likes latex... kinda kinky....
 
@Orangepill Not to the extent of crippling, not to my knowledge anyway.
 
7:57 AM
Mornings
 
morning
 
@Orangepill That said, I've seen the opposite too :)
 
@Leri That's a pretty nice (if slightly pointless) tool. I love simple-but-effective stuff like that
 
@OrangePill better then 1 question and 5 gold medals, 200 silvers etc ;p
just because they became a member in 2008 and asked the first dumb question
Ohh.. he's the guy with all the visual-studio "super" tags in ran into in the edit queue
 
@DaveRandom I find it more fun implementing such stuff. Actually, that tool has no use but sites like SO.
 
8:02 AM
@Leri Indeed, here's my contribution to the pointless prettification pool
 
I remember WordPerfect had a feature that allows you to draw double and single piped tables by moving the cursor. I thought that was pretty cool :)
 
@jack compiled code has every performance advantage... if it cant out perform a pure php implementation either it supports edge cases that the php implementation does not or its a shitty port (not that i could do better)
 
@Jack WordPerfect rocked in general. At the time it was way better than Word
 
@DaveRandom Not that pointless when you have nothing for development but your phone. Bookmarking, thanks. ;)
 
Although I'm pretty sure I had Works when I had WordPerfect
 
8:04 AM
@DaveRandom Not to mention the serene blue screen and blinking cursor when you start it :)
 
as I recall WordPerfect is an ancient artifact
 
It was pretty awesome :)
 
Who made wordperfect? Was it Corel?
 
I believe it was Corel, yes.
Or, how we would say in Dutch, Korrel (grain)
 
and Latus123
 
8:06 AM
yes, there was popular Lotus
 
Rum + 3am + Tablet = typos
 
How awesome is that? ^^
 
I did not know about its existence. E_TOO_YOUNG :s
 
Holy crap, it still exists
Corel still exists, who knew
 
8:08 AM
@jack makes me want to yahoo something with lynx
 
@Leri there's a common phrase "I can not respect those, who're younger than Windows" :p kind of humor, of cause
 
I'm even installing a 30 day free trial. I'm always prepared to try anything to part company with MSO.
 
@Orangepill little orange tablet?.. :)
 
WordPerfect is also still around, last stable release 15 months ago.
 
@jack is it still text based?
 
8:11 AM
@AlmaDoMundo heh.
 
@Jack That's what I'm installing :-P
 
@Orangepill Ehm, the DOS version is :)
 
it existed even before DOS, however..
those were dark times.. when there was no OS itself as a platform :p
 
5.1 for DOS was the most popular though.
 
and all programs have to deal with hardware themselves :p
 
Can someone help me out
I have to receive all the project data from a client : i42.tinypic.com/23j1iqv.png
so all projects data in a row that matches that client iD
 
I can't forget the massive amount of function key shortcuts WP shipped with ;-)
 
i have a file in home folder (test.sql) (UBUNTU)and i send it via ssh
ssh2_scp_send($connection, '/test.sql', '/public_html', 0644);
is this right ?
 
I think it requires the target file, not folder.
 
Given the constraints they had i think that has to be one of the best designed and implemented pieces or software..like ever... except for maybe Doom
 
8:15 AM
mornrinrirning
 
Totally :)
 
@ఠ_ఠ Have you tried it? Did it work? Did you get any errors?
 
Doom was cool simply because they didn't use floating point calculus ;-)
 
Morning
 
8:16 AM
1 message moved to bin
 
also, wtf am I on, it's not Friday
 
You wish
I also wish
 
i have tried .i'm using phpseclib but i don't know how to send a file via phpseclib .so i'm using that php extension @DaveRandom
 
@jack they squeaked every bit of performance they could get out of a 486 66
 
SELECT * FROM `com_projects` WHERE `client_id`=?

what do you mean by `project data`?
 
8:17 AM
i want to send local generate sql file to the remote host via SSH
@Jack @DaveRandom
 
@Orangepill Yeah, I remember playing it on a 486 as well :) IPX/SPX driver loaded in highmem and connected to our BNC network lol.
 
God i hated bnc cable.... when i entered the industry i had to deal with a health mixture of thin-net and utp....
 
yeah currently I had that but it has to go in every table like:
There is 1 CLIENT and a client has for example 5 PROJECTS.
I want to have the ability to receive all the data from all tables with that project_id.

Like
client[0]
project[0] {all the data }
project[1] {all the data }
project[2] {all the data }
 
connectors not cable
 
@Orangepill BNC networks were are very good for sniffing packets though.
 
8:21 AM
@ఠ_ఠ What happens when you try the code you showed?
 
nothing
 
@jack i was nowhere near that advanced then
 
Those were my uni days :)
 
@Duikboot so what is... {all the data}? if you mean the data from com_file_upload, com_variable_data, etc, you can JOIN the tables together ON where project_id = id
 
I'll try that.
 
8:23 AM
This will become my favorite feature. I hope it will be implemented.
 
@ఠ_ఠ Then you may need to turn error reporting on, I've never used that extension but if something fails there is always an error code/message you can get, either through PHP errors or by some function in the extension
@Leri Status: Declined, Vote Failed
It's a real shame, a couple of regulars here put a lot of work in to it as well
 
@DaveRandom Yeah, really pity. Curious why some folks in php team don't want to improve language. This feature would not break older scripts and would be syntactic sugar. Also would reduce bad use of magic methods.
 
@Leri they'd better to fix some glitches in design, I think..
 
@leri im not in love with that particular syntax but i think php would be well served to formalize language level syntax for accessors and mutators beyond the magic get and set.
 
Wow this is something new. I just had to fix a hacked site which wasn't a WP site!
 
user652649
 
user652649
morning all
 
@Orangepill I am pretty sure __get and __set was one of the main reasons of declining this request.
 
Anonymous
Guys I am getting this error Uncaught ReferenceError: $ is not defined after running this script jsfiddle.net/spliter/M2GzK
 
Anonymous
in my pc
 
__get and __set can still be a fallback..
 
Anonymous
8:35 AM
I added the javascript files, but I didn't add anything in it
 
@Orangepill To be more exact, they are. But... I simply hate them.
 
by the way, just curiosity - is it possible somehow to create static property in class? (i.e. it was not declared before). I'm aware of runkit_* functions, but is it possible to do that without this library?
 
@Leri FWIW, that proposal was received quite well. It was mainly declined because the design of the implementation had problems
 
@AlmaDoMundo why would you want a static property anyway?
 
Anonymous
8:38 AM
No worries, I got it.
 
also on my wishlist would be __toWhatever being called when i try to typecast to (Whatever) ... and native support for populating the post array with a application/json typed post.
 
@PeeHaa I didn't know you were working with Rails
 
@Gordon normally, for singleton creation
 
@Gordon Thanks for information. Did not know that adding syntax was actually that hard.
 
@AlmaDoMundo why would you need a Singleton anyway?
 
8:39 AM
@Gordon in some cases, I need. I know it's not the only way
 
@AlmaDoMundo I doubt that
 
@AlmaDoMundo Can't just use a class constant?
 
@Gordon - thanks, I've got the main idea, will read more later
 
@DaveRandom :P
 
@SweetieBelle Ummm... no?
 
8:44 AM
@SweetieBelle, no, I mean:
class Foo
{
   public static $bar = 'test';
}


var_dump(Foo::$bar);//test
// here goes some magic:
// createStatic('Foo', 'baz', 'yet another test');
var_dump(Foo::$baz); //yet another test
 
Static properties and singleton are basically namespaced globals. The thing that makes them so useful (you can access them from anywhere without having to explicitely pass them arround) is what makes them so bad.
 
damn :p
I know that could be bad practice since singleton is a bad practice in 99% cases :p
 
And that's hidden dependency. That's what makes it so bad.
 
I know. I've mentioned before that it's just curiosity (I'm not going to do such weird thing in prod. code)
 
IMO, static scope can be used for private metadata that needs to be shared among instances.
 
8:48 AM
@Leri can simply use another object for that
 
@Gordon Yes, actually, right, but I think using statics for that is acceptable. And at some point I prefer it over passing metadata between instances.
 
@Leri you're not unit-testing your code, do you?
 
private static $metadata = []; is class member so it's not hidden dependency but it may be considered as SRP violation.
@Gordon No, I don't and I know I should.
 
How random is random?
 
Very few people adequately unit test
@Duikboot You mean rand? It's pretty predictable.
I definitely wouldn't use it for anything crypto/security based, it's probably fine for games or other less critical features.
 
8:55 AM
So for example if I do a random test between 1 and 100
 
hm.. I understand that singleton is an antipattern mostly.. but not using static properties at all?
 
It could be possible there is much more 5 in it then 4 or something..
 
@AlmaDoMundo yep, they're not really needed
 
the must be a calculation to decide the random number so ..
 
8:56 AM
@Duikboot In some cases it may even comprise only fives :)
 
@Duikboot The distribution is pretty random but given a long enough chain it's possible to predict the next numbers with a level of accuracy
 
@SweetieBelle In most cases, I need functional tests, so I am afraid I'll make my unit-tests functional tests in fact.
 
@AlmaDoMundo Try it. I promise you won't miss them and eventually like working with your code
 
so why PHP itself using them?
I mean such methods as static API methods?
 
@Duikboot If you need something more random, use something seeded from URANDOM.
 
8:57 AM
Hello world
 
and what do I do if framework that I'm using operates with static properties?
 
Static methods are often used as custom constructors.
 
@AlmaDoMundo Change it?
 
@AlmaDoMundo well, there is a few situations where it's not totally wrong to use static methods. It's just a rule of thumb that you should avoid them when doing OOP. Or rather, don't ask if this is an acceptable situation to use a static thing. But rather ask can I do this with a non static solution. If the answer is yes, it's the preferrable solution.
 
for example
 
8:59 AM
guys I am wandering when someone asks you to design a website for him, what information should you ask him to give exactly.
 

« first day (1040 days earlier)      last day (3907 days later) »