Archive for the 'Web Programming' Category

 
Nov 08
Fri
07

Inspiration needed

Posted at 10:20 am in Web Programming

I need some help from you, faithful readers (I know there’s at least one of you out there … LOL). I need some inspiration. You see, over the past month, I’ve determined that I’m more happy during the day if I’m coding. When I was putting up my resume website and working on the redesign of this site, I was definitely in a better mood. On days where I’m not coding, it’s not good. I’m usually found on the couch staring at the tv. Not a pretty sight.

So, while I’m waiting to find my next job, I need something to occupy my time during the day … a new project. I’ve had a couple ideas, but nothing has lit a fire under my ass yet. One idea I had was for a weather script that I could turn into a WordPress plugin. I had a weather script for quite some time, but I took it offline when I cleaned up my other domain. Another idea I had was to put together a racing website. I’ve had a few in the past, each devoted to a single driver. This time around, I was going to make a generic racing site that had info on all drivers in the series. I also thought about adding a page where visiters could create an account and select up to 3 drivers to view info for each time they came to the site, if they were logged in.

What I need from you, faithful readers … or what I’m hoping you’ll provide … are some ideas for things for me to work on. Perhaps an idea for a WordPress plugin that hasn’t yet been done (or that could be improved upon), or some other functionality for any website. Or should I dive into either the weather script or racing website? Help me find a reason to get up in the mornings until I find my next job.

Jan 08
Thu
10

Time to do it again

Posted at 6:36 pm in Web Programming

I have my desktop all set up so that I can work on my websites and preview and stuff without having to upload the files to my web host to preview. I have EasyPHP installed so I can develop in php and mySQL. I set up my hosts file and the apache config so that I could access my websites on my desktop easily. It’s a nice setup.

Now that I have the laptop, I’m not using the desktop any more (or at least not as much). I plan on leaving my music and pictures. That’s working great. I even have my work laptop in the same network as the desktop and the laptop so I can listen to the music on my laptop while I’m on work and not have to disturb the desktop.

I’m thinking of leaving my website files there as well. I was able to map the folder on my desktop that has the files as a network drive on my laptop (really easy … woohoo). I downloaded Eclipse the other day and EasyPHP tonite as well as php 5.2.2 (so I have the same version to develop with as where my websites live). I’m hoping I can set up everything like I had it on my desktop so I can get back to working on my websites.

I want to fix the layout here. The script I found to make the sidebars the same length as the main don’t always work the way I’d like (I think due to js pieces loading slowly). And it needs some freshening up. And I had plans to create a new racing site too. I’d better get my ass in gear on that one since the season is starting soon. They’re already testing at Daytona.

So … off to try to get stuff set up. Hopefully I don’t end up tossing my laptop across the room. I’d better not. Not after waiting as long as I did to finally get one.

Oct 07
Fri
05

Setting up local dev environment

Posted at 8:47 pm in Web Programming

I'm posting this more for future reference in case I need it again, but maybe it will help someone out there.

I've been working on setting up my development environment tonite the way that I want it (and can you believe I even turned the tv off ... :shock: but it will be turned back on in about 20 min so I can watch GH on SoapNet ... I love having that channel ... but I digress ... ). I wanted to set everything up once right and not have to do it again.

Since I'm running locally, I needed to use http://localhost to access my stuff. But what about subdomains? And what about different main domains? For example, I wanted to set up the Avalanche site so I could work on that and a dev version of this site and a dev version of a new site I'm planning. But I didn't want to have to do http://localhost/avalanchecountry or whatever. I wanted to be able to do http://avalanchecountry and get to my local copy.

I did a little searching online and found out how to set up a Virtual Host for my local dev environment. And I already new how to add entries to my HOSTS file. The following is what I needed to do to be able to use http://avalanchecountry to access my local dev version ...

Add the following to the HOSTS file:

127.0.0.1 avalanchecountry

Add the following to the httpd.conf file:

NameVirtualHost *
<VirtualHost *:80>
 ServerName localhost
 DocumentRoot "C:/websites/public_html"
 DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>

<VirtualHost *:80>
 ServerName avalanchecountry
 DocumentRoot "C:/websites/public_html/avalanchecountry"
 DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>

And to set up a subdomain, just a little tweak ...

Add the following to the HOSTS file:

127.0.0.1 design.hightechredneckwoman

Add the following to the httpd.conf file:

<VirtualHost *:80>
 ServerName design.hightechredneckwoman
 DocumentRoot "C:/websites/public_html/design"
 DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>

Then stop and restart Apache. And all is happy happy. Woohoo! Now I can spend the weekend working on my own websites for a change. I haven't done that in WAY too long. It's time to think about ME for a change. :G-razz3:

Oct 07
Fri
05

Bit the bullet

