« first day (839 days earlier)      last day (4335 days later) » 

00:01
I am guessing its incorrect do $x=0; $x++; ?
Define "incorrect". It's syntactically valid, it will work, but why would you not just write $x = 1; ?
Well extending on the issue I told you about yesterday, I decided I will just run a query on the mysql database and increment a counter variable until I find a row whose value in the "ID" column matches the one that I am looking for.
The increment would show positional value.
function getSeed($int, $conn)
{
	$seedNum = 0;
	$stmt = $conn->prepare('SELECT * FROM teams ORDER BY pct DESC');
	$result = $stmt->fetchAll();
	if (count($result)) {
		foreach($result as $row) {
			if ($row['id'] == $int) {
				break;
			}
			else {
				$seedNum++;
			}
		}
	}
	return $seedNum;
}
@DaveRandom ^
see it?
OK well the thing that immediately strike me about that is that it is not very scalable, because you are retrieving the entire table every time.
As an aside, you should be doing just SELECT id in a scenario like that, but that's not the solution here.
@DaveRandom You are absoluty right, I was thinking in the DATE and not the TIME, I'll consider that in the next time ;) thanks!!
@DaveRandom What would better solution then?
00:10
Oh crap I forgot something
THere ya go:
@PeeHaa yo, you're still up?
Yeah. Been busy creating a kick for hours now
creating a kick? man, you take soccer too seriously :)
@Lucio It's kind of a sucky situation, cos you'll end up having to manipulate both side of the comparison, whatever you do it would end up relatively slow :-( - a better solution would probably be col > @date & ' 00:00:00' AND col <= @date & ' 23:59:59'
@DemCodeLines Just having a think about it now
@Jack kickbass as in ♪
:)
00:13
@DaveRandom ok :D Do notify me if you do think of anything.
@DaveRandom what if I change $result = $stmt->fetchAll(); to $result = $stmt->fetch(); ?
while (($row = $stmt->fetch()) !== false) { ... }, use you can.
k I'm off.
Cya all tomorrow when we are going to get down on friday
laters!
@Jack it didn't change anything
@webarto loooool
00:21
@DemCodeLines Eh dude, where is your ->execute() call!
there is a sql fiddle? how many fiddles are there?!
you can't just prepare a query and leave it ... that's like not microwaving your food.
Contribooting.
3
A: javascript variable assignment core

JackAfter these two statements: x={}; y=x; The internal representation is like this: +---- x | {} <--+ | +---- y So any changes to x are reflected in y: x.name="maizere"; alert(y.name)//maizere Updated: +---- x | {name: ...

