« first day (835 days earlier)      last day (4113 days later) » 

4:00 PM
Mine is explode/implode.
 
user1832464
mine is echo.
 
nice
 
user1832464
I've always favoured it over print(), although I don't know why.
 
print_r()
 
yea I like echo better too.
 
4:03 PM
My favourite PHP function? bugFree_start(); and bugFree_end(); - Wrap your code in these and all bugs just magically disappear.
 
@Michael are we allowed language constructs?
 
@Leigh No just functions.
 
But I like throw :(
 
@Michael strpbrk
 
user1832464
utf_encode()
 
4:05 PM
leigh throw isn't a function...
 
user1832464
*utf8
 
@Michael Duh, that's what I said
 
oh ok
 
user1832464
Favourite parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
 
@NikiC That's a good one. str_rot13 also really useful :)
 
4:07 PM
@monkeymatrix what's that
 
user1832464
It's hebrew for a double colon ::
 
@Michael double colon exception
 
oh that's because the creators of PHP are from Israel
 
@Leigh lol. yeah. :)
 
I like file_get_contents() too.
 
4:11 PM
@Michael That's not quite correct, the creator of PHP is from Denmark, the Zend Engine guys are from Israel.
 
@Leigh Greenland? Denmark? Canadian? If wikipedia is not lying then it's complicated: "Rasmus Lerdorf (born 22 November 1968 in Qeqertarsuaq, Greenland) is a Danish programmer with Canadian citizenship."
 
user1832464
He's Green Danish Candian. ;)
 
oh woops yea ur right
 
Hmm, maybe we should file a change request?
syntax error, unexpected T_QEQERTARSUAQ
 
hakre that's not even a word
 
4:16 PM
For 100 bonus points, who can name the only function with a 2 letter name?
 
dl
 
Actually, I wasn't thinking of that one, you can have a belgian beer for your troubles though.
 
Yummy
 
I was going for pi()
 
hello !
 
4:20 PM
hakre i'm just joking, it's probably in a language I don't know.
 
who can help me improve my .htaccess file ?
RewriteEngine on
DirectoryIndex index.php
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^.+(style.css)$ $1 [L]
RewriteRule ^.+(default.css)$ $1 [L]
RewriteRule ^.+(rss.xml)$ $1 [L]

RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+)/?$ index.php?module=$1&submodule=$2&subpage=$3&endpage=$4 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+)/?$ index.php?module=$1&submodule=$2&subpage=$3 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+)/?$ index.php?module=$1&submodule=$2 [L]
 
@Ty221 uggggh. throw it all out and use PHP to do the routing? :)
 
can you give my code example ?
 
@Leigh are you in Belgium?
 
@hakre No, I'm in the UK
 
4:30 PM
any one tried steam on Linux ?
 
no
I don't have a linux machine that is powerful enough for gaming.
 
LOL
 
My most powerful machine is an iMac, but it's still pretty old
@webarto No I mean I have a netbook with Linux and a 10 year old Gateway computer with Linux.
 
I wouldn't be able to survive if I didn't have a good computer at home... I'd be stuck at work the whole time on this god forsaken macbook
 
@Leigh what's the specs?
 
4:42 PM
@Michael 2011 version, 2.2GHz i7, 8GB RAM
tiny screen, tiny keyboard, bastardised BSD based OS
 
can't be that old... i7. wish i had that old computer
 
Windows is better for games.
 
better support, thanks to directx lib
 
yea
 
@Michael "better" is subjective - more widely supported, sure
 
4:44 PM
or alex st-john
 
@Leigh I mean there's more games for it.
 
who helped (built) it
 
If all the effort put into DX and windows games was invested into linux development (and graphics driver development for linux), it's obvious who the winner would be :)
but, such is life, I like games, I am constrained to windows. Thankfully I don't use windows 8
 
lol
windows 8 empty windo
 
Microsoft is a good at creating gaming platforms, with Windows and XBox Live.
Steam is good too though
 
