« first day (1007 days earlier)      last day (4167 days later) » 

11:02
not me .. the most i could manage was a comment
@crypticツ Might be easier to work on the existing backlog for the backend part then instead of making it "in a class" which doesnt sound right if you really mean "a" class and not many tiny classes
@Gordon see I don't know any OOP =o( PHP code is about a 180 lines of code (whitespace included) I mean it's nothing complex, I'm not capable of such tihngs.
well , this is a nice place to start ... for my part, I can promise to be understanding
@DaveRandom it shouldn't be a lot of work. the current backlog is already nicely separated. the crawler and the SE client are easily reusable. so all it basically takes is to replace the BacklogView in the controller with a TableDataGateway writing the stuff to the database instead of into some template. @crypticツ can then pull from the database.
@crypticツ then you'll learn it :) this is a pet project anyways so no one will fire you for messing up. see it as an opportunity. I mean seriously, I didn't even write tests for that thing, so zero-defects clearly wasn't a requirement and in fact the caching decorator is bugged. it just doesn't manifest due to the way I prime and stale the cache with the cronjob.
To insert this exactly into the DB
<li><a href=\"index.php?a=promotion/gamemissie\">$menu_clickmission</a></li
11:15
@Tredged You don't insert it into the DB.
Varchar(255)?
Oops forgot something
how to keep $menu_clickmission the same
to display when getting it from the database
because now it changes it to the value I gave it
I mean
@Tredged You don't insert it into the db.
@MadaraUchiha Why?
@Tredged Because HTML shouldn't be stored in the database, data should be stored in the database.
11:19
Spasiba.
oh god, so angry now
Why ? @zerkms
took a test that accepts a code as an answers - in the end it marked all 10 tasks as "passes the test data sets" but got 4.7 of 5.0 points in total
how the hell it's possible
What desktop language are you using to access MySQL database on Apache? I have a webapp done in PHP/MySQL and now I want to create an equivalent dektop application for Windows and need some advice which langauge has the easiest communication with MySQL and FTP operations (like uploading and editing files on the server etc. Thanks in advance.
11:22
@MadaraUchiha To follow on from that, HTML should be stored in files, files should be stored on filesystems.
@Derfder .net/c#
@Leigh Thank you, yes.
I really hate it when people want to store files in DBs :(
@Leigh what about documents?
And by DBs, I mean relational DBs, after all, a filesystem is a specialist DB for storing files in, that's what it's good at.
11:23
Could I easilly access files on my server via C#?
@Leigh DBs can also store files directly in FS
@Derfder depends on how good programmer you are
In PHP it's relatively easy
@Gordon Document stores (you mean NoSQL?), they're designed to store documents, in that case it's acceptable. Just chucking them into a MySQL blob is not cool.
@Leigh It is a lazy way to sync data between servers though :)
@Leigh yes, i tried to lure you into a trap here :)
11:24
@PeeHaa DB synchronization is way more fragile than rsync
E.g. Evernote. It has a webapp and an desktop client. I want something similar
@zerkms Why would db syncing be fragile?
but for MySQL
Are you using mysql or something? :P
@PeeHaa Oh don't I know it. I very recently had to store files in a DB (yep, call my a hypocrite), because due to security restrictions, customer data was not allowed to be stored on disk in a certain environment, but back-end DBs were a more secure environment
11:25
@PeeHaa regardless of DBMS, if one of servers is out of sync - you have fun time to restore replication
I don't get it. WHat search term should I type into Google seach to find out what language/framework can do everything like PHP can, but the difference is that it's run as a desktop app.
@Derfder php can do everything like php
@Derfder your question makes no sense though :-S
But PHP is not used as a desktop app programming language
@Derfder so take ANY
any language can work with FTP
11:28
@zerkms never had too many problems with postgres. But tbh I don't have that much experience with clusters going bad
any language can work with MySQL?
@PeeHaa it still requires configuration. While rsync solution is a zero-configuration one
facepalm.jpg
@Derfder take .net/C#
PLB
PLB
@Derfder PHP can be used for developing desktop apps.
Which language has the least verbose coding for FTP and MySQL access when developing an desktop app that will be accessing files on the server and MySQL server on the remote server
@PeeHaa btw, is there a postgresql replication solution out of the box available?
@Derfder .net/C#
11:29
OK, I will take a look at C#
Is it easy t oconnect to remote MySQL server using Net Framework?
@zerkms It is in the core for some time now IIRC
@Derfder no, you need to spend 10 years learning it
@zerkms FUCK YOU TOO!
lol
That is not very nice
11:31
stop being THAT SLOW - open google.com
PLB
PLB
@Derfder I have no idea what you are doing, but it seems you want to create WS that will interact with datasources. And client application will interact with your WS.
and put ".net mysql" there
@PLB is it easy to implement a WS that will connect to mysql?
PLB
PLB
@zerkms Depends...
@Derfder does that need flagging?
0
Q: How to structure a large form application?

