« first day (844 days earlier)      last day (4104 days later) » 

9:01 AM
education is more important than force, but sometimes you need to force education
maybe enforce comments for cv-q's ?
 
@DaveRandom That's flaw in the system. I.e. users not easily being able to see deleted questions
 
@TheOptometrist It's hard to do. For one thing, you can't force all 5 voters to comment because they would likely all comment basically the same thing, which is redundant.
 
wednesdaymorning double ping
@TheOptometrist
(multiple times)
 
@PeeHaa Indeed, until recently I thought they couldn't see them at all but apparently they can, but it's still kinda sucky, they should appear on your profile as normal for a week afterwards or something at least.
 
@DaveRandom agreed
 
9:06 AM
As oft commented, many new users just simply aren't expecting the speed at which SO moves, especially true of high traffic tags like
 
@DaveRandom high traffic like a sewer after a curry festival
 
Thanks man. I'm eating my breakfast. Now I may have to go and refund it.
 
@DaveRandom: you can have hidden comments till the 5vote quota fills, close the Q and show all 5 comments, after all 5 people close it. If all 5 are the basically same then, that a good sign the Q was closed for a strong reason! could also help with reopen
 
@TheOptometrist Are you having an issue with people closing your questions without saying anything?
 
@TheOptometrist Sounds complicated. SE tend to like KISS approaches to things.
 
9:08 AM
@Leigh: nope
 
IMO, once a dupe vote is cast, everyone with the privilege to cv should be forced to review the dupe before they can submit an answer. Users with not enough reputation should not be able to submit answers at all. This will educate people that we want them to act on dupe votes. — Gordon 1 min ago
 
maybe my description was complicated, sounds preety KISS-able to me
 
I'm lazy, when I see an obvious "give me teh codez" question, I don't want to write a comment about it, I just want it gone. If I had to write a comment, it would just miss out on a close vote, and eventually people would start thinking those kinds of questions are OK... because, well nobody closed them... right
Just as an example
 
@Gordon +1, maybe a rep limit to answer should be applied to all questions that have been cv'd, like 100 rep per-cv required to answer
 
@Gordon: about the dupe header, why show it to everyone? you need 3k to cv, only those people act on it... just a thought
 
9:11 AM
@Leigh I tend to post a link to FAQ#dontask and/or whathaveyoutried.com in that situation.
 
@DaveRandom yes, that sounds like an interesting option, too.
 
@DaveRandom Sounds like a rich get richer solution.
 
@TheOptometrist so the newbs learn that dupes exist
 
@Gordon it's still in the system when you ask, you're provided with a list of possible dupes
 
@DaveRandom 100 rep per-cv required to answer ??
 
9:12 AM
And the way cvs get blitzed in here, they'd be at +3/4 cvs really quickly
 
@TheOptometrist they also have to tick the checkbox at stackoverflow.com/questions/ask-advice and agree to do research. It's just not happening.
@Leigh sounds like a trust the trusted solution :)
 
@Gordon But there's no reason to expect someone with 200 rep to have any more decent input than a guy with 100 rep
 
@Gordon follow the herd is a bad practice
 
Even less between people with 400 and 300 respectively
 
@TheOptometrist what does that have to do with following the herd?
 
9:20 AM
@Leigh some people gain rep just for rep gaining, there was an example here of a user who +1'd 11k times
 
@Leigh so maybe it should be 500 rep per cv then?
 
@Gordon cv-pls is an invitiation to follow the herd, most people don't think for themselves and just push the button
,even if they're able to
 
@TheOptometrist cv-pls is an invitation to review not to follow the herd. we have made that clear quite often by now
 
it's just one example, whatever the rules are, you can't be sure they're gonna be followed to the letter
 
@TheOptometrist so the conclusion is not to have any rules then?
 
9:25 AM
why rush there, maybe have better rules instead?
 
@TheOptometrist I quite often look at a cv-pls then don't vote
 
guys, wait, i'm not flaming anyone, just have a good point about the subject
 
@TheOptometrist but how do you know that you have better rule when you dont test it?
 
i was refering to the fact that the rule is prone to abuse, doesn't mean it's always happening
 
@TheOptometrist cv-pls works for us in here. we are doing it for quite some time now.
 
user652649
9:29 AM
my connection isn't working properly today
 
@NullPointer It was just an arbitrary figure as an example, but something like that. So if a question has 4 cvs you need more rep to answer it, to stop very low rep users posting very low quality answers on very low quality questions
 