4:47 PM
First thing I did when I built my PC, install windows 7 home premium (none of that "ultimate" bloat), and turn off like 75% of the unneeded services.
 
yea
 
@Michael I'll agree with XBox but Windows? It's not a good gaming platform; people support it because of its incredibly strong hold on the market . . .
 
posted on January 28, 2013 by Ulf Wendel

I am telling no secret saying MySQL 5.6 GA can be expected to be released soon, very soon. Time to test one of the improvements: MySQL 5.6 speaks SQL and Memcache protocol. In your PHP MySQL apps, try using the Memcache protocol to query MySQL. A key-value SELECT ... FROM ... WHERE pk = <key> can become 1.5x-2x faster, an INSERT INTO table(pk, ...) VALUES (<key> ...) can become 4.5x-9x f

2
 
windows so-called features, like if changing a background was a feature
 
@LeviMorrison yea but it has directX
 
4:48 PM
it's a shame windows starter can't be purchase separately
 
@Michael . . . the manager of ATI's graphic division says DirectX sucks . . .
 
@LeviMorrison I thought it was better than OpenGL
 
don't want to use bloated media player, don't want transparency which suck performance and do nothing useful, don't want to share my music with my xbox, don't want to join active directory, don't want windows xp mode (yea, but using vmware workstation) and don't want ms encryption, but I do want to change my background and I don't call it a feature\
 
@Feeds Finally some good intel. Cheers!
 
@Michael The key in OpenGL is that it better targets your hardware. DirectX' focus is for a wide range of hardware support, not performance.
 
directx is a nice set of feature if you got a intel with a nvidia card
 
Doesn't mean it's fast.
 
indeed but it was not the purpse
it's a set of tool all-putted together and brandished directx
 
@LeviMorrison pwned.
 
I work for the high performance computing department for a university. Performance is king, I promise . . .
 
ms-dos purpose was to prevent ms windows from eating resource
don't you feel on request compiling is nothing compared to x86 or x64 release?
 
the credo of MS is anyway that all it needs to push to market is that a shitty implementation is better than no implementation. as long as you box it and you can convince customers to take it, your job is done with software development.
 
isn't how a business run?
 
@Happyninja well M$ is not out of business yet, isn't it?
 
4:58 PM
Yo
Mina-san
 
However, that's not how software development works ;)
 
@hakre this is my point: there is no such thing as perfection. private business have limited resource, unlike open-source oriented project
 
@Happyninja No open source projects have users who need the software - that's why it is developed. Software companies are companies that sell something. They could also sell tomato soup. Ask their stakeholders.
 
@hakre the majority don't have much stakeholders
ihmo
 
@MadaraUchiha konnichiwa
 
5:02 PM
@hakre i work in a small place, resources are limited, we use our imagination, we wouldn't sell tomato soup even if we could... ;)
 
@Happyninja Yes I was polarizing. Sure this is not the whole picture. And also tomato soup is great ;)
 
anyone familiar with SOAP Server got two mins? Sending a response back to client app and the app is seeing ns1: as the namespace but the WSDL is looking at <s:
anyway in SoapServer to alter that ns1: to something else e.g. s:
 
@MarkH You do not need that. (read: you should not need that)
 
@hakre If you made tomato soup. I would buy it.
 
@MarkH do you have a living example to troubleshoot it?
 
5:04 PM
err
 
Use your cursor-up key to edit a message.
 
that's the WSDL
 
it is indeed interesting
 
You can run test here:
you can test the service there, and see the response as it is currently.
Vendor is saying there is a problem using that ns1: and it should be s:
 
do you have a demo username and password?
 
5:06 PM
yep, GCSEPod, Password
content = all
payload = file.xml
 
The ns1: or the s: is just the namespace prefix. It is defined inside the XML, not inside the XSD. The XSD defines the namespace, not the prefix.
 
ok, can it be altered
 
Hello
 
So any XML compatible SOAP client should be able to deal with that properly.
 
they're saying to me the response does not look like the upload request one does
 
