« first day (817 days earlier)      last day (4122 days later) » 

3:00 PM
@wes i tried aptana a few years back. it was decent. dont know anything about the current version though.
 
user652649
@hakre LOL
 
user652649
also __constrCUT will not work watch out @hakre lol
 
@hakre well, it wouldnt be called in both cases ;)
 
user652649
@Gordon BAM!
 
@wes arggl also @Gordon
 
3:01 PM
@wes both svn and git integration in storm are very much to my liking... using git more these days so I don't know about the recent improvements with svn integration but git integration is getting better and better, stuff like automatic switching of branches for several repos, also github integration, gist integration, etc.
 
@DaveRandom I'd love to set it up both ways eventually (emulating Linux under Windows and emulating Windows under Linux, that is) but first I just gotta start using linux. It's not about needing linux for a certain tool, but about no longer always using Windows. (I don't think I've used my Ubuntu install in months despite the fact that my bootloader has it as its default.)
 
@DaveRandom Okay. Can I use directly PDO in mycode? Or do I need to add any extra things to make use of PDO? If not, I would convert my code according to PDO and make it quick with no sleep.
 
i dont use the vcs integration in phpstorm. i always code with a terminal open next to the IDE. same for unit tests
 
@Alex_ios Yes, but don't. If I were doing that in a procedural manner, I would wrap the queries in a do {} while(FALSE); so you can break; out of it (kind of similar functionally to a try/catch) and have a $success = FALSE; at the top and $success = TRUE; at the bottom, so afterwards you can do the if() block from that example. The real solution, though, is to use PDO (IMO)
 
would it be wiser to post a question on how to approach a certain problem on programmers rather than SO. because I have no clue on how to deal with this issue
 
user652649
3:03 PM
@markus-tharkun coooool
 
@Alex_ios Yes, it's relatively easy to convert, you just need to read the docs properly. The API for PDO is very different to ext/mysql and mysqli, but it's a lot simpler (I think).
 
user652649
now i need to know one more thing and i will be totally happy: does exist a free good svn/git server for windows?
 
@markus-tharkun cvs integrationg? Ever since I had to use svn on the command line for a while due to circumstances I can't use GUI cvs's anymore
 
@Jasper like gordon said, there's a shell open too, some stuff is very easy in storm though and that, I use
 
@DaveRandom Okay. Fine. But do I need to add any extra things for it. As if I need to use any other features in java, most probably we need to add third party jars as library. So do I need any thing something like that to make use of PDO?
 
3:05 PM
@MarioS Is it a language agnostic algo question? If so, probably yes. But the first question would still be "What have you tried?" so I would still have a go at writing it yourself first so you can show your attempt, no matter how wrong it might be.
Actually, in fact, no it's probably still better for SO
 
I see
 
@Alex_ios Oh I see what you mean. Well you will need PDO_mysql installed, what sort of server are you using? (VPS, shared host, private box etc)
 
I like SO. People are nice. Like @DaveRandom, always so helpful.
 
Most hosts provide PDO these days
 
@DaveRandom I am using xampp for the time being in the localhost.
 
3:08 PM
<-- Single handedly changing the community view of the PHP room. You can all thank me later.
:-P
@Alex_ios Oh OK, well you just need to enable it in php.ini then. It is quite possibly already enabled.
 
You do have your moments though Dave -----------> 2h ago
 
user652649
@DaveRandom most hosts still have magic quotes on
 
@Alex_ios Just run <?php var_dump(PDO::getAvailableDrivers()); - you'll either get a fatal error (no PDO at all) or an array showing the installed drivers, which needs to contain mysql
 
Good morning
 
@wes You are using the wrong hosts :-P Seriously though, is that really true for anyone other than the very cheapest hosts running on really old boxes?
 
3:12 PM
@markus-tharkun Having trouble to find it out from the documentation: how's the autocomplete in PHPStorm? (Perhaps the feature in Notepad++ I have gotten most addicted to is the word based autocompletion that completes based on any other words in the document)
 
@MarioS :-P
 
@Jasper what do you mean by 'how's the autocomplete?' .... IMHO, it's great and does all sorts of things.
 
