« first day (1474 days earlier)      last day (3471 days later) » 

12:46 AM
 
UPDATE {table} SET column=value, column=value WHERE id={id}
is a correct query right?
 
Should be.
 
I am really in doubt now
okay fuck you VS
 
UPDATE [LOW_PRIORITY] [IGNORE] table_reference
    SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ...
    [WHERE where_condition]
    [ORDER BY ...]
    [LIMIT row_count]
 
"UPDATE Article SET Name='test', Content='dit is een test artikel', Published='0' WHERE Id = '1027'"

Visual Studio be like: No fuck you
xD
same that the auto increment of VS be like: 1, 3 ,9 , 20, 100, 299, 500, 1027
 
12:51 AM
Table names and columns should be lowercase, and those are not numbers, but strings.
 
Ye I know it's not my table and column name
it's a boredom table + column from our teacher
 
Makes sense, then.
 
that increment <3 visual studio xD
I am gonna joke a bit in C# to get my answers
 
Put flame retardant suit on...
 
@webarto No need to :)
I seen enough today and have been really pissed off enough today
And let's say it's not very "normal" human sensed what I seen.
I instead threatened if I hear and see if it happens again, that he can feel the cold ground under our feets.
 
1:07 AM
Hey webarto, alive?
 
1:25 AM
So if you guys want to make an MVC that has database configuration that could be changed
I have noticed usually people create configuration files and in them they make [develop] and [production] and then use the db config to make a connection to the DB and keep it in a registry, but I find that a bit of a poor design
 
not fixed
gonna sleep tho
CYA!
 
2:31 AM
Hm, tried doing a DI with shared and non-shared but it seems a bit stupid. Any comments: http://3v4l.org/fnRTh
NOTE: It is not recursive yet.
 
 
1 hour later…
3:40 AM
Evening, Room 11.
 
Evening
0
Q: wrap sql qeury with brackets

underscoreI have a following query SELECT DISTINCT `Operator` FROM `allowedOperator` ORDER BY `inqueryId` DESC LIMIT 1 RESULT Operator xxxxxx But if i wrap it with () brackets it gave me more results than expected. (SELECT DISTINCT `Operator` FROM `allowedOperator` ORDER BY `inqueryId` DESC LIMI...

 
@DanLugg If you have time tomorrow I probably can manage to find some to talk library code.
 
4:24 AM
Good Morning :)
We are half in the week that means in 2-3days ITS FRIDAY:)
 
4:46 AM
I have a general question, not sure where else I'd go to ask this.

In the doctrine documentation (http://doctrine-orm.readthedocs.org/en/latest/reference/best-practices.html) it says: Don’t map foreign keys to fields in an entity

Maybe I'm misunderstanding it but as far as I can tell all the Doctrine examples do exactly this, like a Post has an association with many Comment entities, and a Comment entity has a field 'post' that maps the foreign key back to Post
 
4:56 AM
@LeviMorrison sounds good, if I have a chance I will show you the POC for the magic enumerator I was talking about. I don't know if it's going to work that well, however I'll give it a try, lol :-)
Night @room
 
If I create a field of type DOUBLE(10,6) in MySQL and try to enter value of type DOUBLE(10,8) will that be automatically truncated ?
 
6:00 AM
morning :)
 
6:38 AM
good morning
 
Morning
 
7:09 AM
for fuck sake
0
A: PHP MVC - Model Relations

JodoThe Model is really dumb, only fetching the data the controller needs and therefore the logic should be inside the controller. First get the data from the user model, and then based on the gender_id get the data from the gender model. As long as the user can only be one gender it is also posibl...

 
@tereško :)
 
7:34 AM
posted on October 29, 2014 by kbironneau

/* by HadesCH */

 
@tereško OP just messes DTO with model layer. That's fine. :-)
 
8:19 AM
> only fetching the data the controller needs and therefore the logic should be inside the controller.
oh really
 
good mornings
 
Hello everyone
 
good meurning :)
 
