« first day (443 days earlier)      last day (4501 days later) » 
00:00 - 14:0014:00 - 00:00

2:00 PM
@Raynos on a sidenote, i think all the flags from the android room are justified. at least those targeted at foreign language
 
I confirm those flags because I like being a dick and promoting an english only community
im on the fence whether its valid to have foreign languages in rooms I dont own. I generally bin any foreign language in the javascript room
 
Hi to all!!
I have this into htaccess `RewriteRule [^/php/error\.php] /php/error.php [L,NS]`
and i try to convert it to `RewriteRule [^/php/index\.php\?categorie=apps\&subcategorie=error404] /php/index.php?categorie=apps&subcategorie=error404 [L,NS]` with no luck
any advice?
 
@Raynos has nothing to do with being a dick. afaik there is some non-english chat rooms. but speaking a foreign language in an english chat room is excluding participants and thats just rude. i mean, we got plenty germans in here and we dont hijack the room.
 
@Gordon but I think the android rooms are actually designed and administrated as mixed language by the room owners
 
@Gordon now you are the rude
 
2:04 PM
@user726730 its called satire ;)
 
same called my previous message ;)
anyway, can anyone help me with the above issue?
 
@user726730 usually one doesn't get help with apache rewrite rules
Nobody here is (afaik) fluent with them
And debugging them via chat doesn't work out from what I've seen
There should be a good amount of SO questions for them and thats pretty much all i can offer
 
what server do you use?
 
Can't speak for everyone here. For the little web related stuff I do locally I use apache, for production we tend to use nginx (as some other people here do too)
 
i have posted my question here: stackoverflow.com/questions/8701277/htaccess-rewriterule (with my friend account) but there is no response
 
2:11 PM
@user726730: Just to share a link: serverfault.com/questions/214512/…
I'm not sure how that might be the best resource for you right now, but it's one that I look at when I need to do some url rewriting, etc
 
@Nonym ok, i will take a look at this article..thx
 
@user726730 Well, there is actually a learning effect if you debug your own code.
 
the problem is that every time i want a rewriterule i have forgot what i have learn about .htaccess..
So i read from the beginning the manuall :)
 
2:27 PM
Got +15 questions closed by flagging them.. thats easier than getting the chat room together to do that, especially for old stuff. smile
 
@user726730: That's normal if you don't use things often. However, that is what documentation is for, to provide the info if you can't remember it any longer.
 
can you flag the question, to be moved to serverfault?
http://stackoverflow.com/questions/8701277/htaccess-rewriterule
 
@user726730 Voted for migration
 
@edorian can you do that for my neighbors, too please
 
2:51 PM
@hakre Does 'More than 4gigs can be a problem' sum up your blog post?
Or something like that. I didn't really understand what the link was supposed to add there without any context :)
 
Yeah, the php.ini memory_limit hack.
 
That btw. should read: "Is 16megs to low for you? Just call us and let us know to which real hoster we should transfer your account" :P
 
On win32, it's about 1.5 gig string length or something?
@edorian Just to tell that there is a string length limit, in case the guy start to build strings which are intended to be larger than it is.
string limit != memory limit.
 
Yeah. I can see that
wrong sample
 
the problem is that i made a question which had html with very bad formatting
this question has -10 vote or something
 
3:20 PM
I have one server set up with the PDO driver to an ODBC, but I forget how I did it, or where the driver files are located, what they're called, or anything like that... can someone point me in the right direction?
[unixODBC][Driver Manager]Data source name not found, and no default driver specified
Historical note because I found it-- turns out it's located in several places, seems that cli's and apache2's php and the pdo module all look in different areas.
/etc/odbc.ini
/etc/php5/conf.d/odbc.ini
/etc/php5/conf.d/pdo_odbc.ini
 
3:51 PM
@Gordon Yeah it's giving me more issues, thanks for the link.
 
> Reputation cannot be recalculated more than once per day.
Since when?
 
q.q, I can't get a basic odbc_connect to work
 
4:10 PM
@edorian since ever
 
I never ran into this before oO
And i recalc quite a lot
> earned 18 reputation out of a maximum of 1000 from suggested edits
So thats why i still get rep for tag edits
 
I never thought of rep recalculating
Link?
 
Awh, I went down.
 
Usually means that questions you answered got deleted
 
4:15 PM
There was a bit of that, actually, I deleted some answers with upvotes.
Anyone else here really hate odbc?
I have the exact same code, exact same odbc.ini files on two servers, one can connect to the MSSQL, the other cannot.
 