@DaveRandom I am getting this. array(2) { [0]=> string(5) "mysql" [1]=> string(6) "sqlite" }
So, it supports PDO's .
Right?
 
user652649
@DaveRandom we are using the "italian leader" of webhosting... we had to buy several vps because hosting sucks... years and years of fighting only to get mysql and php updated
 
Straw poll: Javascript, in a browser extension environment (so not really possible to spoof data unless you've already compromised the machine), lazy loading modules by loading the code string from the file and eval()ing it. Acceptable?
@PeeHaa @hakre ^^
@Alex_ios Yep, you're good to go.
 
user652649
3:16 PM
@DaveRandom chrome?
 
And FF
 
@markus-tharkun Yeah just sort of meant that, whether it was to your liking and whether there was anything that it could autocomplete but doesn't
 
(and potentially eventually Opera)
 
user652649
ff extensions mechanism really sucks... thats why they recently introduced jetpack... i don't know how chrome extensions work. but yes it is not acceptable... can you paste the code?
 
damn disconnection of internet
 
user652649
3:20 PM
correction: ff sucks in the totality of itself... lol
 
@wes :(
 
@wes No arguments there
 
@Jasper when I work, I want to feel that things go smoothly, that the IDE is not in my way, that I don't get annoyed by it and have to dig through settings for hours to change something small, etc. for example with zend studio I often had the feeling that I was battling the IDE and using a good text editor was smoother, with storm I don't have that battling feeling very often... so personally I'm very pleased with the storm experience...
 
@andho There speaks a man who's never tried to alter FF in any way.
@wes Not really, I've not written it yet :-P
 
@DaveRandom true true, but as a web developer I have tried to shift to Chrome but always keep coming back to Firefox for some of the features/addons that I couldn't live without
 
3:22 PM
Something like firebug?
 
user652649
i was a fanboy of firefox. now it simply sucks. it is slow, hangs randomly... we waited electrolysis for years
 
@wes It's all good, I'm building a build system so I don't have to lazy load, I was just trying to simplify the manifests, but I guess it's probably better to be explicit.
 
@wes yeah i should start making my wishlist for chrome, and check periodically if it is complete
but i also support firefox for it's open community
 
OMG! What's this warning? o_O As the transactions have come into picture, I am thinking to start PDO's But what's this warning in the start itself in this doc?
 
if any of you would like to get 200 of my rep, please consider answering my question (or tell me how to write it better):
5
Q: How to solve constructor injection of Zend\Session?

markus-tharkunThe architecture of the Session component in Zend Framework 2 is still undocumented and does not want to make sense to me. A short summary of the important pieces: Zend\Session\Storage\SessionStorage maps and replaces the $_SESSION superglobal Zend\Session\SessionManager is a facade to manage ...

 
user652649
3:28 PM
a team (which includes me), here where i work, started a project in XUL/HTML... is(was) a web-based OS. now the project is frozen because after months of developing we realized that firefox sucks.
 
@wes Incidentally, Chrome's extension platform is way more developer friendly than FF. It's less powerful because there's no equivalent of XUL overlays, it's all injected scripts and HTML, but it's so much simpler. The insane super mega ultra global scope that's shared between all extension is gone for a start, so there's no need to make all your names ridiculously long to avoid namespace collisions etc.
 
user652649
as far as i know extensions in firefox do have the total access to your machine
 
If you write XPCOM modules that's probably true
 
user652649
thats why it is so powerful
 
within the confines of the permissions the user running the browser has
 
3:33 PM
@Alex_ios the MyISAM engine does not support transactions
 
user652649
yes the language you use in firefox is the xpcom wrapper, that hasn't a nice interface... it is a mess xD
 
> When writing transactional database code using a table type that does not support transactions, MySQL will pretend that a transaction was initiated successfully.
 
so if you update two tables expecting transactional integrity, one InnoDB and one MyISAM and then you rollback, the MyISAM table will not rollback
 
Gee, thanks MySQL, that's very helpful.
@Alex_ios The issue here is one with MySQL, it's got nothing to do with PDO. You'd have the same issue with MySQLi and ext/mysql as well
 
user652649
lot of things went wrong with that project... for example we choose to use flexbox, that at that time wasn't working properly, and it is changing nowadays
 
3:36 PM
The lesson here is "don't use MyISAM" unless you really need to.
 
I think in MySQL 5.5 the InnoDB engine performance is very close to MyISAM
 
@wes My brain melted when I read some of those docs. Luckily I haven't really had to go anywhere near it for what I'm/we're doing, it's all just injected JS. I really need to convert to bootstrapped but the docs are terrible and I've not plucked up the courage yet.
 
Just learned about the IBM Songbook. The lyrics are hilarious! http://www-03.ibm.com/ibm/history/exhibits/music/pdf/SB1.pdf
you gotta see that. It's awesome
 
user652649
@DaveRandom the lesson here is use innodb only if it works properly.. lol
 
@wes Feel free to contribute if you think you know what you are doing: github.com/cv-pls/ff-cv-pls/tree/dev
 
user652649
3:38 PM
lol wut?
 
user652649
whats that
 
user652649
@DaveRandom voting on stackoverflow?
 
has anybody here successfully integrated symfony FOSUserBundle and FOSFacebookBundle?
 
@andho people I know have
 
3:44 PM
@wes I'm just refactoring some stuff, my long term goal is to create a generic cross-platform extension builder in another project.
 
user652649
@DaveRandom i'm not sure i totally understand how stackoverflow works... but if you have questions i can try to help or i will ask to my coworkers here
 
i guess what i'm doing different from the docs are using the Doctrine MongoDB ODM instead of ORM
 
@andho the people I know that have include the Doctrine Lead Developer
not sure that helps anything :)
 
@Gordon does any of these people hang around here?
or twitter
 
@wes The cv-pls process is not really the point of the discussion above, what I'm now working on is (largely) abstracted from that, but it's sort of the thing I'm modelling it on.
 
3:45 PM
@andho no :) but they hang in IRC
@andho if you tell me your question, I can forward it, but I cannot guarantee they will answer it
 
