« first day (647 days earlier)      last day (4294 days later) » 

12:00 AM
as they say here, good + useful
 
@webarto Nope. Pretty sure they were like hair metal... the guys looked like an American hair band anyway. Good of you to think on it, but I think I would literally poop a brick if you were to actually come up with his name :p
Don't all Serbians know one another, c'mon, there's like what, 3, 4 hundred of you total?
heh
@tereško "This video contains content from EMI, who has blocked it in your country on copyright grounds."
lol
 
@Chris lol .. americans
 
@Chris no that is for montenegrins, 0.5M :P
 
12:03 AM
@webarto What is that band?
 
called Film, there is Mario in it...
Mario Zlatinić, Mario Domazet, Mario Mauer... ?
 
LOL, it has been so long!
Are all of those musicians?
 
yup ... I'm waiting for torrent to finish...
 
Heh, I wrote them all down, going to ask my wife
She's better at remembering non-technical things than I am
 
mario name is like good morning
 
12:08 AM
Speaking of my wife... I should leave the office before she calls me with "WHERE ARE YOU!?!"
The internet is so much faster here, though lol
Later guys
 
Mario Rašić
could be a match
@Chris
@Chris Mario Barišin
we'll find this mofo
@tereško 11k, you're on fire... who do you work for, if not a secret...
 
@webarto , freelancing , a project from new zealand for russian market
not much money , buy i have free reign in matters of application design and have to put only 4 hours in per day
 
I'm planning to expand hosting business to communist %rus% countries... I will ping you someday...
that is nice
 
basically , it's so that i can pay bills , while not really working
@webarto , the name you are looking for is "post-soviet" , and this is as broad classification as "asian region"
i live in a county which is between Russia, Belarus and Estonia (they would illustrate all the extremes of region)
 
well basically russian speaking territory...
yes, I know, I'm from Europe too.
at least assh* of it
ja dumat čto otvoril web hotel
how am I doing
 
12:25 AM
@webarto , that would be a bad wording too .. while Poland and Georgia are slavic countries , they make a point not to speak in russian .. it's like asking the french to speak in german
 
traitors!
 
@webarto , and while that is a nice thought and i even understood you without a need of translator , you would have to create a multilingual site
with english and russian as mandatory languages and then one for each country you want to focus on
 
that is not a problem, only problem is to give people support on Russian
 
phone support ? or good documentation ?
 
basically ticket support, for hosting services
 
12:28 AM
with the activity in NGN (at least in Russia), it might be easier then you think
but if you need a developer , ping me =P
 
will do :P I'm suggesting this to owner of Site5, and he likes the idea, but he is a little scared...
bluefur.com this is for Canada
and for Russia, just make it red :P
hosting business is a relatively painless and sweet
servers are in USA (softlayer), and that rarely breaks...
but it would be nice if they are not around the world...
 
@webarto that might be wrong move
the biggest player in russian web design is artlebedev.com
rusian web has very ascetic design tendencies , which is a direct result of influence from this design studio
 
artemy lebedev :) and he is damn expensive
 
yes , he is
 
but not without a reason
 
12:35 AM
that could be disputed
 
russians
if we were with this knowledge 10 years ago, we could have been millionaires :P
didn't come out in english, but doesn't matter
I'm the only one doing PHP in Site5, I feel like a black sheep...
good night
 
c ya
lol .. saw this image while reading about php namespace :
somehow seem very appropriate illustration for the namespace implementation
 
1:39 AM
@webarto fuck yeah huh
http://stackoverflow.com/questions/11620164/how-to-merge-two-mpeg-files-wih-php/11621560#comment15391082_11621560
0
Q: How to merge two MPEG files wih PHP

João MosmannI'm using the Google Text-to-Speech to make a game, but the TTS have a limit of 100 characteres per request. So, I split the text, and I do more than one request to synthesize the complete text. Now, I have the binary of sound of my text split in two files. Just doing a simple $audio1 .= $au...

 
that ugurcode guy is annoying
 
why did he wrote as answer exactly the same answer where dud @hakre posted "may be duplicated bla bla" lol
He can do it and still get accepted answer? or a mod should mark as duplicated? idk how it works :P
 
