« first day (570 days earlier)      last day (4378 days later) » 

@orourkek Oh. Sure :) Just try not to spam my inbox TOO much :P
 
@Truth "Angry" might have been a bit of a stretch, just sucks seeing people with such a narrow focus...
 
@orourkek :P
I agree. It saddens me to see someone who isn't open minded enough for trying to learn.
 
What framework do you guys prefer to work on?
 
Have you tried the free chrome screen reader extension? Quite fun :D
[framework] sucks.
 
8:05 PM
lol @ that
 
haha
 
I think someone needs to sleep some :o
 
fail
 
@Truth wow that's a depressing image
these people are designing websites
 
user895378
@tereško I may need to clarify: my desire to whore myself out for publishing credits does not mean I want to be the final word on all things relating to the English language :)
 
8:07 PM
@Mittchel , none
 
@orourkek He missed the part where it needs to be clickable... It happens to the best of us. I value Oded's reputation (not the score) very much.
0
Q: PHP echo $row['username'] not displaying the first username?

AaronrobesonI'm not really sure what the problem is here, I have a posts table that has a foreign key of userid and I want to pull their usernames from the users table based on that, it seems to pull them out fine but it won't display on the first post. My code is: $query_therealuserid = 'SELECT users.usern...

It very much saddens me to see code like this.
 
@Truth Yeah, and everyone downvoted without comments ><
 
@rdlowrey , you were just highest on the userlist who was from english-speaking country , no other reason
 
@tereško why none, you don't use mvc and stuff? or you designed your own lighweight framework?
 
it was in no relation to your advert
 
user895378
8:09 PM
aha
 
@Mittchel , i dont need framework to use MVC
 
^^
 
@Mittchel MVC is a concept to be implemented. It's not necessarily a framework :)
 
Yea you're right
 
i know a bit about MVC , so i dont need a framework
 
8:10 PM
But you do use template engines right?
 
@Truth, please enlight me and tell me in what scenario you have not CSS enabled. Any modern page design relies on the fact that CSS is enabled, unless the page is explicitly designed for that case. For screen readers a space is nothing. — Jaime Olivares 56 mins ago
 
user895378
@tereško Well, ever since CodeIgniter invented MVC people usually use a framework for it :)
 
I can't believe he got 2 upvotes for that
 
People are getting dumber and dumber by the minute
 
8:11 PM
0
Q: getUserById facebook API [PHP]

TomirammsteinI looking for get user dates from the PHP-SDK Facebook API, and I try with this code: $facebook = new Facebook( array ( 'appId' => 'MyAppId', 'secret' => 'MyAppSecret', )); $user = $facebook->api( '/4' ); print_r ( $user ); But return null. ¿Answers?

 
@Truth that's the statement that really gets me close to being angry
"for screen readers a space is nothing"
 
haha @tereško smart troll :p
 
Hi all
i have a question
 
For screen readers a space is nothing, but a seemingly random, empty link is not nothing
 
that
foreach($budgetList as $item)
{
$transBud[] =yii::t('Job', $item);
}
This is a loop that enters data in array
now output is
 
8:12 PM
@rdlowrey , that like makes me stab someone , because i am certain that there are people who honestly believe that
@Mittchel read the damned article
 
@tereško I honestly did not understand that sentence :o
 
array
(
'0' => 'Less than 500$'
'1' => '500$ - 1000$'
'2' => '1000$ - 5000$'
'3' => 'Not Sure'
)
I want that this array index should start from one and onwards
 
@AfnanBashir You most probably don't.
 
Got an unexpectedly interesting mail from a recruiter. Usually they try sending me stuff that's barely related to what I do at all without even bothering researching my CV (which they must have because they managed to crawl my email from somewhere)
 
@Truth .. sorry ... its late
> that like line makes me want to stab someone, because i am certain, that there are people, who honestly believe that
 
8:15 PM
@tereško I know you meant it.. I meant it was funny the way you said it haha
 
But in this case the recruiter did read the CV and saw I'm mainly a PHP dev. The role he had was for a Rails developer though. So he embarked on a long rant about how Rails guys get paid more and there's more opportunities if you're a Rails guy than if you're a PHP guy.
 
@Truth .. hows this
 
@tereško Better. :D
 
Which is funny because I've never run into Rails anywhere during my career. PHP, Java, some Perl and even some Python once. But never Rails.
 
it think, at some point the brain turned off and hands kept moving
 
8:16 PM
@GordonM I've actually heard it once before.
 
Could just be personal experience, but I don't see a lot of rails jobs around.
 
That Rails is the future of web developers or whatever
 
posted on May 08, 2012 by Dr. Christopher Kunz - PHP

