Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

After being requested to write a tutorial a few times, I've finally found the time to create a mod_rewrite tutorial for vBulletin 3. What this tutorial will allow you to do is make your vBulletin forum search engine spiderable - for Google and all the others.

<< update >>

This hack is now obsolete! Please visit the new version:

http://www.daniweb.com/techtalkforums/thread35147.html


<< end update >>

Step One

My version of making vB 3 search engine spiderable is unique because I rename the actual URLs for each forum forum-name.html instead of just forum1.html, forum2.html, etc. Therefore, the first thing that needs to be done is to tell the vBulletin forum to parse the names of each forum and create an equivalent that can be used in a URL. This can be done by editing the file includes/functions_forumlist.php.

In that file, do a search for:

// do light bulb
	$forum['statusicon'] = fetch_forum_lightbulb($forumid, $lastpostinfo, $forum);

Directly above that, add the following code:

// added by dani
	$forum['url'] = strtolower(
	 str_replace(" ", "-",
	 str_replace("/", "-", $forum['title'])
	 )
	);
// added by dani

By adding that code, we did a few things. The first thing that we did was parse the title of each forum and replace each instance of a space or the / character with a dash, and then convert all characters to lowercase. Therefore, a forum with a title "PHP/ASP" will be parsed as "php-asp" and a forum with a title "DaniWeb Community" …

jephthah commented: this post needs to be green. it +6
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Good luck :)

Killer_Typo commented: this has nothing to do with the post, but more of a appreciative rep added because of the great site and great help always offered! +1
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm in a very giving mood today ;) Usually I don't just give the answer to homework problems outright like I am now. I'd rather see some effort put in on your end. So consider yourself very lucky. The following is the pseudocode for the program. Think about what each line means, and then translate it into Java syntax line by line.

input student's grade
if grade < 100 AND grade > 75 { student got an A }
else if grade < 75 AND grade > 60 { student got a B }
else if grade < 60 AND grade > 50 { student got a C }
else if grade < 50 AND grade > 40 { student got a D }
else { student got an F } // didn't fit into any of the above scenerios, so must be an F
print to screen what the student got
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I have used a Gigabyte motherboard as well as an Asus and I just overall like Asus better. No specific reason, really, I just feel it's more feature rich and more reliable for me.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

When looking for an information-based forum where you could learn, would you rather belong to a close-knit community or a professional corporate site? For example, we all want to feel welcome in a forum. But there is a more family-oriented feel (such as this forum) or the more corporate feel of internet.com forums, for example.

Does the latter give off the impression of a more knowledgable userbase? Is there a feeling of more reputable information from a commercial-oriented site?

Which is the best approach for DaniWeb to be headed in the future?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This forum is meant for discussing technical aspects of web development. Nacho, please direct inquiries of this kind to our Website Promotion forum. There, you can chat about the best ways to draw leads, encourage signups, etc. Thanks.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

No go :( Most HJT logs are fine. But those few that are so badly infected contain entries in them that is just malicious code that the forum system can't handle no matter what.

antioed commented: It's so nice of you to do so much work for people. +2
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hey there. I was hoping some of you guys would have posted something about this already, but I guess not. Just curious what you guys think of the new style. Well, not a complete new style ... but the orange navbar was replaced with a purple one and we have a new logo. Plus, there are new postbit buttons, and I haven't yet decided if they are temporary or permanent. (I just knew I had to get rid of the old ones b/c they were all orange hehe). So, in any case, what do you guys think? Change for the better or worse? Anything else you'd like to see changed? Let me know! :)

And for those of you who miss the "posts within the past 24 hours" link that used to be where the banner ad is now, no worries. The "new posts" link in the navbar does the same thing :-D

Slade commented: I love the new style +6
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I found this in a few different places around the 'net - hopefully it's helpful:

