Goto Page: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22
Actual Results
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: Pass by reference
- Subject: Pass by reference
- Replies: 1
- Views: 373
- Subject: Pass by reference
Posted: September 14th, 2006, 9:26 am
It saves some memory (although probably nothing appreciable) and it makes sure that if you return an object you actually return it, rather than a copy of it.
- Maedhros
- Forum: General Discussion
- Topic: Freaky Friday Fun - math geeks unite!
- Subject: Freaky Friday Fun - math geeks unite!
- Replies: 20
- Views: 2788
Posted: July 7th, 2006, 11:36 am
4. A man lives on the tenth floor of a building. Every morning he takes the elevator down to the lobby and leaves the building. In the evening, he gets into the elevator, and, if there is someone else in the elevator - or if it was raining that day - he goes back to his floor directly. Otherwise, h...
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: allowed characters php function problem
- Subject: allowed characters php function problem
- Replies: 6
- Views: 780
Posted: July 7th, 2006, 6:20 am
If someone wanted to return which characters found in that string were not allowed, is there an equally easy method to extract thoose characters using the same segment matching mask (AKA $allowed_chars) ? I don't think there's a php function to do it, no. :( You could modify gisele's function thoug...
- Maedhros
- Forum: Unix / Linux Forum
- Topic: Creating a shortcut
- Subject: Creating a shortcut
- Replies: 2
- Views: 636
- Subject: Creating a shortcut
Posted: July 7th, 2006, 6:04 am
You can use an alias, so you could put something like this in your ~/.bashrc file:
alias tomcat_start="/usr/share/tomcat/startup.sh"
alias tomcat_stop="/usr/share/tomcate/shutdown.sh"
alias tomcat_stop="/usr/share/tomcate/shutdown.sh"
- alias tomcat_start="/usr/share/tomcat/startup.sh"
- alias tomcat_stop="/usr/share/tomcate/shutdown.sh"
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: allowed characters php function problem
- Subject: allowed characters php function problem
- Replies: 6
- Views: 780
Posted: July 7th, 2006, 5:43 am
A shorter version, using strspn, which returns the number of characters in $text that are in $allowed_chars (until it finds the first non-matching character). All you have to do then is check that the number of matching characters is the same as the number of characters in the initial string: [php] ...
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: MPEG decoder open-source library
- Subject: MPEG decoder open-source library
- Replies: 2
- Views: 309
- Subject: MPEG decoder open-source library
Posted: July 7th, 2006, 5:28 am
How about ffmpeg? http://en.wikipedia.org/wiki/FFmpeg
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP Shortcuts!
- Subject: PHP Shortcuts!
- Replies: 11
- Views: 555
- Subject: PHP Shortcuts!
Posted: July 7th, 2006, 5:24 am
If you're still looking for a way to do this, you could try extract($_POST, EXTR_SKIP);
EXTR_SKIP ensures that you don't overwrite any existing variables, so it shouldn't create any security problems.
EXTR_SKIP ensures that you don't overwrite any existing variables, so it shouldn't create any security problems.
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: php session help.
- Subject: php session help.
- Replies: 4
- Views: 415
- Subject: php session help.
Posted: February 13th, 2005, 6:37 am
Presumably one's included by the other one? Just assume that the whole contents of included files get put where the include() statement is, and then all you need to do is put the session_start() before you try using any session variables.
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: phpBB Redirect
- Subject: phpBB Redirect
- Replies: 6
- Views: 550
- Subject: phpBB Redirect
Posted: January 16th, 2005, 2:16 am
Ah, you mean like the 'www.phpbb.com' link here?
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: In unix command wc
- Subject: In unix command wc
- Replies: 3
- Views: 484
- Subject: In unix command wc
Posted: January 15th, 2005, 7:20 am
Hmm, I can't think of how to do that... I know you can just use wc -l readme.txt, so you don't need to use cat., but I don't know about removing the filename. Why do you need it?
- Maedhros
- Forum: Unix / Linux Forum
- Topic: linux os
- Subject: linux os
- Replies: 10
- Views: 9394
- Subject: linux os
Posted: January 15th, 2005, 7:08 am
well.. gentoo is released under thr GPL so vidalinux aren't violating the license agreement in any way, Vidalinux is just a newbie friendly gentoo (well, everybody will agree that it isn't as good as gentoo) The other thing is that probably a lot of people who install vidalinux will eventually inst...
- Maedhros
- Forum: General Discussion
- Topic: Windows VS. Mac
- Subject: Windows VS. Mac
- Replies: 10
- Views: 844
- Subject: Windows VS. Mac
Posted: January 15th, 2005, 3:48 am
meman wrote:
Mac's are for people who have road signs on thier walls and say "rad" when they really mean "thats good".
The same people who think buying clothes from The Gap is a fashion statment.
Ooh, aren't stereotypes fun!
The same people who think buying clothes from The Gap is a fashion statment.
Anyway, it would definitely be a Mac for me, instead of Windows.
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: php, mysql external link script - mysql query problem
- Subject: php, mysql external link script - mysql query problem
- Replies: 30
- Views: 1527
Posted: January 14th, 2005, 9:46 am
Try using mysql_error() to show you what the error is... And please, please use addslashes() or mysql_real_escape_string() on the $_GET['page'] before putting it in the database... otherwise someone could come to your site, and put this in the address bar... ...?page=',''); DROP TABLE links; Or basi...
- Maedhros
- Forum: Programming / Scripting / Coding Forum
- Topic: phpBB Redirect
- Subject: phpBB Redirect
- Replies: 6
- Views: 550
- Subject: phpBB Redirect
Posted: January 14th, 2005, 5:10 am
Where do you want to redirect to and from?
- Maedhros
- Forum: Unix / Linux Forum
- Topic: Best Way to Secure Linux Desktop.
- Subject: Best Way to Secure Linux Desktop.
- Replies: 2
- Views: 986
- Subject: Best Way to Secure Linux Desktop.
Posted: January 13th, 2005, 1:37 pm
Have you seen the KDE Kiosk mode readme? You can find the latest version here: http://webcvs.kde.org/kdelibs/kdecore/README.kiosk?rev=1.55&view=markup You might want to change some of the permissions back again though - I would have thought KDE would write to the filesystem, ...

