[
{
"url": "https://www.daniweb.com/programming/software-development/threads/111562/to-parse-through-the-file-and-print-output-using-awk-or-sed-script",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nA file is\n\nELLPSYSTATL\n\nELLSUYSTLTL\n\n* * * : . * * * :* *\n\nHHULJKLOPOA\n\nHPULJKLPOOA\n\n* . * * * * * : : * *\n\nand it is a long file .....so output shud be\n\nwhere there is : and . counting start from E and end upto A.P4S\n\nS5U\n\nA9L\n\nH13P\n\nO19P\n\nP20O\nA file is\n\nELLPSYSTATL\n\nELLSUYSTLTL\n\n* * * : . * * * :* *\n\nHHULJKLOPOA\n\nHPULJKLPOOA\n\n* . * * * * * : : * *\n\nand it is a long file .....so output shud be\n\nwhere there is : and . counting start from E and end upto A.P4S\n\nS5U\n\nA9L\n\nH13P\n\nO19P\n\nP20O\nHey There,\n\nNot sure what you're looking for based on the output and then the results.\n\nAre these colons and dots in the text? And, the case of P4S, what context are you using to count from E to A?\n\nIf you could clarify, that would be great. I'm not really sure what you're trying to accomplish.\n\nThanks,\n\nMike\n\nThanx ...\n\nSee this simple file\n\nABCDEFG\n\nABCEEFH\n\n* * * : * * * .\n\nso it have three rows . Those first two rows say\n\nA and A match then it will be * (asterisk) in the third row.\n\nand those D and E not match there will be colon (: ) or\n\nG and H not match .(fullstop) in the third rowOur question is\n\nIn third row where there is colon (: ) and .(fullstop)\n\ntell the number and wht is that name at that number\n\ntherefore output will be\n\nD4E because colon is at 4 number\n\nG7H because fullstop is at 7 numberAnd it will be a long file where there is colon and full stop\n\njust tell the number and name ...One more question is\n\nIn some other files colon or fullstop may be at 4th row or 5th row\n\ncan u script this one also separately\nHey There,\n\nAre there always only 2 mismatched letters in each pair of rows? Just wondering if you do multiple colons before full stop and how you handle that.\n\nAlso, can you post what you have so far? Just curious as to where you're having the issue.\n\nThanks :)\n\n, Mike\n\n> \n\nHey There,\n\nAre there always only 2 mismatched letters in each pair of rows? Just wondering if you do multiple colons before full stop and how you handle that.\n\nAlso, can you post what you have so far? Just curious as to where you're having the issue.\n\nThanks :)\n\n, Mike\n\nThanks for looking into the question\n\nActually u can say this is a part of sequence alignment ( biology) where amino acids of one sequence aligns with amino acids of another sequence Say between human and chimpanzee\n\nso those amino aicid match thatwill give asterisk\n\notherwise colon or fullstop ( this is by software program which can produce that)\n\n.\ncan u produce a script if u look into the question previously posted if possible.\n\nThanks\n\nSorry, I know awk/sed was requested, but a python solution was so easy, couldn't help to post it:\n\n```\n#!python\n\n(a, b) = ([], [])\n(i,j)=(1,1)\ndiffchar=['.',':']\n\nfor line in open(\"sq.txt\"):\n line=line.strip()\n if i == 1:\n a = list(line)\n elif i == 2:\n b = list(line)\n elif i == 3:\n for (x,k) in enumerate(list(line.replace(' ',''))):\n if (k in diffchar):\n print a[x]+str(j)+b[x]\n j+=1\n\n i=0\n i+=1\n```\n\nDiscard if you can't have Python. This may give you some idea about the awk code though (feel too lazy to translate in awk:)\n\nHTH\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/hardware/threads/225949/hp-presario-2100-power-turns-off",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\n1. OS-Windows XP Home\n\n2. Slowed, froze, blue screened.\n\n3. Select startup, F8. Nothing worked.\n\n4. Formatted hard drive with wipe (format disk).\n\n5. Tried to install XP Pro.\n\n6. Power shut off at end of loading startup files.\n\n7. Retried several times. Finally, loaded XP Pro.\n\n8. While loading Office, froze, blue-screened.\n\n9. Started over, but this time with original XP Home.\n\n10. Power continues to shut off after loading \"checking system and loading startup files\".\n\n11. No battery inserted.\n\n12. Direct power.\n\n13. When power goes off, unplug power supply, plug back in to be able to start again.\n\n14. Is something in the startup files triggering the power shut off?\n\n15. Is this a software or hardware problem, or both?\ngmstechhelp 0 Newbie Poster\n\nXlphos 16 Veteran Poster\n\ngmstechhelp 0 Newbie Poster\n\nXlphos 16 Veteran Poster\n\ngmstechhelp 0 Newbie Poster\n\nXlphos 16 Veteran Poster\n\ngmstechhelp 0 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/27581/memory-issue",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi everyone,\n\nI've been having problems with my machine for a while now even though we upgraded about 4-6 months ago.\n\nOE keeps causing the machine to go nutso & most of the time I can get it under control & then it will do it again several hours later until I have to reboot.\n\nIt's so bad now, that I have to reboot once every 2 days instead of the once every week I had to reboot b4.\n\nI'm on Win. 2000 Proffesional & I'm now using 1.0.4 of FF which has a lot of bugs I've noticed :(\n\nI use OE only b/c TB sucks as an e-mail program.\n\nI find it happens mostly when I have a lot of e-mail windows open, but it was never this bad b4.\n\nOh & I now have 1 GB memory & that's still not helping.\n\nOops, almost forgot. I scan regularly with Anti Spyware & Anti Virus & update too, so that's not the issue.\n\nPlease help :(\n\nThanks\n\nMichelle",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/145137/how-to-append-ms-word-in-a-vb-net-project",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nhello ppl,\n\ni have a doubt how do i append MSWord in my proj. if i have a form on which i make a button now on clicking that button MSWORD should open. If i use system.diagnostic.process.start() and the whole path of MSWORD in the bracket it will work but what if i want to make it run on some other machine what should be done in that case please help me with a code as soon as possible.\n\nOne more thing how do i make a simple combo box uneditable at run time.\n\nplease help me as soon as possible by providing codes for both my questons...\n\nthank you.\nasmit1987 0 Newbie Poster\n\nJx_Man 987 Nearly a Senior Poster Featured Poster\n\nasmit1987 0 Newbie Poster\n\nasmit1987 0 Newbie Poster\n\nPgmer 50 Master Poster Featured Poster\n\nasmit1987 0 Newbie Poster\n\nPgmer 50 Master Poster Featured Poster\n\nPrabakar 77 Posting Whiz\n\nPgmer 50 Master Poster Featured Poster\n\nasmit1987 0 Newbie Poster\n\nasmit1987 0 Newbie Poster\n\nPrabakar 77 Posting Whiz\n\nasmit1987 0 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/121263/edit-printed-line",
"domain": "daniweb.com",
"file_source": "part-00231-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nThis problem has been driving me crazy, I just can't seem to find anything in the Python docs.\n\nI've been working on a script, It connects to a remote server and downloads multiple RAR files as a \"job\", it then extracts them to the correct place.\n\nIt works, but I get this for each file:Getting http://(url removed).com\n\n(big delay here)\n\nGot http://(url removed).comYou can see the problem with that, it doesn't give you an idea of how much work it's done.\n\nI've been trying to implement a status bar, I can get the percentage by downloading the files in chunks. But I don't know how to write this to part of the screen in the way that wget would ( I would get annoyed if it kept taking new lines everytime the percentage changed).\nedit: I should also add that I can't use any advanced graphics or anything, it gets ran on a linux server via ssh.\n\nThanks.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/428664/python-and-mpi4py-question",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHey guys,\n\nI'm new to parallel programming, so I was wondering if anyone could help me parallelize a bit of code. It is a code that goes into large h5 files (using h5py) and grabs some data out. After that the data has to be reformatted and printed into another file. I was wanting to parallelize the for loop part of going over the data over several processors. These are very large files so it would help as far as memory and speed goes. Again, I'm very new at this, so if anyone has any ideas to go a completely different direction I'm all ears. Here is the code as it stands serially:\n\n```\nimport h5py\nimport glob\nimport sys\nimport os\nimport numpy\n\n### This takes the simulation name as the first argument and the day to extract as the second\n### All h5 files must be in the same folder, with no other h5 files (including surface)\n\nsim_name = sys.argv[1]\nday_to_extract = sys.argv[2]\ntotal_nodes = int(sys.argv[3])\ntotal_elements = sys.argv[4]\n\nfiles = glob.glob(\"*.h5\")\n\na = numpy.empty(total_nodes)\nb = numpy.empty(total_nodes)\n\nhot_list = numpy.column_stack((a,b))\n\nfor file in files:\n # Get all of the data from h5 file\n f1 = h5py.File(file, 'r')\n data = f1['Data']\n temp = data['Temperature']\n # Getting temperature data for the day needed\n temp_day = temp[day_to_extract]\n press_head = data['Pressure_Head']\n # Getting pressure head data for the day needed\n press_day = press_head[day_to_extract]\n geo = f1['Geometry']\n # Obtaining the original node numbers \n # This keeps temp and press_head indexed correctly\n nodes = geo['orig_node_number']\n orig_nodes = nodes['0']\n\n # Put data into list\n for i in range(len(orig_nodes)):\n orig_node_number = int(orig_nodes[i])\n hot_list[orig_node_number] = [press_day[i], temp_day[i]]\n sim_name, piece = file.split('p')\n part, ext = piece.split('.')\n print \"h5 file number \" + part + \" read\"\n f1.close()\n```\n\nThe last part where it is putting the data into the list is the part that is RAM and CPU intensive. I was hoping to break up the large temperature, pressure head, and original node numbers into smaller chunks and add them to to the hot_list array simultaneously. I'm just not sure how to best go about this. I figure it would be using scatter, but I can't figure out how to make it scatter the file into even lists or numpy arrays around the processors and then gather them back. I know this is asking a lot, but if anyone could at least point me in the right direction I would be happy to do the heavy lifting. Thanks for your time!",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/databases/threads/479976/access-denied-when-trying-to-connect-to-mysql-with-correct-password",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi,\n\ni'm having some trouble with my MySQL server where i can't log in or connect to it from the terminal , phpmyadmin or my server control panel. the password is correct , i have reset it a number of times but still get the same message:\n\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y\n\nES)\ndoes anybody know what might cause this (please don't say the password is wrong)\n\nThanks,\n\nMatt",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/439117/xml-read-write",
"domain": "daniweb.com",
"file_source": "part-00231-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHello all! Hopefully there is someone out there who can help me with what I need to achieve.\n\nGoal: Loop through XML file, reading node by node searching for a node with a specific attribute with a specific value, then write to another attribute of said node found.\n\nI feel that isn't as clear as it could be, so hopefully further reading will clarify.\n\nThe XML FILE:\n\n```\n\n \n \n \n \n \n \n \n \n\n```\n\nBasically I need to load the file that contains a more elaborte yet consistant group of nodes identical to the XML code above and loop through looking for, lets say for example sake, LookVertAcc_Pad in attribute 'n' and update its 'v' attribute to 3000.0. Specifying any node isn't necessary, needed, or warranted. All attributes that I will need to modify will be in this format. I am completely new to reading/writing XML and would highly appreciate any help.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/124061/chinese-strings-in-python",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHello, All:\n\nMy first post... I've looked high and low for the ability to write a Chinese language text string in a program.\n\nFor example:\n\nmyString = \"你好\"\n\nSo that if you say:\n\nprint myString\n\non the console you will see:\n\n你好\n\nBut I have yet to be successful. First off, can Python do this, and second, what is the *easiest* way to make it happen? I'm certain I'm not the only one who would like to use Unicode in their source programs, or be able to process Unicode strings, but every article I've seen does it differently. Is there another language that will do this easily?\nSurely, this is not difficult, is it?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/183436/code-compiling-but-wrong-output",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nplease help i think d error is in inputtin d values into d linked list! D files are attached\n\nTriniBabe 0 Newbie Poster\n\n```\nBW900 pos Arima 2.2 7\r\njk11 Here there 90 1200\r\nxbxb Sando Gran 66 120\r\nEND\n```\n\n```\n#include\r\n#include\r\n#include\r\n#include\r\n\n# define MaxWordSize 5\r\n# define MaxDests 50\r\n\ntypedef struct edge\r\n{\r\nchar flightNo[MaxWordSize + 1];\r\n\nchar destinationPort[MaxWordSize +1]; \r\n\ndouble cost;\r\n\ndouble duration;\r\n\nstruct edge*next;\r\n\n}Edge, * EdgePtr;\r\n\ntypedef struct Vertex\r\n{\r\n\nchar embarkmentPort[MaxWordSize +1]; \r\n\nEdgePtr Destinations;\r\n\n}Vertex;\r\n\nEdgePtr newEdge (char f[MaxWordSize + 1],double d, double c, char des[MaxWordSize + 1])\r\n{\r\n\n EdgePtr p = (EdgePtr) malloc (sizeof(Edge));\r\n\n strcpy(p->flightNo,f);\r\n\n strcpy(p->destinationPort,des);\r\n\n p->duration = d;\r\n\n p->cost = c;\r\n\n p->next = NULL;\r\n\n return p;\r\n\n}\r\n\nVertex newVertex (char emb[MaxWordSize + 1])\r\n{\r\n\n Vertex temp;\r\n\n strcpy(temp.embarkmentPort,emb);\r\n\n temp.Destinations = NULL;\r\n\n return temp;\r\n\n}\r\n\ntypedef struct graph\r\n{\r\n\n int numV;\r\n\n Vertex vertices[MaxDests + 1];\r\n\n }*Graph;\r\n\nGraph newGraph()\r\n{\r\n\n Graph p = (Graph) malloc (sizeof(struct graph));\r\n\n p->numV = MaxDests;\r\n\n return p;\r\n\n}//end newGraph\r\n\n int main(){\r\n\n int buildGraph(FILE * ,Graph G,int );\r\n void printGraph(Graph , int ); \r\n\n int a,n=0; \r\n\n FILE * in1 = fopen(\"flights.txt\",\"r\");\r\n\n if(in1==NULL)\r\n\n {\r\n printf(\"File could not be found.\\n\\n\");\r\n exit(1);\r\n\n } \r\n\n Graph G = newGraph(); \r\n\n a = buildGraph(in1,G,n);\r\n printGraph(G,a);\r\n\n fclose(in1);\r\n\n system(\"pause\");\r\n return 0;\r\n\n}//end main\r\n\nint buildGraph(FILE * in1,Graph G,int n)\r\n{\r\n\n EdgePtr addInPlace(EdgePtr,char[], double, double, char[]); \r\n\n int i; \r\n char temp[MaxWordSize + 1]; \r\n char ePort[MaxWordSize + 1], dPort[MaxWordSize + 1]; \r\n double d,c; \r\n\n EdgePtr top = NULL;\r\n\n fscanf(in1,\"%s\",&temp);\r\n\n while(strcmp(\"END\",temp)!=0)\r\n {\r\n\n fscanf(in1, \"%s\",&ePort);\r\n fscanf(in1, \"%s\",&dPort);\r\n fscanf(in1, \"%lf\",&d);\r\n fscanf(in1, \"%lf\",&c);\r\n\n for(i=0; i <= n; i++)\r\n {\r\n\n if(strcmp(G->vertices[i].embarkmentPort,ePort)!=0)\r\n {\r\n n++;\r\n\n G->vertices[n] = newVertex (\"\");\r\n\n strcpy(G->vertices[n].embarkmentPort,ePort);\r\n\n top = addInPlace(G->vertices[n].Destinations,temp, d, c, dPort);\r\n\n }//end if\r\n\n else\r\n {\r\n\n top = addInPlace(G->vertices[i].Destinations,temp, d, c, dPort);\r\n\n }//end else\r\n\n }//end for\r\n\n fscanf(in1,\"%s\",&temp);\r\n\n}//end while \r\n return n; \r\n}//end buildGraph \r\n\n//Adding the destination ports for each embarkment port in alphabetical order\r\nEdgePtr addInPlace(EdgePtr top,char temp[MaxWordSize +1], double d,double c, char dPort[MaxWordSize +1])\r\n{\r\n\n EdgePtr newP,prev,curr;\r\n\n newP = newEdge (temp, d, c, dPort); \r\n prev = NULL;\r\n curr = top;\r\n\n while((curr!= NULL) && (strcmp(dPort,curr->destinationPort) > 0))\r\n {\r\n\n prev = curr;\r\n curr = curr->next;\r\n\n }//end while\r\n\n if (prev == NULL)\r\n {\r\n\n newP->next = top;\r\n return newP;\r\n\n }//end if\r\n\n newP->next = curr;\r\n prev->next = newP;\r\n return top;\r\n\n}//end addInPlace \r\n\nvoid printGraph(Graph G, int n)\r\n{\r\n\n int j;\r\n\n printf(\"Embarkment Port Destination Ports Flight No Duration Cost\\n\\n\"); \r\n\n for (j=1; j<= n; j++)\r\n {\r\n\n printf(\"%-15s\",G->vertices[j].embarkmentPort);\r\n\n while(G->vertices[j].Destinations!= NULL)\r\n {\r\n\n printf(\"%s %s\" ,G->vertices[j].Destinations->destinationPort, G->vertices[j].Destinations->flightNo);\r\n\n printf(\"%lf .%2lf\",G->vertices[j].Destinations->duration,G->vertices[j].Destinations->cost);\r\n\n G->vertices[j].Destinations = G->vertices[j].Destinations ->next;\r\n\n }//end while\r\n\n } //end for \r\nprintf(\"\\n\");\r\n}//end printgraph\n```\n\nNick Evan 4,005 Industrious Poster Team Colleague Featured Poster\n\nThis is no way to ask a question. What the hell are we supposed to do with \"i think d error is in inputtin d values into d linked list\" ?\n\nPost your code using code tags (don't just upload some files) and then tell us\n\n1. what the code is supposed to do (input/ouput)\n\n2. What the code is actually doing\n\n3. (optional) tell us where you think the problem is.\nHere's a sort of 'forum-manual', you might benefit from reading it.\n\nvmanes 1,165 Posting Virtuoso\n\nAlso, writing in something approaching proper English is appreciated. Text- or leet-speak is generally not appreciated.\n\nTriniBabe 0 Newbie Poster\n\nok!\n\nthe code reads i in data about each flight(given on a seperate line 4 each flight) so i hav 2 build a graph 2 find shortest distance!\n\nso i create a vertex that stores a given startin pt and a linked list that stores all its possible end pts along with cost,time to get from start vertex 2 en vertex!\n\nbut i dont no wat i did wrong?????\n\n```\nint buildGraph(FILE * in1,Graph G,int n)\n{\n\n EdgePtr addInPlace(EdgePtr,char[], double, double, char[]); \n\n int i; \n char temp[MaxWordSize + 1]; \n char ePort[MaxWordSize + 1], dPort[MaxWordSize + 1]; \n double d,c; \n\n EdgePtr top = NULL;\n\n fscanf(in1,\"%s\",&temp);\n\n while(strcmp(\"END\",temp)!=0)\n {\n\n fscanf(in1, \"%s\",&ePort);\n fscanf(in1, \"%s\",&dPort);\n fscanf(in1, \"%lf\",&d);\n fscanf(in1, \"%lf\",&c);\n\n for(i=0; i <= n; i++)\n {\n\n if(strcmp(G->vertices[i].embarkmentPort,ePort)!=0)\n {\n n++;\n\n G->vertices[n] = newVertex (\"\");\n\n strcpy(G->vertices[n].embarkmentPort,ePort);\n\n top = addInPlace(G->vertices[n].Destinations,temp, d, c, dPort);\n\n }//end if\n\n else\n {\n\n top = addInPlace(G->vertices[i].Destinations,temp, d, c, dPort);\n\n }//end else\n\n }//end for\n\n fscanf(in1,\"%s\",&temp);\n\n}//end while \n return n; \n}//end buildGraph\n```\n\nEdited by Reverend Jim because: Fixed formatting\n\nNick Evan 4,005 Industrious Poster Team Colleague Featured Poster\n\nIf your to lazy to click the link(s) I gave you, then I'm to lazy to try and help.\n\nUse. Code. Tags.\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/community-center/threads/261908/what-s-your-favorite-computer-game/4",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nSgtMe 46 Veteran Poster Featured Poster\n\nmrnmarius -2 Newbie Poster\n\nblindmelon 0 Newbie Poster\n\nAnderson24 0 Newbie Poster\n\ncwekeybb2351 0 Newbie Poster\n\npeter_budo commented: Spammer +0\n\nR3ap3R\n\nlorenzoromar -2 Newbie Poster\n\nhappygeek commented: And SPAM THE GAME no doubt you SPAMMER +0\n\nThe Mad Hatter -3 Junior Poster in Training\n\nfrogboy77 73 Posting Pro in Training\n\nSudo Bash 0 Light Poster\n\nliquidroof 0 Newbie Poster Banned\n\njember 14 Light Poster\n\nJeremy Noye 0 Newbie Poster\n\njember commented: Diablo II rocks! :) +0\n\nmalcolm1105 0 Newbie Poster\n\nmalcolm1105 0 Newbie Poster\n\ndcdruck 11 Light Poster\n\njember commented: i totally agree with you! :) +0\n\njoshevans 0 Newbie Poster\n\nprinting.host 0 Light Poster\n\nmagicianM 0 Newbie Poster\n\nkimmy12312 0 Newbie Poster\n\ndavidlouis88 0 Newbie Poster Banned\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/linux-and-unix/threads/212989/mail-server",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nWhat is the requirements of mail server\n\njohny321 0 Light Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "http://www.daniweb.com/software-development/csharp/threads/450975/how-to-find-if-the-user-has-logged-in-for-the-first-time-c",
"domain": "daniweb.com",
"file_source": "part-00163-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nThe scenario is, If the user has logged in for the first using his one time password it should get redirected to ResetPassword.aspx\n\nIf the user is not new, then should get redirected to Main.aspx page.\n\nShould I use IsPostBack or Membership.ValidateUser?\n\nHow do we usually code in c# to check if its a new user (using first time login)\n\nI am a newbie to programming not getting enough info on net. Please help",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/156801/problem-in-connecting-to-the-database",
"domain": "daniweb.com",
"file_source": "part-00815-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi\n\nI am very new to C#. Below is the program which i am trying.\n\n{\n\nstring connstring = \"Data Source = .\\\\SQLEXPRESS;Initial Catalog = SAMP; Integrated Security = True\";SqlConnection conn = new SqlConnection(connstring);\n\nSqlCommand comm = new SqlCommand();\n\ncomm.Connection = conn;\n\nSqlDataAdapter myadapter = new SqlDataAdapter(comm);\n\nDataSet myset = new DataSet();\n\nconn.Open();\n\ncomm.CommandText = \"Select * From EMP \";\n\ncomm.ExecuteScalar();\n\nmyadapter.Fill(myset, \"EMP\");\n\ndataGridView1.DataSource = myset;\n\ndataGridView1.DataMember = \"EMP\";\n\nconn.Close();\n\n}\n\nBut I am getting following error. I am using sql server 2005 express edition.\nA network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)\n\nPls anybody provide me some solution.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/489015/how-to-find-zero-used-in-given-number",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nSample output:\n\nPlease enter a number(Less than 8 digits):\n\n1203021\n\nhow can I sure only 8 digits key in and how to count the zero inside the given number. Please teach me final is coming :(\nWeejin 0 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/databases/threads/392340/adding-time-data-to-mysql",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi. I'd like to add time (and no date, and not a timestamp) data to a field in MySQL through a PHP form. I've been having problems, as the date is also included. But I only want the time (I want to be able to sort the data by the time, and I think it was adding today's date along with the time, so if I enter the data on 5 different days, it won't sort correctly).\n\nPHP Insert Code:\n\n.strtotime($event_start_date).MySQL field:\n\nType: INT\n\nLength/Values: 10\n\nDefault: None\n\nCollation:\n\nAttributes: Unsigned\n\nEverything else emptyCan anyone help with:\n\n1) what should the php insert code be\n\n2) what the field type, attributes, length/values, etc should be\nThanks!",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/284417/how-to-catch-f5-key",
"domain": "daniweb.com",
"file_source": "part-00163-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nAs the title suggests\n\nAny help for keypress action folks??\n\nDo we have a keypress func in c++.\n\nI'm runnin Win Xp Dev c++\nanuragcoder -6 Junior Poster in Training\n\nKetsuekiame 860 Master Poster Featured Poster\n\nNarue 5,707 Bad Cop Team Colleague\n\nanuragcoder -6 Junior Poster in Training\n\ndaviddoria 334 Posting Virtuoso Featured Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/494883/is-their-a-way-to-use-the-developer-command-prompt-without-visual-studio",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nActually i need to use the Developer command prompt for my project. Iam doing project in java. Without entire visual studio shall i use only dumpbin.exe file to execute commands.\n\nAnanthoju 0 Newbie Poster\n\nDistantGalaxy 15 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/186813/compiling-c",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi, this is my first post here. The fact is i'm not a programmer and i need help. I have a software that i need to solve a vehicle routing problem for my thesis. But i only got the source code for it, one header file and 6 cpp files. I have tried compiling this with no success, the error messages mean nothing to me, maybe i'm missing something, files to compile on win32, i don't know. If any of you guys are willing to help, i would be gladly apreciated (should be no problem for a programmer).\n\nNeed this for win32 console.\nhttp://rapidshare.com/files/221788134/sdvrp.zip\n\nRegards,\n\nJorge",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/90807/upgrading-to-xp-pro",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi!\n\nI have a dell ispiron 1300 laptop, with Win XP & SP2. Thanks to my college, I also have access to the MSDNAA software site, so I decided to download XP Pro (with service pack 2) for my laptop (free through the program, after all).\n\nSo after doing the advisor program thing, which tells me there should be no hardware conflicts, the file downloads as an iso, and I burn it to a disc and run the installer.\n\nIt gets to the point where it's copying a bunch of installation files to the C drive, and then tells me, in essence, just before completion \"cannot copy axjf317s.sys to , as it is missing\". I try to skip and reboot, but the installation will not continue when it sees that file is missing.\n\nAnd I download it a second time, and this time it's missing ahodpamy.sys and again cannot properly boot into the installation. What the heck? :icon_eek:\n\nAlso none of these files return results on google, that do I do? :icon_eek:",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/347085/compiling-open-source-projects",
"domain": "daniweb.com",
"file_source": "part-00815-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi,\n\nI have been trying to compile open source projects since past few months with no success. I just don't know how to go about the entire thing. Readings over the internet have not helped much.\n\nSome come with ./Configure and a Makefile while others with only a Makefile. How to use them to generate executables (or they have some other purpose :?:).\n\nMy machine currently has:\n\n* Windows XP\n* Mingw Compiler for C/C++\n* Cygwin\n\nDo I need any other software?\n\nThanks!",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/information-security/threads/145925/really-bad-virus-please-help",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi everyone. I'm new here, a friend of mine suggested that i come here and tell you all about my problem so that you can try to help me. Thanks in advance, and here goes:\n\nLaptop:\n\nI think i have a spyware type virus on my laptop. I don't know how i got it as i didnt download anything but i did open a torrent file. It has caused a lot of problems for me, including:\n\n...not allowing me to access my email account. I can sign in normal but when my page comes up, the font is twice the size it should be and my inbox isnt clickable. I had to have a friend use a different email address and verify it for me in order to join up here as i just cant use mine.\n\n...i can't use google. when i try to click on one of the google links, it opens a new tab and takes me to an irrelevent page. sometimes from there it even shuts down my laptop.\n\n...it has seemed to block any site that might help me, including anti virus sites, and McAfee live chat. I tried to get avast (friend recommended) but it blocked it. I managed to get a free trial of AVG, but now the virus seems to have gotten into that and is disrupting all my virus scans. When i first used it, it told me i had 2 trogan horses and 4 Adware something or other. But now, i the scan barely last 5 seconds before its stops and an error report pops up.\n\n...it frequently shuts down my laptop\n\n...am i gonna have to wipe the whole thing and start again??\nPC:\n\nI have an even worse virus on my PC. I don't know what happened and i didnt get the chance to do a virus scan because now only the background comes up when i switch it on. I don't even have a start bar anymore.... It isnt allowing me to do anything!\n\n...I fear that your going to tell me something about using safe mode and command prompt and i'm gonna be so clueless....\nEDIT: If necessary, how/how long would it take to copy my hard drive to an external hard drive with only using command prompt in safe mode?\n\nPLEASE HELP!!!! :'( :S :confused:",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/395455/path-to-pdf-file",
"domain": "daniweb.com",
"file_source": "part-00815-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI want to attach User Instructions to a Java application, and allow the user to open it from the help menuitem.\n\nI'm not very familiar with classpath variables. If I use an absolute path name everything is fine, such as\n\nFile pdfFile = new File(\"C:/Program Files/MyProgram/UserGuide.pdf\");\n\nBut I want to package the UserGuide in the jar file (to avoid issues openning it on a Mac or Linux machine, and prevent the user from deleting it etc.).\n\nSo I want to access it using\n\nFile pdfFile = new File(\"files/UserGuide.pdf\");\n\nwhere files is a directory in the package where the main method's class is located. But I get an error\n\njava.io.FileNotFoundException: files\\UserGuide.pdf (The system cannot find the path specified)\nIn Eclipse how do I achieve this?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/160624/need-help-urgently",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi,\n\nI'm new to Java and I need help with the following if someone can help me:\n\nWrite a program named Personnel that maintains salary information for the employees of a company. The program should display a text based menu, giving the user a choice of selecting a command.\n\nThe commands that the program should support are: n (create new employee by pressing the n button), l (list all employees), p (compute all paychecks), r (raise wages), and q (exit the\n\nmenu).The n command creates a new employee and prompts the user for the name of the employee, and whether the employee is an hourly paid, or has an annual salary. If the user selects to create\n\nan hourly paid employee, he/should be prompted for the hourly rate, otherwise he/should be prompted for the annual salary of the employee.\nThe p command calculates and displays on the screen the amount that it should be paid to each individual employee who already exists in the system. Assuming that hourly paid employees have been created, the p command should ask the user for the number of hours that each individual hourly paid employee has worked for.\n\nThe r command should prompt the user for a percentage rate. All salaries (annual and hourly) should be increased by this rate.\n\nAdditionally, the user should be able to display all the employees with an annual salary in ascending order, according to their salaries. I.e. the employee with the smallest salary should\n\nbe displayed first, the employee with the second smallest salary should be displayed next, etc\n\n.\n\nThe program should implement the classes Employee (abstract class), HourlyEmployee, SalariedEmployee with appropriate methods.Implement a test class which creates instances of all the implemented classes and tests their functionality.\n\n---------------------\nI've done a text based menu displaying the above options, but what do I put in the switch case for the menu for the different cases?\n\ncase 'N' : ???????",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/46437/basic-of-vb-net",
"domain": "daniweb.com",
"file_source": "part-00163-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nnnchoudary 0 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.\n\nhi NN\n\nVB.Net is not difficult to learn though. If you have learned or programmed VB before (VB6), you should have the foundation already. The major different of VB6 and VB.Net is VB.Net now is part of a larger system named. Visual Studio 2005. Previously VB is an individual applicatin development tool but if has been integrated into Visual Studio 2005. VB.Net is a object oriented programming language. Unlike the previous version, you may struggle a little initially when you pick up vb.net as you need to understand namespaces, objects, classes, overloading, etc. I hope this will not scare you off. As long as you have learned VB before, you should not worry. The base structure of the language such as iteration, decision making syntax ,etc remains the same.\n\nI would suggest you to pick up the following books to kick start your learning process\n\n1. Visual Basic for Dummies (Wiley Publishing)\n\n2. Visual Basic 2005 Step by Step (Microsoft Press)\n\n3. Visual Basic 2005 JumpStart (O'Reilly)\nOnce you have mastered some basic skills from these books, you may wish to take a look at the WROX series book from Wiley Publishing. These books are OK but not for beginners. You may sometime 'lost' somewhere if you try to use WROX series book to teach you the basic of VB.Net.\n\nHope this will help. If need some help during the course of learning VB.Net, do drop me an email or message. I will try to help if possible.\n\ncheers\n\nzmind\n\ncheck this site for video's for beginners:\n\nhttp://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx\nHi,\n\nStart with good tutorials or with good books. Try this title:\"Database programming using vb.net and sql server\", by VK publishers. This books will give you the complete application development in vb.net.\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/code/216590/processing-two-lists-python",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nThe Python list container can be used for many practical things. In this somewhat light-hearted introspection of modern day politics we are looking at two lists and attempt to clear out elements that shouldn't be in both lists. No offense to anyone is intended, the outcome with the sets was a surprise to me.\n\n# Processing two Lists (Python)\n\n```\n# the government inner circle keeps two lists of countries\r\n# one is the yeList of countries that pretty well go along with any adventure \r\n# and the other list is the noList of countries that are not always with us\r\n# let's assume these lists have gotten longer and some countries now appear in both lists\r\n# you have to find which ones have dared to say no and remove them from the yeList\r\n# tested with Python24 vegaseat 04jul2005\r\n\nyeList = ['England','Italy','Portugal','Spain','Israel','Poland','Morocco','Japan','Danmark']\r\nnoList = ['China','Canada','Brazil','Germany','Iran','Spain','France','Russia','Turkey']\r\n\nprint \"yeList =\", yeList\r\nprint \"noList =\", noList\r\n\nprint\r\n\n# since the original yeList would change, we are making a copy to use\r\n# (note, an alias like yesList = yeList has the identical address and would change too)\r\nyesList = yeList[:]\r\n\n# using try and except ...\r\nfor country in yesList:\r\n try:\r\n # if found in noList remove from yesList\r\n pos = noList.index(country)\r\n print pos, country # test\r\n yesList.remove(country)\r\n except ValueError:\r\n pass\r\n\nprint '-'*70\r\nprint \"washed yesList =\", yesList\r\n\nprint\r\n\n# another way to do this, using filter() ...\r\nyesList = yeList[:]\r\nyesList = filter(lambda s: s not in noList, yesList)\r\nprint '-'*70\r\nprint \"laundered yesList =\", yesList\r\n\nprint\r\n\n# yet another way to do it, using list comprehension ...\r\nyesList = yeList[:]\r\nyesList = [country for country in yesList if country not in noList]\r\nprint '-'*70\r\nprint \"sanitary yesList =\", yesList\r\n\nprint\r\n\n# should one of the lists be very long, then it is efficient to convert it to a set ...\r\nyesList = yeList[:]\r\nnoSet = set(noList)\r\nyesList = [country for country in yesList if country not in noSet]\r\nprint '-'*70\r\nprint \"immaculate yesList =\", yesList\r\n\nprint\r\n\n# fast algorithm, easy to comprehend, but changes the order ...\r\nyeSet = set(yeList)\r\nnoSet = set(noList)\r\nnewyesSet = yeSet - noSet\r\nprint \"the newyesSet =\", newyesSet\n```\n\nvegaseat 1,735 DaniWeb's Hypocrite Team Colleague\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/379527/re-use-mysql-result-set-in-perl",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi ALL,\n\nI am writing a script to retreive entries from a DB. And then I loop through all the entries.\n\nOnce I am done looping through all the result sets, I have to re-loop over them again.\n\nThis is done in an infinite loop (Please don't ask why to do it infinitely :P).\n\nThe script is as follows.\n\n$sth = $dbh->prepare($sql);\n\n$sth->execute;\n\nwhile()\n\n{\n\nwhile(@row = $sth->fetchrow_array())\n\n{\n\n//Working on the row returned.\n\n}\n\n}\nThe code has a wrapped infinite loop around it. So you can see the code as well, how I want it to work.\n\n$sql is the sql query I am firing.\n\nIn PHP we have a function mysql_data_seek to resuse the result set.\n\nDo we have something similar in Perl?\n\nI am using DBI to make connection with MySql Database.\nI will appreciate any help!\n\nRegards\n\nVaibhav",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/77470/little-help-with-gcc-gdb",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI have a daemon I'm working on that seems to bomb out in the middle of strcmp, WAY down in the bowels of the ODBC library. It would run for hours, then just mysteriously quit (well, as mysteriously as a SIGSEGV can be)- classic memory corruption symptom. So, I built it with Electric Fence (which, at least superficially, seems a pretty nifty product). When I start it with gdb, this is what I get, pretty much immediately, as the program is initializing:\n\n> \n\nNote the shared libraries\n\n#0 0xa7996270 in strcmp () from /lib/tls/libc.so.6\n\n#1 0xa794a0d9 in setlocale () from /lib/tls/libc.so.6\n\n#2 0xa60c43fa in my_SQLExtendedFetch () from /usr/lib/odbc/libmyodbc.so\n\n#3 0xa60c45b6 in SQLFetch () from /usr/lib/odbc/libmyodbc.so\n\n#4 0xa7a7d798 in SQLFetch () from /usr/lib/libodbc.so.1\n\n#5 0x0805604b in t_dbBuffer::GetNext (this=0xa6a8cfd8,\n\ndata=@0xafe3e468)\n\nat /home/anw/SoftwareProducts/Headers/dbTempDef.h:195\n\n#6 0x08050844 in rssd::InitRSS (this=0xa6d4cf1c) at rssd.cpp:808\n\n#7 0x08050997 in rssd::AppInit (this=0xa6d4cf1c) at rssd.cpp:667\n\n#8 0x0805c9b6 in main (argc=1, argv=0xafe3e6a4) at App.cpp:47\nI've got at least two questions here: I wrote my own quick and dirty strcmp to at least try and find out what the comparison strings were, but, although all the code I wrote picks up my strcmp, this part of the code doesn't.\n\nWhy would it use two different copies of strcmp?\n\nHow do I force it to use my version?\nHere's the compile line, with all make substitutions done:\n\n> \n\ngcc rssd.cpp topic.o user.o subscription.o smsClt.o -o rssd -g -D_LINUX -I ~anw/Software/Headers -I /usr/include/nptl -L /usr/lib/debug -L~anw/Software/Libraries -L /usr/lib/nptl -D _LINUX -DNETDATASVC_EXPORTS -lApp -lLog -lxml -lxerces-c -lstdc++ -lpthread -lSimpleNet -lSerPort -lodbc -lDBUtils -lefence\n\nrm topic.o subscription.o user.o smsClt.o\nMy strcmp is in the library ~anw/Software/Libraries/libDBUtils.a.\n\nNote, also, that I have the debug versions of the standard libraries installed (the -L /usr/lib/debug switch), and, evidently, it's not picking up those either.\n\nTIA,\n\nanw",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/293238/refresh-a-form",
"domain": "daniweb.com",
"file_source": "part-00231-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi all,\n\nHow to create refresh Button in the form? I have combo box with the\n\ndata linked to Access database. I create another form for data input for\n\nthose that appear on the combo box. When I close the input form, I\n\nrealise that the data is not yet appear on the combo box. I have to\n\nclose the first form, then open again. Then the data had included on the\n\ncombo box. Instead of doing this thing, I believe refresh button will\n\nhelp a lot.\nAny help please.\n\nThanks/shena",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/108802/crystal-report-question",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi guyz, i have a question about crystal report . How to connect the Crystal Report in MS Access (w/ a password security).. Cause i can't seem to connect it with a password database..tnx in advance\n\nwerks 0 Junior Poster in Training\n\nchoudhuryshouvi 33 Posting Pro\n\nwerks 0 Junior Poster in Training\n\nchoudhuryshouvi 33 Posting Pro\n\nwerks 0 Junior Poster in Training\n\nchoudhuryshouvi 33 Posting Pro\n\nsganandhsg 0 Light Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/479379/three-partitions-can-t-install-format",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI have a hard drive that is meant to have Win7 installed. It cancels the installation by itself, right at the beginning, error code 0x80070017.\n\nThis drive has partitions c: d: and x:\n\nI tried formatting x: from cmd and it says it's write protected. Tried with d: and I'm not allowed.\n\nI'm not very at ease with cmd... so, what am I doing wrong?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/digital-media/ui-ux-design/threads/63154/dunno-how-to-make-a-good-site",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nNot to worry :)\n\nThe Dude 944 Nearly a Senior Poster\n\nroryt 150 Nearly a Posting Virtuoso\n\nGreenDay2001\n\nThe Dude commented: Â -2\n\nThe Dude 944 Nearly a Senior Poster\n\nGreenDay2001 commented: Believe it or not, its a spam spam spam!!! Hell yeah, did you forget to give -ve rep 2 years back. -1\n\nroryt 150 Nearly a Posting Virtuoso\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/35840/java-to-c",
"domain": "daniweb.com",
"file_source": "part-00815-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nDoes anyone know wether i can convert a Java written program to C?\n\nThank You\n\nThere is some sotware called Toba here:\n\nhttp://www.thefreecountry.com/compilers/java.shtml\n\nBut I guess there wasn't much call for it, as it isn't supported and only works for Java 1.1.\n\nIf you are looking to compile Java to native code you can do that directly without the C step. Which also can be found via the above link or just Google a bit.\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/415581/windows-8-c-cx-help-needed-stringstream-equivalent",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHello, people on daniweb.\n\nI was programming in C++CX for a metro application I am making, and needed to do a little string manipulation.Does anyone know if there is a way to individually edit members of String^, like an array, or if there is some equivalent to stringstream on C++CX? Just wondering, as the documentation isn't as complete as some as it is in beta.\n\nThanks, ahead!",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/7437/ie-stops-working-after-10-minutes",
"domain": "daniweb.com",
"file_source": "part-00163-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI'm having some IE problems. I can only view web pages on IE for 10 minutes when my computer first boots up, after that, I cannot display any pages. I have Internet connectivity, I can ping sites and use instant messenger, however no web pages will load. Any thoughts???\n\nsteelman 0 Newbie Poster\n\nDani 4,402 The Queen of DaniWeb Administrator Featured Poster Premium Member\n\nsteelman 0 Newbie Poster\n\nsaliva 0 Newbie Poster\n\nsteelman 0 Newbie Poster\n\ntechahbeng 0 Newbie Poster\n\nsteelman 0 Newbie Poster\n\nsmilinjack 0 Newbie Poster\n\nVIP0R 0 Newbie Poster\n\nsmilinjack 0 Newbie Poster\n\nsmilinjack 0 Newbie Poster\n\nMrXCLNC 0 Newbie Poster\n\ntechahbeng 0 Newbie Poster\n\nsteelman 0 Newbie Poster\n\nsaliva 0 Newbie Poster\n\nDMR 152 Wombat At Large Team Colleague\n\ntheWolf 0 Newbie Poster\n\nalgue 0 Newbie Poster\n\nma_noj 0 Newbie Poster\n\nThe Dude 944 Nearly a Senior Poster\n\nnemesis2k8 0 Newbie Poster\n\nSteve H 0 Newbie Poster\n\nThe Dude 944 Nearly a Senior Poster\n\nMarton 0 Newbie Poster\n\nFriend489 0 Newbie Poster\n\nxxcarlyxx 0 Newbie Poster\n\nPeter Yag 0 Newbie Poster\n\nsg9 0 Newbie Poster\n\nuabookie 0 Newbie Poster\n\nThe Dude 944 Nearly a Senior Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/274517/c-chat-application-push-technology",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHello everyone,\n\nI need some advice.I have been given an assignment to construct some kind of chat application which uses push technology (In C#, so i have socket objects and all that)\n\nReading on the internet, i came to know that push technology means in essence, that not the client makes requests, but the server updates content when 'it thinks it's appropriate' (mostly on a time-based schedule, or as soon as new data arrives).\n\nNow i need a few ideas an hints, from you guys who are more knowledgeable in this domain.\n\nMy main questions arise here:\n\nIf a client logs in, and starts chatting with another one, a regular messenger client would open a connection to the other client, essentially making it a Peer2Peer mini-application, with no server interference. The only actual role of the server would be to update the list of contacts as they 'log in' and 'log out'.\n\nIs this particular implementation good? How do other messenger-chat-apps work? Shouldn't the information pass through the server? If the server's only role is to announce who is 'logged in' and 'logged off', then why bother implementing push technology? (I've been given the assignment, with the words 'push technology' stressed out).\n\nAlso some advice regarding socket implementation / problems encountered is appreciated.Looking forward to hearing your answers.\n\nThank you.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/hardware/threads/48052/problems-adding-video-card-slot-questions",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI have a P4 2ghz box running XP h ed; the mobo is made by Elite Group (ECS); BIOS build from mid-2002. Box assembler Wintergreen via Tigerdirect. mobo video is Radeon 7000 with VGA connector.\n\nI need to run a 4-year-old Apple LCD monitor with DVI connector. I bought a Radeon 700 PCI DVI card, but while the PCI screen lights up, it only showed up as extended desktop at 640x480 (whether a DVI or VGA monitor was connected to PCI); primary screen was mobo VGA even if no monitor was connected to mobo. In Properties, make PCI primary monitor option grayed out; other options like changing resolution available, but didn't 'take' when OK or Apply was clicked. Card maker (Powercolor) said I have a conflict, talk to Wintergreen; they said that mobo MIGHT be able to automatically detect add-on card if it is AGP, probably not PCI, and couldn't help. Also that there might be jumpers on mobo, but I couldn't find any.\n\nSo I bought a AGP card (Geforce3 Ti 200), but XP hangs during startup with the card installed; and the drivers won't install if the card is not present. The card's fan doesn't spin. I tried booting with a Linux CD (that I use for Tivo tools) with just the AGP monitor connected, but no signs of life. (CD boots into Linux OK with mobo video).\n\nThe slot is 'universal', ie no notches. Any suggestions on what might be happening and what to try next?\n\nWould a male VGA (card side) to female DVI adapter connected mobo be likely to work?\n\nRam question...mobo has two PC133 slots, and two empty slots of same length right next to them. After getting two more PC133 modules, I realized that the empty slots are keyed differently (one notch key) and a different color (red). Any clues as to what these might be?\n\nI'm very familiar with upgrading/troubleshooting Mac, and computer-savvy enogh to use my Win box to upgrade Tivo for example, but a relative beginner to messing with Windows, eg just learning what BIOS are.\n\nThanks for any help--John Wilton",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/297735/finding-unmapped-network-share-capacity-in-c",
"domain": "daniweb.com",
"file_source": "part-00815-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi,\n\nI've looked all over the web for several days and seem to find no answer to this issue. I would appreciate any leads. Thanks in advance for your time!\n\nI need to find the underlying disk capacity (total size) of an unmapped network share in windows (Win7, XP, Server 2008), given a UNC path (e.g. given something like \"\\\\share_1\\subdir\").\n\nI would have given up by now, if it weren't for the ability to find the underlying _free space_ of unmapped network shares, using the \"GetDiskFreeSpaceEx()\" Win32 function. I imagine that disk capacity is stored in a similar fashion to free space, hence retrieving it would be very similar (hence I'm somewhat infuriated with MS for not making the functionality obvious, or myself for not being able to find it thus far!)\n\nAgain, I would appreciate any knowledge you have to share on this point!\n\nRegards,\n\nvivri",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/hardware/threads/197707/can-t-access-owner-folders-documents-but-other-folders-in-master-hd",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI have a Seagate Internal HD where i have \"windows xp\" installed that isn't working properly due to shock however i can still turn it on but it only shows up a blank black screen and doesn't go no where. So i had to put it in an external enclosure with my other \"windows xp\" PC . Doing that I can access folders like \"programs\" and \"windows\" and \"guest documents\" however what i cannot do is try to go inside the owner/admistrator folder because i get the message \"access denied- this folder is unaccessible\". When i go to \"properities\" it says it has 0 bytes however when i click on the \"hard drive icon\" itself it says it does have almost all the 120 GB I have saved on the administrators account. I already tried running it on safe mode but it just restarts over and over and doesn't go through.\n\nSo please tell me how can I possibly recover files (only want to recover few very important documents only) where windows is installed and I am not getting premission to check the \"owner/adminstrators\" folder and documents.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/452534/detect-gender-male-female-from-first-name",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi,\n\nActually I am developing an application in python in which I want a feature by which the application can detect whether any name is male or female name. I did Google search on this, but could not find any algorithm/code by which I can do it. So finally I found a website which is doing the same thing pretty good.\n\nSo I was thinking to use their API in my application.\n\nBut before that just wanted to how they are detecting the gender from name?? Is it really possible to do it algorithmically??If yes please suggest some docs/links.\n\nHere what I am trying to using http://www.i-gender.com/ API.\n\n```\n>>> import urllib2\n>>> import json\n>>> req = urllib2.Request(\"http://www.i-gender.com/ai\", \"name=jhony\")\n>>> resp = urllib2.urlopen(req).read()\n>>> decoder = json.JSONDecoder()\n>>> result = decoder.decode(resp)\n>>> print result['gender']\nmale\n>>> print result['confidence']\n100\n>>>\n```\n\nThanks in Advance,",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/65507/hi-everyone",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\ni need computer graphics programs written in c..\n\nthanks a lot..:sad:\nmytime19 0 Junior Poster in Training\n\nWaltP 2,905 Posting Sage w/ dash of thyme Team Colleague\n\nhappygeek 2,411 Most Valuable Poster Team Colleague Featured Poster\n\njwenting 1,905 duckman Team Colleague\n\nmytime19 0 Junior Poster in Training\n\nmytime19 0 Junior Poster in Training\n\niamthwee\n\njwenting 1,905 duckman Team Colleague\n\n~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster\n\nWaltP 2,905 Posting Sage w/ dash of thyme Team Colleague\n\nJohn A 1,896 Vampirical Lurker Team Colleague\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/web-development/threads/398966/regular-expression",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nhi mate. i have problem about REGEX\n\nthis is my simple code\n\n```\n\\1',$teks);\necho \"$replace\";\n?>\n```\n\nwhat the mean \\1 ? its not give effect for my text..\n\nif i change the value to \\2, the text has change..\nthanks mate!",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/software-development/vbnet/threads/445051/mysql-on-remote-server",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI'm trying to figure out how to add a new connection to MySQL running on a different computer on my network. When I click Project --> New Data Source a list of drivers appears, but none of them are MySQL (see thumbnail) which I have previously installed. I'm using 64-bit Windows 7. The MySQL database is on a computer running 64-bit Windows 8.\n\nI found a tutorial that works (see code below) with a console program, but I want to use Dataset\n\n```\nImports System.Data\nImports MySql.Data.MySqlClient\n\nModule Module1\n Private con As New MySqlConnection\n Private cmd As New MySqlCommand\n Private reader As MySqlDataReader\n\n Private _host As String = \"\" ' Connect to localhost database\n Private _user As String = \"\" 'Enter your username, default is root\n Private _pass As String = \"\" 'Enter your password\n\n Sub Main()\n Dim oConn As String\n oConn = \"Server=\"\"\" + _host + \"\"\";User Id=\"\"\" + _user + \"\"\";Password=\"\"\" + _pass + \"\"\";\"\n con = New MySqlConnection(oConn)\n Try\n con.Open()\n 'Check if the connection is open\n If con.State = ConnectionState.Open Then\n con.ChangeDatabase(\"dvd_collection\") 'Use the MYSQL database for this example\n Console.WriteLine(\"Connection Open\")\n Dim Sql As String = \"SELECT title,date_format(release_date,\"\"%Y-%m-%d\"\") as Date FROM movies\"\n cmd = New MySqlCommand(Sql, con)\n reader = cmd.ExecuteReader()\n\n 'Loop through all the users\n While reader.Read()\n Console.WriteLine(\"Title: \" & reader.GetString(0)) 'Get the host\n Console.WriteLine(\"Release Date: \" & reader.GetString(1)) 'Get the username\n End While\n\n End If\n Catch ex As Exception\n Console.WriteLine(ex.Message) ' Display any errors.\n End Try\n\n Console.ReadKey()\n End Sub\n\nEnd Module\n```",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/483754/dirname-and-build-properties",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI was studing the ant task dirname. I am in over my head understanding this animal. It suggests to me that I could use build.properties and or build.xml properties . The same possibility arises in java code and I benefited greatly by loading xml properties. In the ant enviornment is it possible to use xml?\n\nSteve_19 0 Newbie Poster\n\nSteve_19 0 Newbie Poster\n\nSteve_19 0 Newbie Poster\n\nllaspina 19 Light Poster Team Colleague\n\nSteve_19 0 Newbie Poster\n\nSteve_19 0 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/41101/homework-filling-array-from-text-file",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nYes, this is homework, I'm not asking for a cut/past answer, just a pointer. I think I've developed brain lock form staring at this issue for too long. I'm using VB.Net 2003.\n\nI've created half the assignment, using a form to add records to a text file. The second half is to read from that text file. You do so by selecting the id number from a combo box which then displays the remainder of the information for the record. I'm stuck on how to create an array, filled with values from the text file. Not sure how to proceed with reading only the id number for the combo, and then reading the remainder once the combo is used. Yes, a database would be easier, but this assignment requires the use of a text file. I understand the use of StreamReader, I guess I'm stuck on the loop function to read data into an array, and then displaying the items from the array.\n\nThe data in the text file looks like this:\n\nRecord ID 1\n\nData 1\n\nData 1\n\nData 1\n\nRecord ID 2\n\nData 2\n\nData 2\n\nData2\nThanks to anyone who takes a stab at giving me a few pointers.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/174616/resources-folder",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHello everyone!\n\nI had a quick question on how to use pictures in a VB program. What I'm trying to do is when someone selects an item in a listbox, to show the corresponding jpg file. I selected the relevant jpgs from the desktop, copied them to the clipboard and then pasted them into the resources folder by right clicking on resoruces in the solution explorer and selecting paste and now they are listed under resources.\n\nHowever, when I goto run the program and select one of the listbox items, I get a FileNotFoundException. The names of the files that I use in the code match those of the jpeg files that I want to use in resources. I don't understand what I'm doing wrong.\n\nThanks.\n\nHere's a copy of the relevant code....\n\n```\nIf lstCarpets.SelectedIndex = 0 Then\n picCarpet.Image = Image.FromFile(\"modern_geometric.jpg\")\n ElseIf lstCarpets.SelectedIndex = 1 Then\n picCarpet.Image = Image.FromFile(\"tufenkian.jpg\")\n ElseIf lstCarpets.SelectedIndex = 2 Then\n picCarpet.Image = Image.FromFile(\"MosqueDomee.jpg\")\n```",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/1456/can-t-get-cpu-to-do-100-load-in-xp",
"domain": "daniweb.com",
"file_source": "part-00815-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nabit ic7 (bios ver. 16)\n\npentium 4C 2.4 @ 2.8 (HT enabled)\n\n2x 512 ocz ddr400 cas2 (2-3-3-6)\n\nradeon 9700np 333/315\n\nwindows xp sp1\n\nhi guys, this has been bothering me forever. my cpu scores in 3dmarks '03/aquamark 3 are all on par with the norm. they are 650/9463 respectively. real world gaming performance verify this. however, when i'm executing non-gaming apps in XP, my CPU rarely operates above 90% one thing that stands out the most is video rendering/encoding. (although i don't know the cpu usage during gameplay, performance is on par with published benchmarks, so i assume it's operating at maximum)\n\nright now, i'm encoding video through Virtual Dub. when i look under cpu usage, it's only operating at 50%. isn't there something wrong? why is it not utilizing 100% of my cpu when encoding video? the following picture might better explain things. at the time of screenshot one processor is maxed out and the other sitting pretty at 0% (one logical cpu, XP sees 2 due to hyperthreading). just a few minutes prior both were operating at 50%...but the total usage still reamined 50%. i've even tried to set it's priority to realtime/high in the processes tab but it does nothing. and processor affinity shows both cpus under use by Vdub.\n\nhttp://home.cogeco.ca/~konig/usage.JPG\n\nthe only times i see >85% cpu usage is when multiple applications are working away. is this the nature of HT? does it only allow one application thread a certain amount of cycles? i get simialar results when rendering video with premiere 6. i dunno, something must be wrong. my old 2.4b @ 2.8 (non HT) was always 99-100% loaded when rendering video.\n\n(i can't recall video redering performance/speed of the 2.4b @ 2.8. so i can't really compare redering times between the \"b\" and \"c\" versions to find out if the \"c\" is infact faster at 50% load than the \"b\" at 100% load...although synthetic gaming benchmarks ala 3dmarks show higher scores for the C at same speeds)\n\nI've installed the neccessary intel chipset stuff from the install cd that came with the mobo. i have the latest (well, almost latest) bios rev. is there something i might be missing in a bios setting? please help me before i waste mad monies calling intel support long distance. thanks guys.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/240408/is-c-and-wpf-a-good-choice",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nDear forum members,\n\nI'm working on an accounting software, which I was planing to do using C#. Now that I see there is WPF that I can use instead of WinForms, I would like to ask you a couple of questions.\n\n* For an account software, which I would like to have it looking good, with dynamic graphs and \"easy on eyes\" with light animations (like apps on iphone, transitions etc), is C# .NET WPF a good choice? What would be your recommendations?\n* And how can I skin the window completely? Like, iTunes working on a Windows machine. The window and the title bar is custom, but buttons for quitting the application or minimizing it still the Windows one. How can I do this with VS and C# with WPF?\n* Once the project is complete, can I deploy it to work on a web browser? Is it possible? Because I read some stuff like this.\n* what is it that I can do with C# and WPF that can't be done with Silverlight?\n\nAlso, dear members, do you have any favorite resource which teaches animation and design side of WPF?\n\nThank you very much.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/74620/how-do-i-use-a-command-button-to-open-a-exe-file-created-in-vb",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi everyone\n\nI am relearning to use VB after taking classes almost 10 years ago. I am stumped on remebering how to open a file using a command button.\n\nI have created some forms using VB that I want to activate from a main menu. I have made them .exe files and just want to navigate from one to another.\n\nThanks - John",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/81933/serial-communication-with-higher-speed",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nIs it possible to communicate with higher than 256000 bps in visual basic 6?\n\nkshrini 0 Light Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/139458/echo-problem",
"domain": "daniweb.com",
"file_source": "part-00231-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nSorry about the second thread, I forgot to include this on my first one.\n\nAnyways, is it possible for someone to use the \"echo %text here% >> %location of file here%\" command to save some text to a file in a different folder? I did it, but got a message saying \"access denied\". I say someone do it with this code:\necho %finalmsg% >> \\\\BAS-307-15\\mikchat\\public.txt\n\nBut when I do it, for example:\n\necho %text% >> C:\\Documents and Settings\\Owner\\Desktop\\log.txt\n\nIt doesn't work! Anyone know whats going on?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/413010/bind-combobox-to-value-in-textbox",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi I need some help over here... how do i change the display member of a ComboBox after i have entered a code in a textbox that it represent the combobox value??\n\nexample\n\nCode: 02-001 Combobox: Provider X\n\nif i change the code the provider combobox must change and if i change the provider combobox the code should change!.. i haven't found any help.. heres little code I remember\n\n```\nif e.keychar = chr(13) Then\n combobox.valuemember = textbox.text\n combobox.displaymember = me.stockdataset.selectprovider(@textbox.text)\n end if\n```\n\nthis code change the combo box display member but if I change the comobox by clicking it the code on the textbox doesnt change, to its corresponding code...?? please help\n\n....the combo box is bound to the provider tables....",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/community-center/daniweb-community-feedback/threads/405404/problem-with-newbie-posters",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI've noticed an appalling number of first time posters who post threads with titles like \"Help! Urgent!!!!\". The posts can be almost as useless as \"I'm trying to program something and I'm getting an error. What am I doing wrong?\". It would seem that few people are reading and following the posting guidelines. Even simple guidelines like\n\n* Make a meaningful title\n* Give sufficient information so the question makes sense\n* Supply all relevant information so the problem can be solved\n\nMy suggestion is to implement a system in which new posters (perhaps for the first 2-3 new threads) woul be shown the guidelines for a set time (15-20 seconds perhaps) before the editing fields are displayed or edited. I am not a web programmer so I do not know what is easy to implement.\n\nI realize that anyone contributing to a thread gets credited when the thread is marked as solved and I feel like a cheat when I post \"show us what you have done\" or \"can you please clarify the question\", then not contribute further when I realize the question is not in an area where I feel I can contribute.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/445718/how-to-validate-if-the-text-box-value-is-year-or-not",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi Everyone,\n\nI have one text box named txtYear.text and this text box will accept only Year Value i.e. 2011, 2012 and so on. Now i want to put a validation on the text box like, if user enters the value like 1,03,54 in text box then the system should show an error message to user saying that, the value is not year or something. The text box should accept only if the user enters valid year value like 2010, 1907 and so on.\n\nI am working on VB.NET 2010 and the language is VB.\n\nI have seek the help from google but failed to get the proper solution. CAN ANYONE HELP ME?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/digital-media/ui-ux-design/threads/70969/flash-anomaly-cannot-run-new-image-with-working-flash",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI am rather new to Flash and I am having what I consider to be a strange result which I do not know how to address.\n\nI am building an HTML site using CSS. Last week I embedded a SWF which scrolls a simple movie over the banner\\ header. This worked and works fine except for this; Today, I attempted to switch the banner image (JPEG) with another-- same file format (JPEG), same dimensions as the original header image. I edited the CSS to reflect the new header image name. I saved the CSS and switched to my index.html file to view the change and what I see is the previous header image still present with the Flash running over it. Wrong image. :sad: I tried a few things such as moving the old header image out of the image folder so it could not be accessed-- the old, moved image was still there on the HTML index preview :eek:. How could this possibly be?\n\nWeird. It seems as if the Flash was somehow grabbing and holding the first image and always running this old image. As far as I can tell, it is not directly referenced in the embed code at all.\n\nWhen I remove the entire Flash embed code the new header appears-- great:), but I want the Flash with it. :confused:\n\nI closed the HTML editor and re-opened the index.html file (thinking it could be a memory error on my machine or something, not the code). This did nothing. The old banner\\ header STILL.\n\nI've run out of things to try.\n\nAny help would be greatly appreciated.\n\nRegards,\n\nMattyD.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/88978/reading-from-a-file",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHello All,\n\nI am trying to figure the best route to take for this problem. I am trying to read from a text file. The text file is setup at follows:\n\nJohn 90 98 9009\n\nSmith 90 87 87987\n\nEric 76 66 23443...\nI am trying the figure how to read only the names from the files. I cannot use String tokenizer or split().\n\nI have tried everything that I can think of. Right now I can read the entire line.\n\nNo code please, only suggestions and comments.\n\nThank you,",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/357771/tlistbox-and-sorting",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI did an experiment regarding sorting of 256.000 random \"names\" using TListBox component.\n\nA friend of mine say that TListBox is faster than my code at sorting, so I wanted to test this out of curiosity.Method of testing.\n\nWhen I have created 256 thousand random textstrings, each 6 characters, I add these into a listbox that is invisible, hence no updating whilst adding.\n\nThen I Press a button in order to do only one thing:\n\nTListBox.Sorted:=TRUE\n\nIt takes about 5 seconds, and the control is returned to my form.\n\nDoes this mean that 256000 purely random strings have been sorted in that time?\n\nMy friend claim so.Now for the big thing.\n\nIf it is sorted, why when I press another button in order to view the TListBox does this operation halt the computer for almost 3 minutes before the component shows the data?\n\nI would think that this is because it is actually sorting the data now.My routines that is a derivate of a binary approach is not by far fast, but it does the job of hiding the TListBox, copying the unsorted data from a TListBox into an Array, Then sorting this data through an index, deleting the data in the TListBox, adding all the data from my now sorted array, making TListBox visible, and all data can be viewed in the correct order instantly as the TListBox.visible:=TRUE.\n\nThe complete work takes almost one minute less than TListBox alone.\ndoes anybody have any ideas as to why TListBox is so slow showing the data if it indeed has got the data sorted?\n\nBest regards,\n\nMorten Brendefur.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/433194/vb-net-read-a-text-file-and-show-data-after-in-datagridview",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI have got a assignment. I have a folder which have some text file. In the text file there have some students info such as fathers name, mothers name, contact number etc. And every text file name is like 'AddressBook_038'. here 038 is the roll number. It is different for every students.\n\nMy assignment is there have a textfile and a browse button. There also have a datagrid view. Datagridview column is roll, fathers name, mothers name, contact number. I have to create such program that when I click browse button and select the folder the data automatically show in datagrid view. Such as in the roll column only show the roll. Program automatically read the text file name and input the data after (_) in the roll column. Then it read the info from the text file and show data after ( : ) in the others column.\n\nI don't understand how I can do this? I do something which I give it bellow:\n\n```\nOpenFD.InitialDirectory = \"C:\\\"\n OpenFD.Title = \"Open your Floder\"\n Dim didwork As Integer = OpenFD.ShowDialog()\n```",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/web-development/threads/284278/paypal-to-pay-on-account",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI'd like to create a simple PHP form that will allow my website user to make a payment on their account with us using PayPal. I'd like them to enter their name, email address, account number, and the amount they'd like to pay. I would then like to pass this information to PayPal (possibly as a \"buy it now\" using the account number as the item number) and let PayPal handle all the PP account and/or credit card information. I would then check my PayPal business account daily for the payments I need to record in my accounting package.\n\nI don't expect to get many payments this way, but want to offer the convenience to my clients.\n\nHas anyone seen or posted a code snippet that would point me in the right direction? Anyone want to help with the coding?\n\nThanks!\n\nJim",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/digital-media/ui-ux-design/threads/482098/css-source-file-name-not-showing-up-in-chrome-developer-tools",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi Everyone,\n\nSome of the styles on my html page is coming only in chrome browser(not in firefox or IE) which I do no want. Using chrome browser developer tools when I tried to inspect them, I found a very strange thing, it is not showing the css source file name for the style.\n\nPlease find the developer tool pic below:\n\nIn the pic you can see that for class .app-background there is no source file showing up in developer tool.\n\nHas anyone come across such situation? Any help or suggestions to remove these styles appreciated.\n\nThanks in advance!!\n\nRegards,\n\nVenusCrystal",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/web-development/threads/342964/php-getting-details-like-ip-address-and-time",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI want to get details of user when he registers with my website for security reasons. I need ip and date and time I guess. Is there anything else I need to cache while registering? How to get ip,time and date? And time will be in which timezone? I want it in GMT +5:30 means asia - culcutta. Thanks in advance.\n\nAnd i want to save user log in time. Any help about this will be thankful.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/computer-science/threads/174453/simple-software-design-question",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHello. I've recently written a console program out of necessity (not related to this question) in C++ and am wondering exactly what software engineers use to create Windows applications(Windowed applications with dialog boxes and all that good stuff you pay money to use).\n\nPlease do respond as I've always been extremely interested in knowing how software engineers make the difference between console programs and applications. Any relevant links would be very appreciated. Thank you for your time.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/community-center/say-hello/threads/390252/hello-daniweb",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nSup people, AS3G here!\n\nI'm an AS3 developer who's back in school for a comp sci degree, as other than my specialty, the rest of the IT realm is pretty much a mystery to me! More importantly, I wan make more money! (although flash devs make decent cash, don't want to seem greedy)\n\nI'm sure yall will think about banning me as time goes....I can be a real pain in the ass, but alas, you wont cuz i can also be tonzofun. Hit me up if anybody needs flash/AS help,\n\nChalla back!!!\n\nAS3G",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/web-development/threads/299160/how-to-select-length-of-string",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nhi all i've been trying to find a php function for this but couldn't find any\n\nhope anyone here can helpi want to show only a part of string\n\nlike SELECT LEFT (0,5)... in SQL\n\nbut i want to do it in php\n\nie:\n\n```\n$string = \"hello world\";\n\n$result = php_function($string, 0, 5);\necho $result; //hello\n```\n\ni've tried to replace the php_function with str_pad but it's not working\n\nany idea for this problem?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/322193/great-open-source-projects-for-mac-os-x",
"domain": "daniweb.com",
"file_source": "part-00854-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi guys. I'm trying to find a good open source project written in C (any kind: email, browser, chat program, communications program, music player) to download for the Mac os X preferably for Xcode.\n\nI would like to examine these open source programs' source and understand what they do (pick up a few programming tricks from them, learn a few things). Then maybe I can slowly learn to write bigger and bigger programs. That'd be cool\n\nMy Os is: Mac Os 10.6.4 Snow Leopard\n\nXcode: 3.2.1",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/databases/threads/404870/mysql-access-denied",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\ni am using mysql for the first time and following an online tutorial.\n\ni am using the command prompt to connect to the mysql server.the problem is that , i want to create a new database named bookstore.\n\nso, in the mysql> prompt i am writing `create database bookstore;` \nbut, when i press enter it shows\n\n```\naccess denied for user ''@'localhost' to database 'bookstore'\n```\n\nplease help!",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/databases/threads/154082/insert-multiple-records-using-stored-procedure",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi Everyone,\n\nI would need your help. I have a project that I need to insert multiple records into my table. Here is more detail.\n\nI design a purchase order table with 3 columns (a, b, c):\n\na: is primary key with identity (1,1) primary key\n\nb: is defined integer (allow duplicate)\n\nc: is varchar(5)I want to have multiple records with same value of a.\n\nFor ex: when I create purchase order # 1. I have multiple records inside the PO# 1. Also with PO# 2, I have multiple records....also so on.\nHow can I write a stored procedure for this needed?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/325745/need-help-to-write-simple-program-for-interest-rates",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nIm new to programming and i cant seem to be able to figure this question out:\n\nWrite a c++ program that uses two functions, called simple_interest(float amount, int duration) and compound_interest(float amount, int duration), to compute interest on an investment. The program should take the name of client and initial investment of a the client and store them in two arrays, then asks user to enter the duration and interest rate.\n\nThe program then calls the appropriate function to compute either simple or compound interest. The program then adds the interest to the initial amount to obtain the current value of the investment.\n\nThe program then outputs the name, principle amount, duration, interest rate, interest and total amount for simple and compound interest options.\nive been working on this for two weeks, any help anyone?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/databases/threads/470124/sql-case-statement",
"domain": "daniweb.com",
"file_source": "part-00163-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI only have experience using pretty basic Oracle. However, I'm now in need of a better understanding of SQL. I'm trying to write a query using CASE statements (as this seems to be the best approach), but am admittedly lost at the moment.\n\nHere is what I have as a basis:\n\n```\nSELECT LEFT(ITEM_A, 4) AS \"PREFIX\",\n SUBSTRING(RIGHT(ITEM_A, 12), 5, 2) AS \"SUFFIX\",\n RIGHT(ITEM_A, 16) AS \"INGREDIENT\"\nFROM THE_TABLE \nWHERE ITEM_B = 'VAL1'\n AND ITEM_C = 'VAL2' \nGROUP BY ITEM_A\nORDER BY PREFIX ASC, SUFFIX ASC\n```\n\nThis is yielding a good result set for evaluation. Now, I need to determine which (if any) 'INGREDIENT' values are associated to multiple 'PREFIX' & 'SUFFIX' combos and what those combos are if present. I'm really hitting a brick wall here.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/496504/inheriting-data-from-multiple-classes",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHey guys! I have a quick question that I think is a simple mess up. I am trying to make a console word game in c#, and I have different classes, and a main class that calls those classes. I first have the Player class, and the CreateCharacter class. My player class houses all of the variables that pertain to the player of the class (level, stats etc.), and my CreateCharacter class is what calls on the startup of the game, which asks the name, race, class they want the character to be. So far that is well and good, but when I call the classes I know no other way than to say: Player player = new Player(); and I believe that takes the data I got from CreateCharacter, and erases it. So my actual engine calls CreateCharacter, gets all the information, then when I call all of the variables in the engine, they come back erased. Any help is appreciated! Thanks!\n\ngangsta gama 0 Junior Poster in Training\n\nddanbe 2,724 Professional Procrastinator Featured Poster\n\nJamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster\n\ngangsta gama 0 Junior Poster in Training\n\nddanbe 2,724 Professional Procrastinator Featured Poster\n\nJamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/digital-media/digital-marketing/threads/38951/should-i-add-a-forum",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI have an Extreme Sports website www.magxzine.com that has been up for a few months.\n\nI have done almost no promotion on the site but I am begining to attract a few visitors ~150 uniques per day. Average pages are about 2.5 per visitor.\n\nI am considering adding a forum to the site to keep visitors coming back on a regular basis but do not really have time to get involved heavily with posting and maintaing a forum.\n\nIs this something I should persue now or should I wait for more traffic before attempting?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/370534/interactive-input-in-pyplot",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHello all,\n\nFollowing the guide on sourceforge, I've created several pyplot programs which have nice event handling. I'm able to press keys on my keyboard and the plots advance and change. The backend for this program is GTKagg. There are several instances where I can change parameters in the plot interactively. For example, if I press r, the data will begin at 0. I am able to successfully interact through the terminal; that is, I press a button and the terminal prompts me for a value before it begins running the next iteration of the code. What I can't find is if it's possible to add a small box on the pyplot figure itself which will allow me to easily put in these parameters, instead of going through the terminal.\n\nFor example, a box stays open and if I enter a number, it plots a new graph. This is easily done through the terminal, but I'm confused on how to incorporate the GUI right into the pyplot program. Is there support for this already?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/274383/jdom-from-scratch",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nIm trying to run some codes i found of JDom for a home work (super hard to find good material) any way. I was trying to run it on NetBeans and I dont have the library \" org.jdom \"\n\nAnyone, can please give me the right link to download this and tell me where to install it on my HD.\n\nOR if possible, anyone have a really good JDom Tutorial to pass me ???\n\nhelp!!! SOCORRO! AYUDA!\nthanks for the time",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/250700/jar-to-exe",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nhello!\n\ni want to convert my jar application into exe..\n\nbecause i need seal all class files extracting from jar...\n\nany freeware available for this..\n\ni found something that are not free...\n\nthank you!\n\nhello!\n\ni want to convert my jar application into exe..\n\nbecause i need seal all class files extracting from jar...\n\nany freeware available for this..\n\ni found something that are not free...\n\nthank you!\n\nHave you ever read Java to EXE - Why, When, When Not and How? - An article about Custom Java Launchers And Wrappers.\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/222993/header-files",
"domain": "daniweb.com",
"file_source": "part-00163-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHello all,\n\nSo to start off I'm just starting to learn programming so please excuse a lot of my noob mistakes especially when trying to explain what is going on/wrong.\n\nI've been trying to use a header file in an example program I'm trying to complete but the compiler doesn't recognize the file...in fact it says that no such file or directory exists. I'm using Visual C++ 2008 Express Edition if that makes a difference on how to set anything up.\n\nSo I was wondering if anyone could walk me through the process of setting up a header file. Or a link to the same effect so I know that I'm starting the process correctly. Thanks!",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/hardware/threads/71312/dell-inspiron-8200-dead",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nMy five year old Inspiron 8200 has finally died. For about a week it said it was running on batteries, even though it was plugged in. If you unplugged it, it would instantly shut down. Or if you took out the battery while it was plugged in, it would do the same. Now it does absolutely nothing when I push the power button. I've tried the usual fixes, taking out the battery, unplugging it for awhile, holding down the power button for a minute, etc.\n\nDoes this sound like a motherboard failure?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/20320/multi-boot-disc-question",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI have bee assigned the project to create a multi boot disc for our pc's at work. We currently use symantec ghost v7.5.\n\nI am a tech that only know's what he is taught. And all i know is we are given a CD that boots up the PC's that has the necessary drivers for the given PC's. I have never had to create a 'MultiBoot' disc to ghost PC's.\n\nHowever I just wanted to know, exactly.. what defines a 'MultiBoot' disc?\n\nAnd also, if anyone can give some recomendation as to what other software that i could try that maybe better.\n\nWe here at work normally have a difficulty time ghosting PC's that use Xircomm Network PCMCIA cards. Any suggestions on that would be great also.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/33206/sorting-a-list",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nWhat is the best way to sort a list of words with the case insensitive?\n\nbumsfeld 413 Nearly a Posting Virtuoso\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/350049/new-programmer-needs-help-badly",
"domain": "daniweb.com",
"file_source": "part-00115-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nOK so here's my problem. I am a really new programmer, and my instructor has been giving us assignments that most of us are not exactly ready for. We have this assignment, and I honestly have NO IDEA where to even begin. Bottom line, I need help. Here is the assignment:\n\nCreate a terminal based application that simulates a bank ATM. The application should :\n\nSupport authentication by the use of a fixed length numeric pin\n\nSupport numeric menu system\n\nSupport checking balances in checking and savings account\n\nSupport withdrawl from both check and savings account\n\nSupport deposit to only the checking account\n\nSupport transfer between checking and savings account\n\nCode should be Object Oriented\n\nApplication should run forever until the user chooses to exit.\nPretty crazy to ask of a student who just got introduced to C++ a month ago amirite? Here is what I am asking: Give me some commented code to point me in the right direction. I assure you, I WILL NOT just copy your code and submit it. My teacher is apparently very adept at sniffing out copy cats. I truly truly truly want to learn this stuff. Please please please help me.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/322045/why-does-adding-a-new-row-take-32-seconds",
"domain": "daniweb.com",
"file_source": "part-00163-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI would be very grateful of any insight/resolution of the following issue I need to overcome.\n\nUsing VS/VB2008 Pro/SQLExpress - all running on XP, I am building a WinForm Application (a Quotation application for Landscape Designers).\n\n48 Bound controls on my form work perfectly with DataSet and Tables when Updating any user changes to controls on the form to variables that determine price/cost of work being quoted for - providing the DataSet has already got values in it; Delete also works fine. However, although the \"AddNew\" (on form's BindingNavigator) works, it takes 30 - 35 seconds to add a new row. Table contains 10 rows and 45 columns. This is unacceptable and despite most of this afternoon reading forums, searches etc, I have failed to find a solution to an issue that I cannot believe appears to be so infrequent. Clearly, it is something I am doing or not doing.\n\nI have searched via Google, crawled over MSDN pages, read/searched some of the standard textbooks on VB 2008 and looked (again) at Beth Massi's Data-related Forms over Data video series. I have re-checked the properties for the TableAdapter/Manager on my Form. I have used the wizards to create the necessary Select etc clauses. All runs as required except when user needs to add a new row (aka \"New Quotation\")\n\nThank you in anticipation for any help or directions to you can provide.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/information-security/threads/187350/svchost-exe-100/3",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nYou don't actually want to REMOVE them from the computer you want to stop them from running at Start up. To do this the easiest way is to use a Free program like CodeStuff Starter\n\nNow when the program opens you will see three tabs:\n\nStart ups, Processes (which is like Task Manager but gives more info), and Services.\n\nBegin by clicking Start Ups\n\nTake the check mark OUT of these:\n\nAGRSMMSG\n\nATIModeChange\n\nHP Software Update\n\nHP Component Manager\n\nctfmon.exeNext move to Services Tab:\n\nDouble click on each one of these. When it opens first Stop the service at the bottom of the box. Then go to Start Up Type and change Automatic to Manual. Do that with These:\n\nAti HotKey Poller.\n\nInstallDriver Table Manager (IDriverT)\n\nIviRegMgr - InterVideo\n\nClose the program and reboot the computer.\n\nThe ones I haven't mentioned then leave alone. A couple have to do with your printer and for some reason if you get to fooling with printer files you end up having trouble with them.\nYou CAN also try this with those various LANDesk entries and see if the computer runs ok and goes online ok. If it does then leave them off. If it doesn't work ok then go back into CodeStuff and turn them back on at the next boot up and reboot.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/31561/long-login-times",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI ran into a very peculiar, very frustrating problem, maybe one of you guys can figure this one out.\n\nWe're starting to dabble with wireless here in our office so the staff could easily gain access to the domain via their laptops. Our engineer, who is definitely not an IT guy, purchased a Linksys Wireless access point and plugged it into one of the ports on our 24 port switch. The thing works fine when I log into the domain on someones laptop under the Administrator account. The problem arises when attempting to login as a regular user. To put it simply, it takes absolutely forever.\n\nIs this a profiles issue? Going through peoples profiles, I noticed there are some rather large ones on the network, some upwards of 200 meg.\n\nWhen logging in normally on a segment thats hardwired the login time is a little slow, but nowhere near what it is when trying it over wireless. I also run into the same problem on a desktop with a wireless pci adapter installed on it.\n\nSuggestions?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/295198/how-to-use-mutiple-module-in-vb",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI'm newbie for using VB. I'm trying to develop code for calculate dimension of part.\n\nThe concepts are :\n\n1. Get input from user via textbox(Form1)\n\n2. Module 1 take value from Form1.textbox and keep for reference.\n\n3. Module 2 use value from module 1 to calculate\n\n4. Module 3 use value from module 2 to display via Form2,Form3,Form4 respectively.I'm not sure this is the suitable program by using module method.\n\nI have no idea to develop modular code refer this concept.\n\nAnybody can give me a guidance.\nThanks in advance.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/hardware/threads/267057/airport-extreme-connection",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI have an airport extreme that I want to connect to my quest wirless router when i do connect the airport nothing happens i cannot get on the internet using the airport what am i doing wrong never had this problem when using verizon\n\napcodonny 0 Newbie Poster\n\nFazza 0 Light Poster\n\nthommy 0 Newbie Poster\n\nFazza 0 Light Poster\n\ntje210 10 Junior Poster\n\nadi101 0 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/29461/help-all-media-players-playing-crappy",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI just reformatted my computer, and I have installed all of my games and stuff back on. I updated Windows Media Player and tried playing a video on it and it comes up looking grainy and WAY too bright. I figured it might be a codec so i went and tried to download some codecs, but that didn't work. I also tried a different media player (divx) that didn't work either. The picture still came up all wierd. And it's not just the video files i have either. I tried streaming a music video and that came up the same way. Everything is really really bright, and most colors don't show up as even the right color, and every single shade in the video is off. I also updated my video driver, so it's not that either. If anyone knows how to fix this please help!!\n\nPreppy 0 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/66773/the-resurrection-of-dr-python",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nAbout one month ago or so my Dr. Python compiler (interpreter) died. I had closed Dr. Python to go and eat dinner then came back to re-open and continued where I had stopped and... nothing. This came at a terrible time as I was in the middle of some very important code testing. I tried everything I could think of but did not have time to fix it nor was I sure how to. I opened IDLE and plugged away. IDLE worked, yes, but what I can say about it save for that it's better than nothing I guess. :-|\n\nPython Mod vegaseat encouraged me to fix Dr. Python-- make it work. I tried, but gave up as I could not get any response. I was confused as to these errors so I continued with IDLE.\n\nToday though, I thought I would give it one more try; I downloaded the latest version from SourceForge, unzipped it, and tried to run it. How I got it to open and work all centered around how it opened and with what program-- I will spare the details, but I think it has something to do with some sort of file and\\or memory corruptions on my system. I opened it manually and it worked! I was so relieved. :cheesy:\n\nThe reason I am posting this is to encouarage other Python programmers to try Dr. Python if they have not yet. Dr. Python is:\n\n* efficient and stable\n* has a clean and simple (but not overly-simple) GUI\n\nMy production levels rise noticeably by using Dr. Python.\n\nsharky_machine",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/hardware/threads/436220/laptop-camera",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nhaving laptop camera dell inspiron 1545 is not working..\n\narchana.patil.1800 0 Newbie Poster\n\nrubberman 1,355 Nearly a Posting Virtuoso Featured Poster\n\nGé48 1 Newbie Poster\n\nnp complete 8 Newbie Poster\n\nwebjack 0 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/12180/problem-with-svchost-exe",
"domain": "daniweb.com",
"file_source": "part-00815-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nrecently when i check my task manager because my comp was running kinda laggin, it shows one of svchost.exe using lots of mem. the most i seen was around 150,000k. People told me that it might be a virus, i scanned with mcafee and housecall...nothing.\n\nThere are 5 svchost.exe running on my win-xp computer:\n\n3 = system\n\n1 = local service\n\n1 = network servicethe local service is the one that im having a problem with.\n\ni would appreciate, if anyone can help me",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/community-center/daniweb-community-feedback/threads/505110/account-migration-doesn-t-work",
"domain": "daniweb.com",
"file_source": "part-00789-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi.\n\nApparently I can't migrate my account. I went on to the Dazah website, but whenever I try to do a reset password with my old account e-mail it fails, saying the e-mail is not recognized, and whenever I try to create a new account with that e-mail, it says that something went wrong. What can I do to port my account?\n\nEdit:\n\nI finally got to reset the password, but this happened:",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/community-center/threads/61942/format-hard-drive",
"domain": "daniweb.com",
"file_source": "part-00815-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi,\n\nI have a dell pc on loan and want to format the hard drive before I give it back. I don't have any discs (being on loan and what not). Its running Windows XP. I've tried running a boot disk but it won't accept any comands.\nPlease help\n\nHi,\n\nI have a dell pc on loan and want to format the hard drive before I give it back. I don't have any discs (being on loan and what not). Its running Windows XP. I've tried running a boot disk but it won't accept any comands.\nPlease help\n\nFirst of all, you'll need to create a boot floppy. Here's how you create one:\n\nNow that you've done that, you can boot off the floppy disk that you created. Make sure it's still in the drive, and reboot the computer.\n\nOnce you've booted with the floppy, you'll reach the command prompt. There is a Format command on the floppy, but I doubt that will work because usually, Windows XP uses the NTFS filesystem which Format doesn't support. To get around this, you'll need to use Fdisk to delete the partition:\n\n `FDISK` and press return.\nThere's probably no more partitions on your hard drive, which is hopefully what you want, as the DOS tools contained on the diskette can't recreate NTFS partitions, although the Windows XP installation disk is perfectly capabe of doing that.\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/468455/using-switch",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\n/Design a program that supplies numbers (9000 only) and outputs their equivalent Roman numerals.\n\n//the supply numbers and their equivalent Roman numerals are given below.//Supply number equivalent Roman Numeral\n\n//1 I\n\n//5 V\n\n//10 X\n\n//50 L\n\n//100 C\n\n//500 D\n\n//1000 MSample Output:\n\nEnter integer (1-9000):1984\n\nMCMLXXXIV\n\ncan anyone make a code for this problem.? using switch. i dont know where to start :(",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/425733/smart-pointers",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nYesterday I took a dive into smart pointers and wasn't sure when I should use them vs. Raw pointers. I found out they are quite useful but they do not work all the time for me.\n\nExample of working:\n\n```\nchar* Buffer = new char[1024];\nfread(buffer, 1, sizeof(buffer), infile); //took out the while loop for this example.\ndelete[] Buffer; Buffer = nullptr;\n\n//Changed to:\nstd::unique_ptr Buffer(new char[1024]);\nfread(buffer.get(), 1, sizeof(buffer), infile); //took out the while loop for this example.\n//I never have to do delete[] correct?\n```\n\nIn the above, I had to use .get() to pass my pointer to fread and various other functions. My problem comes when I try to do:\n\n```\n//Raw ptr works well..\n\nchar* pFile;\nchar* pMemory = new char[SomeSize];\npFile = pMemory;\nmemcpy(pFile, Buffer, dwHeader);\n\npFile = (char*)((DWORD)pFile + jmpSize);\n\n//Smart ptr.. :S I'm confused..\n\nstd::shared_ptr pMemory(new char[SomeSize]);\nstd::shared_ptr pFile(pMemory); //The same as pFile = pMemory? Also had to declared pFile after pMemory.\nmemcpy(pFile.get(), Buffer, dwHeader);\n\npFile.get() = (char*)((DWORD)pFile.get() + jmpSize); //Errors :S\n```\n\nQuestions:\n\nHow do I assign to my ptr? Is is supposed to be shared or unique? I know unique uses move semantics so only one can owner can have the raw ptr. So I used shared since that's what the equal sign does right?\nIs there any moment in time where I should use a Smart pointer vs. a Raw pointer (Referring to a bitmap class where there is a member pointer to a struct that is deleted in the destructor).",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/457189/visual-basic-6-data-reports-related",
"domain": "daniweb.com",
"file_source": "part-00163-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHey Everyone,\n\nI'am Using vb6 data enviourment and Access 2010 to show an Invoice in a Data Report.\n\nI Have many orders and many different items in orders. So I select an order from a MSHFlexgrid and will load the report. All The different items (in different orders) are stored in one table and I have created a code which works fine which will remove the items not in the order into an extra table and therefore before loading the report, the table will contain only the data of the wanted items. I have used Breakpointers and have seen that this works fine and that at the end of day the tables are in the correct wanted manner.\n\nBut then I do this without using Breakpointers, I don't know how or why always when I run and load the report an extra unwanted Item is displayed in the report. I have noticed that this item is always the final record of the Items Table. And when I load the last order, an item from the one before the last order appears in the report. I am really really confused as to why this happens..could someone help me out?\n\nAlso when I close the report and select a different order to be opened the previous data is still in the report and that gets shown..do i need to refresh or do something like that?.\n\nThanks in Advance,\n\nThe X-Man",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/web-development/threads/15786/phpnuke-categories",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nWhen I attempt to add a new category, it says that the new category already exists, regardless of what I put in it. Is this a common problem that is easy to fix? I apologize if the question has been asked a million times, but it is very frustrating. Thanks!\n\nindiefi33 0 Newbie Poster\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/web-development/threads/180075/passing-variables-through-links",
"domain": "daniweb.com",
"file_source": "part-00659-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nYes everyone will point to using ahref.\n\nBut im just wondering if I can do the same thing using headers header(\"Location: index.php?variable=1\").\n\nNote: Yes I can also use sessions but wish to user headers.\n\nThanks, Regards X\nOmniX 21 Practically a Master Poster\n\nnav33n 472 Purple hazed! Team Colleague Featured Poster\n\nchrishea 182 Nearly a Posting Virtuoso\n\nOmniX 21 Practically a Master Poster\n\nnav33n 472 Purple hazed! Team Colleague Featured Poster\n\nOmniX commented: Thanks as always nav ;) +2\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/hardware-and-software/hardware/mobile-and-wearables/threads/505711/how-to-solve-who-has-which-device-problem",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi everyone,\n\nHow are you? Starting some thread after long time :)\n\nActually, I have a group of 25 people. I have 20-25 mobile devices in my group. So, I have assigned 1-2 device on each person's name(as an owner). But, people in the group ask each other for the device for some help and promise to return it too. They may need specific device for some work which is a genuine thing. But, they forget to return it & person who gave has to ask on emails or each person where his/her device is.\n\nProblem:\n\nAsking on emails is very cumbersome. It is a like a spam everyday. people are asking where my XYZ device, if someone has please return etc.\n\nAlso, it delays the work which the person has to do using that device.\n\nAlso, it gives birth to a frusrattion too which is not good for a group.What I want:\n\nThere should be some mechanism in which we have a list of all the devices & the curent person name with whom that device is right now.\npossible solutions:\n\n* Have an excel sheet which the person who takes the device should update. No! People don't take that much pain.\n* Have an excel sheet & person who is giving the device should update. No! it will be too much work for him/her. Everyone is asking for some device & updating like this will be an overhead for the complete team.\n\nAs we all might have faced this type of issue in every group similar to this. What's ur take? What initiative can I take to solve this for the grouo & ease this thing? Technology can do anything today, isn't it? ;-)\n\nThanks in advance.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/188313/extract-part-of-text-file-into-2-dimensional-string-array",
"domain": "daniweb.com",
"file_source": "part-00593-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nHi,\n\nI have been spending several weeks figuring this out but couldn`t find way to it. Here is what I am planning to do, I have a text file with several data in it, and I have to extract part of the data into a 2 dimensional array.Here is a sample of the text file where each line represent data in each row in text file:\n\nA\n\nB\n\nC\n\nD\n\nA>3;C>2\n\nD>5;B<3I want to make a 2 dimensional string array and put it in this form\n\nA B C D\n\n>3 <3 >2 >5 <-- so this sample is a 2x4 array\nHere is how I got it: First read through the first 4 row then put each of them in a column. Then read through other 2 row, check which character matches whichof the first 4 rows and put the comparison sign and number under it in the 2 dimensional array. So for example when I get to line\"A>3;B>2\" I check which column A is in and put >3 under it, when encounter a \";\" move to check next one on the line, so check which column C is in and put >2 under it in the new two dimensional array... and so on. I don`t know how to write a java code to extract like what I wanted.\n\nWhat I have done so far is I was able to get each row into a 1 dimensional string array each from reading the textfile in,\n\nso now I got a string array to have such content:\n\ntext[0]=A\n\ntext[1]=B\n\n.\n\n.\n\ntext[5]=C>5;D<3\nBut I want to turn those text[] string array into the 2 dimensional string array form that I want. How do I extract content of each string array? How should I start?",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/164483/image-plotting-problem",
"domain": "daniweb.com",
"file_source": "part-00648-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI'm having trouble on how am going to start this idea of mine. I have an image and I want to plot points on that image. My Idea is to get the X and Y coordinates of the mouse pointer and save it into a text file so that by the time I re-run the program again, the plotted points is still there. But it seems like this is not a good idea since everything will be messed up if I load the program to a computer with different screen size. I was thinking of placing an invisible grid, but looks like this will be tough to do.\n\nit2051229 -3 Junior Poster in Training\n\nBe a part of the DaniWeb community\n\nWe're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/web-development/threads/313077/should-i-install-php-net-on-iis7-5",
"domain": "daniweb.com",
"file_source": "part-00815-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nI have an IIS7.5 server installed on my laptop. I'm learning C#, XML, XSLT, .NET, Visual Studio 2005, 2008, 2010 and Microsoft Expression Web.\n\nI am the webmaster on a simple PHP website that I inherited. I figure I ought to learn PHP, but figure I also need to install a PHP add-in to IIS on my laptop. (Someone else hosts the site I inherited for me.)\n\nA basic search comes up with Microsoft Web Platform Installer which leads to a 3rd-party (according to Microsoft) PHP installation from PHP.NET.\n\nDoes anyone know if this is the way I should go?\n\nIs this the correct PHP installation?\n\nThe install looks straight forward, but any suggestions would be appreciated.\n(I hope to eventually get to apache, but will have to put that off, so please don't tell me to install apache - I figure that's probably a different thread!)",
"content_format": "markdown"
},
{
"url": "https://www.daniweb.com/programming/software-development/threads/228697/printing-a-variable-with-page-drawstring",
"domain": "daniweb.com",
"file_source": "part-00793-d9b45f53-efdc-4ae8-a3e4-b1d5d9e13869-c000",
"content": "# \n\nDate: \nCategories: \nTags: \n\nIs there a way to tack a variable onto the end of a print.drawString so it would show up like\n\nText: \n\nOr:\n\n```\npage.drawString (\"Text: \" object1, x, y);\n```\n\nWhere object1 is the variable. I tried doing that, but i get an error \")\" Expected on that line, i suspect that it is because anything that is expected in that first slot is expected inside of quotes.",
"content_format": "markdown"
}
]