Remove Unwanted Shortcuts

  • In the Welcome to the Desktop Cleanup Wizard dialog box, click Next.
  • In the Shortcuts dialog box, a list of shortcuts are displayed in the Shortcut to Clean Up list. The shortcuts that you click are removed from the desktop and placed in the Unused Desktop Shortcuts folder on the Windows desktop.
  • If you do not want a shortcut to be removed from the desktop, click to clear the check box for that shortcut, and then click Next when you are finished.
  • In the Completing the Desktop Cleanup Wizard dialog box, view the items in the Shortcuts box to confirm that you want them removed from the desktop, and then click Finish.

The Desktop Cleanup Wizard moves the selected shortcuts to the Unused Desktop Shortcuts folder and then quits.

oldtar commented: Post put me on the right track and so I solved the problem I had. It would have helped me to know at the start that I had the Wizard with my XP operating system. Tks for help. oldtar +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I found this in a few different places around the 'net - hopefully it's helpful:

Search for Information From the Address Bar in Internet Explorer

You can quickly search for information on the Web using the AutoSearch feature in Internet Explorer 6 in Windows XP:

  • In the Address bar, simply type "go" or "find" or "?" followed by a keyword or phrase, and then press ENTER. Your search results will soon appear.

Note Internet Explorer searches for your word or topic using only one search service. If you don't find what you need, click the Search button on the toolbar and try using different search services.

mikeandike22 commented: just need to spread some rep +1
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I found this in a few different places around the 'net - hopefully it's helpful:

Stop Getting Tricked into Running Viruses

Stop getting tricked into running viruses because you don't see the file extension of an attachment.

  • Click Start, click My Computer, and on the Tools menu, click Folder Options.
  • Clear the Hide file extensions for known file types check box, and then click OK.

Now when you receive a file called something.jpg.vbs, you'll see the .vbs extension and know that it is not an ordinary .jpg file.

maui_mallard commented: Great Topic +1
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I found this in a few different places around the 'net - hopefully it's helpful:

Create a Desktop Shortcut to Lock Your Computer

You secure your computer by locking it whenever you're away from your desk. If you?re on a domain, by pressing Ctrl+Alt+Del and then clicking Lock Computer, you can prevent unauthorized users from gaining access to your computer. Only you and members of the Administrators group on your computer can unlock it. (You unlock it by pressing Ctrl+Alt+Del, typing your password, and then clicking OK.)

To create an even quicker means of securing your computer, place a shortcut on your desktop to lock your computer:

  • Right-click an open area of your desktop, point to New, and then click Shortcut.
  • In the Location box, type %windir%\System32\rundll32.exe user32.dll,LockWorkStation
  • Click Next, in the Name box type a name for the shortcut such as, Lock Computer, and then click Finish.
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I found this in a few different places around the 'net - hopefully it's helpful:

How to Change the Length of Time That Your Computer Is Inactive Before Your Status Becomes "Away"

This article describes the "Away" status in Windows Messenger. This article also describes how to change the length of time that elapses before your individual status appears as "Away" in Windows Messenger.

The "Away" status appears automatically after your computer has been inactive for a period of time that is equal to the Wait time for your screen saver.

To manually specify "Away" as a status:

  • Click File, click My Status, and then click Away.

To change the length of inactive time before your status becomes "Away,":

  • Either change the screen saver Wait setting in the Windows Display Properties dialog box.
  • or, if you want to specify a time other than the screen saver Wait time, change the inactivity time in the Windows Messenger Options dialog box.

To change the Windows screen saver Wait setting:

  • Right-click the Windows Desktop, and then click Properties.
  • Click the Screen Saver tab, and then type the appropriate number of minutes in the Wait box. (You must have a screen saver selected.)
  • Click Apply.

The screen saver Wait time automatically appears in the Windows Messenger Options dialog box as the default "Away" status wait time.

To select an "Away" status wait time …

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I was thinking of going with these guys: http://www.logodesignz.net
Anyone hear of anything good or bad about them?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Let's see ... what I do here is set it up to show ValueClick ads instead of the freebie ones when it hasn't yet spidered the page. This way I make money either way. Also, due to Google's lack of stats reporting, you have to improvise. Try using leaderboards for a week or two. Then switch to skyscrapers, etc. It really takes that long to notice a trend because it fluctuates day by day.

