« first day (1174 days earlier)      last day (4002 days later) » 

10:00
another disturbing phrase that admin uttered: "I'm not sure how you connect to it from console, but .."
I have reasonable suspicion that he's only doing this part-time, because nobody else was willing even to touch servers
@tereško console is so old-fashioned. Modern admins use psychic powers to connect to their servers
@Calimero XD
for example I know for a fact that my server @work is running, because I'm connected to it psychically right now (nothing to do with my gmail icon not warning about a gazillion "server down" emails in the last couple of minutes, really)
happy new year by the way :) may it be less serious than the previous one when it doesn't need to
10:10
@tereško When I was writing vbscript in notepad many years ago to automate the jobs of half a room of staff, one woman came over (IT for the room; basically printer fixes) and said: "You shouldn't be editing the back systems"
What are good clothing brands for motorcylists?
Richa? Alpinestars?
@tereško Give the guy a break man. It takes time to get used to you. He's probably just nervous.
@Duikboot I don't go for any of that, a heavy leather jacket and jeans, steel toed boots ...
@DamienOvereem lol .. I might be many things, but "intimidating" is not one of those
I am not going to wear jeans :)
10:17
@PeeHaa coldy cold :)
I don't fit leather trousers ... and those all in one things are a real pain in the ass when you get where you're going ...
@tereško I don't think he's intimidated.. I was thinking more along the lines of pissing-his-pants-dead-frightened..
@Duikboot It's not necessarily the brand. Cheap and cheerful works great too. In winter all you need is your clothes, then textile trousers and textile jacket, neck warmer and waterproof overalls and you won't be cold
Armoured boots and armoured gloves are a must - and if you can get muffs to keep your hands warm, you're sorted for winter
that's pretty horrible ...
10:23
The guy's also a complete idiot. Bikers are having this "I can wear what I like, and who are you to tell me otherwise" attitude - well I'm still entitled to say what I like, and that's that you're a damned fool for not wearing proper gear. No sympathy.
ok, but not all jeans are made equal ... hoodjeans.co.uk
worse happens to people with full leathers on, everyday ...
He came off on a slow corner, and broke his arm and did his leg in. He admits if he'd had gear on he would've been fine. But instead of saying "I've learned my lesson", he's being a prick and saying "It's my choice and I'll do it again". Fool.
Thanks for the tips. jimbo
@Duikboot No worries :P /rant
I gotta admit, I have no specialist jeans, it never crossed my mind ... do we believe what that website says ?
Congrats
tnx
what are the recommended practices for setting up logs for virtual hosts on apache ?
@tereško so you're the only one with that badge?
morning
@AlmaDo yeah well. no one else bothered to answer the same things over and over again ;)
@Gordon :p
10:34
@Gordon tru dat
@tereško though I guess a big parts come from that one answer you gave
~ third
well, congratz ^^
tnx
now I need to get the badge, I am currently at 736
ok, they're mostly about style ... guess I was totally wrong there ...
10:41
Not seen you around for a little bit @Gordon
@Fabien i'm in here most of the time. Just not talking.
Lurker.
maybe not ... "the army use kevlar to protect themselves, not leather"
@JoeWatkins Don't think motorcycling is the same as dodging bullets ;)
10:49
forces are about the same ... he takes an electric sander to all of them ... he's wearing the kevlar jeans when he does this and cuts at his own leg with a stanley knife, they definitely hold up better than leather etc ...
I've never actually looked at this in detail, but they seem alright to me ?
hes wearing them and sanding his legs and cutting at it, he sands them for ages and ages, it's a pretty convincing testimony ... I found lots of people saying they are a gimmick, but he shows they are not ...
@JoeWatkins are there some kevlar skiing pants? :)
motorcycle jeans, probably same idea I guess ...
@JoeWatkins Well of course they may be alright for abrasion resistance, but you need to put armour in there as well. At minimum knee and hip armour
Thick padded stuff to stop you breaking your bones on impact
I got a nasty cut on ski side (razor sharp) last winter, still hurts, not sure if I want to go ski again.
@Jimbo some of them do say they have hip/knee armour, but I guess you could double up over the top ... that material appears safer than my jacket
I cannot see the armour, so guess you would definitely get proper protection for your knees at least, I'm impressed with that material, so I don't see why everyone says they are a gimmick ...
10:57
@JoeWatkins I bought some el-cheapo kevlar jeans (armoured hip and knees) but I just don't trust them. I've had full on crashes in textiles and they've held up good. In fact, my textile trousers have been on for 6 years and through 3 crashes
I'd like to do the test myself ... I wouldn't have worn them and would have some way of applying the same pressure to them all ... but I don't think he was playing around ...
It's a risk either way isn't it
Same sort of risk buying a £30 lid as opposed to a £300 lid ... which one is safer? Could be the cheaper one for all you know
yeah, I was reading a thread on mcn and a guy said "I broke my collar bone at 10mph wearing full leathers"
while everyone else was saying they were shit ...
@JoeWatkins - sorry for barging in, but do you mind if I ask you a quick pthreads question while you're here? :)
When adding a callback to a JS function, if it's not always defined should I be using if(callback !== undefined) or is there something more specific I should be using?
11:01
@N.B. np, go ahead ... (I'm nearly always here)
@JoeWatkins - awesome :) now let's see if I can put the problem into proper words
@Fabien if (typeof yourCallable === 'function')
Yeah typeof was my other option. How come this method is preferred?
There are two threads, #1 writes to a socket and #2 does some work which #1 reads (using Stackable as the mechanism to share data between the two)
The two threads have no clue about each other, so what would be preferred (evented if possible) method of notifying thread #1 that there's data to be read?
I've been using an event loop and posix_kill() with SIGUSR1 to notify the thread to start reading data, but I must admit I really have no clue whether that's good or bad
@Fabien Because then if it's anything else, even 'undefined', it'll return false
11:04
Furry muff
@N.B. couple of minutes ...
No probs :)
<?php
define('SECOND', 1000000);