@Gordon i don't/didn't say that; thinking aloud and if something good comes out of my fingers that others consider it's worth trying it might get somewhere
 
@wes i had that yesterday. found out it was ff acting strange. after restarting it, problems vanished.
 
@wes In Soviet Russia, Internet connects to you
 
@DaveRandom that would be a good option
 
9:30 AM
@DaveRandom :)))
 
@TheOptometrist What I would rather have is a way to un-vote. A lot of questions I will close vote as they are not a real question, not constructive, etc and after vote is cast and some commenting goes on OP will change the question where it no longer justifies the close vote, but by then it's too late and the ball has started rolling (following the herd issue). I know there has been discussion on Meta about this, but SO didn't plan on adding such an ability.
2
 
user652649
@Gordon when you say "FF was acting strange" you mean that it was working properly?
 
@DaveRandom it would also stop answer duplication, which is my primary concern with that.
 
In Soviet Russia you trip over a cable of wireless internet
 
@crypticツ +1
 
9:31 AM
@wes it does what it should most of the time.
 
user652649
:P:P
 
@Smiley lol
 
=P
 
@crypticツ someone suggested uv/dv on closevotes, which I think is nice
 
@Gordon: think about downvoting questions and answers. answers have a -1 rep charge, q's don't. some good q's get -1'd a lot of times out of 'preference' because it's free? answers have rule to prevent that...
 
9:33 AM
Who starred "+1" instead of the actual useful statement?
Yes, very funny
 
@TheOptometrist Dv'ing Qs used to cost reputation, too. The consequence was that almost no questions got dv'ed at all. Most of the DV's on Qs nowadays are because of lack of research and well deserved.
 
user652649
LOL
 
star war ..
 
:))))))))
 
@Gordon , could you please move that pointlessly stared lines to trash ?
 
user652649
9:35 AM
i fell off my chair laughing
 
@tereško nah, I will leave them all up there for you people's own embarrassment
 
[fading-out]
 
> The output from pack() was non-standard as well. We have brought that in line with pack() from Perl and other languages. This can potentially break code as we saw with it breaking Pear's Tar implementation.
Does anyone know what changed here?
 
9:43 AM
@DaveRandom whaaaaaat? BC BREAK!!!!
 
user652649
/me just discovered that indexes don't work in nested queries SELECT bla FROM (SELECT bla FROM table) AS x WHERE bla LIKE "aaa%"
 
@TheOptometrist Well Honesty and Hardwork, will vote u up... Be honest about your Question and Answer. i,e Not to put Q's for voting purpose only, and hard-work as a part of research as @Gordon mentioned.
 
> 5.5.0 | The "Z" code was added with equivalent functionality to "a" for Perl compatibility.
nvm, rtfm
 
@DaveRandom Sure, go read igors thread on the internals list
 
Good morning all =]
 
9:45 AM
@Jimbo Morning
 
user652649
mornin'
 
Hello guys
Who can help me? I have some porblem with deprication
 
@DaveRandom Hmm, looks like this is somewhat not documented, maybe 48085? Anyway, you should ask Rasmus as the way he writes he should know.
 
10 mins ago, by DaveRandom
> 5.5.0 | The "Z" code was added with equivalent functionality to "a" for Perl compatibility.
I can't see why that would break stuff though, unless the format string they were passing to pack() was wrong in the first place.
(for the older version, without the extra format string)
 
9:58 AM
@wes which database are u using
 
@hakre morning ...
 
class pdkoredzComp{ ... some methods .. }
class pdInsComp_01_IEL extends pdInsCompIzp{ ... some methods .. }
class pdInsComp_02_DAT extends pdInsComp_01_IEL{ ... some methods .. }
class pdInsComp_03_INSLV extends pdInsComp_02_DAT{ ... some methods .. }
 ...
class pdInsComp_99_PFUNC extends pdInsComp_11_POLISE{ ... some methods .. }
class pdInsComp extends pdInsComp_99_PFUNC{ ... some methods .. }
i just wanted to share my pain with you all ..
 
having some difficulty, but I may just be trying the impossible. Is it possible to do a lookbehind with a backreference? I.e. the string "delim abc !delim!", and I want to capture the "abc" based on finding a "!delim!" with a preceeding "delim" (delim can vary - hence backreference)
 
@tereško Is there a dictionary that translates these names available? My condolences.
@Leigh have you tried? And I bought a book about regex last weekend ;)
 
