« first day (509 days earlier)      last day (4457 days later) » 

2:01 PM
Hi @Neal
 
@Donut Hi @Robik! You changed back?
 
@ircmaxell Have you already been convinced that references should also work on scalar type hints?
 
-3
A: I request a 'self-accept rate' figure for each user

amanaP lanaC A nalP A naM AAnd I suggest that.... We take all of the numbers in the profile. Add them together. Multiply by 42. Then divide by 100. And see what we get. We will call it each individuals' Ultimate Answer Rate See how silly it can become? As soon as you start taking random numbers on a user's...

^_^
 
@Neal Yes :)
 
@Neal You really do a lot of trolling on Meta...
 
2:07 PM
@NikiC I am not trolling!
I was suspended from meta for 2 days.
I never trolled...
 
@Neal If you manage to get suspended, then you definitely are trolling
 
@NikiC No. They just don't like my posts for some unknown reason where posts from mods with the same quality get 100s of upvotes
 
@AlexandruTrandafirCatalin you use it through the API of the library, e.g. either DOM or SimpleXML
 
@Neal your only solution is... become a moderator.
4
 
@salathe I tried that. You don't remember?
 
2:10 PM
@salathe is a master of the art of occam's razor
 
@Neal No, you obviously didn't make an impression.
 
@salathe Lol i most definitely did
 
@Neal he said become not try to become ;)
 
@Gordon exactly
 
do or do not. there is no try.
 
2:12 PM
oy
 