class Two extends Thread {

	public function __construct(One $one) {
		$this->one = $one;
	}

	public function run() {
		do {
			$this->one->synchronized(function($one){
				/* do some work here */
				$one->notify();
			}, $this->one);

			/* so you can see output */
			usleep(1 * SECOND);

		} while (1); /* (1) not really a good idea */
	}
}

class One extends Thread {
	public function run() {

		while ($this->synchronized(function(){
			return $this->wait();
simple as that :)
sending SIGUSR1 is about to become bad
I've hijacked that for ::kill btw
@N.B.
11:19
That might explain why my code dies..
If you hijacked it for kill :)
yep
blame Daniel, it's all his fault, I never wanted ::kill
What does kill do?
Is it stopping the thread or is it just sending a signal?
kill a thread by force, even if its blocking on some syscall
Right, so if I'm reading a file and I use $thread->kill() while it reads it - that stops, and resources are freed properly?
11:21
Now that's nice :)
So basically, if I use posix_kill(getmypid(), SIGUSR1) I'll actually terminate the thread
maybe, but did your mother never tell you not to kill :) it's not a good pattern, it's better to make sure threads are in a receptive state in the first place ... it's not always possible, so it exists ...
I know it's not good
that's why I wonder why is it there in the first place
in the case of just reading, it is possible, use nbio and you don't need to kill anything ...
@rdlowrey gave me a convincing enough use case that I saw no other option than ::kill ... but everyone else avoids it, java removed it even ...
I've been avoiding forceful interruption, like examples on github show
But for some things, I can see how kill() can be useful
Well, that actually makes my work easier now :>
well that's always good I guess ...
I hear someone has a working disruptor, I haven't looked at it yet, but people are getting pretty serious ... finally ... I don't get silly questions anymore, which is nice ...
11:27
Thank you for the advice and info, you saved me days of work trying to figure out why code that used to work suddenly stopped working after upgrading to latest pthreads :)
yeah I need to update manual, ::kill isn't even there yet, bit behind ...
is no problem, you can always ping me with a question, I'm usually here ...
How do you guys prefer naming your abstract classes? Fans of "able" at the end, like "Requestable", as they define an "is-a" relationship?
@JoeWatkins - I'll definitely pop in and shoot a few questions your way, I've an interesting project going on that I'd like to open source soon.. and pthreads helped immensely
well, Thread, Worker and Stackable are all abstracts ... so I'm inconsistent, which is consistent with PHP ... everyone knows what a Thread is, usually I like "able"
lol
Fair enough
11:31
MyThread is a Thread <- makes sense
MyOtherThing is a Stackable <- doesn't make sense
you broke your own convention having just defined it on line 1 ....
MyOtherStackable is a Stackable makes sense ...
is "a" Stackable doesn't make sense
is "" Stackable makes sense
Can you elaborate why it doesn't make or make sense?
@Jimbo Depends. I'm not using able when it makes sense just because I want to force SomethingAble
it defines the relationship, not how you communicate it ...
11:35
MyOtherThing is Stackable would be right, but that removes the "a" - which we can't do because it's illegal.
@PeeHaa Even for the sake of consistency which is usually held really high on the importance list
@Jimbo why I'm mentioning this is, for me, Stackable looks like an interface
@andho "able" for interface and non for abstracts.. hmm, I've been using "StackInterface" for example :P
@Jimbo Trying to force such a naming convention will only be confusing. Because it probably doesnt do what you say it does
I personally don't use any "able", "I", "thingy" conventions. And try not to use "Abstract" and "Interface" either.
If you can't name it right, you don't know it's responsibility
HI gus , i want to make rule like :

xyz.domain.com/index.php will o/p "on index.php"
abc.domain.com/index.php will o/p "on index.php"

means both should be redirect to same page...
11:39
damned GNU
for example the Introduction to Stackable says "Stackables are Tasks...". Why not call it "Task"
why the hell git binary is in /lib tree ?
@NarolaInfotechDemo What is there to redirect? index.php goes to index.php for both instances
@Jimbo I agree 100% with @andho's last two sentences
double double ping :)
@andho because they have another purpose, they are also a general purpose container, Stackable also says sharable when you know a bit more about it ...
@peehaa : the first xyz,abc,pqr will be changed every time but the file need to be same call on every url.
the xyz,abc are not subdomain .They are users name
11:43
so is any other object descended from pthreads, however it's easier to document that Stackables should be used to share data ...
"xyz,abc are not subdomain" uhhhhm yeah they are
@Peehaa: see below link :
https://mfkjsddkfskffklsdfsdfsdfsdfsdfsdfsdfsdfdsfsd.showpad.biz/login
here instead of "mfkjsddkfskffklsdfsdfsdfsdfsdfsdfsdfsdfdsfsd" this write any thing and you can access link
I want something functionality like that
@JoeWatkins I cannot really comment on Stackable as I don't know what it does. So I'll believe you :)
@JoeWatkins - what's the difference between detached and "normal" threads? I've been using long running Thread without joining it (I terminated it gracefully), is that something I shouldn't do?
11:46
@JoeWatkins Then shouldn't they be shareable? ;)
don't detach threads
Ok, I won't, however - why? :)
@peehaa : have you got idea ,what I need ?
::detach is even more voodoo than ::kill, there is no way to cleanup safely, they leak
Alright
11:47
they have one purpose
Also, is it a huge no-no if I don't join() the thread?
it's implicit
Singing praises of @rdlowrey's Auryn again on twitter. You know I've mentioned it at phpnw and loads of other places, great stuff. Now we just need a micro-framework that utilises it from the ground up instead of just jacked on the end like I've done with silex. Anyone want to write that? ;)
@JoeWatkins : do you have any idea ,if i need to download large file ,I have tried every thing fopen,readfile but buffrer create and it stores a lot of memory...it will effect when suppose 500 users click download of 20 mb...my memory will be out ...
@Jimbo let me see
11:50
I basically use Thread in the same way that Worker+Stackable are supposed to work, but for some reason the memory usage soars when I use Worker+Stackable combo and it's down to minimum when I use Thread. When Thread's done, I don't join() it, I simply clean it up and then unset() the reference to it. Is that fine or?
@andho Link here :-)
you can detach from a thread, store in session and communicate with a thread on subsequent requests so long as the same process is servicing the request ... at very very maximum, do this once per process, this gives you a background thread everyone can communicate with ... if you do it once, those leaks are not so important, they are process wide, php has lots of modules that do this on purpose, but I don't even think I'll document ::detach at all, it's dangerous
and violates the principle that you should never ever create threads in direct response to a web request ...
I'm not really using pthreads in that environment.. I have a php-cli daemon being a server actually (not a full blow one but it never shuts down) so I recycle threads once they service a certain number of requests
@N.B. that's fine, if there's an opportunity to join then you probably should be explicit, but unset does join implicitly, still if someone comes along after reading ...
The worker/stackable thing is hard to keep control of, and is less necessary because of ::shift/::chunk, that's usually going to be more efficient ...
@Jimbo might take too much time for me, but I'll see if I can incorporate into what I'm planning on doing these day
11:53
So basically there's no harm done if I keep on using Threads that way
@Jimbo I'm about to make the code for my webshite publically available as I also gave a talk about Auryn (in SydneyPHP) and one of the guys wanted to see it in action for a non-trivial app. Er, that probably doesn't solve your 'we need a micro-framework' problem, but tbh, Auryn probably makes it even easier to not use a framework, ever.
seems fine I think ..
Genuinely saves a lot of time and looks awesome in your controllers. For example:

public function aknowledgeNotification(EntityManager $em, NotificationRepository $nr, $id);
@NarolaInfotechDemo don't fread the whole file into memory seems the obvious answer, fread a little and write to disk as you do so ...
Check that one, it involves reading file in chunks
11:56
@Jimbo yeah, looks really useful
@Jimbo it should really be an interface, but PHP ... Stackable == Runnable, but since there's a load of functionality attached to the objects so that they work, where in java that's not required, they have to be abstracts ... the name does seem a bit strange, but so does new Thread(new Runnable(){}) to me, and the only place in the API that accepts it is ::stack, so Stackable seemed to make sense ...
@JoeWatkins But stacking is a not a behavior that is provided by Stackable right. It's just that the Worker can stack tasks (a Stacker?). Also I'm not arguing that you should rename Stackable. Just having a good discussion of naming semantics.
Stackable defines the property afaik. Stackable is being stacked. That's why it's Stackable.
@N.B. but does this class have any code that specifically makes is stackable.
Why would it have code that makes it stackable?
I don't see the relation there, the Stackable is work to be executed by Worker. Worker executes by taking jobs from the stack. Therefore something that's stackable is being put there. Hence Stackable, which makes perfect sense.
@NarolaInfotechDemo ServerAlias *.yourdomain.com
Again I don't see any need for a redirect
because classes should be named based on there responsibility. In this case, is not responsible for providing a Stackable interface.

