« first day (861 days earlier)      last day (4087 days later) » 

12:01 AM
And you can never know :) (__call)
 
/* Magic password field */
$password = ( isset( $data['password'] ) ) ? trim( $data['password'] ) : $this->create_password();
$md_5_password = md5( $password );

Apparently your passwords can't contain any leading/trailing whitespace,. Why why why would you name it `$md_5_password`? I give up, browsing the repo.
derp derp derp
 
@cryptic Better $password = htmlspecialchars($password) as well to be on the safe side.
 
user652649
lot of login systems trim() passwords
 
@wes but a space is a valid char in a password
 
@crypticツ I was just kidding. The system altering your password input in any way before storage should be considered a bug.
 
12:07 AM
@WesleyMurch I know you were kidding =o)
 
user652649
not if bounding @crypticツ
 
I just thought it was amusing to consider the scenario where one would htmlspecialchars($password) @crypticツ
So basically I was saying it's stupid.
 
I'm sure someone is doing it
 
I see people using an "xss_clean()" filter on passwords in Codeigniter a lot. Makes me insane with rage.
 
user652649
eval.in/10994 this is fluent... I don't know why I don't use that syntax... seems to be very useful
 
12:16 AM
... aaaaaand $320 are gone (paid for the damned utilities)
 
user652649
@pce i'm deprecated
 
@WesleyMurch Sorry, I hate *magic* :o)
@tereško haha I knew it ... I hear you guys at Latvia do everything over teh net?
@tereško By the way, for what exactly?
 
i still call to get my pizza (because i cannot be bothered to register)
@webarto electricity, heating, water, cleaning snow, garbage, internet ... basics
 
I once ordered some stuff online (pizza, etc), and I multiplied by 0 (web application let me do it, it was "ajax") and everything was 0 (it said so on receipt).
2
 
pce
@wes no.
your cars are ;)
 
12:20 AM
i call, because then i can ask about the special offers
.. though the sushi i order online (because my japanese pronunciation is worse them my german one)
 
user652649
@pce they are rubbish but cool, as everything "italian"
 
pce
@wes yeah, the italian cars are stylish
...and colani design
 
@tereško That is like too much. Heating here is $1 (converted) per m^2, and I spend about $20 of electricity. Water, snow, garbage, etc. about $15. Internet is $20, 4MBps.
 
i pay more for everything
except the 50MBps internet is for 15$
 
:O
 
user652649
12:25 AM
@webarto we are in the stone age
 
is there a simple way to loop two different objects like these: paste.to/MjU3MzY= and compare and look for identical data?
 
@wes Underdeveloped countries :P
 
im kind of new to objects and gathered i could not loop them like arrays
 
user652649
true... true
 
user652649
 
12:26 AM
damn thats one ugly car
 
That's a car?
 
user652649
 
pce
Lancia Stratos
 
user652649
bertone
 
.. one word: "fiat"
 
12:29 AM
^ thats not safe for work :P
 
user652649
@Dave 20 years of identical cars aston martin, then italy comes to help:
 
user652649
 
Works even after I reported it. Eih, ASPX.
 
i dont like that one it looks less elegant
 
user652649
 
12:32 AM
oh thats nice
we're nearly violating the no porn rule here
 
There is a no porn rule?
 
yes, rule 34
 