Why naming is so hard? :(
 
@Donut: Because all the good names are already taken? :(
 
I mean Class/function/etc naming.
 
@Donut often because the responsibilities are not clear
 
2:22 PM
I know, I was trying to make a joke :(
 
I am working on form builder now, I've created Control class that represents Form control. But some controls are closeable when some are not. Temponary I've created $control->isCloseable but non-closeable controls can't have childs, so I need to split them. Looking for good names.
Not even sure if Control is a good name
 
@Donut at least i have no clue what a Control is supposed to be in that context? you mean a Form Input Element?
 
@Donut ClosableControl extends Control ? I don't know :/
 
Control is more like Html Tag, it contains functions like addChild, setAttribute, but for example CheckBox class extends from Control and adds some basic functions like $checkbox->setChecked which just does $this->setAttribute("checked", "true"). Some controls are closeable and can have children, like <button> and some not, like <input>
 
@Donut the correct term in XML is EmtpyElement
 
2:30 PM
Oh, so in this sence, closable means "has a closing tag", and non-closable is self closing tags
 
I want to avoid dependency on some specific XML parser
@Leigh Yes.
 
I seem to remember from way back, they used to be called Singleton Tags
 
@Donut its not dependent on a specific XML parser. but since you are apparently trying to model objects based on HTML forms you are dependent on HTML's DTD or XHTML (if you are sane)
that is, unless you are building a generic widget library, like Swing or something
 
Just forms + tables (i think).
What about calling them SingleControl and Control?(If control is correct name)
 
@Donut how about calling them FormControl and CompositeFormControl
 
2:36 PM
They are in namespace already, so should they be prefixed with Form?
 
@Donut nope. can omit it then
 
@Gordon Thanks.
 
@Donut np
 
I would never thought about composite. :P
 
@Donut likely because you are thinking in terms of <elements> and not in terms of OO abstractions.
 
2:39 PM
I never used that word, ever.
 
It's exacly my case and I did not know it.
 
@Donut because you didnt read the GoF book yet ;)
 
But I know basic patterns from that site.
 
@Donut well, get to know them better :D
 
2:46 PM
Will do.
 
the place where i work they just overuse singleton pattern for almost all the classes like cookieManager,SessionManager,DBManager,PAgingManager etc
 
@fluty naming a class SomethingManager is usually an indicator of misplaced responsibilities.
 
If magic methods like __get or __set are slow, does ArrayAccess is also slow?
 
hmm gordon exactly,like in pagingManager all the funtionalities of pagination is encapsulated
 
hey all, if i am looping through something 1000 times, and i want to check if the current iteration has hit the 100th mark (e.g. 100, 200, 300, 400) what would be the most efficient way to test for that?
 
2:50 PM
@Donut i've never benchmarked it but afaik, yes. but you know the drill with the "slowness", right? make sure it matters.
@fluty that doesnt sound wrong to start with, but it might be that that manager could be refactored into smaller components
 
@johnMerlino , counter%100 == 0
 
@JohnMerlino In for you can use $i in foreach if array is not associative, you can use key, otherwise create new variable that will work like offset. Then modulo it.
 
thanks for responses, I had modulus in mind
 
@Gordon What do you think if both Control/CompositeControl have isComposite function? To avoid $a instanceof CompositeControl == false/true
 
@Donut why would you need to check with instanceOf at all? or need to know if isComposite
 
2:55 PM
In my renderer, I get array of childs, I need to check if they are closeable
Also user may need it once or twice.
 
@Donut "user may need it once" = yagni
 
@Gordon how one should think in terms of responsibilities,to solve a problem.
 
@Gordon Ok, thanks again.
 
@fluty find GRASP on Wikipedia and follow all the links
 
ok gordon thanks
 
3:00 PM
@NikiC not fully
 
howdy
 
Hello @PeeHaa
 
user895378
@ircmaxell You don't have to rewrite all your SQL if you keep them cross-compatible. Of course, one could argue that if you're not going to take advantage of the individual perks of the particular RDBMS you're using then you're missing out. I'll give you this: There's no such thing as an easy migration between underlying RDBMS. You'll (probably) never just be able to flip a switch and get there without some manual auditing.
 
user895378
I'm big on choice. If I use PDO, I at least have the option to change without moving mountains in the code to make it work.
 
user895378
3:13 PM
But that doesn't mean mysqli is bad. Just the opposite. As long as someone thinks ahead and says, "these are my requirements, what do I need to take into account for the future" either will work.
 
@rdlowrey You absolutely do. SQLSERVER does not support LIMIT (and that's just one example)
 
user895378
@ircmaxell Well, I'm talking about simple changes, like going from a POC with an sqlite backend to mysql or postgres
 
@rdlowrey With MySQLI I have the choice. I can switch to PostGres without having to change a lot of code either. I'd just need to create a new set of data mappers to talk to PG...
 
user895378
3:17 PM
True. The more I think about it the more I see your side. If you're aware of the current scope of the project and are smart enough to consider what may come down the pipe going forward, they're both suitable solutions.
 
user895378
Well, they're both suitable regardless, but you know what I mean
 
user895378
Now I gotta scroll back three hours in the transcript to continue catching up where I left off :)
 
@Gordon It does not really matter if there's ControlInterface and CompositeControlInterface : ControlInterface?
 
posted on March 08, 2012 by Daniel Krook

IBM developerWorks has just published the final part in our series on migrating a PHP application from MySQL to DB2. Learn why to move a PHP application to DB2, how to plan the migration, how to execute it, how to support it, and how to handle potential risks based on the experience of an IBM [...]

 
@Donut since the Composite acts as a Gateway to the Composite Elements, they should implement the same Interface
 
3:24 PM
They do pretty much. CompositeControlInterface extends ControlInterface so they do. :)
 
user895378
Anyone care to offer opinions on where they stand on the legitimacy of DICs? It seems like using them to share dependencies across the full scope of an application is a bit fishy. I've used and written a couple and it always feels like I'm doing something a bit naughty. Does anyone else get this OOP Puritan guilt complex from injection containers? Even without storing "shared" dependencies it doesn't seem completely legit.
 
user895378
DIC certainly makes things easier, but it feels like the global keyword kind of "easier". It's not difficult to mock the behavior of the DIC for testing purposes, but I don't think you should be injecting the injector into classes as a dependency anyway. That just hides the real dependencies and turns it into a Service Locator.
 
user895378
3:40 PM
So I think I'm still withholding judgement on how I feel about it as long as the DIC stays at the top of the object graph and is only used to manufacture new objects.
 
user895378
nice
 
hey, is anyone else having trouble getting into sphinxsearch.com ?
 
@JohnP down for me
 
3:48 PM
Ah well. Looks like it's been down for a couple of hours then
 
user895378
@ircmaxell I assume that with the Lazy Dependency Injection method you mention you would implement setter injection as needed to provision any dependencies that the object has to have to function if the NULL default is used in the constructor?
 
http://sphinxsearch.com/ is down ? #sphinxsearch #mysqlservergone need to look something up in the docs :(
 
@ircmaxell ohhh, technical troubles
 
user895378
@ircmaxell I see
 
@rdlowrey And I'm not a fan of having post-construct setters for depenendencies in most cases. There are some where it makes sense, but for the most part it's more trouble than it's worth
 
user895378
3:51 PM
@ircmaxell Agreed. And the method you espouse seems far less dirty than the others.
 
It's not for everything, but for libraries, it's better than having your caller build a call chain (IMHO)...
 
user895378
And it gives you options.
 
yup
 
discovery of the day: $php_errormsg — The previous error message. didnt know that exists and also works on @suppressed() code.
 
:-D
 
user895378
3:58 PM
@Gordon Would it be correct to assume that behaves in the same manner as error_get_last()?
 
user895378
With the difference that $php_errormsg only gives you the message and not an array of info
 
user895378
?
 
:) A fool witha tool is still a fool. haha.
 