user652649
ok @DaveRandom the point is cross browser extensions?
 
@DaveRandom Where is the file? In the extension zip?
 
@PeeHaa yes
 
@DaveRandom yeah true. After next release
 
@Gordon guess i'll play around a bit
 
3:49 PM
0
Q: How to properly increment some array key, even if key needs to be created?

The OptometristSuppose you need to create a 'top' of some sort and have code like this: $matches=array(); foreach ($array as $v){ $matches[processing($v)]++; } This will output a Notice: Undefined index for the cases the index needs creating. What would be the best way to tacked these cases since you K...

 
@wes Yes. Which we already have (kinda). The repo I linked is just a wrapper for the application in this one, there's also a Chrome wrapper for it. The nuts and bolts of the application are shared between both. I'm just trying to provide a unified API that works in both, and an abstract manifest format, with a bunch of build scripts that spit out an XPI and a CRX that work the same way.
The available functionality will be reduced somewhat to the lowest common denominator, but that still gives worthwhile possibilities IMO.
 
user652649
@DaveRandom you should see jetpack... as far as i know it has much nicer api, closer to chrome one... also i think firefox in the future will not admit xpcom extensions anymore
 
user652649
it is a nice project btw...
 
@SAHIL yes
 
@Happyninja I'd say that's no, really :P
 
3:56 PM
@wes don't hear about jetpack now though
 
@Jasper it was regarding ownership over httpd.conf on xamp mac environment ;p
 
Gah, I really can't do this array stuff :/
 
@wes Yeh but isn't that just a nicer API for building stuff that still runs on XPCOM underneath?
 
@Happyninja The comment you responded to was a "Are you there" from six and a half hours ago
 
@Jasper yes, it is true, but I was there 5 hours ago
 
user652649
3:59 PM
of course, like everything in firefox, @DaveRandom but it is limited and safe...
 
@Happyninja Ah, fair enough :P I was just messing around of course, in the end doesn't really matter
 
@Jasper it's okay
;)
 
@Gordon I don't get it, where's the funny bit? :/
 
@Leigh further down... very funny indeed
 
4:04 PM
I hate when gmail automatically Top post and hides the quotes!
 