4:36 PM
Question about require_once(); with classes, If I have a class A on A.php and this require another class B from B.php I have to use require_once(__ DIR __ . '/B.php'); or there are other way? A.php and B.php are in the same directory and now I include A.php in C.php that is in another directory
sorry for my bad english (italian)
 
There are other ways but it will work out using __DIR__
For example there is autoloading
But using the DIR constant for relative paths will work out
 
I search for "autoloading" in PHP because I don't know (for now), thanks
@edorian ok, I understand now... what is the best way in your opinion?
 
4:57 PM
@genesisxyz Currently most people are using / migration to some form of autoloading
I personally use PHP Autoload Builder a lot but there are other options
Like using File structure based loading and so on
 
Good morning
 
You should be able to find something you like. Even to there is not really all that much wrong with using require_once statements if you don't want to bother with anything of that for now
 
Hi, with PDO can you use all the normal SQL commands
such and inner join
 
@StephenWolfe Yes.
PDO doesn't limit your SQL commands.
 
Swee thanks
 
5:01 PM
@edorian ok... Thanks :)
 
Just make sure you're binding parameters and not building strings.
 
such as?
 
sigh, still can't figure out why ODBC doesn't want to connect...
[unixODBC][Driver Manager]Data source name not found, and no default driver specified is there a way I can stack trace or something?
 
@Incognito is that what u mean? $sth = $this->db->prepare('SELECT _leads.ID, _leads.Firstname, _leads.Lastname, _leads.Date_added, _introducers.Introducer FROM _leads INNER JOIN _introducers _leads.Introducer_ID = _introducers.ID');
 
@StephenWolfe If you have any parameters you must use ->bind() on them.
You don't build values based on variables in that prepare string with PDO.
In this case, you have no parameters so it's a bad example for what I'm saying.
If your SQL had Where Foo=5, you'd need to write that as WHERE foo = :whatever, and use ->bind() to assign whatever it's value.
 
5:09 PM
Ahh yeah i get you know
 
You must not write that as "where foo = ". $whatever. "
 
I will be using that later
 
Good.
If you don't do that, there's little point in using PDO.
 
@Incognito with PDO, do i still have to check the data going into my statements if the values have been binded
 
I don't understand your question.
 
5:14 PM
If I am inserting data into my data when using prepared statments do i still have to check for sql injection
 
PDO sanitizes your inputs by making them parameterized variables rather than built in the string.
As long as you're using bind, and not building strings of values, you shouldn't have to be concerned.
you can still create injection exploits in PDO if you build the string rather than use bind.
This is problematic if you're using the IN comparison operator, but for 90% of the use-cases it's fine.
 
5:41 PM
0
Q: ODBC_connect failure with same settings, different servers

IncognitoI have two servers, A and B, where I connect to MSSQL via odbc_connect. On both servers this is my /etc/odbc.info file: [foo] Driver = FreeTDS Description = odbc SERVER = dbserver.example.com PORT = USER = foo Password = hunter2 Database = FOO OPTION =...

.... I think I accidentally the freeTDS q.q
*maniacal laughter*... problem solved.
missing the file that described where freetds was.
 
6:08 PM
hi
 
6:19 PM
Is it common practice to use <dl><dt><dd> for forms on sites?
 
not really
 
What were the point in them? I was told about a year ago i should use them.
I use them for styling so i may just keep them
 
7:10 PM
@StephenWolfe , here is the problem : where do you put a lone "submit" button ?
or any other form control which has no label ?
 
evning
 
 
1 hour later…
8:45 PM
sups
 
so bored.... really need a job
 
I'm not bored but I feel ya on the job thing
 
oh, cool I just got emailed a job challenge prob, not bored anymore...
 
Today i got another 'job offer' from a recruiter called "Frank Middleman"
I laughed quite hard
 
8:58 PM
@edorian I believe that even I would laugh at this and I really need a job :P
 
It's so strange to hear that given how empty the EU job market is. (Well there are still some people in the UK)
I'd really wish we would be able to do remote work with people from the us
 
I wish most of the jobs weren't in cities. Most places don't want junior level people remote work and I'm not a city boy.
 
So you live in NY but not in NYC
I forgot that it's a state too :)
 
@edorian I moved here from Alabama about 2.5 years ago. Where I live now is more rural than where I lived in Alabama
 
I just learned a new word :)
 
9:06 PM
@edorian rural?
@edorian You're in Germany, yes? I spent a few years in Germany when I was a kid. Near Grafenwoehr.
A little bit of time in Badtolz
 