@rdlowrey and yes: codepad.viper-7.com/ViGgnX
@markustharkun its a common saying afaik
 
4:03 PM
@Gordon well, I just read it for the first time in your closing comment.
 
user895378
@Gordon Thanks for subsidizing my laziness so I didn't have to do it myself.
 
> Note: This variable is only available when track_errors is enabled in php.ini.
 
@markustharkun now reuse it often :)
 
@Gordon ay!
 
user895378
With dereferencing you could then avoid problems with ini settings for $php_errormsg with error_get_last()['message']
 
4:06 PM
@ircmaxell i hate those autopopulated vars. same with $http_response_header. its so magical and non obvious. at least there is error_get_last(). we need something for getting the response headers as well.
 
user895378
Well, probably better to just do if ($arr = error_get_last()) { ...
 
user895378
@Gordon with 5.4 apache_response_headers() now works for FastCGI too, despite the ill-conceived nomenclature:
 
user895378
As do some of the other previously apache-only functions (see above link) ...
 
@rdlowrey humm? why would i want to know? Oo
 
user895378
4:13 PM
"we need something for getting the response headers as well"
 
@Gordon yeah
 
@rdlowrey As you say, if it's possible to share dependencies appication wide with a DIC then it's not DI, then it's just a really bad implementation of service locator. Correct DI is able to unset the DIC before the application even runs.
 
@rdlowrey whoever decided to add that to the apache namespace was... (I'll refrain from commenting)
 
user895378
:D
 
@rdlowrey if the DIC lives on after instance configuration and it's possible to 'get' things from it, it has become an internal agent again and that's against the whole idea of DI
 
user895378
4:25 PM
@markustharkun I agree. I wrote one that does that and I was like, "wait this shouldn't be allowed." Then I looked at some other implementations and I saw that they did the same thing. Correct DI should be very simple because it's a simple paradigm.
 
user895378
That's why writing prose documentation to flesh out what's going on and getting outside feedback is helpful before you dive headlong into an implementation!
 
@rdlowrey correct DI forces you to think about your dependencies and get clarity about your whole object graph. The graph is then created before the app runs and that's it. the instance configuration is cached and not a single new statement is needed (for everything that uses DI) during the whole request.
the app also doesn't know anything about DI or a DIC
every class just gets the correct dependencies
injected via constructor
 
Hi guys
I got a question
For file uploads to a remote server, whats the best way to go about it
So the upload would take place on a web server and then get moved to a remote file storage
 
@rdlowrey yep, I think 80% of all DIC implementations out there are not DICs and get the whole thing wrongly
I mean in the PHP world, can't talk about anything else
 
4:41 PM
@Harry
 
@Jeff Yes
 
@HarryBeasant - so you're wanting to upload a file to your server and once there move it to another backup server? Or is your question more simple than that?
 
@Jeff The file will be uploaded to the webserver and instead of moving that file into a local file, i want it to be moved into a remote webserver
not webserver, file server
But it will have apache etc
Best way is FTP?
 
Do you control the webserver? Meaning is it a colocated server, dedicated or shared service?
 
shared
 
4:44 PM
Well - I would guess FTP would be one of your only options really at that point.
 
Could use cURL?
$file = "filename.jpg";
$dest = fopen ("ftp://username:password@example.com/" . $file, "wb");
$src = file_get_contents ($file);
fwrite ($dest, $src, strlen ($src));
fclose ($dest);
Something like that?
 
Sorry - I've not worked with cURL yet as I've tried to stay away from it.
 
@Jeff why?
 
Why use it? What's the point if I'm able to do everything I need without it?
 
@rdlowrey actually, most people who use Symfony DIC or Zend\Di use the DIC in the controller, which is already an internal agent and therefore wrong usage
 
4:46 PM
@Jeff You can't though. Not explicitly at least...
and why would I use a web server? Why not just write the HTTP daemon in my application directly?
 
Actually - I can. If I don't have a need for a technology, library or something else then I don't have to use it.
Have to get back to work.
 
user895378
@markustharkun Yeah, I think they do. I don't know about the Symfony DIC, but the Symfony service container is passed as a dependency to every controller, which is patently wrong IMHO
 
user895378
It's easy to do, though. I just made a similar mistake in the last couple of days in my own code and am working on reimplementing it correctly.
 
@rdlowrey absolutely agree
 
being pedantic though
 
user895378
4:54 PM
Why would you purposefully avoid cURL like it's some giant living out in the hills?
 
@Jeff How would i do it with PHP ftp
 
user895378
Answer: there's no reason to.
 
Just to literally move a file to a remote server
 
user895378
 
ftp put?
 
user895378
5:02 PM
@HarryBeasant That'll do it. Just follow the examples in the documentation.
 
user895378
@HarryBeasant You might also look at ftp_fput
 
I have an header redirect that is dropping my session variables. I've looked into the usual suspects (session_start(), php.ini, exiting after header)... anyone have this issue?
 
i keep getting this error
Warning: ftp_put() [function.ftp-put]: Can't open that file: No such file or directory in /home/file/public_html/uploaded.php on line 52
is that local, or remote
 
user895378
5:28 PM
@HarryBeasant You'll need to post your code ... you should probably just post a question on SO with the code that's not working and any error messages.
 
Hey guys
here is the code;$ftp_server = "IP";
$ftp_user_name = "username";
$ftp_user_pass = "password";
$file = $tmp_name;
$remote_file = "/public_html/test/uploads/";

// set up basic connection
$conn_id = ftp_connect($ftp_server);

// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

// upload a file
if (ftp_put($conn_id, $remote_file, $file, FTP_ASCII)) {
echo "successfully uploaded $file\n";
} else {
echo "There was a problem while uploading $file\n";
error: Can't open that file: Is a directory in /home/file/public_html/uploaded.php on line 52
 
is there a way to pass a variable through div?
?
 
user895378
@user1079641 That doesn't make any sense ... a <div> is an HTML element. It doesn't have "variables"
 
user895378
@user1079641 What are you trying to do?
 
I have this code:
 
user895378
5:41 PM
@HarryBeasant which line is line 52?
 
$(document).ready(function() {
$("#lastpost").load("/message/userFeed");
var refreshId = setInterval(function() {
$("#lastpost").load('/message/userFeed?randval='+ Math.random());
}, 9000);
$.ajaxSetup({ cache: false });
});
 
if (ftp_put($conn_id, $remote_file, $file, FTP_ASCII)) {
that one
 
what it does is updates the "lastpost" div with the content printed out in /message/userFeed
every 9 seconds
<div id="news">
<div id="lastpost"></div>
</div>
that is how its called
 
user895378
@HarryBeasant How confident are you that your ftp user has write permissions to "/public_html/test/uploads/"? Because that's likely the problem
 
it does
 
5:44 PM
this is part of the user index page
 
user895378
@HarryBeasant Well, unfortunately I'm not in troubleshoot mode right now. I'm sure if you post essentially the same stuff you've put here in a question you'll get help relatively quickly.
 
so whatever username is mentioned in the url (user.php?id=james)
i need to pull that username and send it to the userFeed file that is being called through ajax, anyone can help me?
anyone?
lol anyone wanna help?
 
This is PHP
Go to javascript or ajax
 
this is about php
i need to pass a variable
 
user895378
Top right part of your browser window: "If anybody can and wants to help, they will."
 
5:53 PM
well, if someone can, can someone please help?
this is really important for me, i would really appreciate if someone helps
 
what the $fourLetterWord
i flagged 5 posts. all deemed helpful but just one was take action of
or rather two. one of which was not what i asked for.
ill never understand how mods decide
 
user895378
@Gordon "He's a fool who looks for logic in the chambers of the human heart"
 
@rdlowrey they dont have to be logical as long as they are consistent. i can adapt to that.
stackoverflow.com/questions/9616361/how-to-use-getelementbyid is an exact dup by the same user. flagged as such and asked for merging. deemed helpful. no action taken.
stackoverflow.com/questions/9617434/… is better suited for another SE. flagged as such. helpful. but only closed. not migrated.
stackoverflow.com/questions/9607101/… is yet another answer that tells the OP not to use Regex to parse HTML and suggests to use DOM or WhateverLib instead. But fails to actually show example code for the problem at hand. If the answer simply is to use a parser, then the question should have been closed with the much more comprehensive canonical. helpful. but no action taken.
stackoverflow.com/questions/9616216/… is shrapnel giving his infamous borderline answers again. given that he doesnt even bothers to explain why the OP cannot get his code to work and simply says: "you are doing it wrong. use arrays" I think this is better suited as a comment. helpful. but not action taken.
 
user895378
@Gordon hehe that's funny
 
user895378
because it's true ...
 
user895378
6:34 PM
@LeviMorrison What's up dude. I'm busy massively breaking things. Just migrated everything to capitalized namespaces.
 
@rdlowrey Haha, I am actually just popping in.
Wont' be available until later tonight
Good luck
 
user895378
Cool. Have a good one
 
7:39 PM
hiho
 
Hello @edorian
Long time no see.
 
I've not been around much but I think we where here at the same time sometime list week @Donut :)
 
Really? :)
 
@edorian Oh yeah? so it does work!
 
It's true that you don't get the pings after a while but i drop in often enough to "be there" even if i just browser the stared posts :)
 
7:46 PM
Ahhh
that makes sense then
 
I know this is not neat way, but can anyone share his thoughts on github.com/robik/QForm ? I ask because I want to know if I should do some major changes that will require from me to change my future code. :)
 
8:08 PM
@ircmaxell May I convince you then?
 
@NikiC please do
 
Oh, @edorian is here again :)
@ircmaxell At first I thought it was pointless too
But in the end it is just as useful as type hinting on referenced arrays for example
so you have (array &$stack) and in the code $stack[] = $element;
Similarly you can have (int &$count = 0) and in the code $count += 1;
Does that make sense?
 