@Leigh that it is actually a real thing. IBM had it's own songbook with lyrics about the company
and people would sing these at events
they were supposed to raise morale
> T.J. Watson, we all honor you / You're so big and so square and so true / We will follow and serve with you forever / All the world must know what IBM can do …
 
@Gordon like walmart?
 
@Happyninja dunno if they had one, too
 
@Gordon yes, they had; when i was 16 it was my first night time job
 
dam internet connections
 
4:08 PM
@wes I wish you'd mentioned that you knew Mozilla before, I spent a good few hours last weekend banging my head against a wall trying to modify a jsm in omni.ja and FF was ignoring my changes, asked an SO question in the end.
 
@ircmaxell what kind of issue?
 
eih, spotty connection, dropped packets, etc
 
user652649
@DaveRandom i'm not that good with mozilla... my experience is limited... what is omni ?
 
user652649
@DaveRandom probably you had to recreate the profile... it is normal
 
@wes It's a jar that contains a bunch of jsm and XPCOM components, turns out it has an internal cache of pre-compiled jsms and in order to use the raw source code version you have to remove the cached compiled one. This is documented exactly nowhere.
@wes Had no effect, it's a global file.
 
4:14 PM
@Gordon You like IBM's lyrics? Maybe you should check out RIM's Vice President's song to developers in a desperate attempt to keep them interested in the Blackberry platform... youtube.com/watch?v=WlsahuZ_4oM
 
user652649
for that things i remember that was a preference value
 
user652649
like disable_cache or something
 
user652649
nglayout.debug._disable_xul_cache_ex this maybe.. i don't remember sorry... but you succeeded in removing the cached one or not?
 
@wes No, none of it had any effect. I was trawling the internet for hours.
@wes Yeh that doesn't affect the jsms, it only affects the XUL
However, like I say, it is just not documented anywhere. There may be some undocumented setting for it.
Removing it sorted it out straight away.
 
user652649
is omni global or it is related to your package only?
 
4:18 PM
@Jimbo hahaha, awesome … rio speedwagon cover
 
Ridiculously I just needed to log a string to the console to inspect it for debugging, as soon as I sorted that out I fixed the actual problem in about half an hour.
@wes Totally global. In the prog files directory, ships with FF
 
@Gordon Yep, I have to say that I was cringing most of the way through, but by the end I thought that they'd done a good job
 
I understand why the cache exists, skips the compilation step on every startup, it would just be nice if they told you about it.
 
@ircmaxell it is new, does anything change in your current environment? and iti is wired, wireless?
 
@Jimbo I am still hoping someone will do a cover of AC/DC's TNT for PHP ;)
 
4:21 PM
both
 
@Gordon PHP, it's dynamite! That'd be pretty cool. Yeah I've seen the anthem, not too impressed :)
 
user652649
@DaveRandom in practice in omni.jar there is some compiled js code?
 
@wes Yes. As well as the raw source code.
 
@Dezigo hi
 
Lo
 
4:32 PM
@Oyeme hey
 
@DaveRandom And yet it still starts slow
 
:-D
 
user652649
@DaveRandom As of Gecko 2 (Firefox 4), JavaScript files are cached ("fastload"). The -purgecaches command-line flag disables this behavior. Alternatively, you can set the MOZ_PURGE_CACHES environment variable. See this bug for more information.
 
@wes Yep, seen that as well - -purgecaches has no effect on omni.ja
 
user652649
4:36 PM
do i deserve a beer?
 
user652649
FFFFFFFFFFFFFFFFFUUUUUUUUUU
 
Seriously, I think I read every single cache-related bug trying to do this.
 
user652649
but are you sure? try setting up a new clean profile
 
I knew it must be a cache issue but like I say, if the internal omni cache is documented anywhere, I can't find it. There is a bug that proposes the idea but it's still marked as open and after a bit of discussion it tails off into nothing.
 
user652649
yes as every discussion on mozilla's bugzilla
 
user652649
4:38 PM
lol
 
@wes if you say beer, what kind of beer do you mean?
 
user652649
tennent's
 
@wes David?
 