gah i dont get how to loop two different objects :(
 
to do what? compare?
 
user652649
why do you need to loop objects in the first place?
 
12:39 AM
to compare for identical data
 
- loop one
- compare every element to 1º element of the other object
- then loop again and compare to 2º
 
user652649
$obj == $obj2 ?
 
so on
 
the objects are bit more complex they hold 2D arrays
its the arrays in those i need to compare if that make sense ?
this is the data structure of them paste.to/MjU3MzY=
 
user652649
$obj1 == $obj2 compares deeply
 
12:41 AM
as u seen my paste theres a [10][12] duplicate so thats what needs to return to say theres a clash
 
user652649
@Dave array indexes are different... why are they different?
 
array_loop( $index ) {
array_loop2( $index2 ) {
if $index = $index2
return
}
}
 
i designed them to hold [x][y] co ordinates
 
that would be the most basic way of doing it
there are better functions but i dont remember them
 
user652649
so the array index is a coordinate?
 
12:42 AM
yeh [x] holds many [y]'s
 
user652649
lol, you know that you did that totally wrong?
 
theres two objects because first one is the map the second is new objects i want to put on the map
how so ?
 
user652649
$obj->x = 22;
$obj['x'] = 22;

not

$obj[22] = something..
 
so couldnt i do :

if exists $obj[$x][$y]
 
iterate. good bye
 
12:47 AM
well iteration is going to happen i know just making sure i have created them so i can do little amount of iterations as possible
loops are time consuming after all
 
pce
@Dave you can iterate over ArrayObjects and check with empty or isset properties $object = new ArrayObject(); $object[1][2]=1;
 
user652649
@Dave you can use a map but since i don't know what you are trying to do it might not be a good suggestion... $map["$x;$y"]
 
so to iterate over arrayobjects is the same way you would iterate a standard array?
 
like
for($myobj as $x){
       for($myobj[$x] as $y){

}}
 
user652649
12:51 AM
@Dave that sucks... if you cant even compare objects with == its obvious that your storage structure sucks
 
if i did i would have to check all x and y's if my y's are in the x array i can just continue; if x is not found
i couldnt think of a better way to structure it
 
user652649
paste the code @Dave (on pastebin)
 
of my object data or how i made them ?
 
user652649
classes
 
user652649
12:59 AM
lol, i can't understand... why is y dependent by x's existence?
 
lets say your looking for x:2 y: 900
find x if not then u know y isn't going to exist so skip
otherwise i have to iterate every entity to be 100% sure x and y exist together
 
user652649
and why is $map["$x;$y"] wrong?
 
user652649
you check if the key $map["2;900"] exists
 
if im looking for 6; 8 i have to loop 3 times:
$map[6;12]
$map[6;8]
$map[7;9]
$map[6;8]
or 4 infact
i wldnt need to check map[7;9] in my method because x is not 6 for that
 
user652649
i can't understand. if you are looking for a specific key just do isset($map["6;8"])
 
1:04 AM
isnt "6;8" just a string?
 
user652649
it is
 
hm
ill do some bench tests
 
user652649
lol
 
you might be right your method might be more efficient
 
user652649
of course it is
 
1:05 AM
the way i was thinking was i wldnt need duplicated x values
so less data is held
 
oh
now i like that :P
snap that is so much easier than my approach
 
user652649
well, less data held is important but you are loosing basic functionality with your current code
 
true wes
@pce is there way to less duplicates of the first [value]
 
user652649
lol. ok, do what you want
 
user652649
1:11 AM
:P
 
well if objectarray does allow less duplicates i get my cake and eat it at same time
 
user652649
what are "duplicates" in your structure?
 
user652649
two coords with same x,y ?
 
basically to reduce the x being stored more than one. with 500 + co ordinates allowing only 1 of each x i can then half it to 250 co ordinates
its also how i draw my map in my engine i get the x location and loop all the y's to draw them out then the next x and so on
maybe :

$object = new ArrayObject();
$object[1]= new ArrayObject();
$object[1] [ [1][2][3][4] ] =1;
 
user652649
 
pce
1:23 AM
$object = [
	1 => [
	  1,
	  2
	],
	2=> [
	  2
    ]
];

foreach ($object as $x => $a) {
	foreach ($a as  $y => $flag) {
    	if (!empty($object[$x][$y])) {
	        echo "x";
		}
	}
	echo "\n";

}
 
user652649
@Dave sorry error, eval.in/11006
 
pce
you could also use foreach as with arrayobject.
 
@wes put y inside x and search for a specific co ordinate the looping is faster
@pce oh its comma seperated
 
user652649
@Dave what are you saying man, it's impossible that looping in the user space is faster than isset() or array_key_exists()
 
user652649
i'm surrending btw. i have work to do
 
1:26 AM
surely isset still loops the data to check it exists
@pce so do i create the multiple ys in x like :
$object[1] [ [1][2][3][4] ] =1;
or
$object[1] [ 1,2,3,4,5 ] =1;
 
pce
@Dave i'm tired, but i thought of something like this : stackoverflow.com/questions/7030229/…
 
will take a read thanks!
 
Anyone here who ever tried to serialize parent classes' private properties somehow?
 
I'm trying to delete rows from 2 tables in a single query with MySQL, but I'm really stuck.
Someone knows how to do that?
 
pce
1:43 AM
@Dave a noisy version eval.in/11015
But i would prefer the [ 0=x, 1=y ] version: eval.in/11016
 
thanks will test with it :)
 