Sure, but what happens when I do $foo = "1", all of a sudden it becomes $foo = 2;. But more freaky, is $obj = new ClassThatImplementsToInt(1) becomes $obj = 2;
 
@ircmaxell Then that's expected behavior.
The reference parameter is supposed to modify the passed variable
 
expected: yes. Sensical, I don't know...
 
8:11 PM
I.e. if you know you are supposed to pass a $count ref var in, you probably will do just that ^^
 
fair enough
 
I think the use of by-ref by itself is pretty minimal, but I don't see a particular reason to disallow it with scalar hints :)
 
With the casting ones, I did, because I thought that was a bit much. But fair enough
I'll implement my next patch without them
 
Oh, you're already working on the next one?
You have high patch-throughput
I need five days alone to decide to start thinking about starting to start writing a patch ;)
 
I started two nights ago, but ran into an issue adding the new keyword
so I'm going to do it this weekend
 
8:19 PM
And I probably should start writing an RFC or patch for the type casting notices
But again, I have the starting problem ^^
 
@NikiC :-D
 
8:32 PM
I'm writing a post about plugins in PHP...
 
8:45 PM
What are plugins (in a PHP context)?
 
basically, dynamically composable behavior.
 
Oh, not compostable?
 
:-P
 
:P
 
9:12 PM
why are you using so long words ?!
ehh .. such a shame that Lie To Me had only 3 seasons
.. not really even 3 , more like half-a-season , full season and another half-a-season
 