Like my ascii art? =D
00:23
I'm actually quite pleased with that, it works nicely. It's still not fantastically efficient, you still have to order the entire table, but at least you don't have to pull the whole thing down to PHP and iterate it.
I'm sure there's a better solution but it's eluding at the moment
@DaveRandom what's the specific prob?
@Jack Get the ranking of a row in the table (identified by the PK) when it's ordered by a specific column. So effectively enumerate the rows after they are ordered and get the value of that enumeration col.
If it's identified by PK, isn't there just one?
Oh
How far is that row away from the first
@DaveRandom what exactly does that code do?
00:27
@Jack See sqlfiddle.com/#!2/47406/7, it might help explain a little better. Remove the WHERE and you'll see what it's doing
@DaveRandom Yeah, I don't think there's a better way really.
@DemCodeLines From the inside out: Create a variable (called @rank) initialised with the value 0. Then select the PK from the ordered table, and increment that variable for every row (so effectively enumerating the rows as they are selected). Then the outer query just selects the correct rank for the specific ID you are searching for.
So in PHP all you would need to do is alter the id = in the WHERE clause to use the value of $int
@DaveRandom this is how I took your code, but it still doesn't work. What am I doing wrong?
function getSeed($int, $conn)
{
	$seedNum = 0;
	$stmt = $conn->prepare('SELECT * FROM (SELECT @rank := @rank + 1 AS rank, id FROM teams, (SELECT @rank := 0) r ORDER BY pct DESC ) i WHERE id = :idnum');
	$stmt->execute(array('idnum' => $int));
	while (($row = $stmt->fetch(PDO::FETCH_ASSOC)) !== false)
	{
		if ($row['id'] == $int) {
			break;
		}
		else {
			$seedNum++;
		}
	}
	return $seedNum;
}
Well I definitely missed the '@rank` part.
@DemCodeLines You don't need the loop/comparison any more, MySQL does that for you. It produces a single value
should I change @rank to @seedNum ?
00:34
No, the query part above is correct. You just don't need the while loop at all, take a look at PDOStatement::fetchColumn()
IT WORKSS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
okay, keep your pants on.
00:59
lol, 'nuff exclamation marks
I think I may have a problem, I seem to be listening to Rush.
01:45
Guys, I have a quick question regarding to Codeigniter.
I want to know exactly what kind of licensing does CI have and is this free to use commercially?
@TemporaryNickName your best bet is to take this ellislab.com/codeigniter/user-guide/license.html to a lawyer
You are permitted to use, copy, modify, and distribute the Software and its documentation, with or without modification, for any purpose, provided that the following conditions are met:
nice
unfortunately they are not using a standard free software license, so you cannot rely on analysis by sources you may choose to trust, such as the OSI or the FSF
So can I sell my application to someone using CI?
@igorw anyways, thx
02:53
@all Hi
user50049
03:16
@TemporaryNickName Yes. CI is currently licensed under a BSD-ish license. The next version is OSL, which requires you to provide source code for any changes you make in system/ , but either scenario does not prevent you from using CI in a properietary application
@igorw Also for CI it's highly likely that they claim copyright to their company while it's shared copyright, so the copyright statement they give is wrong.
@TimPost Which is what they say, but the OSL does not back that up. Also you should demand that as a written statement by them, additionally that they covered the copyright and the license change.
Question: how do I clear all my pings?
You know what ... scrap that, they're gone
@Jack
I kill you!!
@Jack why so harsh?
03:20
=.=
user50049
@hakre I'm reserving skepticism until it actually releases, Ellis is horrible when it comes to communicating in this regard. The flip side of that is, without a more formalized statement, they can't enforce it anyway. Moving to an actual OSI approved license doesn't fix everything wrong, as you noted.
Taking Zend Studio 9 for a run today, so far so good
user50049
I've basically taken the ideas I like in CI and implemented them in my own stuff, which I'm now standardizing and refactoring with PSR in mind (mostly PSR-0). While my initial release is going to be geared for thos working purely on RESTful services (there is no concept of views), existing CI code could easily be ported to what I'm making.
user50049
I'm just struggling a bit on formalizing things as far as DI is concerned, I have to make a choice on coupling. Ideally, there is none, but that makes things interesting.
@TimPost Checkout Silex or Yolo Framework. Igor even has a video explaining: youtube.com/watch?v=e50V7jXfp30
And if you look for OSI approval, I will soon be able to offer it: hakre.github.com/OSI ;)
user50049
03:24
@hakre I like Silex. I was able to get a rather large proof of concept put together in a day using it.
need to catch some sleep now.
gn8
@TimPost Out of interest .. which are the ideas that you like in CI?
@hakre Silex looks like fun :)
Hmm, apparently you can't tell Zend Studio that if ($a = func()) is bad but if (($a = func()) !== false) is okay.
@Jack specific use case? I tend to avoid assignments in if statements even in the latter case.
user50049
@Jack The fundamentally simple routing and the very simple implementation of MVC mostly, at least as far as what someone using the framework actually experiences. It's completely obvious how CI works almost immediately walking into it. I want to keep that ease for people that just want a few routes and methods, but drop the singleton-ish pattern, use autoloading as it should be, make it easy to test using DI/IoC and not impose any particular ORM
Use case is the popular while ($row = $db->fetch()) @igorw
03:37
@Jack in that case I prefer to use iterators :)
and exceptions
@TimPost Hmm, CI uses implicit routing (by default?) based on classes and instance methods right?
user50049
@Jack Yes, but there's also custom / static routes, they just aren't very flexible at all. And the internal error handling is just wretched, especially if you write a lot of console tools to manage a web service.
@igorw It's just an example.
@Jack it's the only case I could think of where I would need it, and iterator was the answer for me. which is exactly why I asked for a specific example :)
@TimPost I took the idea of implicit routing as well ... as long as my path names are "regular"
03:42
btw, here's an example of DIY convention-based routing with silex: gist.github.com/3646064
and a slightly different one based on reflection: gist.github.com/4524636
@igorw Another example is something like: if (($a = func1()) !== null) { do something } elseif (($a = func2()) !== null) { do another thing } :)
user50049
@Jack Indeed, that's one of the things I changed. I'm trying to preserve the ease of just unpacking it and creating a few controllers to be up and running with something you can interact with, but drawing heavy inspiration from things like Silex, and some other purely RESTful micro frameworks. I'm not making it to release it to the world and say "here this awesome thing is!", I'm just making something that fits 99.99% of the projects I take on and sharing it.
@Jack I don't see that too often, usually it is returning either null or an object, and then I can just do $a = func() ?: func2();
@TimPost Yup, practicality++ :)
and the specific functionality would hopefully be in the object itself
so there can be two implementations
03:47
@igorw That's not always a practical option.
user50049
The other thing I'm doing out of the gate is supporting things that web services like to use, such as Redis, APC, etc. Caching is something CI is just horrible at doing.
Actually, when a service grows, caching can sometimes get hairy ... one of my projects found out the hard way, when certain caches need to be invalidated when another object changes (i.e. caching dependencies) ... shivers
@TimPost doctrine/cache seems quite nice for that. it's standalone and supports tonnes of backends.
There are only two hard things in Computer Science: cache invalidation and naming things.