Also, do some google searches for high-paying keywords. Integrate those keywords into the keywords and description meta tags of your site. Google's search engine doesn't use meta tags but AdSense absolutely does!

Disable AdSense from showing up in any forums that guests don't have access to. Google will spider the forum login page and think it's what your members actually see.

More when I think of it ;)

janells commented: All her posts on this thread are very useful and to the point. +3
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

He said he was unable to contact them despite trying multiple ways. In any case, I agree that a power supply powers your entire system and has the capability of frying it. It's just a fact of life. You get what you pay for with a really cheap one. Personally, I won't touch anything other than Antec.

However, that doesn't fix your problem, now does it. I don't think you should start running at them with threats of lawsuits. If emailing and phone both don't work, and you're sure that they fried your PC components, I'd start by doing an online search for how much the fried components cost (retail value). I'd put together a list and try once again to email or phone them. If that doesn't work, perhaps contact the BBB and inform them that you're unsuccessfully trying to reach this company and ask for their (or a similar organization's) assistance in simply contacting customer support.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Even better is

df -Th

cuz it tells you the filesytem format as well (i.e. ext3)

)BIG"B"Affleck commented: try free or openBDS the installs are 10 minutes max +29
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Personally, I am a mac fan. I think that OS X takes the best of Windows and the best of Unix and combines them into one. For example, I love being able to use Microsoft Office and Adobe Photoshop right along with mplayer, xemacs, and vi.

However, this guy is pissing me off ...

First, he recommends Windows XP Home over Windows XP Professional. Home doesn't include any of the basic networking features pro does - which makes it useless to power users :-/

He says that the linux desktop is laughable? No, it's customizable ;)

Also, this is laughable ...

I especially like the four games it comes with - Hearts, FreeCell (so addictive!), Minesweeper, and Solitaire. It's easy to see why XP is considered the ultimate platform for gamers.

I agree that Windows is a much better gaming system that Linux. #1, there is DirectX support while (to the best of my knowledge) Linux only has support for OpenGL. #2, there was that whole problem awhile back with ATi not delivering any hardware-rendering drivers for their Radeon line. Plus, let's face it, good, honest 3D gaming on Linux is limited to Quake ;) But, c'mon, solitaire makes Windows a gaming machine?!

Outlook Express isn't virus-proof, either. However, Outlook does include a nifty feature that automatically blocks a few conspicuous-looking outgoing .exe files, etc (the feature can be enabled/disabled which is nice too).

I hate to admit it, but in the …

)BIG"B"Affleck commented: However, this guy is pissing me off ... http://bbs.whatpissesyouoff.com/showthread.php?t=3 .....BIG"B"Affleck +29
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Well, you could have a regular ol' function named template. i.e. int template(char letter) or void template() or any other combination you could have for a function. There's also a C++ thingie called templates, where you would do something such as Template<T> or something along those lines. (I've never learned/used them personally). However, what they allow you to do is abstract data types out from your code. For example, take the algorithm for a linked list. You can add data to the list, remove data, search the list, sort the list, etc. However, just to add data to the end of the list, for example, it doesn't matter what data type the list is. Templates allow you to avoid redoing multiple classes and functions for an integer linked list, a character linked list, a double linked list, etc. Rather, you can abstract out this data by creating a linked list of type T. ;) This way you can reuse that part of your code.

jal pari commented: gud :) +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It really is quite impressive. Did you take that out of your personal favorites list?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

There is little doubt that one of the most daunting tasks in all of computer programming is that of developing your own algorithms. Indeed, it is here where the term Computer Science comes to the fore as it is virtually a step-by-step process, so intricate and precise it truly is a science to master.

So what exactly are algorithms? Simply put, these are step-by-step methods which a programmer tells a computer to follow. They often branch out under certain conditions, in the same way that as humans with brains we follow trillions of algorithms in our daily lives although you don't necessarily think about them. For example, you are following an algorithm in order to add two numbers, to walk down a flight of stairs and even just to move our heads.

