« first day (805 days earlier)      last day (4129 days later) » 

12:00 AM
append only? :)
 
append-only in the sense that you have a record of all previous values
it's like git's data structures, used for app data
a git commit being a transaction
 
@igorw yep, that could be #1 choice for insurance companies, since no data is actually going to be deleted :)
still, my favorite is gemstone
at least for now
 
"GEMSTONE/S OBJECT SERVER"?
 
yep, aka smalltalk :)
 
never heard of it
I can highly recommend that infoq video, it's quite insightful
 
12:05 AM
usually, theres a line between program and programming language, gemstone is environment - you program inside of it. its fs-mapped transactional database. you can bind to it from java or whatever else, but most importantly since it is just smalltalk, you can leverage RPC and just store your objects inside of it, including methods
 
so what does it store? serialized smalltalk objects?
 
like in oracle you can have scheduled tasks and events, in gemstone, its actually possible to show ui-dialogs from those stored objects.
@igorw more or less, yes
@igorw classical approach is to have UI in seaside (pharo/squeak + memory based persistence) and domain model in database (gemstone + real persistence)
both of them are smalltalks, communicating over RPC, doing different jobs
interesting thing is... can your database send emails? :)
its general purpose language, with automatic persistence, just awesome... whatever
 
@TheCOMPLETEPHPNewbie Answered there.
 
sorry :)
 
rather: should it? :)
it sounds interesting, but it also sounds a bit like monoculture to me
 
12:10 AM
@ircmaxell got it right, its dead for mainstream, but still alive for certain specific things
just like lisp
 
yep, that's why we're talking about it in the PHP room after all ;-)
 
there are big flaws in the language, btw. but still, most of mainstream languages are not even half OO than st was
theres still a lot to learn
@igorw im famous for that :-D
 
Anonymous
@ThiefMaster
 
Anonymous
@shiplu.mokadd.im What?
 
Anonymous
@ThiefMaster Need help here pls
 
12:21 AM
@TheCOMPLETEPHPNewbie there is little arrow on leftmost side of the message. Click on it. You'll understand.
 
Wth...
 
Anonymous
@ThiefMaster I just lost 50reps for no obvious reason. I checked my reps, and there is nothing shown there. I thought you could help, honestly I don't know whom to ask
 
Anonymous
@shiplu.mokadd.im sorry, I can't see it
 
Anonymous
12:25 AM
@ThiefMaster WHY??? I improved the answer 4 days ago. THERE is NO reason why it should be deleted. I think the people that did this, made it for FUN. Please help me
 
Anonymous
 
@TheCOMPLETEPHPNewbie The answer was wrong at the time, you didn't bother to fix it after some lengthy duciscussion and please don't shout at me
 
Anonymous
I don't believe this!!! How can you let people delete an IMPROVED and ACCEPTED answer for FUN @ThiefMaster
 
1 message moved to recycle bin
1 message moved to recycle bin
I think you missed the part where I said stop shouting
 
:popcorn:
 
12:28 AM
Feel free to post on meta.
 
And FYI the 24 mins ago is the time of the last delete vote
1 message moved to recycle bin
 
Anonymous
ok @PeeHaa undelete it then
 
Ok now that's where offensive flags are appropriate...
 
Sorry. My bad. Besides the fact that you should stop shouting at me please don't call me names for no reason
 
Anonymous
can't you see there is nothing wrong with the answer
 
12:30 AM
I should have told you that my bad
 
Anonymous
Why are you guys abusing this site?
 
I am actually confused at the delete, the flaws pointed out in the comments were fixed.
 
Anonymous
@Charles they do this for fun, that is what I find unbelivably sad
 
@Charles I actually del voted some time ago. Let me get the transcript....
@TheCOMPLETEPHPNewbie And you really think that attitude of yours helps you right now?
 
@TheCOMPLETEPHPNewbie There's no fun in this. Not a single iota. has a severe quality problem, my friend. There's only so much we can get away with doing, and it's our duty as the people that seem to know what we're doing to try and enforce sanity.
 
