« first day (607 days earlier)      last day (4566 days later) » 

user986408
00:00
lol
oh man.. @tereško I definitely needed a good laugh... Thanks for showing me that, 'cause that definitely did the trick
dunno .. my month favorite piece for lols is this one : chat.stackoverflow.com/transcript/11?m=4062356#4062356
lol.. i saw that one a couple days ago and put it on my facebook... no one laughed, no one commented... ;\
user986408
i know that.. (feeling)
yeah... Kinda lame.. I don't get anything on funny images...
but i get loads on shit like "Confucius Say: Wife who put husband in dog house soon find husband in cat house"
00:07
what's "face book" ?
all jokes aside .. i never used that place to read or find something funny
has anyone used Amazons RDS?
Facebook is those books that girls have with their friends in it :)
it gets passed around in the classroom and they all write their bio in it
trying to figure out the average cost for an RDS instance
oh .. i remember those from grade school , we called them "memory notebooks" (direct translation)
@Mike it's not so bad once you have a reserved instance
user986408
00:11
@Jack that's for girls only? oh sh*t i think i had one of those..
@skripted well, no .. i just only saw girls with it lol
mostly guys at that age are too busy gambling
i have web app that we;re going to be releasing, projected to get 30k-40k hits a day .. worried that a single DV4 1gb server from mediatemple wont handle the load
lol .. i didn't even have money to gamble back then
also worried about failover >_>
00:12
my daily allowance was ~1$ at that age
yet i dont want to pay $200/mo just for a single instance lol
@tereško not far off mine
thats what we played on
@Mike you can check with their calculator
how tf did i miss that?
00:13
some day you could go home with $20+
user986408
what age are we talking about ?
@skripted , 10-12
crapz i didn't even know what gambling was back then ... so i just did supermarket raiding lol
user986408
you gambled with 12 ? well come to think of it.. i did that too but not with money.. rather trading game cards
user986408
like magic and stuff like that ..
00:16
hmm don't think we had those when i was 12 ... we did have a brand new 8086 with 4color monitor though
my nearby elementary school has a long running tradition of gambling .. it's self-perpetuating
and with color i mean 4 shades of green
well .. ok , it was nearby
now it is like 120km away
i wonder if you go back one day you'd still see your old friends who couldn't let go heh
naah .. noone in 8th-9th grade gambles .. there are more fun things to do then
so by the time we finished that establishment , nobody had a lingering habit
00:19
that's good
howtf do you calculate an hour?
of usage?
@Mike , could you be a bit more vague ?
amazon RDS
says price per hour, how do you determine usage based on that... like i have no idea of how to gauge that. I;m so used to it in relation to bandwidth/storage
by the age of oldest file
@Mike , well .. you see ... we have thins new thing, called "clocks"
lmao
why even bother listing it as hours then >_> why not just say its $x.00/day
if the instance is going to run 24/7..
00:22
@Mike , because then you might notice that is not so cheap after-all
hahahahaha
BINGO
its $83/mo just for a "Small RDS DB Instance"
doesnt include co-location or anything
i wish there was a cheap solution to a cluster based rds setup
@Mike did you check under reserved instance though?
yeah you pay a upfront cost
which is fine
right
just thought RDS was based on usage, not on hours.
even if the instance is sitting there idle you're paying for it =)
00:27
well, they have to power up the vm, so that's what you pay for =p
word
i wonder if theres benchmarks out there
amazons RDS vs a standard single VPS, like average run-o-the-mill VPS from lets say... mdiatemple..
their prices are actually fine ... you need a pretty big setup yourself before you reap the benefits
my site wont get over 40k hits at first and i need a solution that will scale..
@Mike feel free to fire up one rds and one ec2 instance and test the speed of course ;-)
yeah im gunna have to :)
00:28
just do it quickly hehe
Alright -- 6:30 -- I think it's time for me to close the laptop -- go home -- and get plastered...
hahah
maybe they won't notice =D
i think they have a free level
not for rds though afaik
and that's free for the 1st year only
00:29
yeah its free for the first year
i think ill just work the cost into the SLA lol
not like free as app engine .. though, their free tier has gotten pretty thin lol
charge the client for the hosting =P
other option is to move to phpfog.com
@Mike that should always be your first priority
you ever use the Amazon service for deploying web apps?
i would recommend you to start by using VPS , and then migrate it to dedicated box
00:31
time to head for office .. later!
later
@Mike definitely, we use the cloud formation
i have a VPS
i have a DV4 1gb from MediaTemple
and it's choking?
nah its not choking, yet.
00:32
will it even ?
no idea!
because your userbase might as well plato-out
i think the concept of starting small best applies
what i dont want is to get into the DV4... set it all up and have to migrate to something thats "elastic", in 8 months...
anyhoot
ill roll the RDS for free
give it a whizbang and see, thanks for the info
01:08
night
good night
the rfc has landed
=D looks good!
 