Let’s take walking down a flight of stairs as a good example to examine more closely. You begin by placing one foot in front of you and then following with the other. Then you notice that there is another step in front of you, so we do the same again. You keep repeating this process until you finally see there are no steps left, and then note that you have reached the bottom of the stairway. This is the most basic form of an algorithmic process, but the next step you must take is to understand variables. All programming languages involve the use of variables, keywords which are used to represent numbers, letters, and symbols in …

mattyd commented: Algos \ well-written and concise +2
majestic0110 commented: nice :) +3
ourchiliean commented: You have helped me to understand a little more, tank you +0
morten42 commented: Excellent post +0
pritaeas commented: Well written +4
The ICE Man commented: Very Good, and well written :) +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The attached program performs a QuickSort in C++ which sorts an array of structs based on their data members. Basically, it sorts an array of coordinates based on their distance from the origin.

cosi commented: Dani, meticulous coding. I like your style! :) +1
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I had to downloaded Term::ReadKey from the CPAN website. I untarred, compiled, and installed, and all works :)

Thank you! :-D

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm a huge fan of Adobe Photoshop. I used Photoshop 7 to design the new techtalk logo. For anyone who's interested, I created the arrow by using the Custom Shape tool. I then imported all available shapes and then located the arrow shape. I skewed it a bit when creating the shape, then applied a gradient, drop shadow and stroke (outline).

Tekmaven commented: Its Dani :-). 'Nuff said. +2
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Do you mean that you have a desktop computer, but you want to use a laptop monitor for the desktop computer? I don't think you can do this, to the best of my knowledge. Your laptop's video card would need to support a monitor-in connection (I forget whether it's a male or female connection for some reason).

Many laptops offer a monitor-out connection. This would allow you to expand your monitor's screen onto a regular desktop monitor.

mreza commented: Thanks for the explanation :) +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Don't bother studying programming languages as much as programming ALGORITHMS. Concepts such as classes, pointers, linked lists, and ADTs (abstract data types) are very, very important. Don't get caught up in syntax between each language. They're concepts present in most modern day programming languages, and all that's important are concepts really.

Also, algorithms such as searches, sorts, hash tables, trees, etc. Also, time and space efficiency is a key (Big Oh notation)

To get back to math, there's floating point notation, ... adding/multiplying in binary (base 2), hex (base 16), or any base n system

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This forum is meant for discussing programming languages in addition to exchanging code and algorithms. However, it has become a problem where too many students are posting homework problems expecting a quick solution without ever trying for themselves. Though we are all here to help, please don't expect quick solutions to your homework. We'll help you get started, exchange algorithm ideas, how-to's, etc. but only if you show that you're willing to put in effort as well. For more information about this, click this link.

Please be sure to wrap all code in [code] vbCode!

Anuradha Mandal commented: Good post. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Thanks.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Ammendum ... that's why manufactuers have to buy multiple copies of Windows for each computer they manufactuer. The same copy of Windows won't install on multiple machines, even if they're the exact same hardware! The hardware's unique identifiers prohibit that.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Each piece of hardware has a unique serial number that allows the computer to recognize it, even if its the same product from the same manufacturer. Take, for example, a computer lab of networked computers hooked up to three identical laser printers. Each computer on the network can print to any of the printers hooked up to the network. This is actually a common occurrence in computer labs, small office networks, etc.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I took everyone's advice and posted announcements about homework help in the C++, Java, Basic, and Comp. Sci. forums. As far as homework help, I see no reason why it shouldn't be included here at techtalk and I, for one, am more than willing to help.

I understand, however, that it gets very annoying when people post homework questions verbatim and expect a quick solution for an easy A without having the slighest clue what they're doing. As Dan said earlier in this thread, this forum is about learning.

For the most part, homework help should basically be on an abstract, conceptual basis. Don't simply provide code solutions outright for people who don't try at all.

puttam77e commented: Nice good articles very useful. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I know that OptOnline definitely blocks port 80. I think they might block all http: server requests on all ports, but not exactly sure.