The PHP team has announced PHP 5.4.3 and 5.3.13, fixing two separate security issues. CVE-2012-2311 and CVE-2012-1823 are both fixed now. These are the CVE numbers for the PHP-CGI bug that has been announced by Eindbazen last week, and extensively covered by myself in various posts. In addition, CVE-2012-2329 has been fixed, another issue in PHP-CGI. This was a heap overflow trigger

 
Must admit to a bit of curiousity about Rails but not enough to really make a serious attempt at learning it whilst I have so much other stuff to do
 
@Truth , not it isnt
too much magic and bad design choices .. and way too much hype
it went "nova" something like 2 3 years ago , and now it had been slowly fading into background
 
8:21 PM
@tereško I know. I saw that on the first 10 minutes.
 
what's the good word
 
thank you?
no wait, that's two words.
 
@Chris , it was an expression
 
I digress.
 
55,000+ Twitter passwords leaked. http://airdemon.net/hacker107.html
 
user895378
8:25 PM
I would say that is the good word.
 
There better not be mine in there...
 
@ircmaxell no way.
 
now i need to find my passwords.txt file and check is i use my twitter account password somewhere else
 
Nope. Mine isn't in there. Yay
 
@Chris Me neither
 
8:27 PM
evening
 
evening
 
evening.
 
@ircmaxell Can you tell which encryption is being used? Curiousity.
 
night
 
@Nick a bad one
 
8:29 PM
@RepWhoringPeeHaa Yeah it looks pretty bad
 
@Nick no
and encryption != hashing
 
@ircmaxell , its basically accounts with 8-max symbols in password , or dictionary-crackable
 
they are 2 very different concepts. Please don't confuse them
 
@Nick if that are real hashes (which I doubt) it seems to get a lot of collisions
or are they the passwords
?
 
8:32 PM
hhmmmz if they are passwords are they forgot my password / reset my password passowrds?
 
@RepWhoringPeeHaa passwords
 
@ircmaxell I guess you wouldn't be able to tell the encyrption method because of the hash correct?
 
They aren't hashed in the paste. Some passwords appear secure because of their alternating numbers/letters
But at these lengths, it takes an avarage GPU less then a minute to solve any of them.
 
@Truth That's what I was thinking..
 
I'm very surprised Twitter doesn't follow basic good practices of cryptography.
 
8:33 PM
That's pretty bad..
 
@Nick Do you know why I wasn't hacked?
 
Is function "new" reserved?
 
@Chris TIAS.
 
I get unexpected T_NEW
 
now that I go through it some more. Do accounts get locked or some other security feature like that @ twitter, because it kinda looks like a brute force?
 
8:34 PM
Hence, it is reserved :)
 
@Truth Target Identification & Acquisition System (acronymfinder.com/TIAS.html) ?
 
Ah, that is so very rude it's almost brilliant.
 
haha
@RepWhoringPeeHaa Is there a specific reason why you didn't use namespaces in your MFW. Or is it because it made prior ?
@Truth I don't, care to elaborate ?
 
8:38 PM
@Nick Sure. I don't own a twitter account.
 
@Nick not really priot. But at that time I thought about older versions. Which I dropped :) Besides that I really dislike the syntax
 
@RepWhoringPeeHaa I'm working on my autoloader right now and don't know which way to go.
@Truth fair 'nough
 
@Nick Do you plan on supporting PHP versions before 5.3?
 
@Nick use namespaces. Don't be a grumpy old man like me :)
 
@Nick , how about this way : github.com/theseer/Autoload
 
8:41 PM
@CharlesSprayberry Well I'm working on a website with a built in framework. I don't need to support anything before 5.3
 
user895378
@tereško oh wow that's awful
 
That's one mother of an autloader. Those it make coffee in the morning?
 
user895378
Makes me slightly ashamed to use PHPUnit
 
Well fellas
I'll be off than
 
@Nick Then I would use namespaces. The syntax is a little ugly but it seems to be where newer projects are heading.
 
user895378
8:43 PM
@Truth Later
 
@CharlesSprayberry Kay will do.
@RepWhoringPeeHaa Is this the best method to get my requested url ? $_SERVER['SCRIPT_URI']
 
@CharlesSprayberry lmao haha
 
@CharlesSprayberry Look at the comments too!
 
I hope this is a troll question
 
8:49 PM
@CharlesSprayberry I'm tempted to answer with function_exists() without further comment ;)
 
ARGGH! He updated to include more "code"
My eyes, they bleed
 
lol
every person in here is now dumber for having read that question
 
@orourkek Sadly I do feel a little dumbfounded at the moment. Like some evil force has upset the balance in the universe.
 
@Nick it will get it. But please note that on CLI it won't be available
 
@RepWhoringPeeHaa CLI?
 
8:52 PM
@Nick command line
 
Command Line Interface
 
It's one of those times where something is mentioned literally everywhere, but no one has what I need.

Anyone knows about a DBGP PHP-based client class/code/anything-relevant?!
 
