« first day (941 days earlier)      last day (4232 days later) » 

10:00
Hmm, the description wasn't very clear, reading the canonical question now.
dont you get this link on hover ...
I don't have the site open ehehe
@Er.NikhilAgrawal Off topic here... Wrong room.
I just have this chat open for the "occasional" distraction.
Can anyone help me with variables in FPDF?
10:02
@N̨ul̕L͑P̯͍̭ȏͣ͛iƞer can't see that link !!! what do i have to hover onto? (allowed js for so :P)
@Duikboot To avoid aggravation of frustration because of silence... Sorry I have never used it before.
But i think StackOverflowExceptionnis not language dependent
Ok :P
merde
10:05
@N̨ul̕L͑P̯͍̭ȏͣ͛iƞer the hell it is !
@Er.NikhilAgrawal It is language, system, infrastructure and compiler or interpreter dependant.
Someone can write an interpreter or pcode vm without using the cpu stack.
okk
sorry sir
will not be repeated again
@N̨ul̕L͑P̯͍̭ȏͣ͛iƞer dude, change your nickname, you can even uglify it more, i'll help, but please leave the first 2 Nu intact ! btw: you have no t in Pointer
10:07
@kaᵠ yeah that is the greatest flaw for now! :P
@kaᵠ for that i need to create another account in se site :(
I always @2char
@N̨ul̕L͑P̯͍̭ȏͣ͛iƞer ... maybe @ordon will help
@Duikboot exclamation sign missing and a french will not stop there, he would repeat it fast, several times :)
are you on mobile or tab ?
anyone has built a successfull app here?
i have questions ..
10:15
@okok define "successful" "app"
thousand/milions users app
@MadaraUchiha Rotfl... In tears now...
@Ihsan Hmm? Why?:P
@okok What's your question?
@MadaraUchiha My real name is Mark Zuckerberg
the one i asked above dude
10:17
@Ihsan My real name is Madara Uchiha, I win.
@okok Please ask again, I can't find it.
@MadaraUchiha Oh... how did I miss that... Doh! :)
3 mins ago, by okok
anyone has built a successfull app here?
@okok That isn't your question, you have a question regarding a successful app, right? Ask it. Don't ask to ask.
10:19
3 mins ago, by Madara Uchiha
@okok define "successful" "app"
just ignore him :)
protip: calling people "dude", "bro" or "friend" in chat makes you look dumb
14
thousand/milions users app
@Gordon bro, u kidding right? Dude, I mean, man, r u serious?
10:20
@Ocramius change you to u and remove some more vocals to make it perfect
need to watch more boondocks
@Ocramius You aren't by any chance talking about the boondock saints are you?
@Jack zis:
Bah!
@Ocramius perfect ;)
10:22
@Gordon still learning, bro
peace
@Ocramius lol
@Ocramius Not bro, uncle :)
@MadaraUchiha Congrats :)
10:24
Damn, why did I ever think that adding function properties would be a good idea in JavaScript ... =(
My first reddit experiment: reddit.com/r/PHP
Let's see how this link thing goes :P
Having an issue with MVC. I'm using a controller method auth/login that handles $_POST. If the user has logged in incorrectly too many times, I want to take them back to the /view/login and show an error. Don't want to use GET ?time=15:35 because obviously, they can play around with this.

If I instead create a new template and load the time into that, then render the template, that hides the time (so no $_GET), great! But it then still shows auth/login in the URL.

Any suggestions? :)
@Jimbo Why do you need the time?
@MadaraUchiha Telling them when they can login again. It's just an example - can be extended to future problems so I need to figure out what to do now :)
@Jimbo How are you going to login ban them?
10:31
Model checks if unlockTime in DB is greater / less than now()
Who was the FPDFguyHero here/
? :)
Well there you go, send the the unlokTime from the DB. :)
@MadaraUchiha That's what I'm doing. Controller is getting the unlock time, and then I want to pass this to the view
So again, what's the problem?
If I pass it to the view using GET, then it can be seen and toyed with. If I instead render a new template then exit(), the url will show /auth/login instead of the original /login (/auth/login handles the POST)
/<controller>/</method>
10:33
You can use sessions
Ahhh
duh
Thank you @MadaraUchiha :D
Stupid moment there x)
@Jimbo We all were there... Don't be shy. :D
@Ihsan Hey, my code is good - I haven't had my cheerios this morning
> Why the fuck does 5+7 not output 13?! It drives me crazy!
Best one I've seen ^
10:36
@Jimbo I have never doubted... ;)
@MadaraUchiha rofl .....hahaha
@N̨ul̕L͑P̯͍̭ȏͣ͛iƞer Why is your nickname dirty?
Have you been using Regex to parse HTML again?
i think its art :P
@MadaraUchiha Lol. One more question - once the view is rendered, say, showing the user's incorrect e-mail from $_SESSION, I want to unset the session['email']. Can I do this in the view?
@Feeds you make no sense ...go away
10:38
@Feeds What happened? You got lazy? Where's all the formatting?
@Jimbo I don't think it's a good idea, the view shouldn't be manipulating data
The controller should have the model do it.
@MadaraUchiha Hmm that's what I thought. But my controller is now setting the session (via the model) as you suggested, and then doing a header("Location: "); ...
1 message moved to Trash can
@Jimbo Then the receiving controller should do it, after it renders the view.
Thank you
thanx @iroegbu , not too bad
@kaᵠ i can not write this in my nickname .. its not working
10:49
loooool, you want it
@N̨ul̕L͑P̯͍̭ȏͣ͛iƞer join me in the trash to test
recicle sorry
Is it just me? Or is PlanetPHP gets crappier and crappier by the day?
> A possibly fairly fundamental cause of the gap between the specifications of a large software system and what one gets in practice is a deep confusion between producing a software system for research and producing one for practical use.
> Instead of trying to write a system which is just like last year’s, only better implemented, one invariably tries to write an entirely new and more sophisticated system. Therefore you are in fact continually embarking on research, yet your salesmen disguise this to the customer as being just a production job.
guess the year this was written :)
1990's
1968 :)
Digging in Software Engineering history really makes you wonder why we are still at the stage we are today when they basically knew all that's wrong half a century ago
> The causes of this ‘software gap’ are many, but a basic one lies in the unfortunate telescoping of research, development and production of an operational version within a single project effort. This practice leads to slipped schedules, extensive rewriting, much lost effort, large numbers of bugs, and an inflexible and unwieldy product
> It is unlikely that such a product can ever be brought to a satisfactory state of reliability or that it can be maintained and modified. Though this mixing of research, development, and production is a root cause of the ‘software gap’, there are many other contributory factors, from the lack of management talents to the employment of unqualified programmers and sheer incompetence in software design.
Progress! We made some! NOT
11:05
but we haz github's unicorn now
@Gordon Is this guy from India or something?
@MadaraUchiha David, Fraser and Buxton, homepages.cs.ncl.ac.uk/brian.randell/NATO/nato1968.PDF, pg 72
Who wrote that :P
"unqualified programmers" "sheer incompetence"
11:13
@Gordon So what? Just use the tool before you. Chew it sheep. Do not research... I disagree...
need to research
@Ihsan "Those who cannot remember the past, are condemned to repeat it"
Still no FPDF geek here? :P
@Gordon the exact same thing with the cloud, etc
@Gordon There should be a balance.
11:21
pow!
@Gordon Thanks for rubbing my face in that fact once again while im working on a bloody nasty refactoring project ;)
@Gordon I am not talking about re-inventing the wheel. My standing point is way far from the ones stated in the text you quoted. Contrarily I do r&d for building standards to provide simplification and integration of various tools which in the end rewards me with high productivity.
@Ihsan errr … bingo?
11:29
@Gordon ? sorry "does not compute"? (I don't understand)
nvm :)
Can't get my session data into a FPDF php file -_- frustrations
how to increase max import size of sql file in php