Evening all
 
hey @PeeHaa
 
Helloww @nik
 
9:29 PM
hello i am looking for a script to forward the visitor to the appstore or android market depending on the device of the visitor. Any idea?
 
Hey guys
 
heya
 
I am using ftp put and the file is being transfered, but it becauses broken
 
@ircmaxell finally oo session handlers or finally PHP actually using an interface?
 
9:30 PM
the file is being corrupted
onces the file has been moved to a remote server
 
@NikiC both
 
@ircmaxell thought so :D
 
$ftp_server = "";
$ftp_user_name = "";
$ftp_user_pass = "";
$file = "uploads/$code1/$code.$fileex";
$remote_file = "/public_html/test/uploads/$code1/$code.$fileex";

// set up basic connection
$conn_id = ftp_connect($ftp_server);

// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
$dir = "/public_html/test/uploads/$code1";
ftp_mkdir($conn_id, $dir);

// upload a file
if (ftp_put($conn_id, $remote_file, $file, FTP_ASCII)) {
echo "successfully uploaded $file\n";
that code, its corrupting it after transfer
 
@HarryBeasant since you asked that at least twice now in here, have you considered asking it on the main page?
 
It does work
Changed it to; FTP_BINARY
@Gordon I love you. So much.
 
9:36 PM
@HarryBeasant yeah. no problem.
 
found a job ad on local php forum .. read the requirement , good money, standard skills needed .. oh , they use symfony 1.4 .. crap
 
L)L)L)L)L
 