i am working in magento + FedEx integration for India only

But i am getting below error

The PurposeOfShipmentType is null, empty or invalid.
 
8:30 AM
Ok i am sorry. Thanks for the link
 
9:06 AM
Morning
 
uggggggg mornig
 
morning
look at this iOS guy
 
9:22 AM
Moárning
 
Haha I invented a nice metaphor about global state variable. Here it is:
Using global state variables is like using a single toothbrush with your room mates. You are never sure who used it to clean his ass instead of his teeth.
 
Answer in most cases: everyone
 
haha apparently people like the smell of ass in their mouth
by this I mean spooky action
 
posted on October 29, 2014 by kbironneau

/* by marius */

 
9:41 AM
Anyone know how to set request headers in artax's requestMulti()?
 
Comment on PHP Brainfuck interpreter on some forum: Why would you combine in one project a language that was made as a joke for trolling with Brainfuck?
 
@HamZa nuke for trying to be helpful?
 
small SQL question: I need values (ids) from 3 columns of a table and i use union for that, but i need to get all the intel from table B by those id's do I use select * from tableB where x= union query or?
 
@ziGi maybe you need to read the question first
 
9:56 AM
mornings
 
@HamZa I had, his answer has nothing to do, but he just can't comprehend it I guess
 
@ziGi then why should we keep an off-topic answer?
 
no
don't
 
well that's the reason why I said "nuke"
 
Hey, I saw that some people like using a DIC and pass it instead of multiple dependencies
do you think that is a good practice?
 
9:59 AM
Morning @DaveRandom Don't suppose you know how to set headers in a requestMulti() ?
I see the second param is $options so it's the same as a normal request options. Perhaps there.
 
@Fabien Pass an array of requests instead of URIs
 
Oh, didn't know I could. cool cheers.
 
@DaveRandom any comments on my question?
 
@Fabien You can mix request instances and URIs in the array, if it's a string it gets converted to a request internally
Passing URIs is for the very simplest case, anything that takes a URI also takes a request
@ziGi That would be (mis)using a DiC as a service locator and no, it's not good practice
 
@DaveRandom Awesome thanks.
 
10:09 AM
@DaveRandom I saw this example in PhalconPHP since they propose doing it like this. So what do you do in the case you have multiple dependencies, or you think there is something smelly if there are too many dependencies that have to be passed?
 
A long list of dependencies is a sign that you need to break something up a bit (I try and stick to a hard limit of 5 but usually fewer).
Injecting the DiC turns it into a service locator, which hides dependencies and violates the principles of IoC
 
@DaveRandom I think additionally you have a chain of dependencies so it is more or less a hierarchy
example
$a = new A();
$b = new B($a);
$c = new C($b);
@DaveRandom that is what I thought
But I was reading the Phalcon manual last night and I got a bit confused
oh wait, the title is DI/Service Location lol
 
Could I ask a question?
 
what framework X does != good practice, I don't really know a lot about Phalcon tbh but I've heard people being unkind about it
 
so apparently they do use Service Location
 
10:13 AM
A really quick one actually
 
@Acejakk You just did... ;-)
 
@DaveRandom I really wanted to see a good implementation which keeps SOLID practices but I am still searching
@Acejakk Don't ask if you could ask, just do it.
I remember people in school did the same thing, just wasting time
 
I have a JSON response like this sometext /r sometext /r sometext
 
@DaveRandom just read the additional splat RFC, cool stuff.
 
and I want:
sometext

sometext

sometext
I have this $string = preg_replace('/\r/', what do I insert here?? ,$string); in my code
 
+1
 
what do I insert there to replace for a new blank line?
 
ok thank you guys
 
@Acejakk in html?
 
10:15 AM
in my php
 
@Acejakk Don't you just want to json_decode() it?
 
@DaveRandom I've run out of microwave pizza. This is the end! Seriously though, I might have to 'cook' tonight.
 
@Fabien there is such a thing as microwave pizza?
 
There's many unspeakable evils in this world.
 