Let's take a real world example, then we'll move to code.
Say something is Stackable if it has a flat bottom and top that is parallel to each other. So things that are Stackable can be a Can, Blocks, etc. These things has a "charasteristic" that makes them Stackable.

Now let's take php's Countable interface. The any class that implements Countable will provide the "count" method. The "count" method is the "characteristic" that makes the class Countable.
This is also why I felt Stackable should not be an abstract name. Because doesn't describe it's responsibility, but describes interface that it provides.
Have I opened pandoras box? :D
it is always an interesting topic :)
if you declare something as Stackable then you are responsible for providing the Stackable interface (::run) ...
12:19
@peehaa : i want exectly like that thanks
@andho - might I suggest trying to use pthreads and then when you have a clearer image of what's going on - you come back and discuss? :)
@NarolaInfotechDemo :-)
Because, as much as I'd love to debate this, I feel this might end up being one of those long, long discussions that eat up the day and you do 0 work :>
huh.. why android room is like a babies sand box, where everyone complain to everyone when he steal a lollipop Oo
Actually, silly question, i'll leave it out of the interface & abstract and leave it up to the concrete to decide
12:23
Hello all I am decoding a json response sent from iphone team. the json is : {"user_id":"2","category_id":"1","title":"test2","description":"this is a test post with video","video":[{"video_link":"ghdagdhagdh","video_title":"jhu rhf","video_description":"hhf bcgr trty"}],"link":[{}]}
@AlmaDo: lol. Are you talking about the flags?
but my problem is when i am decoding the data
the link array comes blank
and when i am cheking it by empty()
its giving this error: Undefined property: stdClass::$link_title
@user2936213 As with all debugging questions use var_dump
@N.B. And I think I will be using it in the near future.
@user2936213 Link is empty
12:25
@user2936213: There's no such property. See this: eval.in/84923
actually my problem is after json_decode i am inserting this data in a different array
so if link is not empty it will contain data as video contains
@ama
plz see this i just removed "true" from json_decode
does this make any difference?
Okay. What is your question?
i have this piece of code
$decode_userPostDetails = array(
"user_id" => $decode_userPost->user_id,
"category_id" => $decode_userPost->category_id,
"title" => $decode_userPost->title,
"description" => $decode_userPost->description,
"post_image" => $image_name,
"video_link" => (!empty($decode_userPost->video)) ? $decode_userPost->video[0]->video_link : "",
"link_title" => (!empty($decode_userPost->link[0])) ? $decode_userPost->link[0]->link_title : "",
"created_date" => $currDate
);
and i am getting this error
Undefined property: stdClass::$link_title
why so?
"video_link" => (!empty($decode_userPost->video)) ? $decode_userPost->video[0]->video_link : "",
this is working fine since it is having data
but for link_title its giving error
@user2936213: Check the demo you just posted. Do you see a link_title there?
that is why i used ternary operator
if it is there then to insert that value else blank
12:33
@n.b. : how to use it?
You are checking a different value that is NOT empty. So it tries to access the link_title property and that triggers the error.
@NarolaInfotechDemo - how to use what?
so what should i do then?
@user2936213: You probably want to change the ternary statement to the following:
ok ill try this
12:34
"link_title" => (!empty($decode_userPost->link[0]->link_title)) ? $decode_userPost->link[0]->link_title : "",
@NarolaInfotechDemo - it's really simple.. I don't know what you're asking. Check Joe's answer, copy that, check what it does, adjust it..
Thanks a lot @AmalMurali it worked :)
@user2936213 when in doubt var_dump
12:40
ok
Can anyone answer this question worth 150 bounty?
http://stackoverflow.com/questions/20836908/zend-soap-server-response-set-custom-ns1-namespace
Guys, if an object (stored as a class member) throws an exception and you don't want to catch it, you want to let it bubble up to where the dev starts using the service, you don't document @throws in the parent object simply because the exception passes through it, do you?
13:01
I pressed the wrong close reason. Can someone please close as "off-topic > recommend or find a tool /off-site resource"?
How the hell do people get these stupid ideas.. lack of proper IDE makes him want to do such a dumb thing..
@dskanth I tried SOAP once, and after days of agonizing pain i gave up..
13:16
@DamienOvereem SOAP is a good and secure protocol.. but not so easy as REST.
@Jimbo It depends if the exceptions caused by something that's the caller's fault or not aka Java's checked vs unchecked exceptions.
@Danack Let's say I have a Request object that has a Validator object within it. The validator object can throw a ValidationException, but the request object is just going to let this pass through. When these two objects are wrapped together and used by a service, the service just needs to know that a ValidationException is occuring - sent from the Validator, not the Request
@Jimbo So what method of the Request object would the exception be thrown from?
@Danack Request::isValid() :P
Er...tbh I don't think I would use exceptions for that function at all. When checking that something is valid, it isn't exceptional for it to be not valid.
But if I did, then yes. If the caller is meant to be passing in valid data, and it's not valid, then the caller should be checking to see if an exception was throw.
13:29
@Danack Hmm, I was trying to do proper OOP rather than return scalar values (false / true - boolean)
Okay, so Request::isValid() will catch ValidationException, and return false after logging it
@Jimbo How about "Request::getValidationErrors()" - returns a list of all the validation errors, or false if there are none.
Or just an empty array if there are none.
@Danack That would mean the dev's consuming service would have to remember to run that method as well as calling isValid()
Well that is probably easier than having to remember to catch exceptions when the data is invalid.
@Danack Not if your Request object documents @throws in it's phpdoc, right?
@Jimbo meh - how to organised validation is a topic on which there are opinions rather than right/wrong answers - but imo, if you're throwing an exception, in cases which aren't particularly exceptional it's a not a good thing.
13:37
@Danack Don't some people throw exceptions just so the code is more readable and more easily understandable, rather than just returning false?
But I completely agree on the not particularly exceptional part... except I also agree with the more readable. Damnit!
@Jimbo That's what they claim they're doing. But they're wrong. In this case, the code would be cleaner when there is no validation problem, but it would be a heck of a load more ugly handling the cases when there are validation problems.
@Jimbo "That would mean the dev's consuming service would have to remember to run that method as well as calling isValid()" I actually meant that the getValidationErrors() would replace the isValid() method, not be in addition to it.
Er, so maybe it should just be called Request::validate()
The reason I put isValid is because the consuming service could call if ($request->isValid()) {, which imo is nicer than if ($request->validate()) {
if ($user->hasValidToken()) {
    if ($request->isValid()) {
@Danack I'm removing the ValidationException then, and isValid() will just return true / false :-)
50/50 lol
> warning: LF will be replaced by CRLF in first/file/added/by/me/filename.php.
wtf
@tereško "git config core.autocrlf false" ?
13:57
guys
im confused
why is the query(INSERT INTO downs) executing twice?
@LeSamAdmin have you tried using a debugger to step through the code?
nop
how do I do that? :/
Without knowing what you have in your db, it's because you obviously get to that point twice. And you get to that point twice because you have a while loop iterating over initial query result.
I have a list of servers
when I execute the query
I get one result
nothing else
Does anything there look like it would make it go twice?
14:04
Is there anyone in here who could help me with Facebook's PHP SDK?
@ShahlinIbrahim Just ask your question
oh god this is frustrating
._.
Why so?
I'm just testing out the Facebook's API so I can use it later in my site. What I want to achieve is to allow users to connect to their Facebook account once and it'll be connected for a long period (60 days - That's the maximum allowed by Facebook I think) without even asking them to log in every time they log in to my site. Currrently, I have this as my connect.php. This page shows the login to Facebook link. It's all working how I want.
I just want to know, if I'm doing it the correct way.

`<?php
14:20
Ah top: ; You sassy bastard!
@ShahlinIbrahim - I'm not familiar with FB's API, and it should be easy to test that, but I can tell you your PHP is not good.
anyone wanna buy pingrglobe from me?
lol
@N.B. It's working as it should be! I just want to know if it's the correct way to do it! Could you be more specific at what's wrong with what I'm doing?
You're using obsolete mysql_* functions and I don't see that you clean variables passed to mysql queries in any way. You assume that data you receive is safe - that's a red flag.
sigh
14:25
@N.B I have mentioned in the last line that I use PDO. Only for this test, I have used mysql_*. Also, yeah, I haven't sanitized the variables, just because I'm the only one who has access to these files for testing purposes. Also, I should have declared session variables, etc.
I've heard "I use [insert bad thing] for testing purposes" 1000 times.. do you know how many times I found "testing" code in production? :)
Hey :)
Even if you're testing, make it a habit to use good practices
1001?
@N.B. Yeah, my bad. Sorry about that.
14:27
Someone must know why this while() runs twice per one row! p.kk7.me/gehotevepa.coffee
As for FB's API - I don't know what you're doing, looks as if you're receiving some data and saving it to the database. You said it's fine so.. :)
@N.B. Yeah, that's right! I'm just tryna get the hang of access tokens!
guys
it's only running twice when crontab is executing it
@LeSamAdmin - we can't see anything that your MySQL actually returns. We don't know whether you have 2 records returned from the 1st query or what. Use standard debugging approaches - var_dump and print_r to see what your arrays contain.
@N.B. - I did say, when I execute the query manually, I get 1 row of each, when the crontab executes it, it's running twice...
14:37
@LeSamAdmin - can't you see that we still don't have sufficient information? Who says that you're not connected to two different databases? Or that you didn't set up crontab twice? Or that you execute the query manually, then via crontab and then you deduce it ran twice? There's simply insufficient information to help you.
Store the array dump to a file when you run the script via crontab and then check what it says
file_put_contents('your_file.txt', print_r($your_array, true));
you could also run it via phpdbg, break on the while() line and see why it ends up there more than once when it happens ...
this ain't working
while ($row = $query->fetch(PDO::FETCH_ASSOC))
{
file_put_contents("output.txt", print_r($row, true));
the output.txt is chmod 777
user895378
@JoeWatkins Yes, I really need ::kill() ... without it I couldn't implement the equivalent of set_time_limit(). I'm of the opinion that timeouts are never an ideal solution -- you should fix your app to not be terrible -- but in a server you don't have control over the garbage code that users write.
user895378
14:49
So thank you for adding it :)
I think crond was running >1 process
Anybody here know how to get the Namespace of a passed object?

$yourNamespace = (new NamespaceGetter)->getNamespaceOfYourObject($yourObject);
@rdlowrey - yea, thank you for making Joe hijack SIGUSR1, made me debug my app for entire day with no results :)
noboby??
user895378
14:52
lol sorry :)
Anyone knows this error? oauth_problem=signature_invalid&amp;debug_sbs=GET&amp;https%3A%2F%2Fopenapi.etsy‌​.com%2Fv2%2Foauth%2Frequest_token&amp;oauth_callback%3Dhttp%253A%252F%252Fwww.tah‌​ara.es%252FAPIs%252FPHP%252Fexample.php%26oauth_consumer_key%3Dt5eyabjeqsfsk%26oa‌​uth_nonce%3DhdW88%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D138815‌​9694%26oauth_token%3D03e77337804430f62841a%26oauth_version%3D1.0%26scope%3Demail_‌​r
user895378
Another satisfied customer!
@DavidGraham You have to write code - gist.github.com/Danack/8220375
@DavidGraham namespaces are a lie
@rdlowrey that's what it's all about ...
<?php
namespace bungled {
	class mine {}
}

namespace {
	$bungled = new bungled\mine();

	function get_namespace($object) {
		if (($class = get_class($object))) {
			if (strpos($class, "\\") !== false) {
				return substr($class, 0, strrpos($class, "\\"));
			}
		}
	}

	var_dump(get_namespace($bungled));
}
?>
let's see....reading your code....
user895378
14:58
@Jimbo Thanks -- @Danack has done a lot of good work on Auryn, so you should thank him too if you find it useful. The "executable" stuff is really ideal for instantiating any routed things. I've spent all my time working on my server and haven't really given any thought to a web sapi framework in a couple of years. @LeviMorrison and @NikiC collaborated some really performant regex routing code for Aerys, though, so I may spend a day or two adapting that into a micro framework for web SAPIs.
this code looks like it's working on "strings"
I'm passing the object
an instance of a class
Got a simple WP question that probably anyone who has used it can answer...

I'm working locally on a completely new theme. Once I'm done I'm going to use the "test drive" plugin to allow admins to test the theme before switching over to it. The problem is that with the new theme there are more menus. How do I manage adding the menus without messing with the live site?

Can I somehow import them?
Or while I'm test driving the new theme, can I add the menus or will they be added globally?
guys, this still isn't working
it's running twice
oh wait....
nothing is being outputted to output.txt
user895378
14:59
Routing + Middleware + Auryn to instantiate and execute the routed callable is really all I would want out of a web sapi framework.
I see you guys are using the $object::class to get the full class name...
then doing your "string" work
right ?

« first day (1174 days earlier)      last day (4002 days later) »