@CharlesSprayberry lolwut
 
@RepWhoringPeeHaa Near enough. Now I just have to figure out python/vim -_-
 
8:56 PM
@RepWhoringPeeHaa That shouldn't be a big deal right ?
 
Anyone ever thought about actually writing an OS in PHP?
 
@Christian haha
 
It only takes a non-PHP bootloader and a better stdlib for PHP, to get direct hardware access.
 
@Nick just a thing to keep in mind. Wouldn't matter if you've done it correctly. When you are going to test it you can pass a fake url
 
Reminds me of that ASP project a friend of mine needed help with.
The project required an image counter.
 
8:59 PM
Yeah okay, thank @RepWhoringPeeHaa
 
I told the guy; "Easy, just put <img src="http://somesite.com/counter.php"/> in your ASP code."
 
Does anybody have the link to @Paul's Framework?
(Evoke) I think?
 
9:06 PM
Thanks
 
wait no
 
no thanks?
 
Sorry for a split second I thought that wasn't it. Thanks @RepWhoringPeeHaa
 
the writeMessageBoxXML() is a disaster
ok .. that's it ..
 
9:11 PM
later @tereško
 
sorry for wrong highlight
 
user895378
@tereško later
 
c ya all
now , stop beeping
 
aw crap. anyone handy with troubleshooting phpmyadmin?
later @tereško
 
9:17 PM
@MikeS what's the problem?
 
i changed my pw for root inside phpmyadmin. now i can't get logged back in. i checked config.inc.php and it looks ok
so i don't know where to look. i restarted the server.
 
@MikeS cookies deleted?
 
i restarted apache. i didn't delete any cookies
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
that's in my config.inc
 
your mysql config has to be adapted too, as far as I remember
 
@MikeS have you actually changed the root password in the config?
 
9:20 PM
isn't there a line in the my.conf
 
@RepWhoringPeeHaa do u mean did i modify the config file? yes
 
not the phpmyadmin config, the mysql config @MikeS
 
@markustharkun idk if there is
o. lemme chk
 
k. because the config you posted still has root as password. Just checking :-)
 
@RepWhoringPeeHaa yea, i was testing it from that file after the fact
 
9:23 PM
@MikeS you have to set the password in the my.conf of your mysql server
it 'broadcasts' it to all clients
 
i'm looking for that file now
is the file name my.conf?
 
it should
 
@MikeS are you on windows / linux?
 
windows
i found a my.ini, but that had no password info set
 
@MikeS have you tried accessing mysql from command line just in case?
 
9:28 PM
not yet
ugh. i hate windows console
@RepWhoringPeeHaa never used mysql from cli. how do i do it?
 
mysql -U root -p
 
anyone familiar with get_browser()? I've debugged the crap outta this in every way possible - valid & up to date browscap.ini, valid agent string, browscap set and working in php.ini, yet the thing still returns false, for which I can only find bug reports dating back 5-10 years
 
anyone know what resetroot.bat does?
 
@MikeS what does it contain?
 
i dont want to run it b/c i might fubar it even more
oops
 
9:32 PM
@MikeS just right click and open in your ide
@orourkek do you have an exmaple user agent string you are using?
damnit viper7 down again:(
sigh especially the comment thread :( stackoverflow.com/questions/10506509/…
 
well, hell. that did nothing.
 
@MikeS have you tried to login using cli yet?
 
@RepWhoringPeeHaa it's returning false for every user on our site
so take your pick :p
 
@orourkek :) lemme test 1 sec
 
Mine is string(120) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.165 Safari/535.19"
 
9:36 PM
not yet
 
might just need a flush privileges
get that cli running
 
cli is running
 
@RepWhoringPeeHaa File privs are 744, directory above is 755
644**
 
@MikeS it is indeed so that on windows it works differently than on linux... :)
 
for the ini iteslef
 
9:38 PM
and the my.conf is called my.ini and doesn't contain that broadcast
 
my.user is the culprit
gonna operate. stand back. this could get messy
 
@RepWhoringPeeHaa Also I've checked every one of our log files for browscap parsing errors, permission errors, etc - nothing even mentioning it
 
quick question guys, i now have over 2000rep, how do i view the edit queu?
 
At the top: Review -> Suggested edits
 