No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration.
Change the max upload file size? And restart your server!
Anyone knows why I can't switch between workspaces in Ubuntu?
I try CTRL+ALT+arrow and it doesn't do anything
I also used to have a viewport switcher icon on the program tray, but now it's gone
11:34
@Gordon I think "man" should come off there, there's nothing wrong with that
Do anyone have experience with integrating twitter login
in web apps
@MadaraUchiha Make sure keyboard shortcuts are setup correctly? :)
@Jimbo They are
@Jimbo even in a chat context?
@Gordon Yeah man, it's relaxed, not stupid - I usually add it in the following context: "thanks man", so it's not just a plain "thanks", not too short
I agree with "dude" being on there
11:39
@Jimbo yolo
@Ocramius I've never used that word of death, and I never will! :P #swag
Hi @DaveRandom
is this correct way for inserting values in table through stored procedure $sqlQuery="CALL USP_SaveProfileData($fname,$lname,$sname)";
i am new to php,so .just clarify it
@Jimbo I took it off though I still think you sound like a reefer when using that :)
@shankar.parsanamoni Probably not, you probably need quotes around the variable names and the data should be escaped, or preferably you should be using prepared statements. Not sure how well prepared statements play with SPs though, I pretty much never use them (SPs).
@Gordon Lol, replaced with friend... In the UK everyone started using "mate" a while back. It was okay for a while, then when someone was going to punch you they'd start the fight with "bring it on, mate, come on mate".
11:42
I'm an idiot, desktop size was configured to 1x1.
Works fine now :D
thanks a lot
i will go through it
@Jimbo it depends on where you from and the context.
@MadaraUchiha A very idealized mobile computer screen size... :)
@Ihsan As in, 1x1 number of workspaces? :P
@MadaraUchiha lol
11:56
I don't know if I am improving at all for the last few months, sad... stackoverflow.com/q/16542428/1328014
MGE
MGE
Somebody could help me? jsfiddle.net/Xu77p/3 The problem is that, when I select the file, the upload starts... and when the upload finish, appears the submit button, but when I click on the button, the upload restart. I want to force the form submit but I don't know how. Thanks
@JoeySalacHipolito that's not a Value Object in the Fowler or the DDD sense. It's an Entity because it has Identity. VOs are immutable and equal by value.
oh, that book I read told me its value object, shitty book, thanks for that one.
12:12
@JoeySalacHipolito The second best way to learn is to fail. Try and try, and see how it works and doesn't work. Then learn from that
The first best way to learn is to teach. :-D
hahaha, yeah, I fail a couple of times, its really hard to make things simple... but I know this is worth trying..
People spend their entire careers trying to learn that, and don't.
It's a never ending journey. The important thing is that you keep moving...
and keep motivated
and fail
Yeah, I can feel that I improved though, hahaha, one of the best in school now.. hehehe.. I don't mind getting scolded around SO, hehe, but I love asking so I can improve
does failing at being motivated count?
12:18
Start praying for me that I will succesfull generate a dynamic PDF
@JoeySalacHipolito You might have a Java book there. In J2EE Value Objects are defined differently.
in MySqli, how to execute a query?
example SELECT * FRM db
mysqli_query() is discontinued?
which way to execute query is best and fastest ?
@Gordon, hi, mysqli_query() is discontinued?
Use prepared statements.
oh
thanks :)
Oh, I don't have books in here, I often read ebooks and watch videos.. But I love learning from books though, its efficient for me
well .. fuck
@NokImchen see the big fat red/pink box: php.net/manual/en/function.mysql-query.php
Off to work, later
just now tongue got caught on a half broken tooth that i have .. i ended up breaking of a piece to get said body part free
@Gordon ya, exactly! i this mysqli_query is so easy to use. But very sad that its discontinued :(
@NokImchen there is no mysqli_query
it seems like all the easy thins are going away :(
even the control arrays like label(array) in vb6, no more exists in vb.net :(
@NokImchen mysql interface is discontinued.
@Gordon oh, slow, my slow brain, thanks for point
12:24
Show us your code you got already
you can have the same functionality via mysqli interface with minor mods.
@Ihsan ya, its sad that we (me) who learn programming languages just for fun sake have to learn the new stuffs from scratch all over again :(
@Gordon thanks, as suggested by @Duikboot, i'll use "prepare" procedure :)
12:27
@Gordon whix is better/faster, pdo or mysqli ?
i've 75k rows, 21 colums, all varchar(4 to 40). And i have to use lots of intensive works like looping through the rows. so i NEED the fastest method :)
I have also a small question. I have a user generated forms. (Each form is used for a specific project). If a form is used or not is saved in my database by filled in data... standard value of the fields in the database are 1.

So now a form is generated, how can I UPDATE the form fields without knowing wich fields are used in the project?

I have to execute an update if a user fills in the form. But how to detected for every project wich fields are loaded? And how can I know wich fields to update in my query?
@NokImchen no, you dont. 75k rows is nothing.
really?????
12:29
`$yesno = array('yes','no'); echo $yesno((int)$someBooleanVariable);`
I love running into gems like this .....
my sql code take like 17 to 27 seconds to execute :(
@NokImchen that's likely because your queries or your table structures and setup is inefficient.
@Gordon in fact, some queries takes more than 300 seconds, so i had to find a weaker alternative :(
use proper indexes and avoid left joins ..
@Gordon i'll show u my code :)
@DamienOvereem i dont use joins cos i dont knw how to use! hhhehe
CREATE TABLE Temp(
SELECT j.id,
CONCAT(a.olhc1, b.olhc1, c.olhc1,
d.olhc1, e.olhc1, f.olhc1, g.olhc1,
h.olhc1, i.olhc1, j.olhc1)Olhc
FROM
eurusd_hour as a, eurusd_hour as b,eurusd_hour as c,
eurusd_hour as d,eurusd_hour as e,eurusd_hour as f,
eurusd_hour as g,eurusd_hour as h,eurusd_hour as i,
eurusd_hour as j
WHERE
a.id + 1 = b.id AND b.id + 1 = c.id AND
c.id + 1 = d.id AND d.id + 1 = e.id AND
e.id + 1 = f.id AND f.id + 1 = g.id AND
g.id + 1 = h.id AND h.id + 1 = i.id AND
i.id + 1 = j.id )";
12:31
No Nok! He can't handle the truth!
Oh boy.. now you've done it ...
@DamienOvereem who he?
@Gordon how to use EXPLAIN? where to put that query?
i'll google
@NokImchen +1
U actually -are- using joins.. in the worst kind of way :)
12:32
@DamienOvereem really??? but i'm not using "JOIN" keyword
@DamienOvereem no, worst kind of joins are ones written with views
(sql views, i mean)
No, but the multiple FROM's are sortof doing the same, but without use of proper relationships
I suggest you learn about joins before proceeding..
@DamienOvereem but i have no other choice (according t my knowledge) cos i have asked the question already in stackoverflow and the best answer used JOIN, but it still takes more than 300 seconds to execute
user652649
@ircmaxell did you like the new daft's album? i'm listening now and... i can't feel their usual style... quite disappointing i should say
huh what wait.. um .. you are doing 8 queries on exactly the same table ? .. (8x the same table at from ..)
12:35
@DamienOvereem i've the question here stackoverflow.com/questions/11700477/…
here is a hint: when you are talking to small-avatar-people , be careful
Was just about to ask if you had a proper question somewhere.. think i need some context :) Your query is pretty.. odd..
user652649
haaaaaaas heeeee lost hissss minddddddd
@DamienOvereem ya, it depends, i have to make 1,2,3,4,5,6,7,8,9,10 queries and file 10 columns
MGE
MGE
12:36
Somebody could help me? jsfiddle.net/Xu77p/3 The problem is that, when I select the file, the upload starts... and when the upload finish, appears the submit button, but when I click on the button, the upload restart. I want to force the form submit but I don't know how. Thanks
@DamienOvereem oh, my code is very amateur, its just according to my idea. i knw its very bad :(
i'll see "EXPLAIN" and find out how to use it. :)
tbh.. the answer that Zane Bien provided is probably the best option to do what you want.. Basic fact is that based on your hardware.. updating 47000 rows can take some time..
@DamienOvereem ya, and that 47000 rows was for a website. Now, i've 78000 rows wit much more column cos its now about Trading in Financial Markets... I bough godaddy hosting but their server sucks :(
EXPLAIN will indeed tell you why your query is slow.. but not how to avoid it. You are updating rows based on the results of another query. Basically you are performing a select query and an update for each of your 48000 rows .. so thats 96000 queries.
Well. how often do you need to update all those records ?
@DamienOvereem only once!
12:40
Then whats the problem with waiting a little ?
@DamienOvereem Only once when i set up :)
@DamienOvereem but i've MANY MANY such big tables !
@DamienOvereem like for every currency, every stock, every futures, etc etc, i have such big big tables!
Well.. if you are going to update millions of records.. Expect it to take time.
Especially when your database is on some shared server
@DamienOvereem ah, now my database in my local server, just 1.7 GHz, and 512 MB ram and less than 10 GB free HDD :(
@DamienOvereem Anways, thanks a lot for ur kindness :)
Hm.. add ram
@DamienOvereem i'll continue with my project using myqli (pdo seems to have less feature!)
12:43
database servers love ram for caching :)
This user has posted a link to the same product in every single one of his answers. Does this seem spammy at all?
Seems like link building to me yes.
in India, the grid power fluctuation is frequent that it burnt my SMPS and 1GB ram card too :(
cant afford to buy another one :(
Not only stating the name of the product, but also making it a link to the website
Probably trying to improve his google ranking
@DamienOvereem oh, that must be a spammer!
@DamienOvereem but i think its okay cos he has put his ite in the right place and no spammy words :)
12:46
Not sure yet.. he's polish (Atleast his company is.. lets see if his sms product is from the same country)
Its a spammer alright
@DamienOvereem ya, even his questions are good :)
His company (proxumus software) has the same adress as the SMS stuff
@DamienOvereem but i also have my blog on my profile! but m not a spammer!! :|
No. But you are not promoting your own product on every answer you give :|)
Ping @Gordon
12:49
When I have tbl_projects
id : 1
user_id : 14
project : tomorrowland

How can I select then all the tables that are having the same user ID ?
lol, i have no product to advertise :P
m so glad to get help here. So i wont take away the PageRank of Stackoverflow, no matter waht :)
Calling @Gordon
User: proximus = proximus-software.com = same adress
And is promoting his product SMSeagle.eu on most of his answers.
Go eat his brains!
@Ocramius where have you found that ? :D
@hakre #zftalk - a guy linked it there
Sem
Sem
12:51
@Duikboot Could you elaborate?
@tombull89 already handled. thanks.
What do you mean by elaborate...
@Gordon thanks for the quick response.
Sem
Sem
@Duikboot Gedetailleerder de situatie uitleggen.
@Ocramius yeah, that's a good one
12:54
damn dutchies..
I have currently this statement to start with,
SELECT * FROM com_projects a WHERE a.user_id = 14
How can I get all the other fields from other tables where the user_id is also 1?
AND all the data from the users table with id 14?
@Duikboot WHERE a.user_id IN (14, 1)
No that's not the way I want it
now your just selecting user_id 14 and 1
But I need user_id 14 and from the users table the user with id 14.
I actually have to run multiple update statements but I don't know how to handle them because the fields that are used
@Ocramius lól
are dyamically loaded.
12:58
I don't understand what you want @Duikboot, go back a step.
Sem
Sem
@Duikboot Same here, sounds like you just want to do a SELECT * FROM user WHERE user_id = 14 and nothing more.

« first day (941 days earlier)      last day (4232 days later) »