@tereško I started a new job today. No framework. Awesome. It's a bit messy, sure, but I'm not locked into some retarded system.
 
@NikiC: you will like this blog post
 
9:42 PM
@ircmaxell Because it's short?
 
@NikiC the exact opposite
 
@ircmaxell :D
 
as in quite long
 
heh, I hate debugging using gdb
 
You know what I find odd: I haven't been able to find a single usage of the observer pattern in PHP
I found only one true implementation (and one wrong implementation)
 
9:45 PM
Any non-trivial segfault is absolutely impossible to debug :(
 
@NikiC well, that's because by the time you get to the segfault, all information about it is already overwritten. You need to find the variable that overwrote its bounds...
 
@ircmaxell Want to help? :P
The reproduce code is short and clean: bugs.php.net/bug.php?id=61046
 
You know what you really want, is a canary
 
canary?
 
and a ciga-cig-aaaah
 
9:49 PM
basically, you adjust the emalloc style calls to allocate extra memory off the end, and then insert a sentinal value at that extra location. Then, periodically (after every write would be nice) check all of those sentinals to see if they are still the correct value
if there was an overflow somewhere, the sentinal would be different, and you'd detect that (see the dead canary) and know that something is wrong there...
 
lol .. had to restart the bowser
 
if you do that with all memory allocs, the one that has the blown sentinal value will be the source of your segfault...
 
opera had managed to dump 9GB in cache
closed the browser and it show a message along the lines "well .. we made a little mess , please wait till we clean it all up"
 
@ircmaxell I'm not sure that it's out of bounds writes in this case
the nature of the segfault would make uninitialized memory more plausible
 
Buffer overflow protection refers to various techniques used during software development to enhance the security of executable programs by detecting buffer overflows on stack-allocated variables as they occur and preventing them from becoming serious security vulnerabilities. There have been several implementations of buffer overflow protection. This article deals with stack-based overflow; similar protections also exist against heap-based overflows, but they are implementation-specific. How it works Typically, buffer overflow protection modifies the organization of data in the stack ...
 
My PdoStatement is not fetching things into classes. Any ideas? :
$PdoStatement = $this->pdo->prepare($statement);
$PdoStatement->setFetchMode(
    Pdo::FETCH_CLASS,
    'Image'
);
$PdoStatement->execute();

$images = array();
foreach ($PdoStatement as $data) {
    print_r($data);
    echo gettype($data);
    $images[$data->id] = $data;
}
print_r and echo show that it is an array
I've never had this happen before. It's always worked.
An error occurs when trying to get the id property because it isn't an object.
 
@@neal did you figure out your IIS issue?
 
Ah, figured it out.
Silly me, forgot to create __set magic
 
@NikiC I'll put it to you this way: I define 11 classes and 2 interfaces in code in the post...
 
@NikiC holla
 
10:04 PM
hiiiiiiiiiii
 
@NikiC have you ever tryed writing a plugin for IntelliJ platform? Specifically for PhpStorm?
 
@Eugene uh, no. That would require me to write Java. And I won't write Java :P
 
@NikiC I see. Okey.
 
do you want to write one?
 
what is phpstorm?
aaa IDE
 
10:08 PM
I never has stolen any code hihi
 
@NikiC yep. I was thinking about it, since I used one software compatible with Jira for tracking time spent per task. Would be nice to have such tool inside IDE.
 
@PeeHaa That sounds suspicious :P
@Eugene sounds like an interesting thing to do ^^
 
@NikiC seems legit ;)
Anybody can tell me whether what I am trying to do is possible?:
 