@PedroGabriel Yes because we like to keep redundancy low and I realized that there was some duplication.
 
so, he still getting best answer?
 
@rdlowrey Think you can have some Artax polish done by Wednesday?
I'm going to start the project I want it for then, but I can start without it.
It'd probably be good for me. That way I can't test through the UI :)
 
user895378
2:19 AM
@LeviMorrison Yeah I definitely can. I was sad I had to go out of town this weekend because I was getting really close to a fully stable interface where only implementation details would change.
 
user895378
So I'm about to binge code for several hours until I can't stay awake and then resume where I left off once I wake up tomorrow.
 
2:37 AM
damn .. that latest project i am working on .. gods below ..
every time i look at the original code, it feels like dying
 
What is it about?
 
have you ever written code in qbasic , or seen a newbie write in it ?
it's that level of awful
 
@tereško Is it written in PHP?
 
at this point , having procedural code would be a significant improvement
 
user895378
lol err ... I mean ... sorry.
 
2:41 AM
Evening
 
morning
@LeviMorrison , do you remember (vaguely) how did your first php page look like ?
 
nighting?
 
"jmalais: I've no ideia about what I'm doing"
 
evening folks
 
user895378
3:09 AM
'evening all (everyone else was saying it)
 
@tereško Yes. A true abomination.
 
well .. that's the level of code that i am facing
 
 
2 hours later…
5:36 AM
morning
 
morning
 
posted on July 24, 2012 by Cal Evans

Blog: http://www.dragonbe.com/ Twitter: @DragonBe Show Notes: http://www.phpbenelux.eu http://conference.phpbenelux.eu/2012/   Sponsored by: Engine Yard

 
What kind of sorcery is this
 
6:11 AM
Any one know oauth php ?
 
I would like to know it
 
@PedroGabriel can u try it? code.google.com/p/oauth-php/downloads/…
 
The page you asked for does not exist.
Could not fix it replacing ( by - :P
Why you want me to try oauth?
 
something is missing can u help me
 
@THOmas I would prefer is you just say the issue huh
 
6:20 AM
Can u look my question?
 
6:36 AM
fuck .. it's the wrong time to ask a question .. gonna have to wait till someone more capable comes online
 
Sem
6:53 AM
@tereško Maybe I can help a bit? :)
 
Sure
At which part of MVC triad should redirects happen ?
It has to be in presentation layer , but that means either Controller of View objects
only thing i am sure is that it should not happen in Templates
.. currently i am going with "in view" option
 
Sem
@tereško Could you give a redirect example your using?
 
no , because it is not written yet
 
Sem
@tereško Then I should go for the controller, why is this a problem?
 
I've no ideia what is it :D
 
7:01 AM
25 mins ago, by tereško
fuck .. it's the wrong time to ask a question .. gonna have to wait till someone more capable comes online
 
Sem
@tereško You're saying you have 2 options, declining 1.. is there any other choice?
 
if you do not understand why it is a problem , i cannot take you seriously
 
Sem
@tereško I guess so, maybe you can explain it to me then. Which sometimes helps fixing a problem as well.
 
7:17 AM
Morning
 
Sorry for not testing myself, I don't have a MySQL instance available to me at the moment, can someone please clarify something for me.
With a valid query, but no results returned, does PDOStatement->columnCount still contain the number of columns?
 
@tereško Isn't a redirect a control decision? Either continue with the current request or redirect to another. I would say they belong in the controller.
 
@vascowhite keep in mind that redirect itself happens by sending a http header
 
Buon giorno
 
Hello @deceze
is that the spelling for buon giorno? I dont know just asking.. I thought the word had something like 'Bourne' in it :)
any how.. I was wondering how to get the site url via php.. $_SERVER[SERVER_NAME] is the way to go.. right? but what if the site has some specific port number or something too. then how is it attached to the site url?
 
7:31 AM
@deceze bonjour, no?
 
Trying Italian today...
 
@tereško Yes, good point, but I think the important thing here is how the redirect is initiated, not the mechanics of it. I would still maintain it is a function of the controller to decide if the current request should be continued with or if a redirection is needed.
 