10:06 AM
i assume that the "koredz" is meant to be"ko redz", which from latvian is : "what sees"
as for the rest .. your guess is as good as mine
 
@hakre I have tried, and I'm getting regexes that fail to compile because my lookbehind assertion is not fixed length
 
@hakre , it's a follow-up from :
19 hours ago, by tereško
also , said "lead architect" made an astonishing revelation: "PHP sucks because you cannot split php classes in several files"
 
@tereško Wow, that fella must have read the "how to write unmaintainable code" book :)
 
user652649
@ScoRpion... mysql myisam
 
he said that he thinks that reading books about php is waste of time
he has never read one
 
10:09 AM
well, the books on php aren't that great I have to admit.
 
@Jack what are you talking about? The book I got on how to use register_globals was great...
 
@crypticツ There's a whole book dedicated to register_globals?
 
user652649
@crypticツ true, books about php are old already on the first day of sell
 
@Jack all the code examples used it =o\ It was how I first learned before I found the online manual.
 
@Leigh yes, true, it needs to be fixed length, however, it should also work with a look-ahead, doesn't it?
is it always spaces around?
 
10:11 AM
@Jack while that might be true , he also has never read any book about application architecture or oop either
 
A question on naming ... if a model requires the services of say sending emails ... the thing you pass in the contructor ... would the name "ServiceProvider" work for that?
 
user652649
/me also bought a book called "php 6"... it exists, seriously
 
@tereško Hmm, that's probably more damaging ... =/
 
@wes a couple php6 books exist
 
what's the 6 for?
 
10:12 AM
@Jack MailService?
 
Just like the book on Web 3.0 and How the apocalypse will really happen.
 
user652649
the mine is in the trash, so one is left
 
@hakre No, it's specifically extracting MIME encoded attachments from emails :), I need to get content between --boundary and --boundary--
However, at the top of the mail there's elements that match an opening boundary without a closing one, and it causes the regex to match the whole mail (almost)
 
@Leigh a lookahead should do the trick
 
@Gordon As said, it would require multiple services ... or rather, may, because at this point it only uses one.
And instead of just passing down the configuration and saying "do it yourself, damn model" I feel that some layer in between is right.
 
10:14 AM
It doesn't, here's a sample from the top of the mail

--047d7b1634ff13871104d4fc25a2
Content-Type: multipart/related; boundary=047d7b1634ff13871004d4fc25a1

--047d7b1634ff13871004d4fc25a1
Content-Type: multipart/alternative; boundary=047d7b1634ff13870804d4fc25a0

--047d7b1634ff13870804d4fc25a0
Content-Type: text/plain; charset=UTF-8

[image: Inline images 1]

--047d7b1634ff13870804d4fc25a0
Content-Type: text/html; charset=UTF-8

...

--047d7b1634ff13870804d4fc25a0--
 
@Jack cant follow. sorry.
 
@Leigh This may be an obvious point, but since you are loading the whole thing into memory anyway in order to pass it to PCRE, why not just explode by boundaries and take the second to last element?
 
So when it matches the first boundary, it is greedy and matches the whole mail, where I want the match to fail if it encounters a new opening boundary
@DaveRandom boundaries are unknown
 
@Leigh So you don't have the headers?
(wat)
 
@DaveRandom Of course I do, but I'd have to do something to find out what the boundaries are, before I explode them
 
10:16 AM
Even if you don't have the headers, just preg_match() the first boundary out of the string and use that
 
@Gordon My model depends on services that are not always required (i.e. I can't inject the specific services), so I figured that a provider class could be given instead ... and that would return an instance of each service as and when it's required ... does that make sense?
 
@DaveRandom You can see in the example, there's like 4 opening boundaries in a row, only the last one has an associated closing boundary. (the others follow, but I omitted them)
 
@Leigh Ahh kk, so inner multipart messages
 
I guess I could do negative lookahead to make sure it fails if it enounters a different opening boundary
 
@Leigh Are you using regex to parse mime? Say it ain't so :)
 
10:20 AM
I don't want to parse it, I just want the filenames + base64 encoded attachments, without a ridiculous parser ;)
 
@Leigh is it always a binary attachment base64 encoded?
 
But ... parsers are noice :)
 
@DaveRandom I don't know, if someone attaches an txt document, does it get base64 encoded?, what does email software X do under situation Y
 
Just parsing mime headers with regex is already non-trivial :)
@Leigh It sometimes may use 7bit or quoted-printable.
 
@Jack Good job I don't really care about the headers so much then ;D
 