@wes Seriously man, there is nothing you can do. This is how I found the solution in the end.
 
user652649
@PeeHaa lolz
 
5:11 PM
I wonder, given xkcd.com/221 - What would happen to your computer if you created a device in place of /dev/urandom that only repeatedly emitted the number 4 - (aside from the security implications) - do you think the system would die in a fire?
 
@ircmaxell, yesterday you asked about the OCZ SSD failure rate. It turns out that we're seeing abnormally high rates because our salesfolks tend to only sell their low-end consumer-grade products, which are amazingly silly when inside a freaking high-end server. The ones we sold to that nosql company are these monsters, which I somehow expect aren't going to be a quality problem.
 
5:29 PM
@Charles When you say failure, are you referring to degradation due to repeated writes, eventually leading to failure? - Or some other issue?
 
@Leigh Failure in our case is usually just keeling over dead.
As in, nonresponsive, kaput, paperweight.
 
Hm, I don't have any experience with them dying. If a chip failed due to being somewhere over the IOPS limit, I don't know if it would render the whole drive dead or not.
I have an OCZ drive myself, and I haven't experienced any issues. My home PC isn't a server, but I do hammer it a bit
 
Yeah, this is mostly anecdote from the support guys. Haven't run the stats yet. Unfortunately stats are going to be a pain here because OCZ doesn't like letting us actually RMA the drives. Hard to track RMA'd things that aren't actually RMA'd.
 
Friday Warm-up Humor devopsreactions.tumblr.com
 
@Gordon :) I chuckled at a few.
 
user652649
5:38 PM
Mozilla Firefox (Not Responding)
oh! don't tell me!
 
@Charles Ah fair enough
 
When one writes an abstraction to Request and Response from a PHP applications point of view, does the Request object has the redirect method, or the Response object or both?
 
@Gordon good stuff
 
@hakre The Response
 
@Gordon I thought first, too. But isn't it actually a method on the request?
 
5:44 PM
@hakre no, because the applications response is to issue the redirect
 
@hakre a Request gets in. Something evaluates it and decides that the Request completes with a Redirect. That is the Response.
 
@Gordon Isn't what the PHP code does the concrete request? And the details of the protocol layer should kept out of it?
Also who says that calling the redirect method on the request object does not issue a response?
 
@hakre When I say sudo make me a sandwich, that is the Request. How you fulfill it is up to you
okay, well, that's actually an order :)
 
also the pov is from user.
 
the only interesting thing about Redirects is whether it gets send back to the client or should be evaluated immediately to safe the roundtrip
 
5:48 PM
@Gordon also if mapping is involved. and normally the mapping is inside the request
or I need to provide mapping into both the request and the response object.
 
IMO Request is merely the data. Everything that does something should happen outside
So mapping a Request is not part of the Request
but responsibility of a RequestMapper
 
Good point. I give the concrete Request class for the moment the Response interface, too, so it can do redirects.
@Gordon And for the Response then? Again another ResponseMapper?
But both then need to share some UrlMapping I suppose.
 
UrlMapping sounds like Router to me
 
Otherwise it's going to be problematic for an application to produce responses containing URLs.
 
@hakre why? The url would likely be in the Response Body
 
5:51 PM
As those URLs are part of the Response, they should not relate to any information comming in with the Request. For example the hostname should not be part of the request.
And whether or not the application is in the root directory of a server (so to speak classic URL path layouts) or somewhere else in some subdirectory, must not change how the application is using URLs in their responses.
As the Response is not the Request, the information from the Request should not tainting into the Response object.
@Gordon And now you tightly couple the URL routing into the Response?
 
@hakre I cant follow. You get a Request in. Map it to the classes that can act upon that Request and then create a Response with the result of that which you send back.
 
@Gordon So all those parts that create a Response, need to know about how the Mapper will resolve the outputs URLs to a new request.
I don't have the feeling this is really modular.
 
guys i'm in trouble
do you know any geolocation API service for retrieving nearest places of a given place?
*from a given place
 
@Badaboooooom the same place is always the nearest place.
 
@hakre you are clever
 
5:56 PM
Next to that you only change the coords by some little offset, I don't see that this needs an API.
 