@deceze , good afternooon
care to pitch in on my issue ?
 
@tereško What is the earliest point that you know a redirect should happen? (or is that the actual issue - where to put the logic)
My opinion is that it should happen in the controller, as early as possible
 
@Leigh , when i conclude that $_SERVER['REQUEST_METHOD'] is "POST"
which is right after constructing a controller , but before executing method on it
then again , that is not set in stone, because it could happen at any moment before calling method on the controller
 
7:48 AM
what is the easiest way to split up a start and end time in chuncks of 30 minutes?
 
@tereško The controller, quite obviously (to me).
The controller is responsible for interacting with the user.
That means it receives and evaluates the request, and decides what response the user should get.
 
Sem
@deceze And I thought I was missing something..
 
Models are for handling the data and business logic and the view is for presenting the response.
If you have a very special "redirect view", then maybe you want to count it to the view layer... but I wouldn't.
 
morning
 
Sem
@PeeHaa Good morning!
 
7:52 AM
Mornin'!
 
hello!
is it possible to get file extension for SplFileInfo object?
I'm looping through new RecursiveIteratorIterator(RecursiveDirectoryIterator($path)). Iterated object is SplFileInfo, but when I'm trying to access $IteratedFile->getExtension() I'm getting Fatal error: Call to undefined method SplFileObject::getExtension()
 
SplFileInfo::getExtension
(PHP 5 >= 5.3.6)
 
dammit :(
will be using phpinfo
* pathinfo
 
RTFM helps. :)
 
@deceze thank you!
 
8:06 AM
hello
 
8:17 AM
what is the easiest way to split up a start and end time in chuncks of 30 minutes?
["start"] => string(19) "2012-07-27 09:00:00"
["eind"] => string(19) "2012-07-27 16:30:00"
["start_ts"] => string(10) "1343372400"
["eind_ts"] => string(10) "1343399400"
 
Can I insert into table all selected data in one query? Like INSERT INTO table AS SELECT * FROM table2? Or in different way?
 
morning
 
$in = array(
'start' => '2012-07-27 09:00:00',
'end' => '2012-07-27 16:30:00',
);

$chunks = array();
$time = strtotime($in['start']);
while($time <= strtotime($in['end'])) {

$end = $time+30*60;
$chunks[] = array(
'start' => date('Y-m-d H:i:s', $time),
'end' => date('Y-m-d H:i:s', $end),
'start_ts' => $time,
'end_ts' => $end,
);
$time = $end;

}
 
@deceze Great, great, thank You :)
 
8:24 AM
@sanders you may also consider adding +1 second, as you wish
 
@Kirzilla tnx.
 
Can anyone do edit request on php manual translation? Or where do we report if we found a mistake in manual's translation(not a typo, some wrong information)
 
@draconis What is wrong where?
 
typecasting from an object to an array, in turkish manual it says "public properties will receive a * before their name"
but protecteds will receive this right?
 
@draconis You can edit the page yourself online clicking on the [Edit] link.
 
8:35 AM
@draconis WHat @deceze said above
 
i do not have an account can i edit without account?
 
You can edit anonymously.
 
yes i can :)
 
@draconis Everyone can edit. But only people with vcs account can commit
 
thanks didn't tried it since i have no account
 
8:36 AM
Supposedly someone @php will check the edit, but in practice I had to notify @NikiC here to submit the patch... :)
 
@sanders , please don't start code fragments which are useless for anyone but you
 
9:03 AM
Sorry, I'm not very good in english. Please explain when I should throw DomainException exception? What does domain means in project/development context?
DomainException extends LogicException
 
@PeeHaa , help
ok .. i guess i should elaborate
how would you make a ruleset for access control (ala. MAC)
what format you would use for the rules
 
Hello All, Any one can let me know that is it possible to send email from local pc or from local server ???
 
9:19 AM
@tereško Can you elaborate more? What kind of rules? What kind of access?
 
@AlexSmith It is possible, but You need to configure mail client in Your server settings. You can use google's server for Your local use. Search: google local mail server php
 