-- Phil Karlton
@TimPost I really want to use Redis one of these days .. it's such a cool toy :D
@igorw Amen. hehe
03:52
redis is way more than just a caching engine or a dumb key-value store, it's fricken amazing
user50049
@Jack Yes, you need to be able to make it clear through simple expressive syntax what these dependencies are. I have these implemented to a degree as caching 'triggers', where you can define a node and what should happen if it changes. But, it's very hard to not make spaghetti out of that while still keeping it simple to use.
how can this really be possible? accepted answer with negative score: stackoverflow.com/q/14638677/731947
@TheOptometrist Why would that be impossible?
If the answer is bad, it's bad.
is it bad?
user50049
The coolest thing I've done with redis lately is the notifications that my IoC container emits. Being able to broadcast that your web service just loaded a certain dependency is very handy when you have back end processes running that need to do things for it. Redis just lets these components chatter away happily with a single unified protocol, I really love it.
03:56
@Jack not impossible, but strange behaviour
@TheOptometrist It's not very bad per se ...
@TimPost whoa, are you using redis pub/sub for this? or lists?
@TimPost Oh yes, the messaging features .. great stuff!
user50049
@igorw pub/sub, however in cases of multiplexing with transactions, you can increment something which could be watched (in addition to just yelling down the channel)
@TheOptometrist There, I've +1'd your answer :)
03:58
@Jack: thanx, i even improved it :)
user50049
It's going to be a little while before I have something coherent enough to push, I'm being a bit more methodical with this, and spending a lot of time refactoring as it grows and bad initial ideas begin to surface.
@TimPost so you have long running backend processes responding to these events?
user50049
The other cool thing about Redis is, if you just want certain commands, there's no dependencies to speak of. Just create a socket and write to it and provide enough code to parse the expected reply.
Redis has persistence right?
user50049
@igorw Yes, I was in a situation where a background process needed to create virtual machines, which often required migrating of virtual machines around in order to make room for something, which was triggered when my front end PHP end loaded and instantiated certain classes
04:02
just because it's easy to write a protocol implementation, doesn't mean it's a good idea. getting them right is the hard part, especially with regards to error handling. but I totally get it, it's huge fun to do :)
user50049
@Jack Yes, two types that can actually work together. You have dumps, and then you have append only files. Which one you use depends on your needs, and how much data you have to worry about.
@Jack yes, with several options of tweaking how often it writes to disk. iirc the default is fsync() once every two seconds.
user50049
In reality, if you use battery backed I/O and reasonably fast media, it's pretty reliable.
and it's quite smart about the AOF file as well, it re-writes it to keep the size down
so it cancels out inserts followed by deletes
user50049
Watching antirez think out loud on twitter and then see what he ultimately commits is also really interesting, the guy is a different kind of brilliant altogether.
04:06
antirez wrote a blog post on how redis persistence works: oldblog.antirez.com/post/redis-persistence-demystified.html quite a good read
@TimPost I'm ultra excited about the new notification stuff, essentially you get events for all commands running through redis
user50049
I make heavy uses of hashes and lists, especially when implementing something that has to talk over the network to other third party APIs.
user50049
@igorw Yeah, I am too. Sad to say I have not yet played much with sentinel, I just haven't had an environment to use it much.
yeah, I mucked around with sentinel a bit, didn't really get to use it though. but I love it, the way it communicates with the other sentinels by publishing messages through hidden redis channels is genious
I love the way it ties into the existing redis design
anyways, I'm off -- it's been a pleasure.
g'night
 