5:08 PM
Your repsonse is correct: xmlns:s="http://www.w3.org/2001/XMLSchema"
 
Who can help me in improve .htaccess file. I tried to make friendly urls..
 
The GroupcallUpload method is fine:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GroupcallUpload xmlns="http://yourserver.co.uk/WebServices" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<sourceIdentifier>0019999</sourceIdentifier>
<userName>GCSEPod</userName>
<password>Password</password>
<xmlContent>all</xmlContent>
<xmlPayload>test</xmlPayload>
</GroupcallUpload>
</s:Body>
</s:Envelope>
 
Any ideas ?
 
This says that s: denotes the namespace http://www.w3.org/2001/XMLSchema
 
then i got this:
 
5:08 PM
@Ty221 Stop spamming that, nobody was interested the first time. Go and write a question on SO
 
The parameters bit should be GroupcallUploadResponse which is why the uploader can’t find the result value. Should be something like this:

<SOAP-ENV:Body>
<ns1:GroupcallUploadResponse>
<ns1:GroupcallUploadResult>true</ns1:GroupcallUploadResult>
</ns1:GroupcallUploadResponse >
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
1 message moved to Trash can
 
they also said: Only thing that springs immediately to mind is the namespace notation, for the upload it is s: and for the response it is ns1:
 
i have ban on stack overflow. I don't know why
 
@MarkH That is only the namespace prefix. You can name the prefix like you want. That should never be an issue.
 
5:10 PM
Basically the issue is, their uploader code expects a bool back
 
Then give it a bool.
 
@hakre what they say to me is the response looks wrong
it is getting a bool, check the soapclient.com example i posted.
they're saying they believe its because it is using ns1: and not s:
their end of things receives response, true or false, tells their xporter to end process if false
 
@MarkH Which is not saying much. Ask for a concrete, quantified and qualified error description with an excerpt highlighting the problematic parts.
 
but because it is not getting it back properly, the response is always false
 
hello
 
5:12 PM
@MarkH Well, have you asked for their beliefs?
 
@LeviMorrison Y U DONT LIKE curl-file-upload?
 
so back to the question, how to alter that?
 
My favorite color today is dark blue btw ;)
 
ns1: to s:
 
@Ty221 Did a lot of your questions get deleted?
 
5:12 PM
@MarkH Change the prefix.
 
I deleted 2 questions
 
where?
 
@PeeHaa He doesn't like Stas
 
@MarkH In the XSD. So your response matches the prefix in the XSD.
 
@hakre could you help a little further there please in the context?
 
5:12 PM
@PeeHaa OOP APi in a completely procedural API. He did at least add a procedural API, but unless all the cURL API is also OOP I feel it is counter-productive.
 
im not using XSD?
 
@MarkH You said you are using an XSD document.
 
Also, I don't like the cURL API in PHP at all anyway.
 
@PeeHaa Because it is a f*cking ridiculous idea. What is required is a proper OOP cURL API. Tacking tiny bits of OOP on the side of a procedural API is a stupid thing to do.
 
WSDL
 
5:13 PM
A so it's a syntax matter
 
i never mentioned XSD
 
@MarkH Yeah right. Change the prefix in the WSDL.
 
where?
it is already <s:
<s:element name="GroupcallUploadResponse">
 
@MarkH But you want it ns1. So change it into ns1 inside the WSDL document. It's just an XML document, you can safely alter the namespace prefixes there without changing the definition.
 
@Ty221 use www.htaccessredirect.net/index.php
 
5:15 PM
yes - where and what?
in context with my file preferably : )
@hakre example..?
 
@MarkH From what you told, your file looks okay. It's no problem to have different namespace prefix than in the WSDL. The important part is the namespace-uri, not the prefix.
 
@NikiC I lost interest in accessors sometime last year, I saw you voted yes on the RFC. Did you manage to un-terrible them?
 