Warning: mysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused it.

Warning: mysql_connect() [function.mysql-connect]: [2002] No connection could be made because the target machine actively (trying to connect via tcp://localhost:3306)

how to solve this problem
 
@Leigh , kinda like this thing .. i am looking for a way to set up a DB-independent access list
 
PLB
@pbvamsi Run mysql server.
 
but a cannot think of a good format
i currently have this :
{
    "Application\\Controller\\User::getRegister":   "guest",
    "Application\\Controller\\User::postRegister":  "guest",
    "Application\\Controller\\User::getLogin":      "guest",
    "Application\\Controller\\User::postLogin":     "guest",
    "Application\\Controller\\User::*":             "member",
    "Application\\Controller\\Account::*":          "member"
}
 
9:21 AM
its already running, and i've been using tables from that db with no errors like this @PLB
@PLB its happening only at this stage...earlier in two stages of control flow it worked well..its failing to connect at this instance
 
@Daniels: Thanks. can you please let me know how can i do that ?
 
PLB
@pbvamsi What stage?
 
@tereško Hmm, not really sure, I've always gone with explicit role based access, and in the method I have $user->hasRole(blah)
 
@AlexSmith Actually, I dont remember all the steps, but a bit of googling and You will find many answers.
 
@pbvamsi : send me your connection code here
 
9:24 AM
in mean in other instances of control flow i've connected to same tables/same db and created some tables, word documents and forms..now i'm about to generate a pdf doc from dat..its working well on my localhost
 
@Daniels : Thanks a lot.. I will try
 
@AlexSmith No prob, man
 
connection code is as normal as $conid=mysql_connect("datasystems.db.7xx7.hostedresource.com","dxxs","Kxx3") or die(); @AlexSmith @PLB
 
@pbvamsi: check your database host name
 
PLB
@pbvamsi Make sure that your connection string is correct, make sure that it allows you to connect from different host (if on the same host use "localhost").
 
9:28 AM
@pbvamsi: I think you will not able to connect to other host.
 
@AlexSmith its absolutely correct and am using excatly same line of code in other program files to connect n manipulate, it happening right there @PLB
 
@pbvamsi: is it working on other page ?
 
yes it is working and i had successfully manipulated those tables @AlexSmith
 
PLB
@pbvamsi All we can say from this error message is: either mysql server is not running or it does not allow to connect.
 
@pbvamsi: if you don't mind can i have your url ?
 
@sanders
$start = new DateTime("2012-07-27 09:00:00");
$end = new DateTime("2012-07-27 16:30:00");
$interval = new DateInterval('PT30M');
$period = new DatePeriod($start, $interval, $end);
foreach($period as $p){
var_dump($p->getTimestamp());
}
 
@PLB I'm sure that server is running so problem is it doesn't let us to connect.. it says No connection could be made because the target machine actively (trying to connect via tcp://localhost:3306) and No connection could be made because the target machine actively refused it.
@PLB @AlexSmith how can i diagnose the problem well to sort this out
 
PLB
@pbvamsi Make a very simple file that connects to your host to be sure and then contact to the support team of your server
 
@PLB but with other files exact same line of code is making connection, is there any way around
 
PLB
@pbvamsi Debug your script. in this kind of situations, I put exit in the middle of code and trying to move it so that at come to the line where problem is.
 
9:49 AM
@PLB new idea, i'll try.. thanks bro :)
 
PLB
@pbvamsi You're welcome
 
@PLB but it doesn't help me in this situation, because in the very 1st line of code i.e., at connection itself there is problem for me
 
@deceze That's what I was talking about))) It's realy nice looking) BTW, the trial is not time limited and has no restrictions. It just shows the popup with buying proposal some times. So you can use it for free.
 
10:06 AM
@hookman Have you tried Chocolat? Generally I like it, but I'm kind of on the fence about it.
 
@deceze Wow, thats almost as expensive as sublime, with nearly none of the features :D
 
@Leigh True.
Show of hands, who's still holding on to TextMate?
 
@Leigh expensive?..
 
@salathe sublime is $59, that chocolat is $49
 
10:17 AM
@Leigh I read it as though you thought that sublime text was expensive. :)
 