Anonymous
12:32 AM
@PeeHaa I figured, if politeness does not resonate with you, then I might aswell try to speak my mind
 
@TheCOMPLETEPHPNewbie Nopez. Doesn't really work for me. Normally I don't flag people, but please stop it
 
user1125394
@KamilTomšík fp?
 
Anonymous
The last person who voted to delete the answer is an idiot. @John Saunders
 
Stop calling people idiots. Now!
 
@TheCOMPLETEPHPNewbie chat.stackoverflow.com/faq#nice
 
12:34 AM
ty @Jasper
 
@TheCOMPLETEPHPNewbie: You are actually the first user who made me leave my warm and cozy bed to switch from mobile to the full version.
Take a break to cool down. Seriously. 1 hour is hopefully enough...
 
@ThiefMaster You know he is coming back in an hour to ping you and call you an idiot/moron/biases/stupid/whatever right :P
 
(well, actually it was this stuff in here plus someone messaging me on IRC.. but shhh :p)
 
:)
s/biases/biased
 
@ThiefMaster Which IRC if I may ask?
 
12:40 AM
GameSurge
 
He seemed like a pretty decent person so far, let's just hope that cooling down will do the trick
 
user1125394
@igorw but there, the possible conflict must be solved in the db, not in user's side, don't know how it's done so
 
@TheCOMPLETEPHPNewbie Please behave. If people are being rude that's their fault. Politely ping a mod or if it's really bad then use a flag. Being rude yourself warrants action against yourself.
 
@ThiefMaster Cooling down as in suspended?
 
Yes, for q1h
-q
 
12:46 AM
@cyril no, it's only about the data structures; it does not have the distribution semantics as git. the database is transactional and transactions must go through a single transactor service.
 
@TheCOMPLETEPHPNewbie You can also open a question on meta if your question/answer was deleted and you disagree on it.
 
user1125394
@igorw there's a lock that means?
 
@cyril to be honest I'm not 100% sure. there might be a lock, or maybe there is indeed some limited local transaction + merge going on.
@cyril I believe there is a write lock, but reads can continue and will never be inconsistent because the data itself is transactional
 
user1125394
ah I see
 
@ThiefMaster wasn't there once a red bar at the top of the account in this case?
 
12:52 AM
The git "storage system" is actually quite interesting
 
It's a chat suspension
Look at his chat profile
 
or the "content-addressable filesystem" as they call it themselves
 
@ThiefMaster ah cool
 
1:13 AM
@PeeHaa thanks, I actually watched all of that
 
@igorw me too ^^
 
np I'm always good for some painful offtopicness :)
 
Anonymous
1:37 AM
@LeviMorrison Thanks for the advice, I couldn't respond, because I was suspended. thanks anyway
 
-3
Q: Regex to remove all white space from a document excluding from within pre or code tags

StonoI have Regex question that has me stumped. And please, before you say "don't parse a document with regex", don't bother! I have my reasons. I would like to remove all white space in a given string (which is a html document) apart from whitespace within <pre> or <code> html tags. It...

doh!
> And please, before you say "don't parse a document with regex", don't bother! I have my reasons.
 
/Everyone stand back/ - I know regular expressions!
 
Didn't realize that guy is a treasure trove of bad questions.
 
1:59 AM
@Jack Or, more correctly:
 /Everybody  stand  back/
I know regular expressions
 
 
@PeeHaa Those answers-that-aren't-answers should they be flagged or something? It might not be necessary if the idea is to delete the questions anyway, but as long as they aren't, they just don't belong on this site (not as answers anyway)
 
I flagged this one
0
A: fail2ban-apache not blocking IP

StonoThanks... never heard of Server Fault ! will try on there

 
then I'll flag this one
1
A: .Net Charting Axis Label Font Size Not Working

StonoFixed, was being an idiot further down my code.

 
2:13 AM
@PeeHaa why don't you just flag it as spam?
 