so is what they say to me bullshit?
and they have issue their end?
the response looks like this now:
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://yourserver.co.uk/WebServices">
<env:Body>
<ns1:GroupcallUploadResponse>
<ns1:GroupcallUploadResult>true</ns1:GroupcallUploadResult>
</ns1:GroupcallUploadResponse>
</env:Body>
</env:Envelope>
 
@Nilesh thanks, but this page isn't helpful for me. I want to create rewirterules
 
@MarkH Well they just said that they belief. Which does not sound like that they know that is the issue. So no, they didn't told you bullshit. They were just giving feedback, that's all.
 
5:17 PM
they say they believe it should be:

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://yourserver.co.uk/WebServices">
<env:Body>
<s:GroupcallUploadResponse>
<s:GroupcallUploadResult>true</ns1:GroupcallUploadResult>
</s:GroupcallUploadResponse>
</env:Body>
</env:Envelope>
 
@MarkH Let me guess, you are using the PHP SoapServer class?
 
@Ty221 means
 
@DaveRandom yep
 
@MarkH That is invalid XML. The s prefix btw. isn't specified.
 
so their WSDL they given me is wrong?
 
5:18 PM
@MarkH No. If it would be wrong, you would see an error when PHP tries to load it.
 
they did say it might be that the response is not using the WSDL?
if that's the case, how to make it use it for response.
 
@Nilesh what's up. i don't understand
 
@DaveRandom any suggestions?
 
@Leigh not sufficiently, clearly ^^
 
@NikiC Hm, what does that mean? :) My major objection was the user-visible automatically generated backing properties/functions
 
5:20 PM
4
Q: change soap prefixes in php

fregasi'm rewriting a soap web service from .net to php. by default, php is giving me tags that look like this: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tempuri.org/"><SOAP-ENV:Header><ns1:FindAllCategories/></SOAP-ENV:Header...

 
@MarkH OK, well the best advice I can give you is to give now and save your sanity. The PHP SOAP extension is absolutely shockingly bad. Even with the huge drag factor of how terrible SOAP is to begin with it's unbelievably bad. I used to advise people to use NuSOAP instead but that is terrible in other ways.
Having said that, there's no reason why (as long as all the declarations are valid) you should have a problem with namespaces. They aren't really relevant to the actual data.
The only reason you would have a problem with this is if the consumer is behaving incorrectly
 
so the vendors end?
my response containsthe right info
if i misspell password or user the response env is false
and visa versa.
 
If they are saying they have a problem with the namespacing aspect, then yes it's their fault. As long as the namespaces are all declared correctly.
 
that's all he can think of the guy im speaking to
and he said change ns1: to s:
 
@Leigh those are gone. Neither backing fields nor functions are user visible
 
5:23 PM
its drving me nuts!
 
@NikiC Hooray, you un-terrible'd it then :)
 
i feel like their upload code is bork
not my code
 
@MarkH see the answer I posted. You should not need to change that, however, if you're bound to what they say to you you need to do, check the Q&A material here: stackoverflow.com/questions/8650580/change-soap-prefixes-in-php
 
they said also they gonna try accomodate for that ns1: their end
so i presume they have some messed up code their end
 
However I would tell them, that the prefix is correctly defined and you want to have a better error description and not some guessing. If they say, it's the prefix, then demand the XML standard they use, so you can look into the specification.
 
5:25 PM
@Hakre my jetbrains issue is reopened :)
 
@MarkH Yes, they certainly don't use an XML parser.
 
@hakre i got no documentation
i got a WSDL and that was it
 
i hope you they coded it standard
 
@MarkH Read: We're going to make our end work properly. If they are relying on a specific namespace prefix they will have problems with a lot of services.
 
if i post my phps would you mind taking a look to see if i am doing something wrong?
 
5:26 PM
@MarkH Tell them they need to fix that. You can specify the namespace, but not the prefix. Also according to SOAP there are no constraints to prefix a namespace with a specific name.
 
if you want open a new chatroom
it be clearer
 
so in your opinion my stuff is correct?
test it here, sourceid = 001912 user = GCSEPod, pass = Password
content and payload = no matter
 