@NikiC yes it does. :) But one thing where JetBrains are not good at, is clean documentation and keeping it up to date.
 
2
Q: Playing the beep in SO chat

PeeHaaI am trying to play the notification beep (or mention beep) in the SO chat using a Chrome extension, but I cannot get it right (if it is even possible). I have tried the following code: this.notify = function () { $("#jplayer").jPlayer('play', 0); } But I get the following error: Uncaugh...

 
10:11 PM
I have a problem with my php upload a image and save in a specific folder "image" and then it suppose to display in a given img div, Everything works except it overwrites whats in the folder by the new image each time it displays
 
@NikiC So far it was a pain in the a** to find anything useful.
 
I believe I might need a loop statement checking the folder "image" to see if the photo already exist, is this what I sh'all do? or is there a alternative way?
also the image is given a name by "photo" + &i &i is a number which suppose to change each time a upload photo is uploaded but it always stays 1 no matter what I try to do
 
Wow my reactions are harsh when I'm drunk. Then again: the PHP tag needs it :)
I almost feel like @tereško now :P
 
drunk?
 
10:26 PM
hehe hiya @tereško :) harsh reaction ;)
 
it has nothing to do with intoxication
exposure to general internet population is what causes this
 
hey guys
 
@tereško hehe well said
 
@TuralTeyyuboglu why are you linking to CSS room here that's offtopic!!!!!11111 ;)
@tereško would it be doable to write a simple relational db scheme in javascript for localstorage?
 
10:36 PM
honestly , i have not even slightest clue
 
@PeeHaa drunk doesn't suite you.
 
@tereško no just close that question
@NikiC sorry. I can't really help it anymore. If your boss asks you to drink you drink. That's how dedicated I am :)
 
@PeeHaa Oh, you work for Google?
 
@NikiC What? You need to drink to become an employee @ Google? Where do I sign up
:)
 
10:39 PM
@PeeHaa There are rumours :P
 
Eeek I cannot cv questions anymore :( ???
@NikiC well it looks like to have some jobs here in nl: google.nl/jobs
wtf it looks like SO is protecting me against myself. I cannot even add comments anymore
 
lol
 
c'mon I demand it to be closed! :D
-3
Q: Isn't HTML5 misleading for new developers?

Guillermo GarciaI've been reading some stuff about HTML5, and I stumbled upon this "validation" feature. It makes me think about all those new programmers who will use this as a client-side validation for their forms, but will probably leave out the server-side validation. The thing is, all HTML is modifiable, ...

 
@PeeHaa The user was reasonable ;)
 
tnx @@Guillermo Garcia
bout time ;)
@NikiC :)O
Now I feel bad...
Neh :P
What does this mean " I wish to set the value returned to hidden field. But when I am not able to assign a value to it"?
-1
Q: Setting value of hidden element in php

user1247412I have a hidden field in form. On form submit I call a database function to add the inputs to database and return result of query. I wish to set the value returned to hidden field. But when I am not able to assign a value to it <form name="frmAddBook" id="frmAddBook" method="post"> <inp...

 

« first day (509 days earlier)      last day (4457 days later) »