@Jocelyn done it. But looks like either all the mods are sleeping or just plain old drunk.
 
ah, yes. This is friday night :-D
 
DO you have any idea whether the spam flags are being investigated even after the question is deleted? @Jocelyn
 
No idea. I once flagged a question as spam, and it was removed after a few minutes.
the spammer created his account just 1h15 ago
 
in Tavern on the Meta on Meta Stack Overflow Chat, 9 hours ago, by amanaP lanaC A nalP A naM A
in PHP on Stack Overflow Chat, 31 secs ago, by Kamil Tomšík
@Neal you are such an idiot
@timpost You have a second?
 
user50049
2:27 AM
What's up?
 
What happens with posts flagged as spam after being deleted by the community?
Are they still being looked into?
Also while you are here @TimPost. The trolls are out: stackoverflow.com/questions/14078159/log-in-script-not-working
 
I was wondering how I could reduce the brightness of a div so I can focus a sidebar div.
?
 
@DemCodeLines could you be a little bit more specific?
 
@DemCodeLines Define brightness
 
2:45 AM
go here:
when you do on it, you will see an ad popup and the background is darkened.
 
@DemCodeLines and?
 
I never see ads :P
 
I am talking about that "brightness", how the background is darkened
 
They're using an overlay div with a background color of something like black but with opacity
 
oh
one more question. Is there a difference between $_Post and $_POST ?
 
2:48 AM
@DemCodeLines An easy way to do that would be to look at the source and see how they did it. Things like inspect element can make it easier to find what you are looking for(I use the one from Firebug, but I believe both Chrome and FF have their own versions these days)
 
Anonymous
@DemCodeLines Yes
 
Anonymous
global variables should be in upper case...
 
Anonymous
I think ^
 
@DemCodeLines The second is a superglobal
 
@DemCodeLines yes, unlike most other things in PHP, variable names are case sensitive
@TheCOMPLETEPHPNewbie No. They don't have to be. Superglobals, though (which are a number of variables defined by PHP that can be used in any scope without the global keyword) are all in upper case, though
 
Anonymous
2:52 AM
Yea, I meant to say SERVER variables ^
 
because I got this error: Notice: Undefined variable: _Post in
so I was wondering maybe I should change it to _POST
 
PHP doesn't need no stinkin' rationale! — Max Shawabkeh May 1 '10 at 11:52
 
@DemCodeLines yeah...
 
this spammer is still there? :-/
 
3:00 AM
0
Q: Please burninate this user

PeeHaahttp://stackoverflow.com/users/1935754/user1935754 It's a very filthy spammer. Already flagged the posts, but the questions are deleted before mods have taken action. So I just leave this here until there are some mods awake or sober again :) Questions: happened to begin with and http://stackov...

 
Is using [tag: spam] really the thing to do? I mean, it's wiki seems to suggest its place is - for example - on a question about an anti-spam algorithm
 
No, it's not. And you shouldn't utterly vandalize the contents either. Just yank out the links. When spam flags are raised, mods see the current state of the post, not the state when it was flagged...
 
@Jasper probably not. But since the question will be deleted shortly, does it matter here?
 
I've seen spam flags declined (in less, uh, obvious circumstances) because of such things.
 
3:03 AM
the question is gone
 
@Jocelyn It might annoy those who follow it, causing the tag to have less followers in the end. Assuming it's a tag that should exist, using it on spam itself might harm it.
 
user50049
@PeeHaa What user? :P
 
user50049
Sorry, I was away from my desk
 
Aaaaaaand it's gone
 
3:07 AM
lolz
 
@TimPost np :)
@TimPost The spammer is gone, but you might want to look into this: stackoverflow.com/questions/14078159/log-in-script-not-working
@Jocelyn ??
 
@PeeHaa that's gone too
 
@Nile It's deleted not really gone. Neither are the users
 
Oh, okay.
 
@Nile You just need to repwhore more to see deleted questions :)
 
3:09 AM
hmm... didn't even know that was a privilege.
 