Madara UchihaBackground I am making a sort-of feedback application for a commercial airline. At the first stage: The pilot should fill out a form, with various details on the flight (Tail number, routes, failures, etc). There are about 50 of those fields for the pilot to fill out, and they currently use a ...

I'd love to hear your thoughts about this one.
11:34
@MadaraUchiha every time start with normalized DB. Denormalize when it's required
@zerkms and you be moar constructive please
PLB
PLB
Anyway, my point was that MySql should not be accessible remotely.
@Gordon it's a bit difficult with a person who is stupid
@zerkms if you cannot control yourself a public chat room might not be the best place to be then
@Gordon where did I miss my control (excluding the last phrase)?
and where was I not constructive?
11:36
6 mins ago, by zerkms
@Derfder no, you need to spend 10 years learning it
@Gordon that may be truth
if a person cannot use google
then I assume it will be a long road
@PLB I have already a webpage (PHP/MySQL). Now, I want to create a software that will be distributed to many people as an Windows installer. THis software should be able to connect to the database on the server e.g. forevernote.com and upload all changes the user make in the desktop software the the MYSQL on forevernote.com.
Example: Evernote. It's a webapp, but also you can download a desktop program and install it on your desktop. Which language/technology can do that for my most efficiently (least ammount of llines of code)?
@Derfder implement a webservice and every client would work with remote resources through it
What is a webservice?
I am using Apache
hey guys...
11:39
PHP and MySQl
A web service is a method of communication between two electronic devices over the World Wide Web. A web service is a software function provided at a network address over the web or the cloud, it is a service that is "always on" as in the concept of utility computing. The W3C defines a "Web service" as: The W3C also states: Web API A web API is a development in web services where emphasis has been moving to simpler representational state transfer (REST) based communications. RESTful APIs do not require XML-based web service protocols (SOAP and WSDL) to support their light-weight int...
the standard AMP stack
I have started PHP Learning .. can you guys help me. plz
PLB
PLB
1 min ago, by Derfder
What is a webservice?
@ruyamonis346 Please read the description to the top right of this page.
PLB
PLB
11:40
@Derfder For questions like this there's google. :)
@ruyamonis346 if we answer "no we cannot" what would you do?
@zerkms just put a ;) next time so it gets across less demeaning. you've seen his reaction to it without.
@Gordon oh, okay ;-P
@zerkms man ... take it easy.. sorry for trouble .. np..
@PLB What should I ask the Google? How to create WebService using PHP?
11:41
@ruyamonis346 that's .. fine .. np .. k .. yw ..
@ruyamonis346 Just ask your question.
@zerkms Please be nice to the noobs.
@MadaraUchiha please be nice too and don't call them noobs :-)
@zerkms "Noob" isn't a swear word. It's a swear word when used in such context.
PLB
PLB
@Derfder Yes, then find some code, copy and paste it. :)
11:42
do you need a room ?
@Derfder tbh, your question is rather broad and we cannot possibly answer it with a few sentences only. if your hope was to find some magic solution, then I'll have to disappoint you. There is none.
@Derfder to put it simply - webservice is a site, which provides you some API and through this API you can request and/or store data
@tereško is it possible to implement it using php and mysql?
@zerkms @MadaraUchiha thx. :)
@zerkms it is possible tom implement with gum and a paperclip
11:45
You guys are idiots!
@tereško OP only has php and mysql. Just a regular lamp stack
well .. then glue the paperclip to a lamp
solved , next please
@Derfder protip: if you want help from people insulting them is the least clever approach
basically i have setup php in mac ox - and i'm using mamp
11:46
@Gordon action - reaction
Also learnt some basic php from w3school.com
@ruyamonis346 NO never use that site that is terrible
well .. from now on you might want to avoid that site
@Derfder the thing is - your task isn't solved :-)
@ruyamonis346 And you want to know where to go from there?
11:47
@Derfder you know, you don't have to react immature to an immature action. an eye for an eye leads to eye gouging and in the end everyone's blind.
@Doorknob ya got some basic idea abt php
@ruyamonis346 not from... shudder there
PLB
PLB
@Derfder We gave you advice. We won't make your project. If we are idiots for that, I like being idiot then.
yes @MadaraUchiha so wat next sud i do now
@zerkms how can I disable the BEEP sound. Is it some JavaScript?
11:48
@ruyamonis346 i would recommend for you this book .. buy it or steal on torrents, your choice
@Derfder For starters, stop riting lke ths.
@Derfder there is a volume indicator if one of your desktop corners
but it's a question to superuser.com
@Derfder where the search box is , there is orange bottom and a volume icon
@Derfder there is a speaker icon on top of the page where it says "all rooms". you can adjust it there
@Derfder click the little speaker icon next to "all rooms"
okay, three of us answered that at the same time
11:49
@zerkms seriously. stop belittling him
/me sighs
I found it: <audio id="jp_audio_0" preload="metadata" src="http://cdn-chat.sstatic.net/chat/so.mp3"></audio>
So, it's a new HTML5 function?
@Derfder ...or try the volume button
and <audio> is hardly "new"
@ruyamonis346 .. do you have any specific problem , or are you just looking for general directions ?
@tereško started learning PHP .. so need some further direction, i mean
11:51
The <audio> tag is new in HTML5.
@Doorknob The <audio> tag is new in HTML5.
well .. get that book
which framework
PLB
PLB
None.
really? someone flagged that?
11:52
@Derfder if there was a timestamp of that article you would know it's several years there already
@Derfder Please do not use w3schools for reference.
@Doorknob crappy site :-)
@ruyamonis346 PHP IS THE BEST LANGUAGE IN THE WORLD EXCEPT OF THE OBJECTIVE-C. OF COURSE!
@zerkms doesn't mean it's spam, or offensive...
@ruyamonis346 no framework. Learn the language first. And stay away from frameworks at least for a year.
11:53
one day I tried to exclude it from my google search results, but for some reason that feature doesn't work
@Doorknob ... or harm
okay stop with the flag trolling...
@tereško thx . like it
STAHP
@ruyamonis346 they say that you are a professional php developer when you have written 3 frameworks of your own (which you have never really used).
so ... get that book , and decide on some small project
a blog usually is a good choice
post your code on github and ask people here to review it
@tereško he he .. :) right..
11:55
template engine, database access layer and guestbook - used to be 3 must-do's for every php developer
guest book - no
@tereško Dreamviewer or eclipse IDE which one is good for me
definitely not dreamweaver
Definitely not dreamweaver.
Definitely not dreamweaver.
11:57
phpstorm
and Eclipse is pretty bad too.
I personally use Sublime Text. Other popular choices are PHPstorm (commercial), Aptana and KomodoEdit.
@ruyamonis346 I like phpStorm and phpDesigner. Both are paid, but both are extremely good.
Also some people simply use Notepad++
EAP phpstorm is free
11:58
Sublime is also great and is free.
@zerkms EAP?
I use Komodo Edit; it's good.
@ruyamonis346 , since PHP is not compiled , the choice of IDE is not really all that important
it might start matter only when you get to large projects or work in teams
thanks a lot guys... i vl try with phpStorm or phpDesigner
SublimeText =P .. and also try Aptana
12:01
Used to use aptana for years, ++
same here .. kinda migrated in favor of lighter solution
doesn't have debugger integration yet though
at least didn't have year ago
Ok, will chk Sublime, aptana too...
PLB
PLB
@tereško Does not compiling into OPCodes count as compiled?
@PLB it's done by interpreter
12:02
@ruyamonis346 Also, please stop wrtng lke ths. It's really annoying.
@PLB compare Java and PHP workflow .. you will understand what I mean
so you don't need to handle that (as you would do with C++)
@PLB No, the point is, you don't need to compile it to run it.
PLB
PLB
Got it.
@PeeHaa , didn't you have a tutorial project some time ago ?
12:04
@tereško Yeah. I have, but needs moar love
I really should do something about that
hmm ... If i get bored , I might lend a line or two
@PeeHaa finish, pack into a book, sell, get some $
Okies..
@zerkms It's a substitue for this BS: nl1.php.net/tut.php
PLB
PLB
If you get bored and/or have some free time should write book about common MVC mistakes. ;)
12:09
@zerkms EAP currently segfaults on OSX
@PLB naah .. i will just publish a binder with my answers
which is a shame, because they finally fixed (int) being (int)) with predictive closing brackets
@Leigh that's sad. When I was using EAPs I generally didn't have any significant problems
I'm an avid bug reporter, I like using the EAP when I can. It segfaults when opening a second project and choosing this/new window. Doesn't matter what you choose, and doesn't do it when opening initial project. Odd bug
but it's something I do a lot, so, showstopper for me
PLB
PLB
I hope you really do it.
It's be nice reading them better formatted and in correct order.
12:43
</advertising>
I'm so conflicted about this book. :S
user652649
morning
user652649
i focused the window and i was expecting rebecca to appear. a god exists then
user652649
programming, the real world: I had to reinvent the wheel, it was a #!@!#!@ square
Good morning
@igorw: don't really have time quite yet, but what's on your mind?
@Ocramius is there any easy way to get EntityManager in static method in repository class?
12:51
@ircmaxell need help doing pointer-magic strpos and substr to make this test case pass.
IMHO, that case shouldn't pass
Interesting; this answer is like a dime in a dozen, but somehow it was praised by two downvotes ... I sense politics =p
class uses are always absolute, so why shouldn't function uses be as well?
@Jack +1 for your kids
take it as a gift
@igorw Shouldn't that be use function foo\bar\baz;?
@Mr.Alien lol thnx .. my kids will be so happy ;-)
12:55
@Jack lol, just tell them that alien sent you some sweets from his planet ;)
@Jack use function foo\bar\baz; is also supported and is working correctly.
@igorw IMHO, that's the only case that should be supported, since we don't do the other with classes, and it could get quite confusing
@salathe oh?
@ircmaxell I haven't read it so can't comment on the content. But the fact that someone decided to write a book because "one of the major problems of the SPL is the fact that the documentation falls behind the rest of the PHP documentation." rather than contribute to the docs puts me on the back foot.
I can see that
On the other side, 184 pages all about the SPL is awesome. :)
13:06
well, if it's awesome... time will tell there
And he called it "SPL Library" over and over. :(
department of redundancy department
hehe
The book's full* of silly typos, and rubbish code examples* which is disheartening too. It distracts from the otherwise easy-to-read nature of it.

(* I've only seen the first 2 and a bit chapters)
13:09
that stinks
It's almost like no-one proof-read it, and certainly didn't get a technical editor involved.
was it a publisher? Or self-published
I've no idea how php[architect] works in that regard... I'd guess it's basically a one-man garage-based operation (but could easily be wrong!)
They are better than that I thought
/me could also be wrong
@ircmaxell As I say, I don't know. It doesn't take a whole lot to publish a magazine (other than getting content).
13:12
@ircmaxell oh yea, you're right. in that case I think the patch is ready for general review.
@salathe Well, their magazine content is usually pretty decent. It's one of the better curated ones that I've seen
@ircmaxell From what I've read of the magazine, yes it is pretty decent.
@igorw Awesome!
@ircmaxell Some of their early editions were pretty terrible, they have improved that is certain.
Never looked at the early ones
I'm only going off the last few years of content
13:17
@ircmaxell When I looked a year or so ago, a lot of their content was framework-oriented
well "How to do X with zend" and "How to do Y with Magento" isn't very generalist for a general PHP publication
that kind of content was off-putting for me, personally
eih, I don't care about that...
Because it's not all how to do X with zend
meaning it gives you introductions into a lot of different concepts and tools
What should be done with a question that has become invalid because of updates to the program it is about?
Perhaps retag it with the older version?
13:24
Basically, the question is: how to do x with regex in program y. The correct answer was you can't, but since then x has been updated, and now the correct answer is "the way you always do regexes in y"
@Jack I don't believe the software has more than one tag
Perhaps you could link to a concrete question? =p
@Jasper update the answer / make a new answer
1
Q: how to get this correct RegEx to work in Notepad++?

GregI have the following Regex that works fine for it's purpose, as solved and described here: (?:/\*(?:(?:[^*]|\*(?!/))*)\*/) In notepad++ however it doesn't seem to work - is there a Notepad++ expert who knows how to modify this to get it to work (I tryed guessing at escaping brackets and thi...

@ircmaxell Just the answer, nothing with the question itself? (not disagreeing, just checking)
add a new answer
@Jasper For one, the question title could be more helpful
13:28
@Jack That's true. I'll get on it both (improving the question and providing an currently correct answer)
@Jasper It looks like the expression tries to match block code comment or something?
yep
Basically all those line spanning regex questions.
> it is such that in all my sitting I download some functionalities down, so I hear it's possible that I like them like this:
13:33
@Jack Yeah, I was quite surprised myself when I was tackling another question, found something about a regex option in N++ I didn't have, finally updated my outdated N++ and got a regex flavor that was about ten times as powerful as the previous one
Lookahead and lookbehind too, they weren't in there and are now. There's probably even more
Noice!
@DaveRandom Even google translate could have doen a better job, I'm sure
> Parse error: syntax error, unexpected T_REQUIRE, expecting T_FUNCTION in ...
ummmmmmmmmmmmmmmm
I cannot think of one situation where the compiler would expect a T_FUNCTION and nothing else :-S
13:40
@DaveRandom class definition
after abstract within a class definition
Right, that's the only way though I think
Because any other modifier could be followed by a $var
final
I wonder if anyone has ever tried to declare something abstract final
I have
and it doesn't work
13:42
static only classes
the class, sure
can still be done with private constructor, not that anybody should do that, ever...
@igorw why? private constructor which throws an exception
@ircmaxell it prevents you from creating an instance, which I guess would be the point of abstract final class. 3v4l.org/ORjQV
@ircmaxell Isn't making it private redundant if you throw an exception (or vice versa)?
The thing is they are directly at odds with each other. You are declaring "you must extend this, but you cannot extend this"
13:45
@DaveRandom sure. as long as you also declare it final
how are you declaring you must extend this?
Oh right, of course
@ircmaxell abstract essentially says you must extend it before you can use it (in a non-static manner)
exactly
@Jack rewrote the entire question:
0
A: How to match c-style block comments in Notepad++ with a regex?

JasperWhen the original question was asked, the correct answer was that you couldn't do this in Notepad++, because its regex flavor didn't support regexes matching over multiple lines and lookahead (both of which are essential in the given regex). However, since then Notepad++ was updated and got a mu...

Much as I hate the idea in terms of what people would do with it, the constructor-that-blows-up approach is ugly compared to if you could just declare a class static.
make an RFC
13:50
@Jasper Cool, perhaps you could add a link to a news item perhaps? I'm sure there's one detailing the new engine?
@Jack I'll take a look if I can find one
Now that the title has been updated:
Woohoo, I just got my first gold badge :D
excuse me people
does anyone know how to print sql date from sql server to webpage with php?
@Jasper congratulations :D
13:55
Hi every 1
Hi @Doorknob
@humphrey hello
@Jasper congratulations :)
Thanks, @Doorknob and @NullPoiиteя
@Jasper I remember how excited I was when I got my first :)
@Doorknob how can I use between in php like i dont wanna compare between to times like this <= : is there any way ? if($currentTime <= $workStart){
13:58
@Gordon is it possible to merge this (stackoverflow.com/q/3579892/1723893) question with dup .. it have one really good answer but 4 delete vote ... please take a look :)
@Doorknob I'm not that excited (perhaps because I really didn't haven't been that active other than in chat for some time now) but it's still pretty nice. It's one of those question that's just good enough to keep getting views :D
@humphrey Stack Overflow, I don't know PHP
yo okay cool and thanks
@Jasperb hi
@Jasper hi

« first day (1007 days earlier)      last day (4167 days later) »