@Fabien Stop being such a baby and just do it :-P
Honestly, you wouldn't last 5 minutes in the zombie apocalypse
 
10:17 AM
I am fetching a text from a database using a php script. the text has lots of html tags in it which I want to replace for a clean JSON response. at the moment, after applying some stuff, it is all replaced but this.
my text still appears with no new blank lines and in its place it displays /r in the JSON response
 
@Acejakk Your fundamental problem is that you need to stop putting HTML into the database in the first place
 
That is the problem, correct
 
@DaveRandom lol. As a zombie I would and my cooking woes would be cured.
 
But my database has lots and lots of text which I don't have time to change atm
 
@DaveRandom are there people still doing this?
 
10:18 AM
@Acejakk \r is a carriage return, when a JSON decoder interprets it they will be converted to the correct characters
 
multi-ping!
 
@ziGi All over the place
There are legitimate cases for doing it, such as what the SE API does
 
@DaveRandom actually, no. It just displays /r ..
 
I imagine they have those HTML response pre-generated at the back end, you wouldn't want to do that every time
 
@DaveRandom what is SE API?
 
10:19 AM
@Acejakk Wait, \r or /r?
 
Java?
 
@ziGi Sorry, SE == Stack Exchange
 
@DaveRandom imgur.com/IGNXwQT
I meant \r
That is my actual JSON response. Just text and \r's in the middle where a new blank line should be
 
JSON doesn't support bare new lines, that's how they get encoded
They should probably be \r\n or \n though
\r doesn't make a lot of sense, generally
 
I must say @rdlowrey writes really nice well formated and understandable README files
 
10:24 AM
@DaveRandom so what I am asking for will never be possible because of JSON not interpreting new lines?
 
@ziGi Yeh he's someone you should generally pay attention to, and in general follows good practices everywhere (with the possible exception of maintaining a good VCS history although I think he's got a lot better for that as well)
Also, remember that it's OK to just hack something together quickly sometimes. You don't always have to spend 2 weeks on something you could hack together so it "just works" in 2 days...
As long as you are prepared to rewrite that simple thing when it gets more complicated, it doesn't have to be perfect
@Acejakk In exactly the same way as Javascript strings don't support bare new lines, yes
 
@DaveRandom I want to learn some good practices and following SOLID and that won't happen only with reading, so I decided to make my own simple MVC and see how things go because I think it is a great experience struggling with problems that are related to the frameworks.
 
@DaveRandom Basically , my database has fields with html bold tags etc which I want to remove. Also, convert html stuff to utf 8. I am using this function

function removeHTMLtags($string){
$string = html_entity_decode($string);
return strip_tags($string, '<(.*?)>');
}
 
@DaveRandom about the hacking, I do agree but it really depends on the situation.
 
@Acejakk Suggest you read json.org - it will take you no more than 5 minutes to read, and that's basically the entire JSON spec (there are some ancillary things not mentioned there but it's good enough
 
10:28 AM
New Avengers trailer is pretty hype.
 
@Acejakk You probably want to do that the other way round (strip tags first, then decode entities)
 
@DaveRandom This actually outputs \r\n as you said in the JSON response.
 
@Fabien Unless it has Patrick Macnee and Joanna Lumley in it I'm not interested.
I imagine he's dead, as well
 
lol
 
@ziGi Yeh totally
 
10:31 AM
Unsure how action packed a movie with them could be
 
@ziGi I suggest you don't focus on the "MVC" element at all, just focus on "Separation of Concerns"
 
I read btw that service locator is an anti-pattern
 
@DaveRandom So another way to solve this problem would be to edit the database itself?
 
@DaveRandom yeah, well it won't be a typical MVC but exactly "Separation of Concerns" so I will write a few modules for example DI and IoC to be able to build components and than separate the concerns for the Model layer, Controller layer, View layer
and see how it goes
because I see quite often people use ORM or ActiveRecord
 
@DaveRandom That database is used to display some text in the website.. Wouldn't changing it affect the website?
 