user50049
@PeeHaa That's the sort of thing that makes me feel sorry for elves.
 
@Nile The privilege to see the crap that was deleted :D
3
@TimPost Idunno. I'm more curious as what the hell they were doing in there in the first place
 
user50049
Just trolling, happens a few times a day
 
It's not on the privileges list
 
Wow. The new Zimbra webmail client actually looks pretty good.
 
3:14 AM
@PeeHaa sorry, wrong copy/paste with the link :-/ Can someone remove it from the backlog?
 
@Jocelyn Shame on you!
 
@PeeHaa the link I wanted to post is: stackoverflow.com/questions/14078303/… (already closed)
 
How appropriate:
 
only one question asked so far
 
- lol. It would be perfect if it included
 
3:19 AM
Yeah, I got my first tag-badge :D And I really wasn't doing much in the way of answering...
 
@Jasper Gratz!
 
@PeeHaa thanks!
Is it possible to have an anonymous function executed immediately
 
@Jasper 5.4 or 5.5 IIRC
I guess not
 
@Jasper @ircmaxell 5.4 it was not possible without call_user_func
it would be kind of nice, especially also function function dereferencing
e.g. $this->getFoo()()
 
I thought function dereferencing was added...
I could be crazy there
 
3:28 AM
afaik only for arrays
$this->getFoo()[0]
 
why can't we move to an AST based parser yet?
 
or in other words: why is the PHP Y combinator so needlessly and painfully verbose?
 
yup
 
@igorw @ircmaxell If it's possible in 5.5, what's the syntax? Either it's not possible or I'm doing it wrong
 
@Jasper it's not
 
3:31 AM
@ircmaxell ah ok
 
@ShaquinTrifonoff Hello
 
@MirwaisMaarij hi
 
@ShaquinTrifonoff Merry xmas/newyear :D
 
@ShaquinTrifonoff I havn't checked up on the domain since then, I think it should be up by now :p
 
3:33 AM
I was just wondering whether or not it was good practice to do this in an include file like a settings file: <?php return call_user_func(function () { return "something"; });?>
 
@MirwaisMaarij It's up, but the hosting isn't connected
 
@ShaquinTrifonoff Right
@ShaquinTrifonoff What about the chatbox, any improvements on that part?
 
@Jasper I'd say that's a good practice if you introduce new vars and you want to isolate their scope.
 
user50049
3:34 AM
-4
Q: How to use Google?

Help VampireI am curious about how to use Google. Okay stop right there. Now that I have your attention, it's mission accomplished. I'm a help vampire. Have pity on my. I'm born to be the way I am. :( Please don't ban my account. I am what I am. I am a child of god. HELP ME! What are you waiting for? O...

 
user50049
Full moon?
 
@MirwaisMaarij I worked on it more: shaquin.tk/chat2
 
"Please don't ban my account"
 
@TimPost Either that or some people escaped from some mental institution. All in all a normal day on SO
 
3:35 AM
@igorw Yeah, that was what I meant (doesn't show in the sample, though)
 
@ShaquinTrifonoff "Loading..."
 
@MirwaisMaarij Hmm... are you using IE?
It might not work on IE
 
@ShaquinTrifonoff Yeah, let me check it up on chrome
 
the help vampire got deleted
 
user50049
I much prefer ... 'dispatched'
 
user50049
3:37 AM
Staked works too
 
@ShaquinTrifonoff Very nice man, it works just fine.. can you send messages from your side too?
@ShaquinTrifonoff I want to see if I can read messages from you
 
@ShaquinTrifonoff It had a problem for me where it didn't like json_decodeing an empty string
 
@Jasper hmm
 
Oddly enough, variable variables were trivial to implement. But if statements were rather complex... #somethingINeverThoughtIdSay
3
 
3:46 AM
@ShaquinTrifonoff And are you also having "Do you know a website which has radio streaming links in .pls file format? or .asx " 6 or so times now?
 
@Jasper Ayy not cool man :D You're looking at our chat!
 
@MirwaisMaarij :P
 
@Jasper 12 times
 
@ShaquinTrifonoff I see now that it was just Firebug just-in-time-debugging an error that was being caught a bit later anyway.
 
@Jasper Yes, my decoding function relies on try-catch
} catch(e) {}
heh
 