Posted at 7:16 pm in Web Programming

In my last post, I mentioned that I upgraded to php5 on the server where my websites are. I have lots of plans, but I just haven't felt like doing anything in the evenings. I have lots of plans ... just not the desire to start.

Well ... I changed that tonite. I upgraded to php5 in my development environment. I only hit one little snag ... MySQL wasn't working. It turned out that I needed to add something to the php.ini file to configure php to have MySQL support. Apparently MySQL support isn't turned on by default in php5. Thank goodness I found the answer on how to get things working in the support forums for EasyPHP.

In the past, when I did changes to my websites, I'd do the changes and then upload the changes to my webhost to see if things worked. That really was a pain in my ass, but it was the only way I could do it.

I have an old computer tower that I wanted to turn into a web server for testing purposes. But I would basically have to build it from scratch and just use the tower to put it in since the tower is so frickin' old. But that takes money ... and I didn't have it to spare for something like that.

I managed to run across a program allowing me to run php/apache/MySQL on my computer ... EasyPHP. I don't remember where/how I found it ... probably in a web search. But I downloaded it and tried it. It worked great. I can FINALLY develop locally and THEN upload my changes after I know that they work. Awesome!!!

As I said earlier ... since I upgraded to php5 on my live server, I wanted to do the same on my local server so I could code in it (especially since I'm used to working with php5 at work). It's all done and working. No more excuses.

Since I'm sitting here right now, I'm going to start. Where to start? I'm going to start on redoing my database connection class. I know that I can find a lot of classes online for this, but I want to write my own. It's a good experience, and that way it'll do what I want it to do. I think I'll post it here and make it available for download after I'm finished. Now, I'm not saying that my version will be any better than any of the others out there, but maybe there's someone out there who will find it useful ... other than me that it. So stay tuned.

Sep 07
Thu
20

Gimmie 5

Posted at 8:08 pm in Announcements, Technology, Web Programming

I feel bad. I've been neglecting my websites for quite some time. I used to be able to unwind and spend hours working on my websites. Now, after working on someone else's website all day at work, I just don't feel like doing anything with my own when I get home.

But lately I've started getting the itch to work on things again. I haven't updated my racing websites since April. But with Jr's sponsor and number announcement, I've gotten the itch to work on my racing sites again (I even fiddled around with a header image last nite) ... consolidate them into a single site for all my favorite drivers.

At work, we have php5. I've gotten so used to working with it, I thought I'd finally bite the bullet and switch to php5 for my own sites. I checked out the forums for my host, and it turns out that all I needed to do to switch over to php5 was put the following in my .htaccess file:

AddHandler application/x-httpd-php5 .php

Talk about easy. So I am now running my websites on php5. I looked things over, and everything looks like it's working. This blog is working ... my photo gallery is working ... and even the crappy guestbook script I wrote several years ago still works. Woohoo! But if you happen to run across any issues while visiting, please let me know so I can fix things.

I have several things that I want to do:

  • write a database connection class (I already wrote a basic one, but I want to expand on it)
  • write a recordset class
  • update and improve on my guestbook script (who knows ... maybe I could even make some money on it)
  • update and improve my weather script ... expand it to get the forecast as well as the current conditions

When I do dive back into my sites, I'm going to have to transition working with MySQL again. At work, we use mySQL. I have gotten so used to it, it's going to be interesting working my MySQL again.

Now that I've actually put my plans in writing, hopefully it'll be motivation to stick with it. And I'll hopefully have techie stuff to post about (since I am a High Tech Redneck Woman ... LOL). So stay tuned ...

I'm a Redneck Woman
Archives

Search
 
I'm a High Tech Broad
Stats
438 Posts & 75 Comments
Since 07 January 2007

47 queries in 0.365 seconds.
Feeds
Advertising


Meta
BlogRoll
Other Stuff
50% High Tech  50% Redneck
100% Woman
Valid CSS  Valid XHTML
This site looks best in Firefox  This site looks best at 1024x768 or higher
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License
Where You Can Find Me
twitter   flickr   brightkite   infield parking   facebook
myspace   friendfeed   jaiku   pownce   dopplr
Twitter
  • Crap. I don't know if that includes today's calls. CRAP!!! 9 hrs ago
  • Shit. How did I go over my cell minutes this month? Only 17, but still. Dammit. I guess I shouldn't have called home so much today. 9 hrs ago
  • Oh ... I am such a piggy. I ate 2 pieces of pie. 9 hrs ago
  • More updates...

Powered by Twitter Tools.

TwitterCounter for @hightechredneck
Affiliates
HostGator.com Affilliate

Get Smart. Get FireFox!

Get Thunderbird!
Other Cool Sites
kirtsy!
Tag Cloud
Recent TwitPic Uploads