@hakre what are output URLs?
 
@Gordon URLs that part of the response data.
 
@hakre i need that in a kilometers range
 
@hakre like what? paths to assets? Like /img/foo.jpg?
 
5:57 PM
for example nearest places between 50 km
 
@Gordon for example. or the link to the next page that fires up some other action.
@Badaboooooom which kind of places ;) cities?
 
eheh cities
 
@hakre sorry, i dont understand the problem
 
but i don't want small town, i would like main 30/40K citizens cities
 
@Badaboooooom geonames.org
 
5:58 PM
so a sort of sort by population could be great
i downloaded and imported the geonames places ;)
 
@Gordon The link /img/foo.jpg as that would not work alone. It needs a base URI it relates to. The response therefore is not yet complete.
 
but my server is not fast, he needs to search trough 6mil records with that db
@hakre
so an API will be really faster
and easier :P
my logic is :
get user ip location coordinates
 
@hakre if the Response contain an HTML page, that would work perfectly well. It would also work for anything else you send back. The client just has to know that it's an absolute link pertaining to the response sending server
 
search nearest places
 
user1125394
6:00 PM
@Badaboooooom what db?
 
geonames db
6mil records
my server is cheap :D
 
user1125394
what kind of db is it?
 
@Gordon Well, move the site on the server, change the path to the application, change the domain name. How does this work? It works not.
 
mysql
it tooks 1/2 seconds for that :/
querying i mean
 
There is a lot of hidden dependency for both the response as well for the actions creating it.
 
user1125394
6:01 PM
@Badaboooooom you have several choices
 
@cab show me them :D
 
Probably I dislike passing an URL-Helper object around.
 
@hakre i really see no problem there
 
user1125394
the webscale :))
 
webscale? :D
 
6:01 PM
And I probably prefer much more to use URLs relative to the context of the application as well, not to the server system the application is used on.
 
here i can get the user ip location coordinates 41.89474
freegeoip.net/json
but then i would like to retrieve speedly the nearest locations
 
user1125394
@Badaboooooom no but use geocell code.google.com/p/geomodel/source/browse/trunk/geo/geocell.py to to store/ search in your positions
 
Otherwise it covers the niceness of URLs with code, which seems like a loss to me.
 
@cab to me?
 
user1125394
yes
 
user1125394
6:03 PM
you need to port it in PHP
 
uhm and what that does?
need to study that :/ damn :D
 
user1125394
(lat,lng) -> geocells
 
BUT IT IS PYTHON
 