it seem okay to me
 
Woop, I'm working from home tomorrow ^^ because I can
 
they seem to be of the mind the schema is different to the upload one
they get this in the upload:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GroupcallUpload xmlns="http://yourserver.co.uk/WebServices" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<sourceIdentifier>0019999</sourceIdentifier>
<userName>GCSEPod</userName>
<password>Password</password>
<xmlContent>all</xmlContent>
<xmlPayload>test</xmlPayload>
</GroupcallUpload>
</s:Body>
</s:Envelope>
and this for rhe response:

<SOAP-ENV:Body>
<ns1:GroupcallUploadResponse>
<ns1:GroupcallUploadResult>true</ns1:GroupcallUploadResult>
</ns1:GroupcallUploadResponse >
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
5:31 PM
oh my god, it is plain text password?
 
for now, yea
its just for testing
 
lol
will be a sha1 and random salt when done
but that last one is how they are getting response back and not like the other one above it
i think they are saying response one needs to look more like the 1st one
 
@MarkH your response uses namespace prefixes but the namespace prefixes are undefined.
 
i have game data around 2million and calculate 67 types filters, i created function for each filter so it take around 3 min to calculate one filter any idea how it reduce time and code
 
5:33 PM
@hakre so how to resolve that?
 
@Nileshpatel did you try to flush memory time to time
 
@Nileshpatel Don't use PHP
 
@Leigh then what to use
 
I find magic works best.
 
magic?
 
5:37 PM
home time. details on how to use magic at this time tomorrow!
 
i have game data around 2million and calculate 67 types filters, i created function for each filter so it take around 3 min to calculate one filter any idea how it reduce time and code
 
@Nileshpatel how big it is in kb?
you could process it client side using gpu acceleration
if that make any sens
 
@Happyninja it is in around 269mb
 
and load the data asynchronously
is here something you could do to make it smaller?
otherwise maybe a client storage would be more appropriate.
How is the data stocked?
 
data come from game when user playing game it store every second what user do
 
5:48 PM
guys i have a serverfault question :D
do you know if anyone can register a web site domain?
i mean, if i'm good on BIND and DNS
i can register them by myself? or i need a registrant anyway?
i mean who are registrant ? elite of nobodies?
 
It's possible to set up your own DNS server
I think there'd still be a cost if you'd want to directly register a domain name with the central DNS people.
 
registration is cheap
us no-ip or something if you don't want to register at least
 
Yeah but I think if you register through someone like GoDaddy, they take a cut.
 
why bothering? get yourself a domain name and generate unlimited subdomain
 
no but how without using godaddy
 
5:58 PM
@Happyninja data stocked i my sql and data come from game when user playing game it store every second what user do
 
@Michael there is no need to use godaddy, there is many registrant over the internet
 
@Happyninja oh
 
@Nileshpatel what about now updating the data every 1 second?
like update it when it is necessary
you can use client-side storage and use checkpoint to upload modification
with a nice loader like in skyrim
 
@Badaboooooom mw1.merriam-webster.com/dictionary/registrant , you are looking for a registrar and you can apply for your own toplevel domain if you don't like the nobodies.
 
@Happyninja i don't know client side storage
 
6:01 PM
@Nileshpatel is your game displayed in a browser?
 
Also you're free to use your own domain name infrastructure. You don't need to use the one everybody else is using.
 
@Happyninja yes online game
 
you don't use any third party plugin?
 
You'd have to configure your browser to point to the other DNS server.
 
no becuse game develope in flash
 
6:05 PM
what happen when the use hit the refresh button?
 
and data entry i data base so i create code in php for calculation on those data
 
@Nileshpatel in which flash version it is coded?
 
@Happyninja i dont know, i.e it store player posittion x and y cord and goal position x and y so i need to calculate distance of between this two and show in table
 
@Nileshpatel I think it could be faster to do it on the client side with flash
 
now not possible so i want create code in php and show it on table
 