2:47 AM
@NickFury he wants to delete the rows
 
**DELETE
 
=o)
 
lol oops didn't even notice thanks
 
posted on February 23, 2013 by Matthew Turland

I had my first contact with the PHP community in late 2005 or early 2006; I can’t remember exactly when it was. Before that point, I’d spent the better part of my life struggling with being bullied and depressed. If my peers didn’t show me ostracism, they mostly showed me indifference. I often felt like my life had little meaning and that I had no one I could relate to. Then I found the #phpc

 
everyone is asleep =o(
 
i guess
and well, is friday
 
There you go
 
anybody here has experience with magento?
 
3:58 AM
I have some experience.
Not a magento expert by no means.
 
i have a little error, i just migrated the db to another server
and when i change the db hostname i got this error: Fatal error: Mage::require_once() [function.require]: Failed opening required '/var/www/xxxxxxxxxx/web/errors/report.php'
 
user652649
@crypticツ i am not. i'm a vampire. buuuuu
 
4:15 AM
morning ... :)
 
morning
 
@AshwinMukhija lol =oD
 
@NullPointer :D
 
user652649
morning @NullPointer :P
 
morning
 
4:24 AM
Hi guys!
 
@Alex_ios hiya
 
how is it going?
 
@RommelCastroA my life going like a snail .... no time for fun . just working working ....:(
 
something like that is my life, local time is 20:27, i been working since 7:00
 
@NullPointer Yay! How are you doing?
 
4:28 AM
1 min ago, by NullPointer
@RommelCastroA my life going like a snail .... no time for fun . just working working ....:(
now aiming fir marshal badge [440 + flag ]
 
@NullPointer here flag this as should be a comment stackoverflow.com/a/15036914/1592648 makes no attempt to answer the question, but tells OP to get some sleep
 
@NullPointer Cool.
 
4:47 AM
@crypticツ done
@crypticツ deleted just after flag .... mission successful:)
 
I'm trying to get my flag badge too, my first one though. But it's so hard to find stuff to flag. I wish a spammer would come by and have at it. I'll have plenty to flag then =o)
 
@crypticツ i got 80 flag badge in just tow days
@crypticツ 10k tool get me ..
every day its like ~600 flagged post appears ... in review queue
 
user652649
STOP
 
user652649
BADGE
 
user652649
WHORING
 
4:53 AM
Badges are all I have to live for in life =o(
 
> Dont read above message its automatic posted by boot
 
user652649
@crypticツ holy maccheroni
 
user652649
seriously you guys should employ better your time
 
4:56 AM
@wes you should see me on Xbox, I go crazy if I can't unlock achievements.
 
I am the same way in WoW.
Also, on PS3
 
user652649
lol
 
Or any game whatsoever.
I have been known to grind achievements for 6 months at a stretch.
 
I compare getting badges to climbing the tallest peaks in the world. It's a challenge that must be undertaken if motivated enough to do so, and I am motivated! =oD
 
I hate how I never got the Unsung Hero badge
I have so many accepted answers at 0 upvotes
 
4:58 AM
if you didnt get it early off it's nearly impossible if not impossible to get it later as it based on percentage of acepted answers
 
user652649
@crypticツ i thought you did it for the pure pleasure of sharing your knowledge
 
user652649
lol
 
Yeah, but I have more than 25% and more than 10 accepted answers without upvotes.
 
If only I could say my internet bill is a charitable donation to SO and write it off on my taxes.
5
 
user652649
are you waiting the star? @crypticツ
 
5:02 AM
I don't need any, I already go my chat star badge =o)
lol
 
user652649
sigh.
 
@crypticツ hahahahaha y got my access to chat today
i*
 
user652649
@RommelCastroA leave now because it is contagious!!!!
 
hahahahah i work from home, so i think is a nice thing
talk with people lol
 
grrr .... today my internet is crap today ...........
 
5:07 AM
How much is your internet $ and speed?
 
@RommelCastroA i work for money :P
@crypticツ 14$/month .. 1mbps unlimited bandwidth
 
@NullPointer are you serious?
 
@crypticツ sorry ?
 
where you live?
 
@crypticツ india ?
 
5:09 AM
I thought they had higher speeds there
 
No they don't
It sucks here.
 
@crypticツ yaa they have very higher .. but too costly for me
@AshwinMukhija they have in my college its like 12mbps leas line ...
 
Do you have monopolized ISPs?
 
Well, unless you are willing to pay close to $100/month.
@crypticツ It's not so much as monopolized ISPs as it is archaic infrastructure.
 
30usd for 18mb :)
 
5:11 AM
@RommelCastroA speed ? bandwidth ?
 
18mb
i download at 2mb/s
hahahaha
 
@RommelCastroA 18mbps ?
 
We need better internet in India.
 
user652649
4mbit here 15$/month and the sad thing is that 4mbit is the maximum you can have, unless you live in big cities
 
5:13 AM
i live in california, but when i lived in costa rica i paid 100usd for 4mbps
 
@RommelCastroA unlimited ?
 
@NullPointer yes
 
@AshwinMukhija lot more better ....
i will really leave india just because of damn internet speed ...
 
@NullPointer We will start seeing bigger speeds soon enough. Remember that until a couple of years ago, 256 kbps was the norm.
 
that's really bad, i though you guys had better speeds in india, mostly because india is a great place for IT companies
 
5:17 AM
@RommelCastroA yes they have .. but its costly ... can not afford it
 
Internet for the common public is expensive and slow. Corporate offices have much more and better options.
 
@RommelCastroA yup 4mbps unlimited internet is like for 300$/month
 
user652649
@NullPointer holy FFFF
 
@NullPointer Not really. In Delhi, 4 mbps unlimited is about $60/month
 
@AshwinMukhija unlimited
 
5:22 AM
Talking about MTNL here.
They don't have a 'fair usage' policy.
 
geez, I have 40 down and 5 up for $80, about to upgrade to 60 down for $85. But I hear in places like Japan they get 100-1000 for the same price.
 
@AshwinMukhija mtnl is very very very chipper than bsnl .. not available in my city
 
@crypticツ South Korea, and Scandinavian countries have almost stupid speeds.
 
@crypticツ where ?
 
@NullPointer What city are you in?
 
5:24 AM
@AshwinMukhija rajasthan (bikaner )
 
@NullPointer Ah, yes.
 
@AshwinMukhija Orlando
 
Florida is a warm place.
 
We have Verizon FiOS here, not in my suburb unfortunatelty, which has 300 down and 64 up for $150
 
5:26 AM
california
 
i always wanted to have 4mbps internet speed ... but now i want 80mbps
 
anything is better than dialup =o)
 