10:34 AM
but I haven't seen a framework promoting Service layer, Domain Model and Data Mapper implementations
 
@Acejakk The fundamental principle that you need to adhere to is that you never format data until it needs to be in that format. So in general, you don't store HTML in the database unless HTML is the data (which in your case it obviously isn't, since you have this problem)
Now, if you want to store the data with rich text formatting for display as HTML, it could be a legitimate approach to store the data twice - once in "raw" format, and once as a rich text HTML format
If you did this, the HTML formatted data becomes a new dimension of data
 
@DaveRandom Right.. Means I have some work ahead of me then
The text displayed in the database is something like SOme text.......</p>
<p style=\"\\\"> Some Text....
 
Btw I didn't understand exactly what you mean by SE keeps HTML @DaveRandom. Does SE keep (pseudo)HTML which is posted by people for the articles, right?
 
and the html decode function puts that in \r\n..
 
@ziGi So DI is a design principle. A DiC is not something that you need until you already have a big project - the whole idea of it is that the project code itself is not coupled to it, so I suggest you forget about the DiC element at first. Just write something that enables you to quickly write functionality without being coupled to that functionality you are writing, and the rest of it will come organically because it will be the right way to solve a specific problem that you have.
TL;DR solve the problems you have now, not the problems you think you might have at some point
@ziGi I don't know how it works at the back-end because I don't work for SE but how I would do it is: at the point when a dimension of data is created (new question, new answer, new comment, whatever), as well as storing all the raw data that goes into generating the pages to show on the main site, I would generate the HTML that is returned by the API methods and store that in the database - because the generated HTML is the data returned by the API.
But I would only use that generated HTML specifically for returning via API calls, it never gets manipulated in any way once it has been generated
(Excepts for JSON-encoding it at the point where it is requested, obviously)
@Acejakk It's not html decoding that puts those in, it's json encoding it that puts those in
 
10:44 AM
@DaveRandom so what happens if someone modifies the data dimension. For example changes title? I guess you have to regenerate the HTML and replace the old one?
 
@DaveRandom I'd rather store this HTML in a cache though
 
@FlorianMargaine The API response would be cached heavily, but as complete JSON documents
 
yeah, I wouldn't store the generated HTML anywhere else than the cache though
 
Why though? It never changes. I wouldn't want to have to regenerate the entire site's worth of HTML fragments when I cleared the cache...
 
10:49 AM
why do you want to clear the cache?
and it does change, SO has plenty of edits
anyway... iirc they store the entire database in RAM...
 
@FlorianMargaine Yeh but for every edit you regenerate
@FlorianMargaine I have no objection to caching the individual fragments as well, btw, but I'd still store them in the DB to get up and running quicker in the event of a failure
And sometimes you do have to clear the cache, sometimes shit goes wrong...
 
yup, I can see the argument
 
To be fair, I'd probably have the entire API running off a totally separate DB stack anyway
SE have scale problem that most/all of us do not, though
 
yup
they have a 320GB RAM server for the database
 
That feeling when you look out the window and it's pissing it down and you reflect on the conversation you had in your head about not bringing your waterproof coat in to work today :(
@tereško I started Tokyo Ghoul last night. I imagine the manga is a lot better. But still enjoying it.
 
11:07 AM
@Fabien bollocks. If it's raining there I'm sure it won't be long before it's raining here
 
At least it's only a 3 minute walk home for me.
 
Yeh it's not a lot more for me to get to the tram
But there's also several hours to go between now and home time, and we're in England, it's conceivable it will suddenly be summer again by then. Or maybe your house will have been destroyed by a hurricane
Maybe it'll be snowing. It's a lottery.
 
Good ol' arable UK. Most varied climate in the world.
 
4
 
11:17 AM
Nothing like a nice 268 line method to brighten the day
                       }
                    }
                 }
              }
           }
        }
     }
  }

  return $arr_data;
^ that's how it ends
 
apparently one more } missing :)
 