@salathe it is expensive
 
@salathe When would you start calling something expensive?
 
@salathe Although 10 minutes with gdb and HexFiend makes it free
 
@Leigh I guess that's a matter of perspective.
@deceze Depends on the something.
$59 is expensive for a cup of coffee, for example. :)
 
@salathe Let's say, uhmm.... a text editor. :P
 
10:19 AM
@salathe You can get a whole OS cheaper than that text editor ;)
 
I think it's a bargain to have sublime text at that price. But that's entirely my own view. :)
@Leigh I guess you want everything to be free (cost)?
 
@salathe You clearly either 1) get paid too much or 2) don't have anyone to spend all that money on :x
@salathe No, I'd like people to allow me to decide how much I value their software
 
Can anyone help with PHP Coding?
 
@Leigh $59 isn't a lot of money, and I really, really don't get paid enough, never mind too much.
@Leigh And your groceries too?
 
@ronquiq In the PHP chat room? That's a stretch now, innit?
 
10:20 AM
I'd buy sublime if it was $20, but $60, I'd rather have at it with a debugger and save my money
@salathe If I had the skills to code a farm, I'd get cheaper groceries too ;)
 
@Leigh That's fine, if it's not worth the money to you then do whatever to use it for free.
 
deceze@could I post my sample php code here
 
5 mins ago, by deceze
Show of hands, who's still holding on to TextMate?
^Nobody I take it?
 
@deceze I still use TextMate daily
 
@deceze I could raise hands by proxy for my colleagues
 
10:22 AM
I paid for that one too.
 
OK :)
I just find it get very slow on large projects, so I'm looking for something newer...
 
I use TM nowadays mostly just to write the PHP docs :)
 
And TM2 is pretty flaky so far... :-/
 
$a = mysql_query('SELECT cc.name, c.fullname,c.shortname FROM course c, category cc
WHERE cc.id = c.categoryid');
echo '<form action="" method="post">';
echo '<center><div style="margin-top:40px;"><input type="submit" name="submit" value="PUBLISH"></div></center>';
echo '<table border="1" width="100%" style="border:1px solid lightgray;">
<tr style="color:#808080;">
<th>CategoryName</th>
<th>Course Fullname</th>
<th>Course Shortname</th>
<th>Total</th>
</tr>';

while ($row = mysql_fetch_assoc($a))
Rightnow Iam able to insert category,coursename and shortname correctly with the above code but total column is getting repeated value for all the rows.

Could you suggest to insert the correct value to each row into database
 
But that's only because of the tab snippets, I'd use sublime if/when I can be bothered to move the snippets into it.
 
10:25 AM
Suppose if I give 23 in the textfield for 1st row and 90 for 2nd row and 56 for 3rd row . Now I will submit , it is inserting in the database for total column as 56, 56 56 for all the 3 rows
 
ome
I use VIM cause it's God. :D
and netbeans for xdebug.
and just love how things just works. :)
@ronquiq are you trying to learn PHP ?
 
I knew basics trying to learn deeper
 
ome
well, where are you trying to learn from ?
 
FROM Online
 
ome
grab some decent book. I don't like to be mean but what you are doing is bad in so many levels.
 
10:28 AM
hello, have you people tackled with creation of CSR in ssl, for some reason openssl_csr_new puts default values for certain fields and I would like them to be left out.
 
Hii @all
 
@PPPHP Using command line openssl for everything certificate related, worked fine so far.
 
Ok, thank you ome
 
anyone knows, how to connect remote mysql? using mysql_connect(".......","....",".....")
please help me
 
ome
@pardhu don't use mysql_*, learn PDO or MySQLi
 
10:31 AM
@ome what can i use please help me
i want to connect another site database
 
deceze@ have you seen the code
 
what is host name, username, password?
 
@deceze Ok
 
ome
May 10 at 17:35, by tereško
Please stop writing new code with the ancient mysql_* functions. They are no longer maintained and community has begun the deprecation process . Instead you should learn about prepared statements and use either PDO or MySQLi. If you cannot decide, this article will help to choose. If you care to learn, here is a quite good PDO-related tutorial.
 