3:54 AM
Which I would label as poor design even if it wasn't in o(n^2) (over string length) code already
But sure, it works nicely other than that :D
 
The function is there because sometimes two messages are received at the same time, joined into one... so my function splits them into single messages
 
Hello, can someone review my a little code block please? I made a function that builds a query according to parameters, it works but i feel like "this looks so wrong" and i'm do not have enough php experience to figure out is this a good practice. I'm asking should i prepare queries with this way or is there another way i need to learn? Here are my codes:
 
@ShaquinTrifonoff is your site down now?
 
@Nile It's up. Did you make too many requests to the server within one hour?
 
    public function GetContents($count = 10, $page = 0, $json = false, $type = 'all', $channel = 0, $favs = false, $order = 'date', $desc = 'DESC') {
        $data = array();
        $returnContent = array();

        $sql = 'SELECT * FROM contents ';

        if ($type != 'all' || $channel != 0 || $favs != false)
            $sql .= 'WHERE ';

        if ($type != 'all') {
            $sql .= (($channel == 0) && ($favs === false)) ? 'type = ? ' : 'type = ? AND ';
            $data[] = $type;
        }
 
3:57 AM
@ShaquinTrifonoff uhh...?
I clicked on links?
 
The host limits the number of requests to ~ 1000
 
I didn't do that, unless your chat makes a lot of requests...
 
If the chat malfunctioned, it could create lots of requests
 
ah wonderful
 
Did the status say Connection: good then Connection: bad, good, bad, good bad good bad good bad...?
 
3:59 AM
I remember good, then it said bad, then I refreshed, then nothing.
 
@ShaquinTrifonoff There still should be a better way to do that. It's noticeably slowing down the switching from and to the tab and that's on a reasonably good computer
 
I'm going to bed before I burn all my votes tomorrow
Later all!
 
@ShaquinTrifonoff ...? well?
 
@ShaquinTrifonoff Personally, I would suggest delimiting your json with some sort of separator, you can search for those in O(n) time and it shouls also be easier to check for a delimiter then to run json_decode on it merely to see if it is valid json
It should really improve performance
You would have to carefully choose your delimiter, though
Oh, and just tell me to shut up if you want to, I'm just trying to help even if my help was never asked
 
4:18 AM
@rasmus Can you recommend a PHP source editor?
I lol'd
 
nice
 
how can i show a message box with a value of a variable?
 
@DemCodeLines uhh...?
 
@Nile I have a variable that is supposed to besubmitted in a form and passed along to another page. Except, for some reason, the variable's value is not showing up in the other page, hence I need to use a messagebox displaying the value of that variable.
Maybe javascript alert?
 
how are you passing it to the next page? are you giving it a name attribute?
 
4:28 AM
yes
 
Try pastebin.org
 
@Nile ^
@Nile,you there?
 
@DemCodeLines yeah, dont know why... make sure everything is working, try some controls, debug
 
this is on an online server
 
@DemCodeLines There doesn't appear to be a problem in the code you are showing us, it's quite possible that it's in code you are not showing us and we really can't help you with
 
4:45 AM
The "..." that you see is some text that gives the directions on what to do ("Type your name") and the last "..." is the <input type="submit"
@Jasper ^
 
@DemCodeLines Well, the problem could also be in the from tag where you are leaving stuff out. And while it's less likely, it could also be outside it.
One suggestion I do have is to inspect if the correct POST data is being sent with a tool like firebug
(Chrome may be able to do that as well)
 
I don't know how to do that in Chrome
I checked the value on the next page, and the value is ""
there is nothing in it.
 
@DemCodeLines Neither do I, you could use Firebug instead
 
5:01 AM
@DemCodeLines It should be document.getElementsByName('profpic')[0], it's case-sensitive
BTW, why can't you just use the text input?
 
Try: $array ( '-' => 1, '-' => 2, '-' => 3, '-' => 4, '-' => 5 ); instead of $array = (1,2,3,4,5); and then foreach( $array as $value ) echo "-" . $value; — B4NZ41 Oct 1 '11 at 1:58
Uh what?
 
@ShaquinTrifonoff there is an <img tag that has the name profpic
 
 
1 hour later…
6:07 AM
1 hour later…
 
@ShaquinTrifonoff Why do you do that?
 
@ShaquinTrifonoff ..why?
 
@Nile I find it amusing
If it's annoying, I can disable it...
 
Yeah, it's perceived as spam
 
6:11 AM
Hello.
 
hi
 
Hmm, when I try to use daringfireball.net/2010/07/improved_regex_for_matching_urls this pattern in my code, I get 'preg_match_all(): Unknown modifier' errors.
 
@Hamster Paste your code...
 
@Hamster seconding what Nile said, but it looks like you might have forgotten to add regex delimiters
 
$pattern = <<< 'EOT'
(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))
EOT;
$matches = array();
preg_match_all( $pattern, $str, $matches,
PREG_PATTERN_ORDER | PREG_OFFSET_CAPTURE );
 