1 hour later…
03:49
hey room
afternoon
afternoon @Paul
know google maps?
04:05
@ShyamK its been too long since I've looked at it. I've forgotten almost everything.
What I'm asking is real simple.. I wanna place that orangish blob on google maps.. how to do so?
anyone know the arg for ssh to not use an authorized_key
@ShyamK a marker? I'd look through the API for a marker.
guys at work thought it'd be funny to muck wiht my system
and now i cantl ogin lol
@Mike Isn't that stuff configured via the ~/.ssh/ directory?
04:10
yeah but they changed my key
lol
i got in
i really didnt want to delete my id_rsa* files
lol, its not even April 1st?!
but no chooice
yeah they think its funny >_>
wait till i move their home directory =D
to a usb1.1 external IDE drive =D
MUAHAHAHAHHAHA
cron job to make the screen flash at random intervals, or... moving the mouse pointer... would be good too.
haha mmmhm
i like the home dir the best
the guy does video editing and LOOOOOVES to store things on his desktop on his mac pro
and i so happen to have an admin account on his workstation =D
lol, yes, that would be nice, especially if it goes for a few days
04:28
Hello There!!!
mofuckas changed the ownership of my homedir too
ooo they're going to get it lol
04:51
@Mike sucks to be you right now.. Would've sucked even worse had it been me in your situation.. Would've started crying there :'(
05:23
Hi there guys making my first PHP CMS from the ground up, any warnings to toss my way?
god all the video data i keep on my Mac desktop the week im editing it
I mean all the data i keep in a password protected directory
@ert3 no warning except for you gonna fail anyway but will learn plenty from it
@Gordon gee thanks for the vote of confidence, thats why I am here scouring the site for as many different answers as i can get. that way atleast when i do eventually get hacked I can have one truely interesting problem to solve
@Gordon ^
@ert3 im not meaning to discourage you at all. go ahead. im sure it will be a good learning experience. just dont waste time on getting warnings. do some planning on where you wanna go with that cms and then tackle the details as you go.
@Gordon see that is a vote of confidence because its exactly what I have been doing, 3 weeks to make this baby and im gona take care of it until I have an adult that's ready for retail
@ert3 If you are writing it in an OO style, do you understand SOLID (the acronym)? That can go a long way to writing good code.
hello Gordon
05:34
morning :)
@Paul no but apparently I have been practicing it all along, I went to a school with some decent teachers apparently
@Paul morning
hello everyone whats cooking??
05:59
hi does anyone know a way to convert some python files to php?
06:14
python to php?
you mean other than the hardway?
5
Q: Converting Python Code to PHP

KirkIs there a software converter out there that can automatically convert this python code to PHP? #!/usr/bin/python import math def calcNumEntropyBits(s): if len(s) <= 0: return 0.0 symCount = {} for c in s: if c not in symCount: symCount[c] = 1 ...