1 hour later…
05:29
51
#tru Q&A

Proposed Q&A site for all the HR people and Recruiters who wish to help others and learn by themselves.

Currently in definition.

what the hack is that ... almost all flower have only account in area51 with 51 rap
echo '<p>' , $foo , '</p>'; is valid? — rlatief 1 min ago
@Jack please dont answer crappy question ... or in other word please dont help vampire
@NullPointer It's never too late to instil some good practices on html escaping :)
The more they see htmlspecialchars() the more they will learn to like it ... maybe a little too much, but they have pills for that.
05:49
your wish my lord ... +1
user50049
@NullPointer It looks like a company / brand that is also trying to create a Q&A community around itself, similar to the ExpressionEngine site. Though, this one looks kind of meat-puppety to me. Looks like Robert has reviewed it and gone through it, so I'm guessing he's keeping an eye on its development.
i am sure Mr. Robert also reviewed area51.stackexchange.com/proposals/49912/dita
another meat-puppty
1
Q: Can I convert password to md5 in javascript before sending to php page?

PartisanEntityCan I convert a password entered into a form to md5 hash using javascript before sending it to my php validation page using javascript? If yes, how? Or is there an easier way to do it? Thank you.

Wow, for such a generic question, the given answers are pretty crap I must say.
user50049
Oh, yuck. That is profoundly unhelpful.
I've upvoted Gumbo's answer though.
The accepted answer is just .. well .. regrettable for such a high-rep user.
05:59
all of the answers there are miserable except Gumbo's
let me draft something.
0
A: Can I convert password to md5 in javascript before sending to php page?

JackThere are a few simple rules regarding password handling: To safely transfer passwords from the browser to your server, use SSL! Don't settle for anything less if you're truly worried about security. Perform password hashing on the server only. Hashing on the client side depends on JavaScript, ...