6:12 PM
nilesh you can't create a game in PHP...
 
no not possible
 
And I am back in the USA!
 
welcome back ;)
 
@ircmaxell have nice a timezone-shift
 
6:14 PM
Thanks...
 
@Michael it is quite easy to create browser games in php
 
I see I missed some fireworks on internals...
 
a different question would be whether OP is able to make one or not
you can bet that there will be re-runs soon anyway on php.internals
 
@ircmaxell Have you kissed the ground when plane landed? :)
 
better not .. someone might mistake him for muslim
 
6:16 PM
@tereško you crated any one game in php
 
@tereško no you can't, it's only server-side
 
@Michael emm .. so what ?
or are you just trying to be annoying ?
 
@tereško games are mostly client-side
 
games are mostly serverside .. cleanside is just for decorations
 
Not for rendering graphics
 
6:18 PM
@tereško @Michael in flash most game are serverside
 
what graphics ?
 
And not for single-player games
 
@tereško LOL, colleague saw something like that fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-prn1/…
 
nvm
 
@Nileshpatel it's empty
 
6:20 PM
@tereško
i have game data around 2million and calculate 67 types filters, i created function for each filter so it take around 3 min to calculate one filter any idea how it reduce time and code i.e it store player posittion x and y cord and goal position x and y so i need to calculate distance of between this two and show in table
@Happyninja select date 1-11-2012
and select F1
 
@Michael think less "CS:GO" , more curseofbackdraft.com
 
teresko i meant the graphics, not the multiplayer...
 
@Nileshpatel whats the board shape ? hexagon or square grid ?
 
@Nileshpatel if you check the source code you already have some resource to parse it with javascript. From there you could plug-it with the flash player
 
@tereško quare grid
 
6:24 PM
php is usually used for websites
 
@Nileshpatel i think this would be the direction you should be looking into : en.wikipedia.org/wiki/Bresenham's_line_algorithm , you have X1,Y1 and X2, Y2 .. and you need to draw a line between the two , then find the shortest path on that line
 
@Nileshpatel i really think you shouldn't track the player like it. what happen if there is a delay between request? the game will freeze?
 
@Michael php is used for a lot of things
 
@tereško ik
 
@Happyninja yes u r right
@tereško my problem is that it take lot of time in execution because i have 2milions of data and when i fire query it not give any result if i work on only 10000 data it work fine what i do
 
6:30 PM
that sentence made no sense
emm .. it might be related to the fact, that you are trying to gather information about all the players
i do not know what sort of game you are actually talking about , but if it is some sort of persistent one, then you should only call queries about players that are online , and other characters that are in the visibility-range of online players
 
This question is too broad
 
CAM
Yo, I implemented @ircmaxell 's Mediator in my project and Now within my classes I want to fire the triggers off, what would be the best way to approach this? I have a mediator register with all of my listeners, and I get PHP Warning: Invalid argument supplied for foreach() in /core/lib/Mediator/Mediator.php on line 23 cl.ly/image/172D232X3e3D
 
6:45 PM
@Nileshpatel You should make a RESTful web service implemented in PHP to handle your game's traffic.
 
A RESTful web service consists of raw HTTP requests that are formatted in a certain way.
They make use of specially-formatted URLs, along with HTTP methods, like GET, POST, and DELETE.
For example, to delete a resource, you might send a DELETE request to "http://example.com/resource/1234" where "1234" is the ID of the resource.
And to get the same resource, you would send a GET request to the same URL.
It's a popular alternative to SOAP web services, as SOAP is often seen as overly-complex.
 
@ircmaxell how was the conf?
 
0
Q: How does a php script run without reloading the page

John DoeThis seems a little vague, but you see this a lot. For instance on facebooks notification system, it will display the total notifications on the top. StackOverflow does the samething on the questions page, Youtube does the same thing in the comment section. I guess my question really is, how does...

 
Anyone use Notepad++?
 

« first day (835 days earlier)      last day (4113 days later) »