@ome , thats an old version
 
ome
10:33 AM
that is what I could find, :)
post the new one. I didn't quote @Truth because "he didn't give the credit where it's due" :)
 
this is the current one
 
ome
Jun 30 at 13:28, by tereško
Please, don't use mysql_* functions to write new code. They are no longer maintained and the community has begun deprecation process. See the red box? Instead you should learn about prepared statements and use either PDO or MySQLi. If you can't decide which, this article will help you. If you pick PDO, here is good tutorial.
Oh well, I can't edit the my message now. but start ^ so it's handy.
 
Good morning/day. What to do with horrid questions like this:
-10
Q: How to show different content based on URL used to open site in PHP?

Ivan PetrovichI wish to achieve the following using PHP: If user1 visits the site using url1, he should be given content1 in the output, but if user2 visits (the same) site using url2, the script should give him content2. content1 and content2 are forms used for logging in.

Look at the OP's profile with the detailed reputation history. Someone upvoted this question.

I don't think this question should be [tag:cv-pls] because it is a live problem but still, the question is rather... eh...
 
That question is either a duplicate of a million similar ones (in essence: what's the visitor's referer?) or it's not clear what is being asked (not a real question).
I'd say .
 
abou the above PHP code
 
10:44 AM
The OP already has several answers which may or may not help him, but the question as such is not helpful to any future visitors.
 
?
 
ome
it's pretty much a so needs a
 
Well I did my best to answer the question with two methods at first, and to attempt to fix up the syntax but it's just like when you hear a baby crying and you are like: eh there is at first hand 3 options why the baby would cry.
In [one answer](http://stackoverflow.com/a/11628883/1428773) the answerer goes
> I have a feeling you don't know how to use PHP yet and are asking random questions insteading of going through a tutorial perhaps?

How came I only see one question from the poster? The rest got delete voted?
 
I think you've wasted time on that
 
Anyone knows a secret move?
0
Q: How to configure ob_tidyhandler dynamically?

hakreThe PHP tidy extension has a function ob_tidyhandlerDocs that works with PHP output bufferingDocs as a callback, e.g.: ob_start('ob_tidyhandler'); I know that Tidy has a lot of configuration settingsDocs, however I am hitting a road block to setup default configuration options for that output ...

 
10:47 AM
@webarto Yeah. Props for effort, but... the OP has not responded to a single answer or comment. Probably doesn't even care that much or know what he wants.
 
he will learn :P OP is a faggot
 
Well it was only 40 minutes since the question getting posted, I am rather naive that he will respond. But most likely he won't... :/
 
yeah props for the effort, but I'd say that question will disappear in the future.
 
@hakre Indeed. 14(?) downvotes is a new record that I've seen on SO.
 
@Whisperity Oh, well, you might find that record broken more often then.
 
10:51 AM
*"We’d been planning on replacing the original, spam-ridden plugin site for quite some time. In the process of deleting on the spam, all the plugins were deleted and we didn’t have a recent backup."*
http://blog.jquery.com/2011/12/08/what-is-happening-to-the-jquery-plugins-site/#pluginstldr

^ O_o Wow. Serious fail.
 
Anyone knows why curl_setopt($ch, CURLOPT_USERAGENT, $this->getContext()->getRequest()->getHttpHeader('User-Agent')); overload CPU?
 
@Whisperity You must be new here. ;P
 
@deceze No, I'd say a useful break. The Freudian admission that things needed to be burned.
But on the other hand, if I were a plugin author, I might be very dissatisfied.
 
@hakre No question that the jQuery plugin page needed to be burned, but this sounds like a real late-night "Lemme just DELETE FROM plugins WHERE 1=1 OOOOHHH SHHH"... ;)
 
so has anyone got any idea how to leave blank those default fields with PHP's functions? Earlier I was talking about the csr creation.
 
10:57 AM
DELETE FROM plugins WHERE 1
:P
Life of devops in 6 word: "I thought it was staging database"
2
 
lol
 

« first day (647 days earlier)      last day (4294 days later) »