6:16 AM
Can you use heredoc for patterns like that
regardless, try:
$pattern = "/(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/";
 
@Nile sure a regex is just a string in php
and that won't work
 
@Jasper why's that =/
Oh I see the double quote in there
 
I escaped it. Trying it now...
 
@additionally, there's slashes in the pattern
 
preg_match_all(): Unknown modifier '/'
 
6:18 AM
you need to escape those as well or use other delimiters
 
$pattern = "@(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'\".,<>?«»“”‘’]))@";
@Hamster Did that work?
 
Hmm, I'm not getting an error...
I think so. I have a logic error in my other code, lemme fix it to verify.
Yup. Thanks!
 
6:45 AM
can we partition and merge data bytes using php ?
 
@AJPatel what?
(That sentence makes no sense to me at all. Aren't all bytes data bytes? It makes no sense to partition or merge bytes if you ask me.)
 
i want to say like i have 100 mb file (client side)
so i partition that in 1mb each send to server then at server side have to merge that all 100 pakets of 1mb. now got that ? @Jasper
 
Not really sure that's what you use a PHP webserver for, but I don't see why not.
 
@AJPatel Well, if you do raw cutting on the file it should most definitely work
though raw cutting of files does sometimes bring some problems to the table
so you might want to look to archive formats instead, and then I do not know by heart what the capabilities of php regarding split archives are
 
7:04 AM
@Jasper cutting of file done at client side. So in server only merging of that file i want. that`s why i bold that merge.
anyway thanks for reply @Jasper
 
@AJPatel I guessed as much, I meant split archives as a noun, as in the sense that merging a split archive is a capability regarding split archives
 
7:19 AM
Wow, my webhost actually has localhost.mydomain.com routed to 127.0.0.1
Basically, that means that you go knocking on someone's door and ask if he knows a guy by a certain name. And he responds with "I know him. It's you." No matter who you are...
 
@Jasper Oh, I know a few of those... ok.aa24.net
 
@ShaquinTrifonoff it's even stranger when it's your own domain and didn't know about it :P
 
7:48 AM
Oops, my Factory created an EqulityCondition whenever you asked it for an InequalityContion... yeah, that breaks code
 
how can i access the objects from a function that returns an array ?
it returns this.
return array('user' => $userinfo, 'class' => $classroom );
trying to store all the object return in another function.
$classuser = $this->classusers(); //something is missing here.
 
>= php 5.4 you can do func()[$n]
before that, you would have to put it into a variable
So: $var = func(); $var[$n]
Of course, you can write a function to do this for you
 
good morning
any one any idea regarding joomla cms
 

« first day (805 days earlier)      last day (4129 days later) »