56.6kbps
F yeah!
 
@AshwinMukhija whoa, way too fast for me
 
also 2g internet (gprs)
 
5:27 AM
i'm leaving usa in april, in costa rica the max speed is 10mb for 100usd :/
 
user652649
@crypticツ you know that your hard disk can be slower than 300mbit? :P
 
i'll miss my current 20/mb
 
yeah, bottleneck
 
@wes get a ssd or RAID
 
user652649
especially if you have a laptop
 
5:28 AM
I wouldn't mind it so I can run my own server
 
I want a 1 TB SSD
 
user652649
 
thats why theer are many server in Europe and USA
@wes nice cover :P:P
 
an ssd would be an excellent addition
 
user652649
@NullPointer thats a heatsink! :P
 
5:31 AM
Mother of god
 
user652649
for me no matter how much i spend for hardware: it will broke in 6 months
 
user652649
in past i bought 2 western digital "enterprise" 300$ each
 
user652649
both broken
 
user652649
ssd will mean for me 3 months of life
 
configure raid with ssd will give very fast speed at the cost of stupidity ..
 
user652649
6:00 AM
$amp; should i go to bed?
 
@wes what time it is ?
 
user652649
7am
 
@wes are you kidding ...
please g0 now and sleep ffs
 
user652649
should I?
 