says i need 5000 rep :(
 
9:43 PM
@DarrenBurgess looks like you only earned yourself edit privileges: stackoverflow.com/privileges/edit
 
just read properly and noticed that, oh well
 
@orourkek sorry just works here :( (I've tested it on Windows though)
 
@RepWhoringPeeHaa with the latest browscap?
 
Nope I had one already installed
 
even worse :p
for me, anyways
 
9:48 PM
Sorry again :P
 
@RepWhoringPeeHaa np thanks for the effort/time
this has been a plague on my entire day
 
@orourkek It helps to step away for a while and fix it ni minutes at a later time :)
 
posted on May 08, 2012 by Liip

Since we started working on Jackalope, we always claimed it would also provide an integration point with other enterprise systems. Last week, we set out to proof this idea. Grégory Joseph of the Java based Magnolia CMS came to help us on the Magnolia side of things. Magnolia is using the JCR reference implementation Jackrabbit for storing its content. After an interesting exchange on their

 
Magnolia. What a name
 
"Magnolia powers the websites of government as well as leading Fortune 500 enterprises in more than 100 countries" - Yet I have never heard of it.
 
9:55 PM
@markustharkun bummer. that link you provided is dated. mysql-nt.exe doesn't exist in my version. looking for an updated source
 
Hi, into some trouble. I am saving something to the database, and I there is a field id which is auto increment, and another field globalid which is a string which ends with value in field id. Any idea how I can solve this out as I dont have the value of the filed id
 
hmmm today was fun.... "hey, can you please restrict access to directories x, y and z?" sure... 5 minutes later, done.... 30 minutes later, same person "heeeeyyyy, I can't access directories x, y and z, can you please fix that?"
 
@sg3s Sounds like you work with the same people I do
 
And it's not like this person is an idiot, he's actually a fairly skilled c# programmer :s
later though I found out the real reason; the blockade was messing with a massive amount of redirects.... but getting asked to take down security you put up 30 minutes ago without a reason just makes me facepalm
 
10:16 PM
@RepWhoringPeeHaa Stepping away didn't help, this func is still the devil :P
 
we also crossed off another dozen or so possible causes... feel like a vice grip being tightened on my head
 
later all
@orourkek gl
 
@RepWhoringPeeHaa later
 
how big of a splash do u think a computer would make on the sidewalk if tossed from the 12th floor?
well, i've had about as much as i can stand today. bye all
 
10:28 PM
by @MikeS, don't throw that machine!
 
n'sync is so gay
 
11:06 PM
hi
okek u got a min
 
@Renai I've got about 10 before I go home :]
 
shit
did u get to look at the paste i made earlier
am still confused, am not sure if wat am trying to do is possible with query
or if i need to create a new table
 
can't find the paste
 
but if a query is that hard to wrap your head around, it's probably too complicated
 
11:18 PM
i can do basic queries
its the structure i have
ive created temp tables, and am trying to access them to create another temp table
 
users submit these ratings?
 
yea
 
nvm i see the user column now
bleh
 
instead of 1 vote per row, its possibly 12
 
why/how?
 
11:20 PM
why
because each shop has 12 categories
 
If I go in and rate all of the shops, you would have 20 rows, right?
 
if there are 20 ya
 
every shop that I rate means another row in there, with my user id and my ratings for that shop
 
ive used it like a spread sheet
yea
is my method bad then?
the examples i seen used 1 vote per row, and joined to another table for rating category
 
yeah, that's the way to go
every row is unique to a user rating a shop
 
11:22 PM
atm the main prob is counting the fields
not rows, no columns, but fields of the 12 categories
 
The total votes (in all categs) that a user gave a shop?
 
yea
number of votes, the math is , total vote sum / total votes
 
SELECT column_1 + column_2 + column_3 + ... column_12 as column_sum
that will crash horribly on NULL values in there
but you can use SELECT ifnull(column_1, 0), ... instead
if there will be null values
 
i have had the debate over to use NULL or 0 as default value
my method just appears really poorly structured
as in terms of searching, main feature is to search the database via a form
 
if people can vote '0' for something, then NULL seems more appropriate
 
11:30 PM
currently using 0 , thats was a problem, thats why i have to count fields above 0
no 0 vote
1 - 5 only
or no vote / 0
didnt my setup of the database at the link look unusual ? in terms of indexing
there is no total as u notice, it does a sum to get total
and i was trying to create temp tables to find out the total data of votes > 0 but it got very messy and feels wrong
 
eh, you could do it either way really
but updating another table with the total every time you update with votes seems silly
 
am imaging search going down the rows, and if it says comfort > 0
i noticed any rows with comfort of 0 will not return, even though in that row a service is of 5
is the conditions overlapping or something
which leads me back to my structre
 
why don't you just calculate the total when the user casts the votes?
store it right in that row
 
there total ?
 
yes
 
11:35 PM
i still have to find out number of votes
which is rows and columns added
its a X and Y axis search
 
SELECT SUM(user_total_column) as theSum WHERE shop_id = [whatever]
like that, ish
 
but WHERE comfort > 0
 
sure
 
any row with comfort of 0, will not return rite?
 
any number of other conditionals
not if you add that conditional
 
11:37 PM
that?
 
gotta jet now to miss traffic, sorry
 
arlite
 
the WHERE comfort > 0
later @Renai, GL
 
thanks
thanks for your time
 

« first day (570 days earlier)      last day (4378 days later) »