Search found 3244 matches

Actual Results

Post Posted: July 26th, 2013, 1:28 pm

Well the entire file is sent you. So you could do a hash of the entire file. However, the first X bytes + a timestamp of file upload would give you something unique. It also depends on if you want to only store a single instance of any given file. If you hash the entire file, you will only ever stor...

Post Posted: July 26th, 2013, 9:30 am

Usually what I would do (simplified) would be to take a hash of the file and save it to a folder with the hash as its name. Then related the hash to the user in a database. On a more complicated level, I would build a hierarchy of folders. The first level related to the first two characters of the h...

Post Posted: July 22nd, 2013, 9:27 am

This beautifully crafted smartphone is a proving ground for the most advanced mobile technologies on the horizon, a showpiece for true mobile innovation. And at the heart of it all is convergence: connect to any monitor and this Ubuntu phone transforms into an Ubuntu PC, with a fully integrated des...

Post Posted: July 18th, 2013, 9:20 pm

To add to this list of language to play with, Go ( is another language that is rising in popularity right now.

Post Posted: July 16th, 2013, 11:17 am

I'd actually highly recommend not going to w3schools, there are far better resources on the net than it. w3schools is usually outdated and plain out simply wrong in a lot of places. If you wan to learn about a php function use the documentation! That's what it's there for. As you can see from the do...

Post Posted: December 29th, 2011, 11:06 am

$HTTP_POST_VARS is a global variable and by default most servers turn them off. You can get the same data by using the $_POST variable.

PHP Code: [ Select ]
if (isset($_POST)) {
$general1 = $_POST["general1"];
  1. if (isset($_POST)) {
  2. $general1 = $_POST["general1"];

Post Posted: November 6th, 2011, 11:26 am

WOW! I didnt think this was really going to happen.

a 1TB HDD from newegg is over $200. They use to be ~$90

Post Posted: November 3rd, 2011, 11:04 pm

So cases prices vary depending on material they are made out of, features they have in side them, and how well they are engineered for air flow. Some features are tool-less installation (for hard drives and cd-rom drives) back plate for cable management and water outlets for water cooling. What your...

Post Posted: November 3rd, 2011, 5:47 pm

Your best bet is to save up and buy everything when your ready, as prices are always dropping and buying something today and not using it is a waste of money in the long run. You'll probably find that over a 6 month period the price of a computer today will drop ~10% or more depending on what new re...

Post Posted: October 18th, 2011, 2:50 pm

grinch2171 wrote:
There are some pretty big name sites that use Drupal as their backend.

Such as

Post Posted: October 12th, 2011, 7:47 pm

I had the 7950GT and it was a good card. Will definitely out perform the 7600GT and should be leaps above your 7300GS.

Post Posted: October 8th, 2011, 1:48 pm

If the first query using the word gets you the same row there is no reason to run the second. One thing to speed up the query is to do an index on the word field.

Post Posted: October 7th, 2011, 8:34 am

I don't have a T3 but I do have a 40D. As far as tips it depends what you bought the camera for. I do a lot of landscape so getting a tripod was one of the first things I did. It helped a lot especially for night shots. I found moving to the manual side of the camera was pretty easy. I haven't done ...

Post Posted: October 5th, 2011, 9:08 pm

Looks like a more insane version of Warrior Dash :lol:

Post Posted: October 2nd, 2011, 11:39 am

Don't you think you should count the occurrences to determine the popularity instead of throwing out a random number?

Post Posted: September 24th, 2011, 1:37 pm

This looks suspicious to me.

Post Posted: September 15th, 2011, 10:18 pm

If you store PHP code in a database and need to have it executed check out eval.

However you should not do this.

Post Posted: September 10th, 2011, 11:15 am

You should be able to set to it to 'bind-address =' and it will bind to what ever it can.

Post Posted: September 9th, 2011, 10:42 pm

You don't need to use the keyword function for the first one.

Code: [ Select ]
  <script language="javascript">
  window.onload = function() {
   setInterval(heart, 1000);
  function heart()
  // stuff here
  1.   <script language="javascript">
  2.   window.onload = function() {
  3.    setInterval(heart, 1000);
  4.   }
  5.   function heart()
  6.   {
  7.   // stuff here
  8.   }
  9.   </script>

Post Posted: September 6th, 2011, 1:21 pm

NodeJS |- Node.js is a server-side JavaScript environment that uses an asynchronous event-driven model. This allows Node.js to get excellent performance based on the architectures of many Internet applications. jQuery Mobile |- Coffee Scripts |- http://jash...

Post Posted: September 5th, 2011, 6:31 pm

Through a friend, I have a contact at Google that may be able to help. He's a adword manager but I believe he works fairly closely with the adsense group. I'll try to contact him and see if he can help.

Post Posted: September 1st, 2011, 9:42 am

I think Android is fairly comparable to iOS. If you are an exchange user and enjoy having your calendar and email on your phone I would recommend staying with the iPhone as it has MUCH better support for it. Also the quality of apps on the iPhone market are higher than those on Android. The Android ...

Post Posted: August 4th, 2011, 11:54 pm

I through this together. I think it works. [code=javascript]function priorElement(html,cursor_pos){ var re = /<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>/gi var matches = html.match(re,html) var elements = []; var positions...

Post Posted: August 3rd, 2011, 11:09 pm

This may help point you in the right direction. [code=javascript]var html = '<h1>Hello</h1><p>Augue pid rhoncus. Proin hac placerat, lectus diam, <a href="#" class="ds"><img src="#" /></a></p>' var matches = html.match(/...

Post Posted: August 1st, 2011, 8:45 pm

I talked to some people about how fast G+ grew, we came to the conclusion "Social networks are in". That doesn't mean we weren't impressed by how quickly it did grow but it was no surprise.

Post Posted: July 12th, 2011, 9:08 am

I'm looking for a tool that will help me map a rather large application. The database is kind of horrid as it has no foreign keys or primary keys. Also the columns follow no particular naming convention. Basically what I want to do is take a query that looks like the following: [code=sql]SELECT Book...

Post Posted: July 6th, 2011, 9:08 am

Well there are a view ways to do this. You can add a table tag in front of all the styles and it will only apply to tables.
CSS Code: [ Select ]
Or if you want ti to apply to a single table on your page you can use an ID. [code=css]#myTable .asterix{color:#f...

Post Posted: June 21st, 2011, 8:51 pm

You can use the MONTH() function to group up each post by month.

Code: [ Select ]
SELECT * FROM table WHERE MONTH(date_field) = 5

Post Posted: June 21st, 2011, 8:41 pm

They values in the columns are not comma separated, only the values that are returned by the API which populates the table. Do to the nature that there is an infinite number of possible keys returned and each key may have more than one value associated with it Im doing a key value pair system to sto...

Post Posted: June 16th, 2011, 9:27 pm

Ubuntu is pretty good about telling you about updates. You don't have to format or anything to upgrade, but its always a good idea to back up important files if something does go wrong.

Code: [ Select ]
sudo apt-get update
sudo apt-get upgrade
  1. sudo apt-get update
  2. sudo apt-get upgrade

Post Posted: June 16th, 2011, 4:12 pm

This is kind of crazy and a little hard to explain. Basically I have a table of customers and a table of metadata. [code] +-----------+ +-------------+ | Customers | | Metadata | +-----------+ +-------------+ | id | | id | | name | | customer_id | +-----------+ | key | | value | +-------------+ [/co...

Post Posted: June 12th, 2011, 10:33 am

I'm not really sure how to do that off the top of my head besides setting a cron job to alter the cron.

Post Posted: June 11th, 2011, 8:41 pm

DO you mean can they read the source of a php script? No, php scripts are interpreted on the server and then apache (or what ever your using) sends the output to the browser/robot.

Post Posted: June 11th, 2011, 6:42 pm

Ya, the robot text isn't to stop people from viewing your files, its just to stop robots, such as google, from indexing files you don't want to be indexed on google. Now if you really wanted to stop people from viewing your robot.txt file you could rewrite the url to a php file and check the user-ag...

Post Posted: June 11th, 2011, 4:40 pm

Its pretty simple if you want to block all robots. Just put a User-agent: * at the top of your robot.txt file, and then use the Allow/Disallow keywords.
Code: [ Select ]
User-agent: * Disallow: /private Disallow: /files Allow: /files/upload.php Disallow: search.php
The abov...

Post Posted: June 7th, 2011, 3:29 pm

Using file_get_contents you need something that will run the script through php interpreter. Apache does that for you, you can do a localhost call if your only running a single website off your server, otherwise you need the domain name to map to a virtualhost.

Post Posted: June 7th, 2011, 3:27 pm

After quite a bit of digging I found something that works. Probably not the best way to do it but it works for me. [code]export VERSION=`cat $SRC_DIR/ | grep RELEASE_VERSION | sed 's/[^0-9\.]//g' | cut -d . -f 1-3 | sed s/" "//g` export RELEASE=`cat $SRC_DIR...

Post Posted: June 7th, 2011, 11:19 am

I'm writing an RPM build script and I need to parse out some information from a build number. The idea is every time a build is made the last place of the version is incremented by one automatically (This is done by a preset script in our build system). The format that it requires is so: 1.0.0.[colo...

Post Posted: June 6th, 2011, 8:25 pm

You can create a http request to template.php via convert.php and capture its output. Much like you would do with any other page.
Code: [ Select ]
You can do the same from the command line using exec. [code]exec("/usr/bi...

Post Posted: June 6th, 2011, 10:00 am

How many bars do you have on your connection and whats the speed difference over wireless compared to a wired connection?

Post Posted: June 3rd, 2011, 7:02 pm

I was scared for a while till I saw the regular desktop.

Post Posted: June 3rd, 2011, 6:57 pm

Agree with spork, but I believe thats why google mentioned that last part. Looks like they published it just to make people aware.

Post Posted: May 30th, 2011, 7:59 pm

What it return any errors, or does it say it was a success?

Post Posted: May 4th, 2011, 10:21 pm

Well perl is probably most widely used as a command line program. Its definitely used for websites. Using it on the command line is pretty straight forward. You simply have to add a path to the executable in your PATH environment variable and your good to go. You may have told the installer to go a ...

Post Posted: May 2nd, 2011, 9:10 am

You will probably have to configure Apache if you want to write websites. Otherwise you can just use the command line.

Post Posted: April 30th, 2011, 1:12 pm

I use Rubular:

Post Posted: April 26th, 2011, 6:28 pm

I just started reading up on node.js. I've been searching around for the past few hours and read a lot about it. Then I found this AMAZING website: A complete home run! I can totally relate to this guy and he does a pretty good job explain node.js and what javascript really ...

Post Posted: April 25th, 2011, 12:32 pm

A little while ago google had an interesting doodle that was a little animation. Im wonder if you could do the same thing with Captcha. Basically have an image with a-zA-Z0-9 listed out and then use CSS/Javascript to move the image t...

Post Posted: April 22nd, 2011, 11:17 pm

You can do the following:

Code: [ Select ]
var mFrame = document.getElementById("frame_name");
var content = mFrame.contentWindow.document.body.innerHTML;
  1. var mFrame = document.getElementById("frame_name");
  2. var content = mFrame.contentWindow.document.body.innerHTML;

Post Posted: April 22nd, 2011, 2:04 pm

Have you tried running the php script? I'd ignore a red line and just run the code to see what errors php gives you.

Post Posted: April 22nd, 2011, 11:33 am

Most likely yes, there is probably nothing in there that you need.

Post Posted: April 21st, 2011, 11:04 am

I've come to the conclusion that your just not allowed to declare any pointers yourself. Which brings in the use of std lists, stacks. The solution I came up with doesn't use any pointers as far as I can tell besides maybe some deep underlying ones. But my solution also doesn't really "reverse&...

Post Posted: April 21st, 2011, 12:28 am

I got it!

Kind of sneaky, really quite simple though. Anyone hazard a guess?

Post Posted: April 21st, 2011, 12:17 am

This question got thrown at me today. Reverse a string without using pointers or arrays (Including cstrings). Im still wrapping my head around this one and wanted to throw it out here to see if anyone else has an idea. The more I think about this, the more I think they question was asked incorrectly...

Post Posted: April 20th, 2011, 11:33 pm

Ya, I don't see any practical use yet. I'm sure someone will find something interesting to do with it though. To me its an interesting spin off of pastebin. The best example I can come up with is twitter and wanting to to write a blog post. You don't need to sign up for anything (much like pastebin)...

Post Posted: April 20th, 2011, 4:32 pm

This is kind of interesting, none of the data is really stored anywhere unless you use a URL shortener. Hashify Hashify does not solve a problem, it poses a question: what becomes possible when one is able to store entire documents in URLs? Document ↔ URL Hashify is different from virtually every ot...

Post Posted: April 20th, 2011, 3:53 pm

What are you trying to do?

Post Posted: April 20th, 2011, 2:33 am

Javascript is (for the most part) client side. Its used to modify the page after it has been sent to the browser. Its mainly used to make websites more interactive. Its kind of the icing on the cake for most website. If you want to learn javascript you could write some small projects to do simple th...

Post Posted: April 19th, 2011, 8:41 am

Do you want to disable all query logging or just make sure passwords/hashes don't show up in the file? When you go into production mode you will not see any query logs.

Post Posted: April 19th, 2011, 12:04 am

CMS are usually "plug and play" websites. There is a base premade system that you can extend with modules or plugins. You really don't need to know any code to use a CMS. MVC is a software architecture, that you can use to develop application. Codeigniter is a PHP framework that utilizes t...

Post Posted: April 18th, 2011, 3:37 pm

You can enter `root` for the login and what ever you set the password too for the password. Once your in you can create a new user account if you like (general a good idea as running as root is never a good practice).

*note that when you enter the password nothing will show up, everything is hidden.

Post Posted: April 18th, 2011, 1:32 pm

There was a small article my my local paper about a software company that took their entire office to Italy for a month of working abroad . Now I've hear of studying aboard, but working?! How neat is that! Anyways I started looking at some of their work and they have some pretty interesting projects...

Post Posted: April 18th, 2011, 11:05 am

The suEXEC feature provides Apache users the ability to run CGI and SSI programs under user IDs different from the user ID of the calling web server. Normally, when a CGI or SSI program executes, it runs as the same user who is running the web server. Th...

Post Posted: April 17th, 2011, 2:57 pm

Also be aware of free proxies, or proxies in general because they can easily steal anything and everything that goes through them.

Post Posted: April 17th, 2011, 12:28 pm

Stick with vmware and just run Ubuntu in headless mode :) If your having trouble with it I'll help you out.

Post Posted: April 17th, 2011, 12:25 pm

Post Posted: April 17th, 2011, 12:22 pm

My guess is one combines them (the variables) and the other runs the command twice.

Post Posted: April 16th, 2011, 2:48 pm

Why exactly do you want to put youtube into an iframe on your site? Every video can be embedded into a site with the code provided at youtube (With the exception of certain videos do to author copy right).

Post Posted: April 16th, 2011, 11:12 am

The below code loads in Chrome 10, Firefox 4 and IE 8 for me.
Code: [ Select ]
<html> <body> <?php echo "Hello Browser!"; ?> <iframe src="" height="500" width="500"></iframe> </body> </html>

Post Posted: April 16th, 2011, 11:03 am

It will set it to a default, which for me is Times New Roman. You can set a font using CSS. The visiting browser will try to use that font if it can. If it doesn't have the font it will use its default. Its not much of a bug, its just the way browsers work.

Post Posted: April 16th, 2011, 10:29 am

jQuery UI has some pretty neat effects. Check out the blind effect:

Post Posted: April 16th, 2011, 10:21 am

I like the color scheme. Its very fitting for the angry birds world. The first thing that caught my eye was the font of your text. Its not set to default to anything so on everyones computer its different. It looks to be Times New Roman on my computer, which isn't the greatest of fonts for a website...

Post Posted: April 15th, 2011, 1:18 pm

When I wrote my big number/big int program I used C++ Classes and also overloaded the operators. It really depends on what the requirements are. I would probably have sub return a new BigNumber as to preserve both the initial numbers, but I don't know what the requirements are.

Post Posted: April 14th, 2011, 12:23 pm

It probably has something to do with your subtract function. Also your print function seems strange to me. Your using the first element to figure out how many numbers to print. Does that first element always contain the length of the number?

Post Posted: April 11th, 2011, 11:24 pm

Just out of curiosity, did you restart/reload apache?

Post Posted: April 7th, 2011, 2:38 pm

I started up my Windows 7 machine and got a funny message. It was a prompt (much like you get when you copy and paste files and it asks you to overwrite) that asked if I wanted to backup my encryption certificate. It had the option to do so, long with a remind me later and never. I clicked the backu...

Post Posted: April 7th, 2011, 1:51 pm

Can you post your cron line (just the timing part). With your standard cron you can specify a time, to get an interval you do a little more and that really comes down to when you first started it. The easiest way to get an on the minute is to run 4 different cron, one for 0, 15, 30 and 45. You might...

Post Posted: April 6th, 2011, 1:22 pm

My only guess is your running into a memory limit or execution time problem.

Whats the most data you can do without it freezing on you and how long does it take?

Post Posted: April 6th, 2011, 1:17 pm

putc prints a character to the file. Right now your print the ascii character that is represented by the numeric number in your array. Try adding 48 to each number to save to the file. [code]putc(N[i]...

Post Posted: April 5th, 2011, 12:25 pm

I want to be able to determine if a user has javascript enabled for their browser. This way when they first visit my page I want set a session variable that will tell me if I can use ajax, or if I can't. I was thinking of an ajax request, until I hear from the ajax request server side I assume the b...

Post Posted: April 4th, 2011, 8:41 am

You'd first need to get some javascript code to manage the drop down effect. After that its just a matter of printing that array into the correct format the javascript code requires.

Post Posted: April 1st, 2011, 3:45 pm

throw the mysql_error() in with your error log and see if it gets printed out there.

Post Posted: April 1st, 2011, 2:52 pm

You probably dont want to use die() as it exits your script. Just return false so you can handle the error later.
Are you setting silent to false?

Post Posted: April 1st, 2011, 12:39 pm


Do you remember when websites use to look like that?

Post Posted: April 1st, 2011, 11:42 am

You mean for when you are displaying them?

Such as on this page: forum/

I don't see any reason not to use a nested loop.

Post Posted: March 31st, 2011, 12:48 pm

I use to use ZENworks, can't really say how great it was as its the only software I ever used. Did the job though.

Post Posted: March 30th, 2011, 9:49 am

It probably has some sort of timeout mechanism. So if the connection isn't used for x seconds (mysql defaults to 100 I believe) it will kill the connection.

If you dig through the configuration settings you'll probably find something like remote timeout or just regular timeout.

Post Posted: March 29th, 2011, 7:15 pm

Hey flashter, if you remove the period from the URL you can post it. After you do so one of us will make the link clickable.

http ://Www .example com/page

Post Posted: March 28th, 2011, 1:24 pm

I know in MySQL your server will never really ever "free" memory. On my servers I usually run 80% of the system memory for the MySQL server. Keeping all the tables in memory is a lot faster on queries than reading from the disk every time. After a few hours of my server running my database...

Post Posted: March 27th, 2011, 9:05 pm

The only reason for refreshing your page a few times would to help clear the cache on your browser, which can also be done by Ctrl+F5.

Post Posted: March 27th, 2011, 7:52 pm

You'd have to create an actual DVD with multilingual support. ... iling.html

That should allow the students (if their dvd players support it) to change between languages either in the menu, or as the video is playing.

Post Posted: March 27th, 2011, 5:58 pm

Im not sure how I would test that, Unless I was to take a framework and replace all tabs/spaces and then run a time trial on it.

Post Posted: March 27th, 2011, 12:12 pm

I use my tab key for indents but I always change my editors to insert spaces instead of tabs. When moving betweeen operating systems and displaying code on websites it just makes the formatting easier.

Post Posted: March 26th, 2011, 5:40 pm

That means there is an error in the query. You need to check your log for the error to figure out whats wrong with it. Do you not have a mysql_error() function someplace in your database class?

Post Posted: March 26th, 2011, 4:50 pm

SQL Code: [ Select ]
SELECT cms_forum_cat.catID,catName,catDescription,forums,forumID,forumNAME,forumDescription,topic,posts,lastPoster
FROM cms_forum_forums
LEFT JOIN cms_forum_cat ON cms_forum_forums.catID = cms_forum_cat.catID
  1. SELECT cms_forum_cat.catID,catName,catDescription,forums,forumID,forumNAME,forumDescription,topic,posts,lastPoster
  2. FROM cms_forum_forums
  3. LEFT JOIN cms_forum_cat ON cms_forum_forums.catID = cms_forum_cat.catID

Post Posted: March 26th, 2011, 1:37 pm

Ozzu translates each post via the google API (I believe) and then caches the results.

Post Posted: March 26th, 2011, 12:43 pm

I always buy full towers when I build any computer where I'm going to be putting any sort of high end graphics card in. My friend recently build a new computer, he bout a Radeon 6870 and it barely had enough room to fit in the length of his case. All wires had to be routed under the card because the...

Post Posted: March 25th, 2011, 5:05 pm

I added a simple line of css and got the white on the sides to go away.

Code: [ Select ]
    background-color: #000;
  1. body{
  2.     background-color: #000;
  3. }

Post Posted: March 25th, 2011, 3:31 pm

You're just going to loose the PCI 4x slot if you use that card. I dont see any reason why it wont fit.

Post Posted: March 23rd, 2011, 1:59 pm

So salting just makes things a little slower for someone you has gained access to your database. Instead of using a standard rainbow table they would have to generate a new one for the salt. Also if you use a different salt for each user it requires just that much more time to gain access to all the...

Post Posted: March 20th, 2011, 12:24 am

There was a reply posted to the thread that got deleted.

Post Posted: March 19th, 2011, 4:31 pm

Change all your paths to absolutes from the root of your public folder.

If your were storing your images under:

Code: [ Select ]
<img src="/images/image.jpg" />

Post Posted: March 10th, 2011, 4:40 pm ... t-you.html

Just what I want, thank you google!

Post Posted: March 10th, 2011, 4:04 pm

Is the "query" just a page request that returns a XML file? I know how to do this with SQL but I'm not quite sure I understand how you are making the request. If its just a request to a page you might be able to use curl to download the file to your hard drive and then interact with it how...

Post Posted: March 7th, 2011, 10:57 am

Say you wanted to see all the traffic coming from just the major search engines (Google, Yahoo, Bing) you could create a filter that exclude every other site but those.

Post Posted: March 7th, 2011, 10:54 am

I wouldn't worry about a thing right now. The catch is your only allowed so much CPU time (Which is probably burstable, if others on the same server arn't using their share you can tap into it). Once your site starts to become to demanding for bluehosts shared hosting and starts to impact other user...

Post Posted: March 5th, 2011, 3:17 pm

Are you looking for a way to show the tree graphically or just represent it in code?

Post Posted: March 3rd, 2011, 12:35 pm

aah, that would explain why I am getting a 500 error when I added the directory part. I guess I'll change the rewrite to to the following and just have a script print the text to the browser.
Code: [ Select ]
RewriteEngine on RewriteRule ^src/(.*)$ /$1 [L]
[code=python] #!/usr/bi...

Post Posted: March 3rd, 2011, 1:58 am

I think I may have found how to do this.
Code: [ Select ]
<Directory /src/*> AddHandler default-handler .py .php </Directory> RewriteEngine on RewriteRule ^src/(.*)$ /$1 [L]
The only question is, will the rewrite cause the directory part to never be true because it alway...

Post Posted: March 3rd, 2011, 1:35 am

I'm looking for a way to serve both a script and its source without uploading two files. Basically I have a subdomain which you can run scripts on, but I'm looking to do is handle request to differently. Instead of running the files through an interpreter I just ...

Post Posted: February 6th, 2011, 10:38 pm

Your checking your question array (ques[i]) and not your answer array (ans[i]).

Post Posted: January 20th, 2011, 4:42 pm

Your using global variables as constants.

Post Posted: January 20th, 2011, 4:34 pm

I doubt you will able to to use both outputs and the built in monitor. You may however be able to use both outputs and turn on the built in monitor. It really comes down to what graphics card is being used. Unless you have eyefinity support you will only be able to use two of the three outputs (Wher...

Post Posted: January 11th, 2011, 11:12 pm

Borland C++ was last released in 1999, the version the post is using was released in 1994. The Borland C++ project no longer exists it has (after a few morphs) turned into C++ Builder, last release August 30, 2010.

There is no reason to use Borland C++.

Post Posted: January 11th, 2011, 11:31 am

Is there a reason your using Borland? The release date could very well be older than you are. If you can I'd suggest downloading the free version of Visual Studio Express.

Post Posted: January 11th, 2011, 11:29 am

Your looking for a sticky footer:

Its very tricky to get to work. You almost have to do your sticky footer code first and then builder around it. A lot of things can break it.

If you have any problems feel free to ask though :)

Post Posted: January 1st, 2011, 1:22 am

Happy new year from the west coast!

Post Posted: December 28th, 2010, 8:12 am

I would highly suggest you use a different compiler. Dev-C++ hasn't been updated in over 5 years. If your running windows I'd suggest using Microsoft Visual Studio Express for C++.

Post Posted: December 27th, 2010, 9:11 am

I'm working on a new project with a friend of mine and we started to talk about our database. I've never taken a formal class and it was interesting to design a database with him as he's taken a few. We got onto the subject of stored procedures. His professors have drilled it into his head to use th...

Post Posted: December 22nd, 2010, 1:46 pm

Thought I'd bring this back up. With the new web store for google chrome there are a lot of cool web apps that I've been find out about along with some cool extensions. Screen Capture (by Google) Aviary Screen Capture And to go with either Avairy web apps I don't use the Aviary screen capture, thoug...

Post Posted: December 22nd, 2010, 1:26 pm

Depends on your budget, you can easily run Black Ops with a $100 card. You may not be able to run max settings but you could get pretty decent frames on mid level. If you want to be able to max out the card running 1080p with 8x anti alias you would probably need to spend closer to $200-$300. Basica...

Post Posted: December 21st, 2010, 3:33 pm

I'd only buy them if you have a personal use for them.

Post Posted: December 21st, 2010, 2:53 pm

My guess is that there is some code further up the page, or maybe in another part of the plugin that tells when it should be used.

Is the plugin added via the widget sidebars?

Post Posted: December 21st, 2010, 2:49 pm

One thing to note about anchor links.

They like to be position on the top of the page and to the furthest right.

On a normal page this forces the page to be scrolled as far to the left side of the page as it can be.

Post Posted: December 21st, 2010, 1:11 pm

Where is this code from?

Post Posted: December 21st, 2010, 1:09 pm

If you knew the dementions of the page yes, and you would need an anchor link to supply to the iframe. You could disable the spidebars so that you couldnt scroll aswell.

Is there any reason your doing this with iframes and not server side code?

Post Posted: December 20th, 2010, 5:22 pm

Are you talking about the page turning? or what exactly?

Post Posted: December 20th, 2010, 2:06 pm

Hey Bogey A ATI Radeon HD 5400 is a very low power card. The x1950 was on the high end of its series, the 5400 is on the low end of its series. In the 5xxx series you'd probably want something 5750. Here is a breakdown for video cards for the Bad Company 2 game with the following settings (1920x1200...

Post Posted: December 20th, 2010, 12:23 pm

If you want the warning message not to appear you can disabled it with the error reporting function

Post Posted: December 18th, 2010, 1:25 pm

32gig SSD or a 320 HDD for an external OS boot disk. With the SSD i'd partition it into 4 primarys. Allowing for three bootable OS and one 8 gig file transfer/whatever (aka viewable by windows). With the HDD I would basically just get a *plum* ton more file transfer space because the OS wouldn't nee...

Post Posted: December 17th, 2010, 10:24 am

What your looking for is called pagination. ... -with-php/

Post Posted: December 16th, 2010, 1:30 pm

I read a neat idea (linked below) today as I was searching to see if there was an SSH extension for google chrome. So far I haven't found anything but in the link they talked about having google chrome handle the ssh:// protocol. When clicking a new link it would open a terminal in the new window. T...

Post Posted: December 16th, 2010, 8:08 am

I'm not at a place where I can test this code out, but I was wondering how the count function of MySQL works. Does it neglect NULL rows? For example, I want to count the total number of rows in a table that have a value for some field. Normally I would just do soemthing like [code=sql]SELECT COUNT(*...

Post Posted: December 16th, 2010, 8:01 am

Sounds about right. You could probably use a subquery to get the largest room number, but there's a lot of ways that could break if rooms were removed or something. [code=sql]SELECT date_booked, COUNT(room_id) AS rooms_booked FROM bookings WHERE rooms_booked = (SELECT room_id FROM rooms ORDER BY ro...

Post Posted: December 16th, 2010, 7:58 am

As far as the numbers go your looking for 16-24 C and 45% - 50% humidity. These numbers kind of depend on the pessure in the room aswell. The idea is to run right above the dew point so your getting the lowest temperature without water condensation. Having a lower humidity would allow you to lower t...

Post Posted: December 14th, 2010, 8:50 am

I personally go through phases ;) during the week I'm a designer and on the weekend I'm a developer. I can totaly relate to the "Boss who don't code" I work with a friend of mine, he's basically the boss because he pays for everything and I just work on his ideas (I do the engineering but ...

Post Posted: December 12th, 2010, 11:01 am

What are the errors? Those are really help fully.

Post Posted: December 8th, 2010, 11:23 am

Using simplexml_load_string will give you an object, you can then look at how the object is formatted to get an understanding of how to move through it.

Code: [ Select ]
$xml = simplexml_load_string($string);
  1. $xml = simplexml_load_string($string);
  2. print_r($xml);

Post Posted: December 6th, 2010, 12:36 pm

To be able to have a signature you need to be a member for atleast 90 days and have a post count equal to or greater than 150.

See New Signature and Link Restrictions

Post Posted: December 6th, 2010, 12:34 pm

You can use the COUNT function in the select field for finding total rows, and for returning that last 10 rows you can use LIMIT.
Code: [ Select ]
Code: [ Select ]
For the last one field is some value that has an order to it, such as an ...

Post Posted: December 6th, 2010, 12:23 pm

Its a feature :)

Since off topic forums such as the posting games don't directly contribute to the community they are not counted towards a users post count.

Post Posted: December 6th, 2010, 12:18 pm

A good Keyword to search for is "skybox"

Here is a wiki entry from with example code in Open GL

Post Posted: December 6th, 2010, 10:28 am

This is what I came up with after a while

Code: [ Select ]
function name(p1,p2) {
  return (3+p1-p2) % 3;
  1. function name(p1,p2) {
  2.   return (3+p1-p2) % 3;
  3. }

Returns '1' - Player one has won.
Returns '2' - Player two has won.
Returns '3' - Tie between players.

Where p1, p2 are:
0 - Rock
1 - Paper
2 - Scissors

Post Posted: December 6th, 2010, 7:48 am

You might also go to your computer proporties and see if all the ram is still showing up. It could of gotten loose from moving your laptop around or possibly died.

Post Posted: December 5th, 2010, 7:02 pm

I've been coming across a TON of these websites and its really annoying, the StackExchange sites usually come up first on google, but going to another website that has the exact same answer just gets old. They are just direct copies of the StackExchange network. The questions and answers come from s...

Post Posted: December 5th, 2010, 8:24 am

Are you getting any sort of errors, and is error reporting enabled?

Post Posted: December 4th, 2010, 8:00 pm

Go to your run prompt and enter dxdiag.

Post Posted: December 4th, 2010, 7:59 pm

Then there is probably something wrong with your installation/network. That guide tells you how to connect to an Oracle server. A guide/tutorial probably wont help you. Where is the Oracle server hosted?

Post Posted: December 4th, 2010, 5:54 pm

What graphics card do you have? Freezing might be the drivers.

Post Posted: December 4th, 2010, 3:37 pm

Did you hit the mute button ;)

Post Posted: December 4th, 2010, 12:21 pm

Check out this FAQ on oracle:

Post Posted: December 3rd, 2010, 5:54 pm

PHP Code: [ Select ]
// Just for show
$m1 = "m 1";
$m2 = "m 2";
$m3 = "m 3";
$m4 = "m 4";
$m5 = "m 5";
$m6 = "m 6";
$m7 = "m 7";
$m8 = "m 8";
$s = 4;
$temp = "m".$s //m4
echo $$temp; // "m 4"
  1. // Just for show
  2. $m1 = "m 1";
  3. $m2 = "m 2";
  4. $m3 = "m 3";
  5. $m4 = "m 4";
  6. $m5 = "m 5";
  7. $m6 = "m 6";
  8. $m7 = "m 7";
  9. $m8 = "m 8";
  11. $s = 4;
  13. $temp = "m".$s //m4
  15. echo $$temp; // "m 4"

Post Posted: December 3rd, 2010, 5:47 pm

Maybe I should clarify it actually has to take two player inputs as arguments and return the winner.

Whether you pass those values by reference in an array, class, struct or anything else is up to you. Besides Bogey, that's not a function :P

Post Posted: December 3rd, 2010, 4:17 pm

This might be a dud but I'm wondering how many ways can you write a function to tell you the outcome of who would win in a game of Rock Paper, Scissors. Argument choose is yours, the function just has to return some sort of answer that would tell you who won the game, aka player 1 or player 2 or a d...

Post Posted: December 2nd, 2010, 8:24 am

I think something simple like this will work when placed in the mall-admin directory.
Code: [ Select ]
RewriteEngine on
RewriteRule ^(.*)$ /mall-admin/$1
  1. RewriteEngine on
  2. RewriteRule ^(.*)$ /mall-admin/$1

Post Posted: December 1st, 2010, 1:20 pm

Your going to need to store either the complete path to the image or at least add on the complete path.

If the images folder is at the root of your domain all you will have to do is add a slash infront /images/abc.jgg

Post Posted: December 1st, 2010, 7:49 am

So the code in your last post does not display the image?

What value are you storing in the database? If the image isn't being displayed your probably not calling the image from the root of the domain, which in a lot of cases is what it needed.

Post Posted: November 30th, 2010, 1:17 pm

I haven't found the benchmark tools I want to use yet. I want a few different kinds. One that mainly hammers the cpu and another that hammers the ram. I have fairly cheap ram so I want to be able to test the cpu without the ram crippling the test. I think for my CPU I may just compile a kernal. This...

Post Posted: November 30th, 2010, 8:00 am

Are you basically asking how to connect to a database and retrieve information?

Post Posted: November 29th, 2010, 11:35 am

The above PHP is encoded with IonCube, take a look at their website:

As far as decoding it... well its encoded for a reason. You might want to check the license for the software that the file comes from.

Post Posted: November 29th, 2010, 10:52 am

You might check your settings in filezilla and change the way its being uploaded. Check your Transfer->Transfer Type, it's either in ASCII or Binary. Try switching the mode. My guess is that its in Binary. For a text file you will want ASCII. Check this link out for more information: http://wiki....

Post Posted: November 29th, 2010, 10:44 am

I know this can easily be code, as far as something thats already made I have no idea.

Post Posted: November 29th, 2010, 10:43 am

I almost got myself an elk this morning going 55 into work :D, would of done terrible things to my car though :(

Post Posted: November 29th, 2010, 10:31 am

The first thing you need to do is figure out what avaiable PCI slots you have. Most likely you will have a standard PCI slot open, maybe a PCI Express 1x. D-link and Linksys provided some very reliable cards, most of which will require no software installation. Just plug it in and go. D-Link and Lin...

Post Posted: November 28th, 2010, 8:50 pm

My guess is all formatting is removed which can easily be fixed by using an actual editor rather than nodepad. If that doesnt work there are plenty of websites out on the web that will format php code.

Post Posted: November 26th, 2010, 10:45 am

Thats actually really neat.

Post Posted: November 25th, 2010, 2:07 pm

Woo! I have 21 people over at my house this year :shock: 40lb of Turkey!

Post Posted: November 24th, 2010, 4:08 pm

SQL Code: [ Select ]
SELECT ID, name, value1, value3 FROM your_table

Post Posted: November 24th, 2010, 1:24 pm

This works but seems kind of messy
Code: [ Select ]
, its basically running two expressions, one for http and another for the www.

Post Posted: November 24th, 2010, 1:01 pm

I'm trying to write an expression to remove all urls from a string, so far I have this
Code: [ Select ]
It will match everything in this string but a url starting with www . I should be a very simple addition to the regex but I can't seem to figure it out. [c...

Post Posted: November 23rd, 2010, 11:32 pm

Did you restart the service after making any changes?

Post Posted: November 23rd, 2010, 11:00 pm

Open up your httpd.conf file and remove the hash from in front of the mod rewrite module.

Post Posted: November 23rd, 2010, 1:11 pm

Depends on the work I do, most of the time I do all the site updates. I charge a fee per year for hosting and running the site. I do small and simple tasks that don't change the scope of the website for free (included in the annual host). If they want to have full control of the source I don't offer...

Post Posted: November 23rd, 2010, 12:29 pm

Ya that storm pasted over here. We got 12 inchs still have a white sky, right now its 20f out.

Post Posted: November 23rd, 2010, 12:20 pm

IDE/Editor Eclispe PHPDesigner Aptana Nodepad++ Frameworks Zend Cake CodeIgniter For AJAX/Javascript look into Jquery. As far as the home server goes, what do you mean? Most development environments don't require any sort of domain attached to them for public access. As far as the number of databas...

Post Posted: November 23rd, 2010, 12:12 pm

Its run constant more or less. I cleared the CMOS and it started back up with out a hitch.

I'll get to those benchmarks now.

Post Posted: November 22nd, 2010, 1:53 pm

Alright so I would post some benchmarks but I can't get the computer to even display anything right now. No signal is going out to the monitor :scratchhead: Havn't messed with it to much, I think I'll just have to pull out a jump and reset the bios and see if something I did is causing it to get hun...

Post Posted: November 22nd, 2010, 10:02 am

That snow from Seattle hit over here about 9 PM or so last night. Only got a few inches though.

Post Posted: November 20th, 2010, 3:03 pm

Hmm I've never heard of a motherboard not being compatible. I just bout a new computer that has a MSI motherboard, but tis quite new. How old is your computer?

Post Posted: November 20th, 2010, 2:49 pm

Here is an example on how to use the first table: [code=sql]SELECT DISTINCT FROM permission JOIN permissionName ON permissionName.ID = permission.permID WHERE ( permission.reference = %userID% AND permission.isGroup = 0 ) OR ( permission.reference = %group...

Post Posted: November 20th, 2010, 2:19 pm

The later table might be better because it would allow you to search the table with both the userID and the groupID, telling it to return all permissions where either is set to some value, then return all unique permID's that way you don't get duplicates. Just a added note, for the later table at le...

Post Posted: November 20th, 2010, 2:16 pm

Code: [ Select ]
table: permissionNames --- ID --- name table: permissions --- ID --- permID --- isGroup --- reference -OR- table: permissions --- ID --- permID --- groupID --- userID
For the first table isGroup is a boolean value, it tells you if reference is pointing to a group or a ...

Post Posted: November 20th, 2010, 2:06 pm

Only put a single value in any given field.

Post Posted: November 20th, 2010, 2:05 pm

Can you summarize what your problem is at this instance? Its hard to tell exactly whats happening through all the posts now.

Post Posted: November 20th, 2010, 1:24 pm

Split each permission into its own row.

Post Posted: November 19th, 2010, 10:11 pm

Post your entire php.ini (expect any sensitive information, which I dont think it has though)

Post Posted: November 19th, 2010, 7:15 pm

Thats a huge main.c file :shock:

Post Posted: November 19th, 2010, 5:00 pm

That's probably because you have error reporting to none in your PHP.ini file

Post Posted: November 19th, 2010, 4:50 pm

Hmm I just glances through it. Anyways I just got off, ill see what I can find.

Post Posted: November 19th, 2010, 4:48 pm

My guess is that it would yell at you. I'd assume that all variables for the ini file are preset inside the program. Reading the ini file just overwrite them. This might not be the case for every value but you might get away with not having one. It may also make a new one with the bare essential var...

Post Posted: November 19th, 2010, 3:43 pm

Did you set the sendmail_path varible in your php.ini file to that location (Or just uncomment the line, since thats the default path)?

Post Posted: November 19th, 2010, 2:41 pm

In a terminal.

Post Posted: November 19th, 2010, 2:30 pm

Ahh, I thought you were back on windows.

Code: [ Select ]
# which sendmail

Does that return anything?

Post Posted: November 19th, 2010, 12:59 pm

Has anyone played around with PHP and IMAP before? Right now I collect all contact messages in my database so its easily readable by a group of administrators. Each administrator can then accept a message they want to respond to and its put into their queue, basically just a reminder for them. Once ...

Post Posted: November 19th, 2010, 12:14 pm

Can you post a screenshot :D

In my experience you need to set a hight attribute.

CSS Code: [ Select ]
#footer {
    width: 976px;
    height: 2em; //
    clear: both;
    color: #333;
    margin:0 auto;
  1. #footer {
  2.     width: 976px;
  3.     height: 2em; //
  4.     clear: both;
  5.     color: #333;
  6.     margin:0 auto;
  7. }

Post Posted: November 19th, 2010, 11:36 am

SSL is just an encryption between the client and your server. How secure your actual cart is completely in your hands and theres no standards to using it. You can get SSL for free, it just wont be a trusted certified. (The browser wont automatically accept it. It will warn the user and require them ...

Post Posted: November 19th, 2010, 11:25 am

This might help you out. I don't think its heavily specific to this host. It looks to be a pretty generic setup. Give it a quick read through and see if it helps you answer any of your questions about webmin and sendmail. After I get off...

Post Posted: November 19th, 2010, 11:05 am

What mail services are you using?

Post Posted: November 18th, 2010, 7:36 pm

Read the first paragraph of the link Bogey

Post Posted: November 18th, 2010, 4:35 pm

Change your password.
Change your secret question.
Change your email password.
Change your emails secret question.

Anything and everything that can be used to gain access to your WoW accounts password change.

Post Posted: November 18th, 2010, 2:33 pm

You can pretty much use any hardware. No server will run itself :) but you can get them setup pretty close to not having much interaction with them. There really isnt much of a differents between a server and a home computer. The hardware you may use might be slightly different. A lot of server moth...

Post Posted: November 18th, 2010, 10:12 am

Fedora Core usually has the latest releases of software. Cent OS runs a little behind, but very stable. Ubuntu is kind of in the middle. The big difference between Ubuntu and the other is that Ubuntu has no root user. Ubuntu is a branch Debian, where as Fedora and Cent OS are branches of Red Hat. (F...

Post Posted: November 18th, 2010, 7:47 am

First pick an operating system. I personally prefer linux and the sites I'm going to link you to are for setting up a linux server. When you talk about web servers you mostly hear about LAMP stacks, which stands for: Linux Apache MySQL PHP. The operating system is Linux, below are two guides to inst...

Post Posted: November 18th, 2010, 7:29 am

I thinking this might answer your question If you're going to use PHP's mail() function, there are three variables you may need to set. The SMTP and sendmail_from variables (on Windows) or the sendmail_path variable (on UNIX) are used when sending e-mail messages through PHP's mail() function. On Wi...

Post Posted: November 17th, 2010, 3:04 pm

This posts explains this idea perfectly:

Post Posted: November 17th, 2010, 11:43 am

So I have this idea, right now I'm running dual monitors with dual cubes. Its nice but you can't move windows between the two monitors (for good reason, they are two seperate cubes). Now what if you could run a single cube and have your two monitors display off of it? It would work the same as any 3...

Post Posted: November 17th, 2010, 7:41 am

No ocean salt air around here haha, the Cascades pretty much take care of that.

Post Posted: November 16th, 2010, 8:56 pm

Haven't done any benchmarks yet, probably will get to that this weekend. I clocked it up to 3.12GHz and its running steady at 22c. For fun I went down to the hardware store and bout some vent piping and rigged up a pipe out side to run air directly to the CPU heat sink, now its running at 10-13c (Ou...

Post Posted: November 16th, 2010, 12:57 pm

I can throw a mean curve ball.

Post Posted: November 16th, 2010, 11:34 am

It snows everywhere around me, just not on me :( Its amazing how much a couple hundred feet of elavation does.

Post Posted: November 15th, 2010, 11:06 pm

I like how Bogey has been talking to himself for the past 10 posts :) Did you end up enabling the USB controller? I have a feeling that will fix your keyboard and mouse problem.

Post Posted: November 15th, 2010, 6:47 pm

I clean mine out once a year usually, sometimes twice. I use to format my machines once a year too.

Post Posted: November 15th, 2010, 6:33 pm

What error are you getting?

Post Posted: November 15th, 2010, 3:20 pm

You should be able to, when you install Win 7 just tell it to format your hard drive. It will warn you and tell you that doing so will delete all of your data. You won't have any problem deleting your Ubuntu partition. You might be able to install Win 7 as a fresh install. You would probably need to...

Post Posted: November 15th, 2010, 2:20 pm

Probbably only and upgrade. Meaning you need to have windos XP/Vista prevously installed. Dual booting is nice, but the problem is you have to restart lol. I use windows depends programs to much to run a dual boot. I actually ended up building a second desktop to run Linux on to setup next to my mai...

Post Posted: November 15th, 2010, 1:18 pm

I'm assuming by header variables your referring to URL query strings.

Code: [ Select ]

Look into using $_GET[]. After you have the values of the varibles you can use condition statments if/ifelse or a switch to determine what to do when certain values are present.

Post Posted: November 15th, 2010, 7:53 am

Hello webxperts! Please make sure you follow our website review rules. Unfortunately you broke the first rule: Please review at least three other sites first and give some constructive criticism regarding their site. Posting replies such as "looks good" or "nice site" will not sa...

Post Posted: November 15th, 2010, 7:07 am

If you still want to play around in Linux you can look into vmware player and virtual box. You can actually simulate a headless server with virtual box (my guess would be that vm can do the same). Its quite nice because it gives you the power of running Linux with out the extra just rem...

Post Posted: November 14th, 2010, 2:05 pm

Did you know the US Government does not own a single post office and that they are all rented? I can't remember where I read it, but the government didn't want to own any of the land that the post offices were built on so they setup a system where people could build the offices and the government wo...

Post Posted: November 13th, 2010, 12:55 am

That error makes it sound like there is no index 'page' in the $_GET variable.

Post Posted: November 13th, 2010, 12:52 am

The Athlon II series is based on the Phenom II. Originally the Athlon II Propus (Propus-Quad Core, Rana-Triple Core, Regor-Dual Core) was a Phenom II that had failed the L3 cache test so they just disabled it and released it as a Althon II. Now they supposedly just completely removed the L3 cache fr...

Post Posted: November 12th, 2010, 11:50 pm

Just got Ubuntu 10.10 installed, went into System Monitoring and saw something funny. Screenshot-System Monitor.png According to Ubuntu I'm running a Phenom! I'm not sure how Ubuntu figures out processors but my guess is it sees the Quad-Core and the 2.6 clock and just figured it was that chip. Scre...

Post Posted: November 12th, 2010, 9:03 pm

I got all the parts just a little bit ago and started putting it all together. Everything went together pretty smoothly. The ram I got is unbelievable small. It barely stands above clips. ram.jpg As soon as I booted it up I went to check the CPU specs for the CPU. cpu.jpg Now all this tells me is th...

Post Posted: November 12th, 2010, 6:09 pm

I don't see why that wouldn't be secure. Its just a redirect, you arn't including it into your page so I don't see how someone could exploit it.

I don't believe this will work if you have any sort of query string on the file though.

Post Posted: November 11th, 2010, 9:29 pm

Is that image broken for anyone else?

Post Posted: November 11th, 2010, 7:44 pm

Whats the authenticator do? Is a strong password not good enough anymore?

Post Posted: November 11th, 2010, 1:51 pm

Coming in at a wopping 54 cubic inches this little guy packs a punch.

The idea and technology behind this is quite interesting. I haven't read the entire site yet, but I figured I'd share :)

Post Posted: November 11th, 2010, 7:11 am

Does the class have a debug mode you can set/disable? If so just take advantage of it and wrap the statmenr in a condition to only display when in debug.

Post Posted: November 10th, 2010, 7:19 pm

ya, pretty much lol. I'm going to play around with the over clocking features and the core unlocker to see if I can get a stable quad-core out of the chip. Should be an interesting learning experience.

Post Posted: November 10th, 2010, 6:18 pm

Code: [ Select ]
$var1 = "one";
$var2 = 1;

$var3 = $var1 + " " + $var2;

echo $var3;
  1. $var1 = "one";
  2. $var2 = 1;
  3. $var3 = $var1 + " " + $var2;
  4. echo $var3;

Will give you "one 1"

Post Posted: November 10th, 2010, 5:54 pm

Ya, I got an IDE dvd drive in my server. I can probably pull that as I think the DVD I used to install the OS is still in there from like 2 years ago lol

Post Posted: November 10th, 2010, 4:18 pm

This is a pretty neat little tool. I use it a lot when I don't have a termainal avaiable for me to run code.

Post Posted: November 10th, 2010, 4:11 pm

You can put a trim() around the preg_replace function to remove the trailing white spaces.

Post Posted: November 10th, 2010, 4:06 pm

Ah, I see what happened, preg_replace needs a slightly different syntax.

Code: [ Select ]
$new[] = preg_replace("/[^a-zA-Z\ ]/s", "", $A);

Post Posted: November 10th, 2010, 3:43 pm


Post Posted: November 10th, 2010, 3:12 pm

Use the following inside your foreach:

Code: [ Select ]
$new[] = preg_replace("[^a-zA-Z]", "", $A);

Post Posted: November 10th, 2010, 2:17 pm

preg_replace returns the manipulated string. Also $K is a key, you wan to to use $A in the function.

Post Posted: November 10th, 2010, 1:27 pm

I decided to build a new little computer to dedicate to running a linux desktop on. I'll stick it right next to main desktop and plug it into my second display adapter on my monitor. Built the entire thing for just $279. I'm quite pleased with it myself :D ⋅  Motherboard: MSI 880GM-E43 AM3...

Post Posted: November 10th, 2010, 11:52 am

This is pretty neat little trick. Need to get one or more images out of a Microsoft Word .DOC or .DOCX file? You'll need Word 2007 or later—or another .DOCX compatible program. If it's a .DOC file, open it in Word and save as a .DOCX file. Make a duplicate of the file and rename the extension from ....

Post Posted: November 10th, 2010, 11:38 am

Look into this:
Code: [ Select ]
$newitem = ereg_replace("[^a-zA-Z]", "", $item);

The above code will remove anything that is not matched by the pattern and return it.

Post Posted: November 10th, 2010, 10:29 am

Don2007, I highly dout that he is actually trying to use those particular IP addresses.

Post Posted: November 10th, 2010, 8:02 am

You can assign an IP to a particular domain but you need to make sure you have set the account/service up to use a static IP as well.

Post Posted: November 10th, 2010, 7:57 am

The best you could probably do with PHP is to measure the time between page requests and check the referal. If the referrer is your own site then the time between pages would be the time spent on your site. This approch does not work for single visits or the last requested page.

Post Posted: November 9th, 2010, 6:56 pm

I love things like this. Recently TradeMe released their API. This is pretty great, if only because it means I can finally give up maintaining the increasingly-complicated set of scraper scripts that I’d used to do TradeMe stuff up to this point. After converting the basics of over t...

Post Posted: November 9th, 2010, 7:56 am

There's nothing really to creating an online auction system. You might look at learning the php/mysql first, do you have much experience with php? Really when it comes down to it almost all webpages fetch, display data and update data. Thats pretty much it. Once you learn to run a select, update, in...

Post Posted: November 8th, 2010, 6:44 pm

Is the expression above the default or did you use the little magic wand (wizard) to the right to make it?

Post Posted: November 8th, 2010, 3:50 pm

Hmm, just so I understand. This program gave you some REGEX code. Did it also run the code on your book and it didnt do what you needed?

I'm not much of a REGEX person, so I can't tell you right off the bat if the expression is wrong. I'd have to play around with it a bit first.

Post Posted: November 8th, 2010, 7:52 am

Like ebay style?

Post Posted: November 7th, 2010, 9:20 pm

Code: [ Select ]
cp /etc/php.ini /etc/php.ini.back_up

Or something similar depending on where your file is located. I don't believe you need root permissions to copy it.

Post Posted: November 6th, 2010, 11:23 am

Go to Applications->Ubuntu Software Center. Then go to Edit->Software Sources.
  • Sort by

© 1998-2016. Ozzu® is a registered trademark of Unmelted, LLC.