@wes yes
 
user652649
6:06 AM
@NullPointer can i drink a coffee instead?
 
@wes yupp ... and you can also use cup :P:P
 
user652649
@NullPointer can I? usually I boil water directly inside my mouth
 
@wes yes you can ..just make sure that you will put caffeine after
 
user652649
yes of course, and sugar
 
user652649
i love this kind of trippy discussions in the morning
 
6:10 AM
@wes haha... me too
@wes but do you use water in coffee ?
 
user652649
yes what otherwise? tarmac?
 
Screw sugar. Eat coffee powder.
 
user652649
mmmmh tarmac
 
user652649
 
@wes lol...
@AshwinMukhija irony : how to Screw sugar ?
@wes you have to make carefully .. you have wasted boiled water and coffee powder ... damn you :P:P
 
6:14 AM
Put genitalia in and commence oscillatory motion?
 
user652649
 
Also ^
 
user652649
in india you eat coffee powder or are you joking?
 
In India, we make coffee exactly like we make tea.
 
user652649
6:17 AM
with boiled tarmac?
 
Pretty much.
 
user652649
no seriously.. how do you make coffee in india?
 
The most common way is to put coffee in water and milk and bring to boil. A very few of us actually do have coffee makers though.
 
user652649
how much water/milk/coffee ?
 
@wes i just do shortcut put coffee powder and sager in hot milk ..
 
6:23 AM
Depends on who is making it.
Different vendors make it differently.
I hate coffee powder in hot milk.
 
user652649
in italy coffee + milk is "cappuccino" or "caffellatte"... the real coffee is "espresso" for us. which is very concentrated. about 4 tea spoons of coffee powder in a very little boiled water, filtered
 
user652649
 
@wes is it tasty ?
 
user652649
yes, very
 
oh my, that looks good
0
A: Unspin text in php from spun text on sentence level

JackThis is a recursive problem, so regular expressions aren't that great; but recursive patterns can help though: function bla($s) { // first off, find the curly brace patterns (those that are properly balanced) if (preg_match_all('#\{(((?>[^{}]+)|(?R))*)\}#', $s, $matches, PREG_OFFSET_C...

Believe it or not, my first taste of recursive patterns.
 
user652649
6:32 AM
@AshwinMukhija @NullPointer i need a visual example of indian's made coffee :P
 
Over here, they use a sock filter :)
Previously not worn by anyone mind you
 
user652649
lol, US @Jack ? that is not proper coffee! :P
 
user652649
@NullPointer cappuccino :P
 
@wes Indian classifications are different. :P
 
user652649
6:37 AM
@Jack curious, i'm working exactly on the same thing
 
@wes The same question?
 
user652649
nope, mine is already working :P
 
@wes Well, that's Asian coffee for you hehe.
 
user652649
 
@wes That does a few other things, such as handling ** in a special manner too ... somehow the code still seems a bit ... verbose dense? :)
 
user652649
@Jack i don't need more than that actually, like performances
 
@wes I didn't mean in terms of performance.
More in readability.
 
user652649
[aa**3|bb] increases chances to get "aa", is equivalent to writing [aa|aa|aa|bb]
 
user652649
@Jack yes it is a bit crappy, but who cares, it is an experiment
 
6:46 AM
Ah, I see. Yeah, nothing wrong with that :)
 
anyone used ramnode.com ?
 
user652649
 
hi
 
@wes Yep, seems legit
 
user652649
6:59 AM
@Jack never mind, my bad :P i like that approach btw, i will modify my code :P
 

« first day (861 days earlier)      last day (4087 days later) »