I have some big python files which I need to megrate to php. but the files are to big to do that by hand imho so I'm looking for something automatic or semi automatic
that file was translated by hand if I guess right
@ert3: my python skills are not soo good, I just know some python basics
@rekire is this meant for a website
because the quick solution is to use the python application in a CGI settup and just use it as is
that pyton files connect to a server I want to do the same with php
well that is a completely different thing
and note We are far from the day where apps can just translate between programing languages at a whim like that
that solution would not work it is a nokia mobile app so I cannot run that on a command line
06:23
why not just make a php app that looks and does the same things as the nokia app then
because your not going to get a line by line conversion in any sort of fire and forget setting
not unless you hire a programer who is up for the punishment
if that would be so easy... that guy wrote about 123kb python even if is there just some parts which need to translated that are allready about 1200 lines which I know now
well the big thing is what needs to be php and can soem parts remain python
because if thats the case we can hunt down some examples of how to acomplish these things in php and then pass them on to the python
I don't think that I can run any python scripts on my target server
well but I get the point. read all and try to translate the relevent parts
well you still need to be able to run python
so your target server is this linux and if so can you add packages
because python has about the most painless install method out there
not really on shared hosting :(
06:28
ok yeah good freaking luck running python on that
well you can always hire a programer
:(
this is just an option for a commertial project. so I have to forget that maybe
@tomexsans that is the wrong way. I want to get php code
oh wait there is something...
as in whole PHP code??
wow allow people to write in python inside of PHP
i think that wins the game good sir
@tomexsans I mixed up something
06:35
i don't know i think this is just a test, some bugs maybe
@rekire what did you mix??
I thought I found that page, but what I found was a page that converted php code to python. that project was also called pip. so far I thought that was that one.
06:59
happy new day everybody
@hakre Happy new day
good morning
Sam
Sam
hi folks
hi @sam
Sam
Sam
hey tom........what's up?
07:11
@sam nothing going on lately . . . still on self study
Sam
Sam
lol....you aren't the only one......solidarity support :)
study regex, uhh man
Sam
Sam
regex's cool, dude
once I see that I'm forgetting it, I study it again
hahahaha, me too, seems like my short-term memory won't work
i thought this was just easy, uhh i was wrong . .
Sam
Sam
lol.....it's relatively easy; start from the easy parts
07:18
until it gets complicated, that is.
yup until it gets compicated. . .
Sam
Sam
lol......until it gets more interesting....:P
@hakre did you get your phpuchh ticket?
Sam
Sam
I usually stay away from the non-printing characters
as someone else said it better than me: when you have a problem to solve, once you decide to use regexes you end up having TWO problems to solve :P
i normally find it useful to use a regex builder and adapt the expression to my specific needs, saves a lot of time and i don't have to remember everything at the drop of a hat
07:23
@UniqueKey what regex builder can you advice
seems like a decent and mind-saving idea
@tomexsans been a while, but i used to use the regex coach
thanks @UniqueKey i'll take a look at it. .
Sam
Sam
what's a regex builder? a program that builds your regex for you?
there are a few wizard-like ones, though
yup probably something like that . . or maybe not. hehehe
@sam
07:27
@Sam pretty much. there are two types: ones that debug your string on the fly and other ones that create your regex from building blocks
Sam
Sam
eh.......I think I'll manage on my own
ah, yes. here's a good one that i used to use a lot: txt2re.com
it's great for learning, it lets you customize your regex with a clickable interface
Sam
Sam
I have preg_match for that :P......will immediately let me know if I'm wrong
use it, but don't rely on it
@Sam it depends on what you're doing and under which constraints
when you're nearing a deadline and regexes refuse to work, this sort of thing can be a lifesaver
i was hoping to use my regex knowledge("if i had one") on JS
07:33
mornings
Sam
Sam
true......I haven't been in such a situation yet :)
morning, PeeHaa
morning @PeeHaa
Sam
Sam
you can....
morning @PeeHaa
Sam
Sam
hi, somebody
Sem
Sem
@Sam Heya :)
Sam
Sam
hey @Sem
I have a table with 8 million record and when i run a update query to update 4192 rows in it then first it takes 6 second and when again i update back to previos data it takes two second and when i again update it then it takes 0.1374 second.Why?
Sem
Sem
@Somebodyisintrouble I guess that's caching?
07:41
so you are telling that phpmyadmin is also cached in browser
Sem
Sem
@Somebodyisintrouble This has nothing to do with your browser. Only with the database.
So i should be happy that it is taking 0.1374 second or be sad that it is taking 6 second
Sem
Sem
@Somebodyisintrouble If you want to optimize your query go ask a question normally on this site with your update query and database information.
Sam
Sam
if you want to be more certain how much time it takes to run, you can run it via PHP, and check the time before and after
that should remain consistent, unless the server load varies
Sem
Sem
07:45
@Sam and what about caching? He did the exact same query again.
Sam
Sam
yeah...but PHPMyAdmin is just a site like any other; you don't know what features it has, and thus, you cannot fully predict how it'll act during normal production
Sem
Sem
@Sam again, we're not talking about a site. We're talking about an update query on a database.
Sam
Sam
I know......but he's using PHPMyAdmin; PHPMyAdmin is essentially a PHP site, designed to run sql statements on a mysql db
the way it'll perform in PHPMyAdmin will be different from the way it'll perform when run through a CLI or his own codes
it's wroking amazingly fast with php
wroking means working
Sam
Sam
so, rather than use an intermediary you cannot control, use something you can control
Sem
Sem
07:51
@Sam you can see how long it took after you did a query.. above the results
Sam
Sam
yes, you can; however, have you checked PHPMyAdmin to know what caching measures are set in place? Will the db always be updated from it? You shouldn't really debug from an environment you cannot control; that's all I'm saying
Sem
Sem
@Sam PHPMyAdmin doesn't do the caching here. The MySQL db engine does, right?
Sam
Sam
I'm not certain if a db can cache a sql statement if the connection is not persistent; however, applications can cache requests
however, the presumption that increase in speed cannot be accurately verified without a debugging tool you can control
I noticed one thing : @rootkarlo can't talk
Sam
Sam
08:00
he can put the query in a stored proc, returning the time taken for the updates, and run it via PHPMyAdmin; that should give more accurate results
09:12
mornin' everyone
morning @tereško
hi boys'n'grrls
@Gordon No this passed by, was too late.
@hakre next chance is on july, 1st. but i think there is still supporter tickets atm
@Gordon Yes supporters and sponsors. I was becomming a bit unsure I must admit because of close dates to froscon and I hate to say but my schedule is getting more and more full.
hiya @hakre
09:27
hi
can anyone read python? I have one line I cannot translate into php
x = 1 + (0 if node.attributes is None else len(node.attributes) * 2) + (0 if node.children is None else 1) + (0 if node.data is None else 1);
@rekire what is node?
I don't know yet.^^
I translated just 370 from about 1200 lines
guess I right that 0 if bla is None else 42 is translated to php as $bla==null?0:42 ?
10:07
@rekire everything has an else. I'd say you can convert all ifs into ternary operators or you extract them and assign them to a variable.
How is session handle in iOS, I am creating web service to be used by website and iPhone. The application contains user login/authentication. Using session I can maintain the user information on multiple pages of website but I don't know how it will be managed on iPhone's. Can some one please guide me if you are familiar?
@MahavirMunot That question has already been asked on the website. Please use the search.
@hakr
@hakre thanks
10:31
OMG
If PHP's a "bad language", what would C++ be? Malevolent satanic rites sewn together?!
/me hurries off through the back door...
stackoverflow.com/questions/10990420/… original question of dupe poster also sucks
@Christian PHP is a bad language. At least design-wise because there never was any design. PHP is like the Borg. We assimilated what we wanted from other languages. And like the Borg, PHP is very successful with that.
wel ... what can you expect from such an username
posted on June 14, 2012 by Lorna Mitchell

So recently I was working on some benchmarks for different versions of PHP, because I heard that PHP 5.4 is "faster" and since I'm a data geek I want to know how much faster! Now, PHP 5.4 is, in general, faster than PHP 5.3 but not twice as fast* unless you pick a use case which has been particularly optimised. My first attempt at benchmarking the two versions produced this: This was a

@Gordon , while C++ (in particular the OOP aspect of it) is described as "nailing fake legs to a dog and calling it octopus"
Morning everyone!
funny to see at which time a good moring comes. that small planet^^
There is a way to call methods like $this->$methodName();. Is there a way to work with class properties in same matter? $this->$someArrayProperty[] = array( ... );
@Eugene unreadable code is unreadable
@Gordon ?
10:49
@Eugene yes , there is , but i use it in only one case :
public function setParameters( $data )
{
    foreach ( $data as $name => $value ){
        $this->{$name} = $value;
    }
}
it's for domain objects , when they interact with datamappers
Sem
Sem
@tereško I use that way as well, love it :)
i kinda cringe every time i have to write this .. seems to me like leaking encapsulation
@Eugene try array_push($this->$someArrayProperty, array( ... ));
Sem
Sem
@tereško It's keeping things simple, for me at least.
I typically only use that for one type of class .... stdClass :)
all other use cases get the frown first
Good morning
Sem
Sem
@ircmaxell Good afternoon
morning
@Gordon cv'd, delv'd
@NikiC thx
Sem
Sem
11:18
Why haven't you guys made a question within that category that explains what cv and delv means >:|
@ircmaxell morning
onebox prevention @Sem gist.github.com/1689430
Sem
Sem
@PeeHaa thanks, and delv? :)
@Sem Well, what could del mean?
Sem
Sem
@NikiC derp...
wow
> The center of your application is not the database. Nor is it one or more of the frameworks you may be using. The center of your application are the use cases of your application.
@Gordon For some reason the heroku mirror has a smaller list. Do you have a clue why?
@hakre i assume it's SE.api limits. check the error.log. there should be notes about throttling
Hmm, is there any use in such questions? I tried to find out more, but there was no substance: stackoverflow.com/questions/11030471/…
@Gordon , i would are argue , that this should be titled "MVC, doing it wrong"
11:39
@tereško not really. you can have controllers delegating to models and then have views observe changes. boils down to whether you want to have an event-driven architecture. not sure what the arrows pointing to "the web" do there, though.
i am more confused with the big red box, called "models"
the whole picture looks more like "how rails thinks MVC on web should be"
@tereško It's just exemplary to make visible that the understanding of MVC greatly varies. It's not that the image tells the truth or something like that.
11:58
@NikiC ? Author removed already.
@Gordon thanks, @tereško suggestion solved issue.
Morning people
> What is the best time to determine your data model? When you know what the data entities are, how they are related, and how they are used. When do you know that? When you’ve gotten all the use cases and business rules written and tested. By that time you will have identified all the queries, all the relationships, all the data elements, and you’ll be able to construct a data model that fits nicely into a database.
How can I test business rules? Is that using behat or similar?
12:13
Good day
@hakre programmatically, yes. else it's domain knowledge and needs to be verified by domain experts
@hakre where is that from btw?
@hakre thanks
This sentence was looking extremely well for me, so I wondered if I need to manually tests or can have it supported by some testing framework with automation.
stakeholders are extremely well with use-cases btw. in my project, so this really makes sense. this gives a lot of input for the design.
@hakre depends on which stakeholders ;)
12:21
yes sure, but with "mine" it's really cool. it's a very involved stakeholder.
@hakre that's good. the more involved the better.
@hakre nice article
@Gordon Yeah, it makes such a difference.
@hakre you might like amazon.de/Lean-Architecture-Agile-Software-Development/dp/…. It has a number of additional ideas on stakeholder involvement and designing architecture so it represents the end user mental model
12:41
ordered.
@Gordon What about changing CV-backlog main font? :)
@Donut You can fork and provide a pull request.
You can also fork the heroku fork, so you can even show an online demo easily ;)
I will
@Donut there is nothing in terms of "design" yet, so feel free to go wild
I would go with font-face, but it's too wild

« first day (607 days earlier)      last day (4566 days later) »