Yeah rural and yes I'm in Germany (until next month)
Hehe. First google hit for 'Grafenwoehr' is the us military base
No wonder I don't know it :P
 
@edorian haha, yep my dad was a career military guy
I remember going to Munich and Oktoberfest. That was fun
 
Hehe :) I live ~60 miles away from munich but I never went to Oktoberfest
 
My parents actually took my sisters and I to a few different places in Europe. Certainly far more places than most Americans.
 
@CharlesSprayberry you speak german too?
 
9:12 PM
Most vivid memories are the Black Forest and the Czech Republic
@NikiC Sadly no, I was young when I was there and didn't learn much of the language. I have a rosetta stone clone of the language that I'm working on but my programming work hasn't really given me the time to learn it.
 
programming languages > natural languages
 
@edorian Yea, I really wanted to learn the language because at the time I was working for an Eastern Orthodox monastery and I'm intrigued on training German shepherds in German.
 
@CharlesSprayberry shame
 
-_-
 
9:17 PM
:)
 
@Gordon Indeed.
 
I don't really see why someone would want to learn German though (except for working here (Germany, Austria, Switzerland).
 
@Gordon What did you write (removed) ?
 
I'd rather learn Mandarin or Spanish as I feel they are the only languages worth knowing except form english
 
@edoria: Isn't understanding Rammstein reason enough to study German?
 
9:22 PM
damn , i hate being sick
 
@edorian Yes, learning Chinese is probably worth it. And the language is very simple.
@tereško don't be
 
@edorian , how about russian ?
 
@dotancohen I don't think so to be honest but it's the bester reason I heard
 
I agree about Chinese. I have two young daughters and I plan on sending them to Chinese courses if I can find them. Almost certainly the next world superpower.
 
@tereško Yeah. Point taken
 
9:24 PM
@NikiC i wrote "German Shepherd"
 
@edorian If it weren't for my work with Germans and dogs from Germany I would choose Spanish as next language.
 
From what I understand, understanding the language is rather simple, but pronouncing it properly is very difficult as a second langauage. Also, the reading bit!
 
any , there is one problem with learning chinese : lack of immersion
 
@dotancohen Yes, the language has a very simple grammar (basically no conjugation or declination) so you can form sentences just by concatenation some words. ni hao ma = you good question => How are you? (Are you good?)
 
it's hard to learn a language , if you cannot surround yourself with that language
 
9:27 PM
@tereško I agree.
 
Hi im trying to get my index page to display an array based on the id passed in the url.

public function index($id)
{
$sth = $this->db->prepare('SELECT ID * FROM _leads WHERE ID = :id');
$sth->execute(array(':id' => $id));
$date = $sth->fetch();
$this->view->render('lead/index');
}
 
The main problem with chinese is reading or writing it
 
Im new to OO and cant get this bit to work.
 
@StephenWolfe , ignoring OOP : you suck at MVC
SQL has not place in controller
 
opps
one sec let me move it to my controler
model*
 
9:31 PM
additionally , model is not an object , but a layer containing domain business and data access objects
 
that query looks broken
 
it is
 
ahh damit.
can i do this in my controller.
	public function index($id)
	{
		$this->view->lead = $this->model->singleLead($id);
		$this->view->render('lead/');
	}
Im trying to work out how get a value into my index controller so i can display values from it.
 
what ?
 
dont worry im starting this bit of code again
 
10:09 PM
hello
 
 
1 hour later…
11:37 PM
Argh. I can't believe how many different people are advising singleton for db connection
3
Q: PHP OOP MySQL Programming

Jacob PerkinsI am a beginner in PHP programming and would like help with a little question. Please take a look at the code below: PHP Code <?php class Account { public function register() { $db_link = mysql_connect("localhost","root",""); // Create Connection if (!$db_link) // Check conn...

 
:)
Wuhu! The video of my conference talk in Manchester is online my tomorrow morning
 
@edorian What was your talk on?
 
Finally. First time I'll see myself speak. I'm exited and scared
@CharlesSprayberry Clean code, professionalism in our industry, tdd, going fast by going clean.
Something like that
 
@edorian Interesting. Will the talk be available to the public? Is it in English? :)
 
Yes public access, yes english.
I actually prefer to 'talk' in English. It's easier for me to make people laugh
 
11:54 PM
@edorian I really like your sharpen axe, many trees to cut down analogy.
 
Dunno where I got that one from.. I've heard that one quite often before. Can't claim credit :)
 
00:00 - 14:0014:00 - 00:00

« first day (443 days earlier)      last day (4501 days later) »