**_Greetings, dear Python forum users, from newly appointed moderator pyTony!_** There have been some development lock up of the Forum database occuring due to debugging process of current transition process to new Forum software. I have today been appointed as moderator and I have started to learn the processes involved by little clean up of some recent threads in this my **'Home Forum'**. I hope I can do my duties well, and sorry that English not being my native language, my language may not allways be flawless. If you have not done so, click the [_Formatting Help_](http://www.daniweb.com/community/syntax) link found in …

Member Avatar
Member Avatar
+1 forum 11

OK, so, as many of you are aware, the new version of Daniweb is approaching. However, I need to warn you about something in advance, so that you have some time to prepare. I've decided to allow posting in ALL forums including top-level categories. I really was getting incredibly tired of constantly hearing people say that their question doesn't fit in a specific forum, news stories didn't fit in a specific forum, new technologies are being created every day. From this point forward, I want to move towards consolidating categories and put more emphasis on our tags, which allow you …

Member Avatar
Member Avatar
+0 forum 26

Here is my take as code tag police in new era of Daniweb: http://www.daniweb.com/software-development/python/threads/418619/generate-page-using-python Reposted here: Could you repost with new code markup, which is indention by at least 4 spaces, after empty line, so you could do in your python editor: ctrl-A, indent, ctrl-C, undo (or close without saving) and paste it to your post. Or make empty line, paste code, select it by mouse and clic the **Code** from menu ribbon. *Is there way to directly link this text as link in my new signature?*

Member Avatar
Member Avatar
+0 forum 1

HI Now i'm upgrading my application from icefaces to HTML 5. So i need to know the alternate tag for the following 1. ice:outputConnectionStatus 2. ice: inputFile 3. ice: SelectInputDate 4. ice: PanelPopup Please help me out to fix this error..........

Member Avatar
+0 forum 0

Ok, Assume i am creating a site for people who own business companies and when they submit their names, phones, and other details, i want a php code to generate a URL of their Company Name only. Now, here is the trick, i don't want just any URL, i want it to be as short as it can. like, if my site is: - [url]www.xxx.com[/url] Then, if the users company name is SomeoneLLC Then, i want the url to be : [url]www.xxx.com/Biz/SomeoneLLC[/url] Can anyone help, or provide some link to a tutorial? Thanks in Advance.

Member Avatar
Member Avatar
+0 forum 1

Hi, I have some problems with the code below. Also below the code I have two pictures one from IE one from Chrome. [CODE] <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="<?php echo $check ?>"> <param name="animationatStart" value="false"> <param name="transparentatStart" value="false"> <param name="autoStart" value="true"> <param name="showControls" value="true"> <param name="Volume" value="-450"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="<?php echo $check ?>" name="MediaPlayer1" width="270" height="100" autostart="1" showcontrols="1" volume="-450" align="absmiddle" displaysize="0" autosize="0" > </embed> </object> [/CODE] This is the one from Chrome, [URL="http://uploadpic.org/storage/2011/XFxfIh66kAk2np2aBbdqGUNH.jpg"]http://uploadpic.org/storage/2011/XFxfIh66kAk2np2aBbdqGUNH.jpg[/URL] This is the one from IE(all versions same problem) [URL="http://uploadpic.org/storage/2011/4M7Nbu4NHCPiJqqWLYpv4mNNw.jpg"]http://uploadpic.org/storage/2011/4M7Nbu4NHCPiJqqWLYpv4mNNw.jpg[/URL]

Member Avatar
Member Avatar
+0 forum 1

Hi, I have some problems with the code below. Also below the code I have two pictures one from IE one from Chrome. [CODE] <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="<?php echo $check ?>"> <param name="animationatStart" value="false"> <param name="transparentatStart" value="false"> <param name="autoStart" value="true"> <param name="showControls" value="true"> <param name="Volume" value="-450"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="<?php echo $check ?>" name="MediaPlayer1" width="270" height="100" autostart="1" showcontrols="1" volume="-450" align="absmiddle" displaysize="0" autosize="0" > </embed> </object> [/CODE] This is the one from Chrome, [URL="http://uploadpic.org/storage/2011/XFxfIh66kAk2np2aBbdqGUNH.jpg"]http://uploadpic.org/storage/2011/XFxfIh66kAk2np2aBbdqGUNH.jpg[/URL] This is the one from IE(all versions same problem) [URL="http://uploadpic.org/storage/2011/4M7Nbu4NHCPiJqqWLYpv4mNNw.jpg"]http://uploadpic.org/storage/2011/4M7Nbu4NHCPiJqqWLYpv4mNNw.jpg[/URL]

Member Avatar
Member Avatar
+0 forum 4

Hi everyone, thanks for reading this. I am trying to write some code so that a vote button won't allow a person to vote unless they are registered and logged in. I have this written, but it's not outputting properly. I'm pretty sure I am not encoding the URLS properly within the PHP tags. I can get different buttons/images to display based upon the logged-in status, but I need the URL to change also so they will be thanked for voting or be asked to register after clicking. Make sense? I've googled the crap out of this - I'm probably …

Member Avatar
Member Avatar
+0 forum 6

Hey, I have an website with dynamic text on it, i want to transfer the text to an textbox, and the text is between this tags: <pre> </pre> How do i do this?

Member Avatar
Member Avatar
+0 forum 11

very dificult oop, exception, inheritance task pleas. sorry, i'm hope you understand me.

Member Avatar
Member Avatar
+0 forum 3

I was going through all of the tags gettn' used to my fresh DM compiler (love it) and in optimization there was a rather long tag called 'expensive optimization' Th DM website didn't have anything and google just brought up car engines. What does it do?

Member Avatar
Member Avatar
+0 forum 2

hello, i just want to know what is the need that we make a custom tag...i know that its for reusebility..but i want some examples where should i use them. thanks

Member Avatar
+0 forum 0

since my [URL="http://www.daniweb.com/community-center/daniweb-community-feedback/threads/283474/1223912#post1223912"]last post[/URL] At least it's stopped flashing, but it's still too large where it doesn't matter, and too small and faint where it does. What hasn't changed is the #1 spot at the top of the reputation ranks. A whole year without posting, and AD/Narue still couldn't catch up. Gotta admire the volume though AD, well done. Shame it goes under appreciated. Geez, there's time for the world to end (again) before that changes. Ohh, activity points - something else to measure quantity as opposed to quality. Figures, most of the top of that list just spam away …

Member Avatar
Member Avatar
+7 forum 9

Hello Everyone! So I have an assignment to create a program to read in data from text file. I managed to get that part, but I'm having trouble with two areas. 1. Having the names read from the display read into a 10x3 format (10 rows, 3 colums/seats.) Expected output: Capone AL Eastman Ken Henry John Stevenson E Williams Ken Smith Martha Etc... I can't seem to write a for loops that will go to the nextline after the 3rd name without the program running on endlessly. My output: Capone Al Eastman Ken Henry John Stevenson E Etc... Here's what …

Member Avatar
Member Avatar
+0 forum 8

#include <iostream> using namespace std; int main() { int BSR; int HighBSR=0 , LowBSR=0 , NormalBSR=0; int patients=0,sum =0; int count=0; cin>>patients; while(patients != -1)}{{ {if ( BSR ==120 )//HighBSR+=patients; } { else if ( BSR>70 && BSR<120 )//NormalBSR+=patients; else ( BSR<=70 )//LowBSR+=patients;} ; count++; cin>>patients;}} cout<<"The Number Of All Patients is:"<<patients; cout<<"The Number Of Patients With High BSR is:"<<HighBSR; cout<<"The Number Of Patients With Normal BSR is:"<<NormalBSR; cout<<"The Number Of Patients With Low BSR is:"<<LowBSR; float percentage; percentage=(HighBSR/10)*100; cout<<"The Percentage Of High BSR is:"<<percentage; return 0; } dunno what is the error i've tried all ways but i didn't …

Member Avatar
Member Avatar
+0 forum 2

I want to create n numbers of dynamic link buttons runtime. I will have an xml file which has the format like [CODE] <category> <link> Link1 </link> <pdf> PDF1 </pdf> </category> <category> <link> Link2 </link> <pdf> PDF2 </pdf> </category> <category> <link> Link3 </link> <pdf> PDF3 </pdf> </category> ........ ........ ........ and so on [/CODE] I have to take the element within the <Link> tag and make it as a linkbutton and when user will click the button, it will open a pdf file named within the <pdf> tag. It may happen that the xml has 10 such tags, it may …

Member Avatar
Member Avatar
+0 forum 1

hi.. You will need Taglib - Sharp Library for this purpose . For Complete understanding and project Download Go to: [snipped]

Member Avatar
Member Avatar
-1 forum 5

Our blog uses the fluid theme but there's an issue, it doesn't support read more and that is crucial for our blog. I can't seem to get the tag working and am wondering how; or, is there a better theme to use?

Member Avatar
Member Avatar
+0 forum 2

I have relative links in a menu page of the form: [CODE]<li><a href="info.htm#part1">See Part 1 of the problem</a></li>[/CODE] In the target page, the anchor is made as follows: [CODE]<h1><a name="part1">Part 1 of the Problem</a></h1>[/CODE] Now, after upgrading to Firefox 4, I am getting a 405 error: URL /Part1.html not found. IE works OK on the same links. That error message does not even make any sense. Part1 is not the URL for the page.

Member Avatar
Member Avatar
+0 forum 1

Hi, please point me in right direction. I want to be able to post php/html/mysql code on my website and have it viewed as i would if i posted code on daniweb and used the CODE tags for e.g [CODE]<?php echo "I would like to see my code like this"; ?>[/CODE]

Member Avatar
Member Avatar
+0 forum 1

Hi, I am generating a string from AJAX data which contains forms and submit buttons. I then try to assign this string to a div using innerHTML. This works fine in IE but Firefox strips form tags and every thing in between form tags. How to solve this issue Example code: [code] str = "<form action='somepage.php' methid=post><input type=text name=some_field><input type=submit value='Submit'></form>"; document.getElementById('some_div').innerHTML=str; [/code] I am using Firefox version 3.6.16 Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi I have a client who wants to provide me with Microsoft Publisher documents to add to his website. The material will be added via a content management system. I can't just select all and paste into the CMS so I have saved a copy of the Publisher document as an image file, a png. Fine, the doc displays well. Ideally, I should provide a text equivalent for accessibility purposes but the Alt tag won't take more than a hundred words, using IE 8 and Firefox won't even display the contents of the Alt tag at all. Has anyone an …

Member Avatar
Member Avatar
+0 forum 4

I can not seem to figure out how to drop the lowest score. When I run it it says the lowest score dropped was 0. How do I fix this? [CODE]#include<iostream> #include <string> #include <cmath> using namespace std ; string getName (); int averageScores( int); void printMessage (string, int); void tallyScores ( int, int&,int&,int&); int main() { const int NUMBER = 4; // number of scores for each student char moreStudents = 'y'; string who ; //name of the student int testAverage ; cout << "For each student, you will be prompted for a name and "<< NUMBER << " …

Member Avatar
Member Avatar
+0 forum 10

Hi there, This may or may not be a dumb question, but I've never come across it before. Can you point to a javascript 'onsubmit="return validation()"' on a form, but WITHIN PHP tags? Such as the below. [CODE]function validation(){ var reply = document.getElementById('comreply'); var div = document.getElementById('errormsg'); if((reply.value == '') || (reply.value == ' ')){ div.innerHTML = "Please type a reply"; reply.focus(); return false;} else{ return true;} }[/CODE] [CODE]<? echo "<form name=\"reply\" method=\"post\" action=\"replydone.php\" onsubmit=\"return validation()\"><textarea name=\"comreply\" id=\"comreply\" cols=\"25\" rows=\"4\"></textarea></form> ?>[/CODE] Thanks for all replies.

Member Avatar
Member Avatar
+0 forum 3

i am using floppy as ATM card.. am thinking that using the serial number of the floppy, i can check with the database and confirm it and loging the user.. but i have problem in getting the code for getting the code for getting the serial number of the media.. my email id is [email]kevin_patrick1989@yahoo.com[/email], please respond

Member Avatar
Member Avatar
+0 forum 3

Hi all! I'm putting together a WordPress blog, and I'm trying to make it work with a standard template called "Tribune." It uses custom tags on posts to apply thumbnails and featured images. I can't quite figure out where to place the code in the index file to get it working. The website is [URL="www.prezblog.com"]www.prezblog.com[/URL] . Here's the code they want me to embed, with a few parameters. [CODE]<?php if(function_exists('wp_smart_image')) wp_smart_image($size='mini', $type = 'single') ?>[/CODE] My index file is as follows, and is also attached: [CODE]<?php get_header(); ?> <div id="content" class="narrowcolumn"> <?php if (have_posts()) : ?> <?php if(function_exists('wp_smart_image')) wp_smart_image($size='mini', $type …

Member Avatar
Member Avatar
+0 forum 5

I do not want to have my box this wide. I would like the text to wrap but I do not know how. Can I do this? I'd like my box to be 400,400 rather than 1250,200, but it is the only way I can get my text to fit. Or could I make a new box under the pull down menu that had this description in it. I do not know how to do it. - frame.add(panel3, BorderLayout.SOUTH); ??? [CODE]public class ComboBox{ String course[] = {"Menu","CIS212","CIS222","CIS406","CIS407","CIS326","CIS328","CIS493"}; String desc[] = {"Please choose a class from the menu", "System Modeling Theory: …

Member Avatar
Member Avatar
+0 forum 2

Hi all, Please be gentle with me since I don't know code/databases at all. So, I can't login into my wordpress blog because of this: Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/o/o/dooley078/html/wp-content/themes/thetheme/functions.php:717) in /home/content/d/o/o/blue078/html/wp-login.php on line 337 What I did was download the wp-config.php and functions.php files and loaded them (separately) into note pad to look for any white spaces before or after the opening/closing tags. I didn't find any extra spaces in either file. I really don't know what else to do. I can't login into my blog and this is driving …

Member Avatar
Member Avatar
+0 forum 1

Just wondering but is there a way to include the meta tags from one page to another? The reason why i ask this is that i built a website using PHP Includes and want to include the meta tags so when i load index.php?id=About , it will load the meta tags from the include page and not from the main index.php page? Before you suggest using URL Rewrite to make the URL's look better i already am :) Let me know if you have a answer to this :)

Member Avatar
Member Avatar
+0 forum 2

<Meta NAME> and <Meta HTTP-EQUIV> Hello guys, i am recently observed these meta tags in websites source file and that websites position in search engine is in top rank. are these meta tags are useful to get top rank in search engine? what are the difference between <META HTTP-EQUIV="keywords" and <meta name="keywords"

Member Avatar
Member Avatar
+0 forum 4

The End.