Any improvements I should make?
short and to the point(s)
+1
06:16
GoodMorning Everyone
Bonjour!
@Lusitanian The answer gave me a necromancer badge lol
@Jack nice
@Jack wont sending password hash allow replay attacks with said password hash? I'm not sure how OP is going about doing it and what exacty the hash is being used for. I remember a friend had made a form which hashed the password before transit which was then used for login, but that essentially made the hash the new unprotected password, stealing hash to re-submit was as effective as having the original password. SSL should protect it as far as I am aware, but I'm no expert.
@crypticツ exactly
hence why you should just use SSL instead
plus you don't have salt access on the client-side (hopefully) meaning that someone can capture a bunch of hashes and then go to town on them with a rainbow table
@Lusitanian of all the tech terms I've come across the years, rainbow tables sound the most magical. =o)
06:31
lol
when i was 9 i tried to make an indexed mysql database of every md5 hash for [a-Z0-9] passwords 1-8 characters in length...i thought it was a rainbow table
user895378
When I was 9 the family computer had a 250Mb hard drive. And that was big.
@crypticツ Whether the password itself or the hash is intercepted makes no discernible difference to an attacker who might be listening in to the unencrypted traffic :)
Nowadays rainbow tables have little practical use, because of the great speed improvements of modern cpus
@rdlowrey I think I had a 20GB HDD
in a computer that looked like:
@rdlowrey Damn, I feel old ... our first PC had 20MB hdd, that was considered big.
the first computer I used was one of the original apples and I have no idea what size hard drive it had because I was 3
user895378
06:40
Don't feel bad. I'm 30. That's at least one foot in the grave. I remember 5.25" floppies.
@rdlowrey Just turned 3.5 decade :)
wow, you're over twice my age lol
user895378
You kids and your fancy-schmancy SSD disks and ramdrives.
@rdlowrey I remember those too, my school used them for their computers, of course my school was poor so if they could use an abacus they would.
@rdlowrey I'd gloat but twenty years from now I'm going to be confused by whatever technology is the latest-and-greatest
sorry, superping
06:43
@rdlowrey The funny thing about floppy discs was that at that time they didn't seem so unreliable somehow.
But maybe that's just because we were more careful with them.
user895378
Floppy discs were so noisy. It was like a magnet factory in there.
And we didn't have those pesky hand phones lying around everywhere.
user895378
Except if you were Zack Morris.
> changed room description to "reminisce on the technological experiences of your youth"
dot dot dot ... saved by the bell? zomg
user895378
06:44
Okay. I'm going to try to sleep. I would give you all a super-ping sign-off salute, but Jeff Atwood in his infinite wisdom frowns upon > 2 user notifications per message.
> Your parcel has arrived at the post office at January 29.Our courier was unable to deliver the parcel to you. To receive your parcel, please, go to the nearest office and show this receipt.
from "FedEx". Seems legit.
@rdlowrey night and likewise
@Jack enjoy your (afternoon/evening)
user895378
> virtualized lossless realtime-oriented proxy high-performance database
lol, what was that BS generator site again? bullshit.aiju.de
user895378
It's my new sign-off method, so yes.
user895378
That's how you know I'm really leaving.
06:48
have a good open stable SVG rich-client information dependency frontend, then
user50049
People flag the strangest stuff in chat.
@TimPost like what?
Has anyone tried this out with a PHP app? webpg.org
erm, what do you mean?
user50049
@Lusitanian Someone just flagged a link to a room's own transcript as highly inappropriate, the transcript leading to a completely boring conversation.
06:50
@TimPost lol
i'm sure it offended whoever flagged it. whatever you say will always offend someone in some manner
user50049
There was a time when nine or so users flagged this very short sentence written in Tamil. All of them emphatically insisting that the message should be deleted and the poster banned. So, I went in to investigate, turns out the person was guilty of a typo. That was it, a typo.
...they thought he should be banned because he made a typo?
@TimPost So you were actually a bit disappointed to see a boring conversation?
did said typo make the sentence really offensive?
user50049
@Lusitanian Yes, of course, I was completely expecting pictures of severed limbs or something but alas.
06:53
@TimPost lol
Anonymous
morning
okay now i'm really going to bed...night (every|any)one
@Lusitanian night /laterz ...
waves bye bye @Lusitanian
07:10
why does it no longer add video previews?
I like the self irony in the IE10 campaign
anyway. It's Friday
you know what that means, right?
4
@Gordon do you have to do this every Friday?
@ShyamK yes
-.-
I want the 10 seconds of my life back
bad Gordon... bad :P
If I weren't so pissed off at Twig I'd spend the effort disliking you right now >.>
hi all btw :P
07:17
@ShyamK nah, more like awesome :)
twig is deciding not to load css when entering subdirectories, it's awesome \o/, even when the path is proper. How are all you tonight?
user50049
@Gordon My mind just wilted a little.
@TimPost it's a nice song. sure, it's a bit cheesy but it's also innocent and catchy and the lyrics are not any more trivial than the remainder of the charts. at least this one is sfw :D
and Katy Perry sang it, too ;)
I have to stop clicking on links by you :P
07:32
@Drose why? :P
@Gordon omg I almost clicked that one too. I must resist
@Drose click it!!! :D
I'll click on it once I fix Twig.
it will take you to a timeless classic of the interwebs
0
Q: Given an integer X, return 1 if all even-numbered bits in word set to 1