10:22 AM
basically you can tell whether it's an attachment based on the content-disposition header; even when text files are attached they would have the "attachment" value.
followed by the corresponding attributes.
 
@Leigh Dunno if this points into some useful direction:
$subject = "delim abc !delim!";
$pattern = '(^([a-z]+)\s([^ ]+)\s!\1!$)';
$result  = preg_match($pattern, $subject, $matches) ? $matches[2] : null;

var_dump($result); # string(3) "abc"
 
@Jack if you dont mind coupling all your Model classes to the ServiceLocator, then you can do that, yes.
 
@Gordon $850,000,000,000,000,000 for full funding .. what a bargain!
 
@Leigh so wait, from that example message, which bit do you want? You don't seem to show an attachment...
 
10:27 AM
One does not simply trip over a wireless internet cable.
 
@Leigh The middle part won't make it for your mime example, it's a bit akward, but it can work in one regex:
4
A: I have a PHP regEx, how do add a condition for the number of characters?

hakreThe magic of the split. My original assumption was technically not correct (albeit a solution easier to come to). So let's check your split pattern: (\/|\.|-|_|=|\?|\&|html|shtml|www|php|cgi|htm|aspx|asp|index|com|net|org|%|\+) I re-arranged it a bit. The outer parenthesis is not necessary...

 
@Gordon Yeah, that would be the idea I guess ... any downsides to that?
 
simpler example

--456
stuff

--123
and then
--123--

--456
some more
--456--
 
@Leigh: If you can run two regular expressions.
Don't you have the correct boundary marker upfront defined?
 
The regex is matching the --456 at the start, with the very last token, and not the attachment itself
 
10:29 AM
and you just want to get "and then" and "some more"?
or should it error and saying the supplied data is not valid?
 
so I need to say, match a start token, without a different start token in the middle, followed by an end token, instead of start token, then anything, then end token
@hakre and then, some more :)
 
@Jack yes, the dependency on the ServiceLocator is the drawback
 
@Gordon The alternative I can think of is to pass a service instance into each method call that would require it ...
But that would come with the downside that it would grow the parameter list of each method that depends on services.
hmm hmm
 
@Jack ive written about some of SL's problems at stackoverflow.com/questions/6034748/…
 
@Gordon thanks, reading ...
 
10:34 AM
@hakre I have #--(\V+)\v+((?:(?!--).)+)\v+--\1--#s but it feels really clunky
 
@Leigh I'm afraid that the time it takes you to figure out the recursive, lookbehind/forward, backrefs expression could have been spent on writing a simple recursive descent parser ;-)
 
user652649
are "looking for a script" questions allowed on SO?
 
@wes I tend to close those as NC
 
@Jack I have a regex that works, I'm just not happy with it, and I couldn't have written a parser I was happy with in that time either :)
 
@wes try using WITH, I have tried it with postgres I dont know if mysql supports it
 
user652649
10:38 AM
@ScoRpion... don't know what WITH is, but i'll look at it... i'm not good with SQL, thanks btw... for now i've resolved using a temp table
 
Oh nice, that regex causes a stack overflow on long attachments :/
 
user652649
does exist some class for mime boundaries parsing? a complete one, with nested section boundaries, etc? in past i wrote myself one, but wasn't good
 
@Leigh Sorry, why don't you want to use a proper parser?
 
@DaveRandom Because I know I can do it with regex!
 
10:49 AM
lots of 'ksjhdkjds' hope it makes sense
damn, i guess it's not what you need
 
@Gordon Good read, I'll check out the videos and Fowler's discussion as well :) -- this is the simplified idea, does that look okay'ish?
 
mysql help needed
 
@Jack No :) Model is not a class and there is no ServiceLocator in that example.
 
@Leigh Wait, if it's an attachment, won't it always have a content-disposition: attachment header?
 
I want those records FROM table2 which are NOT available in table1
 
10:58 AM
@Gordon I could have named it something else, is the name what you're referring to?
@Gordon Yeah, there's no service locator ... the specific services are passed into the method that requires it
 
@DextOr Check this out. It seemed related.
 
I wanted to work that out to see what it would look like.
 
@Jack yeah, that's DI then. Better solution than SL IMO
 
ok thanks @ShyamK
 
@Gordon My alternative would have been to inject the locator itself into the constructor.
And then the model would have said: $this->locator->getMailService(); or something.
Both solutions would be testable.
 