aeinstein commented: need i say more? ;) +36
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Is your modem connected via USB? Often, this is the cause of constantly losing a connection. If it is, go into the Windows Device Manager, then disable the power management settings for the USB device (which allows the computer to turn off the device when not in use to save power).

Sometimes incorrectly configured firewalls can also be the problem (from my experience, specifically Norton Internet Security/Norton Personal Firewall).

Next time this happens, run "ipconfig" from DOS and let us know whether you still have an IP address, or if you lose it too. Try running "ipconfig /renew" and see what happens.

Also, are you behind a router or hub? I was having similar problems with a SohoWare router. Now I use Linksys and no more problems!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Oops! Just realized
the last line should cout << factorial
not cout << x

edited post above to fix error

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Lucy --> in the sky with diamonds

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hey, peeps ...

Any comp sci ppl out there in internet land?

I'm trying to do my CSC110 homework but because of my car accident I wasn't in class for the last 2 lectures. I was wondering of someone might be able to give me a hand with minterms, maxterms, and canonical sums and products.

Anyone know this stuff?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Name - Danielle
Nickname - Dani, CSCGal
Height - 5' 3"
Weight - c'mon ;)
Hair - dark brown w/ reddish highlights 8)
Eyes - 2 of 'em
Location - da Nawth Shaw of Lawn Giland
Age - turning 20 next month

Hobbies - lounging around on the computer and looooong pleasure drives in my car which is no more

Relationship Status - single

Fav Music - oldies, tv themes ;) , fun lively songs with lyrics I can understand, Peter the Meter Reader :P ... right now my cellphone ringer is set to Copacabana

Education - junior at Hofstra U with a major in Computer Science (B.S. degree) and a minor in Business Computer Information Systems

Favorite Movies - The Shawshank Redemption, Antitrust, Splash, The Truman Show, Man on the Moon, The Santa Clause, Hook, The Odd Couple, ...

Favorite TV Shows - Anything on TV Land or Nick @ Nite, game shows, Star Trek Voyager

Favorite Computer Games - Simulations, simulations!! Everything from SimCity to The Sims to Tropico ...

Stuff I Dislike - Not so much lying as much as knowing someone is lying, obnoxious people, teachers who can't teach for their lives

More coming when I think of it ...

[edit]I just turned 21![/edit]

[second edit]I just turned 22![/edit]

wilson snow commented: i think i like everything about dani web but as a bigginer what i really want is a live disscussion on the web +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It's very funny that you should say that ... at the moment, I am in Dreamweaver making a mock new homepage (which I'm going to do some playing around with before it goes public).

I'd greatly appreciate it if you could make a mock template too. Maybe then I can show you what I have going and we can exchange ideas.

Basically, this is a forum for USERS. And it should be most convenient / easiest setup for the USER! ;D (P.S. that's you!)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've been browsing the forum and I'm just really happy overall with the way this php version turned out!

Let me know all your opinions ...

And get your friends to post!!

This forum is here to stay.
I won't *LET* it die.

joshSCH commented: Hooray! +12
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

To download files from an ftp site, you need an ftp client such as CuteFTP, WS_FTP, or SmartFTP (my favorite).

If you go to download.com, there will be a listing of at least 30 to choose from ;)

Once your there, specify the IP or name of the PC you wish to connect to. Also, specify the port (usually port 21). If anonymous users are allowed, you can enter "anonymous" as the user, with your email as the password. If anonymous connections are not allowed for the particular ftp server you're trying to connect to, you will have to already have a username on the server.

Once in there, you should be able to drag and drop files to/from your PC.

Also... if you have Internet Explorer, the cheesy/quick way to visit an ftp site is to browse to ftp://username:password@serverIP:serverPort

Sorry, I don't know what grokster is
is it a file sharing program such as the gnutella network ?? (the old napster, kazaa, morpheus, etc?)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

None of the links work. It says we've been inactive and timed out of the site.

Rashakil Fol commented: Excellent point. +6