SatelliteJaneI'm trying to do this with bit logic in C and getting stuck. I did some Googling and found information on similar problems, and I feel like I'm almost there, but not quite. The operations permitted to use are: ! ~ & ^ | + << >>. I can't use if statements, loops, or equality checks (so n...

Bit fidgeting
07:35
I will click on it when I fix Twig (most likely not this week)
Hey guys, besides phpunit, what else would you recommend?
have no idea
hi guys
i want to use dynatree to show images inside it
@Jack phpunit is the defacto standard for unit-testing. there is nothing else.
@Gordon Great, makes my choice easy :) thanks
07:43
@Jack @Gordon do u know how can i use dynatree to show images and folder in directory
@Jack some people use Mockery instead of PHPUnit's own mocking facilities. but they still use phpunit for the rest.
the initialization is done
but further m not able to view images
Cool, I'll check it out.
@Jack you can also have a look at Behat but that's for BDD not Unit-testing.
@Gordon Oops, I typed "behat" in the search bar and before I knew it I saw "Behati Prinsloo" on my screen =D
I'm pretty sure she won't help me.
Looks like it's based on an RSpec extension.
07:50
dont suppose anyone here has had experience with twig?
Twig the template engine?
aye
Saw it ... don't like it :)
I love the capabilities, but it's not loading the css even though viewing source shows the proper location
*within subdirectories; do you use a templating engine? any suggestions for a different one?
I feel that Twig misses context ... you shouldn't have to explicitly tell the template engine that a variable should be html escaped if it appears inside html .. that should be implied
In any case, I use PHPTAL .. which in itself is inspired by Zope\TAL
many good things come from Python I suppose =D
07:54
I've heard of it in passing
does the tal:content support php/html being passed to it?
such as a subtemplate
@Drose You have the structure modifier for that purpose, but it would be better to utilize the metal: namespace
and handles multiple subdirectories? (mvc format)
suppose that doesn't matter, can load it on the parent can't I
I'll download it and check it out
nothing to lose, twig is obviously not working for me >.>
@Drose pear install http://phptal.org/latest.tar.gz :)
already done :D
cool!
08:08
gogo test project!
@Drose what is an MVC subdirectory format? Oo
user652649
morning
@Gordon pastebin.com/vHwRm4p4 that's a simplified format of this application's structure
@Drose but that has nothing to do with MVC at all. There is no such thing as an MVC folder format. MVC is all about roles.
well sure, but why would you put all your files in the root directory?
that seems silly to me
I mean you can if you really want to I suppose
08:20
@Drose well, technically, it doesnt matter where you put stuff as long as your autoloader can locate it. But my point was more that saying this is an MVC folder format is missing the point what MVC is about.
mvc is about delegating responsibilities based on the objective of the particular function; why would one limit the mvc ideology to simply code-based structure and not file-based as well?
@Drose MVC is about splitting UI interaction into three distinct roles and about capturing the Mental Model of the End User.
the reason you dont want that in your folder layout is because your folder layout will not tell you what the application does
I suppose if that's the case we'd all be putting all files within the root directory
hey guys any idea about invisible/hidden ascii characters? I google a lot, but couldn't get decent info.. so are control characters considered to be invisible or is it just zwsp?
user652649
has anyone ever tried that waterfoxproject.org ?
08:25
also how do i send ascii characters with out url encoding them?
@Drose it was convenient to make it this way, but now all you see is folders named mvc, model, view, controller but you get not clue whatsoever what it's all about
I'm glad you have such a well-informed and vast view on that high horse of yours.
user652649
> hey guys any idea about invisible/hidden ascii characters?
any idea about what?
@wes I have no clue honestly
@Drose I am not saying that. Rather I am suggesting to have a folder layout that tells what an Application does directly by looking at it. Like when you look at a MCDonalds, you know it's a McDonalds instead of looking at it and thinking, oh, it's some sort of building with walls, doors and furniture.
user652649
08:28
@Prasanth
MVC is such a minor part of an application.
user652649
nice example gordon... i'm hungry now
No thanks, I've had enough of my concepts and personal file structure being degraded by you, I don't need your blog too.
so i wanted to send a character invisible in input text box but strlen in php should return 1
@Drose it's Uncle Bob's blog. not mine.
08:30
@Prasanth You mean an input type hidden in a form?
@Drose and I am not degrading your file structure. I am just saying that there is no such thing as an MVC folder structure, because MVC has no concept of the file system at all.
@Drose no. i mean like.. the ascii bom or ascii zwsp
user652649
afaik html/xml dont support some hidden characters like the null byte and probably others
i just couldn't get chrome send those characters with out url encoding. i could manage to insert them into text box
so any idea if i can do it with curl/wget?
user652649
i think they are stripped off automatically
08:35
Happy Get down on friday everyone
user652649
i mean textbox.value = decodeURIComponent("%00"); will send a zero byte length value
user652649
morning PeeHaa
@Gordon Well done! :)
Gah! Somehow Zend Studio + PHPUnit are messing with the autoloader configuration.
08:36
morning @wes
@Jack That's because Zend Studio is a turd
@PeeHaa Yeah, but I like the integration ... and I can get it to work, but only if I add spl_autoload('myclass'); in the test case
If I don't specify that, it can't find my class(es)
@Jack PHPUnit never worked well from within Zend Studio for me. Never the current version, hard to update and wouldnt let me use the various CLI switches and config files. In the end I always opened a shell prompt and ran it from CLI.
@Jack Sorry can't help you with that :(
@Gordon Fair enough then ... boohoo :(
@Jack I dont know if they improved that in ZS10 though. ZS7-9 didnt work well.
08:39
Run unit tests using ZS they said, it will be easy they said.
@Jack they also had a couple of bugs from 7-9 because they funnel all communication with PHPUnit to some sort of wrapper script.
@Jack Also git integration is worse than terrible :(
And it's slow
Oh and it crashes
I'm using 9 now .. overall I'm pleased with it.
This is the first hurdle so to speak
It's Friday, Friday / Gotta get down on Friday / Everybody's lookin' forward to the weekend, weekend
Mornings
Aha!!
spl_autoload_register('spl_autoload', true, true); did the trick.
wtf
Hi All
Still can't get out of that error. It's been haunting.
@DaveRandom @Jack Have changed those even in php.ini file, but still it throws same error for large images.
@Jack Actually that's a very good point, our boostrap needs an autoloader that recursively iterates the entire file system until it find the class it wants.
08:53
@Baba Sup! I think it's been long time.
@Korhan Hi how are you doing ?
@Korhan Have you restarted Apache since you changed the settings? What values do the settings show in phpinfo();?
Yeah @DaveRandom 4-5 times.
@Baba I am okay. How about you? Busy?
@Korhan Please run phpinfo(); and find the settings you changed in the output, to ensure that your changes have taken effect.
@Korhan i have 5mins to spare
08:55
@Baba I am not asking now. Where have you been these days? Were you busy with your work?
@Jack I love this thing already
@Korhan Have been around but hardly answer questions again .. since they all look like duplicate and i don't want Gordon to bite me
@DaveRandom Yeah. They have taken effect. I could see my changes on that page.
@DaveRandom How is your Son ?
@DaveRandom Jo Jo Davester
08:57
@Baba Hopefully that's just first of two, the second is a bit more difficult to implement though.
@DaveRandom Nice one .. well done :)
@PeeHaa ping
@Baba Not bad, been at my parents for a couple of days (Em has had a bit of a back problem) - you?
@Baba Haha. Gordon bites you, if you answer duplicates.
Heeey Baba!
@DaveRandom You're right, because you can't assume that the developer has put their classes in a proper place.
08:59
@Korhan Yeah .. Yes he does .....
I guess that is not because of max_size blah blah because I already have it good enough like 2MB even before. @DaveRandom
@Korhan OK well you need to inspect that value of $_FILES['filename']['error'] when the upload fails, it should be an integer, can you find out what it is?

« first day (839 days earlier)      last day (4335 days later) »