11:01 AM
@Jack yeah, that's the approach that suffers from the problems outlined in my answer
 
Writing C# and stuff now. God i love php
 
@Leigh I have $pattern = '((^--\d+)$\K(?:(?!\1(?:--)?$).)+(?=\1--$))ms'; which is with your decimal delimiters.
 
@Jack your model actually is a a service btw. It's not doing anything but orchestrate other components. It should be Called RegisterAccountService or something like that. And it doesnt need the db in the ctor as it is not using it.
 
@Gordon yeah, the coupling ... and i guess that if the arguments to a method grows to 3 or 4, there's room for another abstraction :)
@Gordon Hmm, is it really a service, let me think.
 
array(2) {
  [0] =>
  array(2) {
    [0] =>
    string(10) "\nand then\n"
    [1] =>
    string(5) "--123"
  }
  [1] =>
  array(2) {
    [0] =>
    string(11) "\nsome more\n"
    [1] =>
    string(5) "--456"
  }
}
 
11:04 AM
@Jack it looks like one from the example because it has no state on its own
@Jack you could think of it as a UseCase in your application, which is Registering.
 
@Gordon well, it takes care of sign in, profile management and registration actually ..
 
@Jack MVC has two major layers : presentation and model .. there are no "presentation" objects (instead you have views, controllers, templates and some other tructures) ... so .. why the hell do you have "model " objects ?
 
@TheOptometrist No, doesn't work regex101.com/r/jG3oS8
 
@Jack it only delegates to classes taking care of that, doesnt it?
 
@Gordon well, underneath it manages the database.
Which is where the state is managed.
 
11:07 AM
@hakre Thanks, not always numeric separators, but I think I can use some parts of yours. I forgot about using ^ and $ inside captures for example.
 
@Jack Inside the class itself or inside the depedencies?
 
@Gordon It uses the $this->db (PDO) to do that.
 
@Leigh But I think I parse the wrong stuff, because I guess you need the largest match and then two boundaries.
 
For instance, inside createAccountUsingLogin() it creates the db records.
 
E.g. 456 is the mime boundary.
 
11:08 AM
@Jack ah, right. didnt see the $this.
 
@tereško What I call Model there basically encapsulates the application state; like I said, if naming is the issue, that's another thing.
 
@tereško i've recently watch the UB keynote at ruby midwest again and noticed that he says "Models" as well.
 
sounds like a God Object .. might be an issue
 
1
Q: How to make layout same while using border

user1879104When we use border it apply outside of element. If I create div of 100px width and add 10px border than its overall with will be 120px and that's why layout will be not good since this extra unwanted width due to width cause problem in float and fluid layout to solve this problem If I want to...

looks interesting
 
@Gordon because he uses rails .. a lot
 
11:12 AM
@tereško i take he knows that model != db though
 
sure , but he's using the naming-convention from the framework
 
@tereško Though, I do use the "Model" suffix on those classes, so there's a class called AccountModel taking care of the account subsystem.
 
if that is the same keynote speech that i think of, then he also explained how rails-lke MVC is bad
 
@tereško yes, he did
 
basically , rails has messed up the whole naming conventions everywhere
it was confusing to begin with .. and after 2005th it became worse
 
11:15 AM
is rails also the cause of haml and sass?
or is that just lazy ruby devs?
 
yes .. rails developers like to reinvent languages , to make them more ruby-like
they are also the early adopters/promoters for coffeescript
 
the concept is nice for those who already have a firm grip of js
but that's not the majority of users for sure
 
I'm not amused by cofeescript...
Which reminds me of :coffee:
 
I'm on the fence for this one ... yes, it's nice to have shortcuts for a couple of constructs and no, there's no real visibility until you compile it.
And because I didn't have time to incorporate it into my build process, I'm not using it :)
 
/me hates Zend_Form
 
11:21 AM
I think you should just replace that with jQuery.
 
@webarto everyone does
 
Good to know. jQuery it is.
 
@Jack it's utter nightmare to debug .. there is no "on the fence" about it
 
@tereško tbh, I've never used it for anything serious; you're probably right :)
 
11:28 AM
What is the advantage of Zend_Form, again?
CoffeeScript just has Ruby syntax for JS :P
 
I do like the list comprehension that they stole from python though =D
Maybe not just from python ...
@Gordon How did the accepted answer in that thread get the bounty? It blurts out a generic statement such as "SL is bad mmmmkay?" and that's it ... no references, nothing =S
 
which post ?
 