Nest all the things!
 
I've seen some people put } // tell what this closes, usually some if-statements
 
@SergeyTelshevsky :-P
@ziGi They're all if statements. I don't do that, because I don't ever let ^^^ that happen in the first place ;-)
 
Is it Friday yet?
 
11:36 AM
={
 
@Fabien No, depressingly its the day with the highest levenshtein distance from it.
 
lol and :(
 
@DaveRandom Nothing like an order process which fails because of a screwup + edge case for which I had not a unit test :P
 
If you talk to someone who doesn't understand programming and you tell him 'Dependency Injection should be preferred over Singletons' he will look at you in a strange way, people think you are talking about human relationships
in this case Dependency Injection sounds scarry
Btw someone told me that for each new version they make for the software, they create a new class that extends the old one and adds new functionallity
 
@PeeHaa Sure, you can have an eCom site. Oh wait, you want it to work? No, sorry, literally no-one on earth has one of those.
 
vs7
11:45 AM
Hey Guys ,

I plan to build some service, where a user will register and create a HTML layout than I want him/her to add the script in his website , Then I will render script request which include hash of user account
But i don't know how i can get the request script information and display accordingly
Here is the script example : s3.amazonaws.com/scripts.hellobar.com/cff29c47bad3ec521700104555b4a1a2d7577de6.j‌​s
 
go go gadget request uri
 
I'm sorry, what's the point of your service? What does it do and why would I use it instead of just hosting some HTML on my site?
 
vs7
which use this "cff29c47bad3ec521700104555b4a1a2d7577de6" hash and display information related to my account
@DaveRandom the best e.g. is : hellobar.com
 
Dear lord, what is it with the current fashion for creating web pages that impart no useful information whatsoever?
 
vs7
if you register here you will need to embeed script to display the hello bar which you have customized for your account.
 
11:48 AM
@DaveRandom Marketing decisions.
 
@DaveRandom I was wondering the same thing myself
 
Yeh, but wtf is a "hello bar"? There is no information available on that site at all
 
I mean, it doesn't even have an about page
Apparently I'm supposed to be enticed because "Hello Bar" and it's so totally free
 
It's also off center
 
vs7
Its a Marketing tools @DaveRandom btw
 
Someone with the un "import" just got double pinged as well :-)
 
ow lol heheheh. Didn't even notice the ping in the message :P
 
@vs7 That still doesn't tell me anything. A megaphone could be considered a marketing tool, I'm not going to start shouting at people in the street though.
 
vs7
@cspray yes you need to proceed with entering URL
 
11:51 AM
@cspray That page sucks
 
vs7
there is not instruction and about
 
Did you have to find that by guessing?
 
@PeeHaa That page is entirely horrible
@DaveRandom I actually googled and it came up as one of the options
 
vs7
SO I need to made a replica with better feature
What I'm looking for how I can render the JS information and add content accordingly I will use CI for same
 
@vs7 If you want to extract the hash from the request path without doing ?hash= then you just need to use URL rewriting to route the request to a PHP script and parse the value out of $_SERVER['REQUEST_URI']
But tbh I'm not entirely clear on why you wouldn't just use a regular URI parameter. It doesn't need to be a pretty url.
 
vs7
11:55 AM
I need it to be Script
So i can generate dynamic JS according to request
 
X before Y
 
@vs7 Doesn't matter, as long as the web page requests in the context of a <script> tag, it doesn't matter what the URI looks like
It doesn't need to end .js
 
$hash = $_GET['hash'] . '.js';
 
vs7
but It will shown a user friendly
 
Throw in some security
 
11:57 AM
<script src="http://mysite.com/foo.php?hash=abc"> <-- works just fine, as long as the result is valid JS
@vs7 Why is <hash>.js more user friendly than script.php?hash=<hash>?
 
vs7
But I think we can re-route same
 
They're just going to copy/paste it anyway...
    <p align="center"><strong>Note: </strong>
  This Hello Bar will show to people on <a href="#goal">{{goalEligibilityURLDesc}}</a>
  </p>
Templating fail
The entire site's HTML seems to be included in the front page, even though the first form (the only thing you can do on the page) cause a page reload
Oh wait no! It's actually just serving me an entirely different page at the same URI based solely on session data!
 
vs7
I got 403 error on my website
 
I've got waaaaay more than that
:-P
Actually it turns out I don't have any, not even ones that are the result of PHP being stupid instead of me being stupid, I accidentally left a site deployed live with error_reporting=-1 display_errors=1 for about 2 months and have no complaints and the PHP error log is a 0 byte file
That's how good I am. How do you like me now???
:-P
 
vs7
12:14 PM
I still got 403 error
I think my server refuse it to load
 
<rant>It is really fucking annoying that PHP Storm almost always treats regexes use ?P<name> named capture groups as HTML, and bitches about the fact that it's invalid HTML (obviously), but then you use it as a regex and it doesn't bitch about the fact that logically you would then be trying to parse HTML with regex, and there doesn't seem to be a sane way to fix this</rant>
 
12:32 PM
anybody using phpstorm 8.x??
Do you happen to now where the setting for the font size of the code is?
it used to be on settings > editor > color & fonts
but now I can't see it
can't find it anywhere for that matter
 
yo @Jimbo
 
Herro, bit quiet in here today isn't it
@DaveRandom Alright man, when you've got a min would you read a blog post I've written on global state for me? It's not long, only a few code examples... finishing it off, maybe this evening or something?
 
@Jimbo Sure, but I suggest you private gist it, link it here and I'll pin it, get a review from the whole room
Every link you post on here is noindex nofollow so it won't leak into google, you can just paste the bare URL (i.e. not a link) if you're concerned about that
 
@DaveRandom wait wut
minb blown...
 
12:44 PM
@Trufa It's just under settings > IDE > colours and fonts > font for me (8.0)
 
Don't see that noindex thing though
<a href="https://wiki.php.net/rfc/additional-splat-usage" rel="nofollow">wiki.php.net/rfc/additional-splat-usage</a>
Or is that the same?
 
Oh maybe they changed it
In fact yeh you'd only want nofollow
Otherwise SE would be instructing google not index sites all over the internet
Side note: SEO and related tasks suck balls
 
@DaveRandom I'm not crazy it wasn't there!!
 
hehe thanks a lot @DaveRandom !
 
12:47 PM
@Trufa It's a phenomenon known as "other-people-are-better-at-looking-for-things-than-me syndrome". Everyone suffers from it :-)
 
@DaveRandom yeah, I have type C (chronic)
 
@PeeHaa Math.sqrt(Math.sum('evil')) <- Java isn't just the root of evil, it's the root of all evil
3
 
hahahahah
 
btw @Trufa (I've never actually noticed this before) there's a search box at the top of the tree view of settings on the left, if you type "font size" in there it takes you straight to the right page
 
1:08 PM
Hi guys
For anyone who has worked with network solutions->the web hosting.How long does a subdomain take before you can access it once you have created it?
 
@Gotalove Is this some thing where when you create a subdomain it creates a whole separate site which hosting and stuff?
 
@DaveRandom no just to a different section of the same site
 
@DaveRandom that's why I swear I'm not crazy, because I had used the search function, and somehow managed to miss it!
:)
 
@Gotalove If it's just a DNS record it should be instant
 
hmm...they gave me some notice like your changes will be applied in 48 hrs or sth like that
 
1:16 PM
  foreach($fields as $key=>$value) {
    if(is_array($value)){
      $fields_string .= urldecode(http_build_query(array($key => $value)));
    }else{
      $fields_string .= $key.'='.$value.'&';
    }
  }
 
let me see if I can reopen the page and get a screenshot
 
I... wait, wut?
@Gotalove You need to talk to them
But general rule: don't use shared hosting. It sucks.
 
GO GO GADGET IGNORE BUTTON
 
@DaveRandom this imgur.com/Yi9Ez1Y
 
@Gotalove If it's new it's instant. Like Dave says.
If it existed before and you updated where it goes then up to 48
Check it with whatsmydns.net
 
1:24 PM
@Gotalove I assume there is a wildcard A record on that domain because no matter what I try it resolves to the same IP address, so I guess whatever it is requires someone to do something on the server side
You'll have to contact their support if you need to know something about it I guess
 
@Fabien ooh dint get thats what he meant by -> If it's just a DNS record to be ->If it's new it's instant
 
user895378
morning
 
morning @rdlowrey
 
yo dawg
@rdawglowrey
 
user895378
@rdawg ... Might have a new alias.
 
1:28 PM
@TheRDawg
 
user895378
Just need to photoshop myself on a recursive Xzibit image
 
@DaveRandom ThaRDawg
 
user895378
@NotTheFakeRdawg
 
user895378
#verified
 
@TheArtistFormerlyKnownAsThaRDawg
 
1:29 PM
@rdlowrey /cc @webarto @salathe :-P
 
@DaveRandom emanamba.com already exists subdomain m.emanamba.com as well.
 
user895378
I woke up sleep walking like three times last night. Must've been all that phpdbg on the brain.
 
Good morninks
 
@Gotalove Yeh but I'm guessing bullshit.emanamba.com doesn't exist, and that also resolves to the same IP address
 
user895378
@ircmaxell mornings
 
1:36 PM
wow, over 6k views, and no negative or disagreeing comments: blog.ircmaxell.com/2014/10/youre-doing-agile-wrong.html either a good thing, or a bad one
 
@DaveRandom alright since I changed it on 28th will checkif changes will have kicked in tomorrow.
Also is there a way to view the page you point to through the hosting tools?
Or if you happened to point it to the wrong folder you have to wait 48hrs if you dont have a local copy to run trial on on localhost?
 
@Gotalove You'd have to ask them, I don't know how their systems work...
 
@DaveRandom okay generally do webhosts have such a system in place?
 
@ircmaxell idiots gonna idiot, though. I fully concur that errors should die, but those same people will still set_exception_handler() and do the exact same thing.
 
no, exception handler gets triggered on an uncaught exception
 
1:44 PM
When testing and needing to use information from the session, do you make a mock session?
 
@Gotalove That's kind of a "how long is a piece of string" question. Everything is different, and the abstractions that shared hosts provide out of necessity are all different
@ircmaxell Indeed, but how many codebases have you seen that don't have a single try/catch in them? (I've seen a few)
 