user1125394
ex: (43, 7) -> ['c', 'c3', 'c3d' ...
 
i need php :D
 
user1125394
6:04 PM
do your port$
 
user1125394
it's one day of work
 
damn, there is nothing similar for php ? :/
this is really good
 
user1125394
there are java and python ports
 
maybe googling ... :P
 
user1125394
but you run a python script from php
 
6:06 PM
uhmmmm
but this will be slow really slow
:(
 
user1125394
it's several cpu clock times in python
 
not understood sorry .. what do you mean?
and also wtf are you doing in php chat if you post python links ????? :D ... joking man ;)
 
user1125394
this thing ported in php will be 2 or 3x larger
 
sure
@Neal you will never bring me to python
:D
sure there is no API for retrieving nearest places?
 
user1125394
6:11 PM
yep
 
using openstreetmap or google maps API?
nothing :(
and can you suggest a free stable ip location API service?
pls
 
user1125394
cells=geocell.best_bbox_search_cells(geotypes.Box(float(n),float(e),float(s), float(w)))
 
? :P
 
user1125394
will you you the cells that are in the square n, e, s, w
 
oh understood
 
user1125394
6:13 PM
then you query these cells in your db
 
that should be great
 
user1125394
geocell.compute(geotypes.Point(lat, lng), 14) for the opposite way
 
yes but it's too slow on my server :/
i have a cheap server
 
@Gordon: Consider you have a module that deals with the user-profile interaction, like uploading a new avatar image. That module normally uses the (relative to it's context) /uppload-avatar URI. to signal the link to that action in it's response. The request did already abstract the path to the concrete action within the application context to /profiles, the example URI of the response maps to /profiles/upload-avatar in the application context.
How that maps on the other hand to conrete URIs in the browser, like the user management on it's own subdomain is a totally different story. So which part is now responsible? Everything for everything just to get the URLs transparently done?
 
and querying that will result in infinite loading
:(
 
6:18 PM
Whattap people
 
CAM
@ircmaxell Good vid on Dependency Injection !!!
 
@CAM tell @ircmaxell to watch it. he might learn a thing or two
 
CAM
HHAHA ...Dude he made the vid
 
@CAM i know. i was joking
 
user1125394
@Badaboooooom and you need a schema like this github.com/c-ab/myMap_python/blob/master/schema.sql 2 first tables
 
CAM
6:20 PM
Ahh, context is hard to get through chat
 
ok i'll try to se that thanks
 
:-D
thanks!!!
 
@hakre I dont see what that has to do with Request and Response objects though
 
@Gordon /me loves your friday warm up
 
@PeeHaa good :) and tomorrow … Rebecca Black
 
6:22 PM
of course
 
@Gordon Which one is responsible to map the URLs the application is using internally to the ones that the are used in the protocol layer and the client.
 
@ALL Can we yell at this OP:
0
Q: PHP redefine constant without runkit or another way to declare a namespace

opotonilI am doing a framework similar to CodeIgniter but with namespaces. I don't want use runkit because many hosting providers don't have the extension. The Namespaces are based on paths to the file class, if I who load the file class too I know the namespace has the class but I don´t know what sinta...

 
And I mean those the application is outputting (so in the response).
The input URIs are normally taking care of in the diverse named Router / Mapper /UrlMapper or what not objects.
That's just straight forward and easy to grasp.
 
does anyone could point me out how to simulate server load regarding $_SESSION weight? I want to emulate 2,000 users load.
 
What is about the response, who care about URLs there?
Or is it just hardencoded, so no care at all? It seems so often. Or that little UrlHelperthat magically takes care (and is only hiding to not solve that problem).
 
6:26 PM
@hakre the URLs you are refering to are part of a concrete UI, so yes, hardcoding them or using a URL helper sounds okay to me. It just doesnt have anything to do with the actual Response object. It's just arbitrary data inside the Response body.
 
@Gordon Yes, and all I wanted is to improve that situation a bit giving the application itself a bit of the wonderful works of the URI back.
 
@hakre if anything, it's a responsibility of the presentation layer IMO
 
@Gordon Yes I normally solve that with an output filter.
which works very well for HTML responses.
 
Hi, Can anyone guide me to accomplish this task stackoverflow.com/questions/14264757/…
 
user1125394
6:33 PM
any way to put a relative url with websockets? "ws://1xx.x.x.x:8080/websocket" I 'd like to just put new WebSocket("/websocket") but doesn't work like that
 
wow too fast to even leave a link to the error reference :)
 
@cab well depends on how you made the websocket server.
huh? no the SERVER
 
user1125394
the server handles both protocols at that uri
 
user1125394
but if it detects "Websocket" in the header it upgrade the connection
 
user1125394
ws = new WebSocket("/websocket");
 > Wrong url scheme for WebSocket localhost:8080/websocket
 
user1125394
6:39 PM
it's ok I'll provide a full uri scheme..
 
@cab what are you using for websockets?
 
user1125394
the erlang one, rememeber :) ?
 
lol no, no I don't. and why are you asking about it in the php room? @cab
 
@cab you changed your name from cyril? so confusing! :D
 
user1125394
@igorw tes my initials sorry
 
6:50 PM
posted on January 10, 2013 by Ulf Wendel

MySQL 5.6 introduces a new features that must be used with great care. A MySQL users password can be marked as expired. This way, a DBA can force a user to set or reset his password. The MySQL user must set a (new) password before he is allowed to do anything else. As a consequence, if a users password is expired all standard PHP MySQL API connect calls will fail. Applications stop working unl

 
Anonymous
hello hello
 
@TheCOMPLETEPHPNewbie I don't know why you say hello I say goodbye.
 

« first day (817 days earlier)      last day (4122 days later) »