Fowler's discussion is way more balanced.
29
A: If Singletons are bad then why is a Service Container good?

JasonThe service locator pattern is an anti-pattern. It doesn't solve the problem of exposing dependencies (you can't tell from looking at the definition of a class what its dependencies are because they aren't being injected, instead they are being yanked out of the service locator). So, your questi...

@tereško ^^
 
I have const b32_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'; and I then run this self::b32_chars[mt_rand(0, 31)]; but I get parse error for that line regarding [ I thought array dereferencing was allowed on strings. Running PHP 5.5alpha2 btw.
 
11:44 AM
@crypticツ Maybe this is because array constants are disallowed, so they disallowed all [ dereferencing.
 
@Jack I dont know :)
 
@Jack Not maybe.
 
@webarto Well, I don't know what they were thinking because it's valid syntax if they are strings :)
 
morning
 
@crypticツ Btw, regarding your earlier comment, you can just wait around for the question to get closed and then cast a reopen vote :)
 
11:47 AM
G'Mornin
 
define('b32_chars', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
echo b32_chars[(mt_rand(0, 31))];
It simple to test, you can't do that on constant, but... it seems to me that you're doing it wrong anyways...
 
private static $b32_chars =D
 
I have a stupid question... I would like to have foreign keys if values exist in a table and no referencing if they don't... how do you suggest I go about with this? assigning NULL to the column? or adding a default key or something like that? or doing an ALTER TABLE when the foreign key is required? do you get what I am trying here?
 
class B32
{
  protected static $b32_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
  public static function construct()
  {
    var_dump(self::$b32_chars[mt_rand(0, 31)]);
  }
}
B32::construct(); # ABCDEFGHIJKLMNOPQRSTUVWXYZ234567
@Jack ^ wtf :D
 
11:51 AM
@webarto public static function construct() ? Looks like a static constructor lol.
@ShyamK Setting column to NULL is accepted way.
 
@Jack Yes :P But how come self::$b32_chars[(anything)] returns full string?
 
In fact, you can set foreign key behaviour like that ... ON DELETE SET NULL
@webarto It does? lol.
 
> Moving along to ArrayObject... it is even worse as you cannot provide a reference to be returned via offsetGet; additionally any bug reports or the like opened up on it in the past have all been marked as "bogus" which leads to this crazy behavior of having to rewrite ArrayObject to retain some form of BC in userland extending ArrayAccess but then it only works in PHP 5.3.4+.
 
@webarto Nope, it gives a single char
 
@Jack No, my bad (thank god).
 
11:53 AM
@ircmaxell that's why people shouldnt use references :D
 
@Jack okay... I shall proceed that way. Thanks :)
 
I am building custom MVC and I am having a problem with referring the views method...help anyone?
 
@Gordon Is that from the mailing list? :)
 
@KunalVarma WAT
 
11:55 AM
The functioning of mvc is like codeigniter
 
Qu'est-ce que c'est views method?
 
it takes segments of url into consideration and loads a controller class and then that controller class load the view aand it's method
 
@Jack nope. zf bugtracker
 
How can I prevent the dependency of my code to the code itself? Often it turns out my code is wrong and then I need to change it. Isn't there anything in PHP I can reduce this hard-coupling in the first place ;)
 
for instance, if this is the URL: localhost/app/user/info
 
11:57 AM
@crypticツ The parser kind of sucks regarding class constants, I've come across other oddities like that before. It's nothing to do with types, the parser doesn't know what primitive type it is, it's because you are using a constant. You should report a bug, I would say that should work. Work around, as @webarto pointed out, is to use a static var instead of a constant.
 
@hakre thankyou hrkra ... aFAIk adding new div will add another element to dom is it ok ?
 
@Jack ok I have private static $b32_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'; and then use self::$b32_chars[mt_rand(0, 31)]; and am getting the parse error again with [
 
@crypticツ =O
 
it loads the user controller class and the info function in that
 
@crypticツ 3v4l.org/nv0dY
 
11:57 AM
@hakre lol.
 
@user1879104 Sure, this is what we did for ages and I never run into problems with it.
 
which further loads the view
 
@crypticツ Can you show the full line that's giving you the error and the full error message?
 
I am unable to instantiate the method in the child class
any help?
@webarto?
 
@hakre thankyou accepted '
 
11:59 AM
@user1879104 thank you!
 
@hakre sorry but why you thanked me ... you helped me not I did ... I am supposed to thankyou
 

« first day (844 days earlier)      last day (4104 days later) »