@DaveRandom not how exception handlers work: 3v4l.org/Iv6OZ
 
@ircmaxell ...oh. I've never actually used it because I write code that handles errors, I thought it did the same thing and could return control to the calling scope of the scope that threw the exception (which, now I think about it, doesn't make a lot of sense)
 
hehehe @DaveRandom am asking a "does a cow exist" kind of question :-P your telling me "a cow might exist in europe, cows are different ,where they breed is different"
 
I'm fairly sure cows don't exist, they are just a group hallucination. In reality milk comes from Chickens.
7
 
1:53 PM
@DaveRandom yeah, it's just a notification mechanism: lxr.php.net/xref/PHP_5_5/Zend/zend.c#1333
 
@DaveRandom you remind me of my first girlfriend who was stating that chickens don't exist and are group hallucination
 
so have you ever come across such a service being offered in any of the webhosts you have used? @DaveRandom
hahaha
 
Google Maps Tower Defence: mapstd.com
 
@ircmaxell Yeh, I see now it's basically just wrapping the entire application (from that point on) in a try/catch, and the callback is the body of the catch block
@Gotalove I don't use "web hosts", I administer my own VPSes - but then I have been a sysadmin for a long time so I'm comfortable doing this.
 
@ziGi you've just killed this workweek for sure
 
1:57 PM
ahahhaha :D
I am also playing it... man so addictive
 

« first day (1474 days earlier)      last day (3471 days later) »