- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 61
- Posts with Upvotes
- 54
- Upvoting Members
- 33
- Downvotes Received
- 8
- Posts with Downvotes
- 8
- Downvoting Members
- 6
- Interests
- software , gaming, board sports
195 Posted Topics
Re: [QUOTE][CODE] /* The below is another way in which to read the file, however i think the shorter method would be the scanner class The reason for this is the below commented method uses 5 extra imports: import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; */ [/CODE][/QUOTE] or … | |
Re: a woman asks her husband to go to the grocery store, her instructions are : -buy milk -if there are eggs, buy six suprisingly she got mad when he got home with 6 bottles of milk! | |
Re: alright well i am definitly not gonna give you any code as it is for a school project, but ill help you with the general idea and then you can come back with some actual work to get further help. first off, you do not want to create a forum … | |
Re: Indeed, the standard way of saving passwords is to first salt and then hash them, saving only the hash. In the login process, re-salt the entered password, hash that, and compare with the saved hash. Worth mentioning that MD5 which is a commonly used hash algorithm [might not be the … | |
Re: Really not my strong suit but I would try dumbing down the dllimport see if it works with the bare minimum. So, removing the entrypoint since you arent renaming it anyways, not specifying the char set, or using `CharSet = CharSet.Auto`. The wrapper I am using for PCSC communication with … | |
Re: Have you checked to see if there was any data available in your dictionary after your database query? Also for the autocomplete read [this article from msdn](https://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.autocompletemode(v=vs.110).aspx) or [this stackoverflow thread](http://stackoverflow.com/questions/1357853/autocomplete-textbox-control), which were google's top results when searching "c# autocomplete on textbox" | |
Re: [Wikipedia #1](https://en.wikipedia.org/wiki/Bread_crumbs) [Wikipedia #2](https://en.wikipedia.org/wiki/Breadcrumb_(navigation)) Since I'm guessing you are refering to #2, you might wanna read [this](https://msdn.microsoft.com/en-us/library/microsoft.windowsserversolutions.web.controls.breadcrumb.aspx) ;) | |
Re: [Old post](https://www.daniweb.com/programming/web-development/threads/422131/restrict-size-of-file-upload#post1801680), probably not the only one but here is one i answered years ago. Example is C# but I'm sure you will figure it out ;) | |
Re: here are a few projects i really enjoyed doing on my own time during college : **mine sweeper**. (i even added a delay on the empty tile discovery so that you could see the path the algorithm would take :D ) **perfect maze**. (this was actually an assignement) the program … | |
Re: then the column "photo" in row 1 of your datatable does not contain any data, its set to null, to secure your code against such exceptions, test it before trying to convert... something like : [CODE] if(dt.Rows[1]["photo"] != System.DBNull){ bytes = (byte[])dt.Rows[1]["photo"]; } [/CODE] won't make your picture appear but … | |
Re: [HTML(HyperText Markup Language)](http://en.wikipedia.org/wiki/HTML) is a markup language, it is used to organize the contents of a web page. [CSS(Cascading Style Sheets)](http://en.wikipedia.org/wiki/Cascading_Style_Sheets) is a set of rules that define visual display for the *tags* in a markup language. So basicly, you write a webpage in HTML and put content inside tags. … | |
Re: have you traced the value of the session variable? is it correctly being set? have you considered having default.aspx use a different master page with no buttons? otherwise you should be able to [reference master page content](http://msdn.microsoft.com/en-us/library/xxwa0ff0.aspx) with the object named "Master" | |
Re: if i understand your question correctly, you are wondering when to use the private/public keywords, when to use void as a return type and when to use the static keyword when declaring functions. so lets break that down; [public/private](http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html) simply decides who gets to call the function you are writing. … | |
Re: it's fun that everybody claims they want to be green, but anywhere a wind turbine project is suggested, people in the surroundings contest it... *sigh* Ps: > it should doing all it can *be* :P | |
Re: i am not aware of any standard libraries that play sounds and if i recall right the last time i did something simillar was for a school project and i ended up including a free third-party library i found online and used it to play some wav files. worked fine … | |
Re: i dont think it is impossible to do, you would probably need to recreate a custom JInternalFrame class and that might be too complex for what you are trying to achieve! ;) good luck! | |
Re: with a linked list the only game that comes to mind is **snake** at this time! not that it cant be done without it , but i just dont see other games ive reproduced working well with linked lists (minesweeper, tictactoe etc...) | |
Re: I would explore the avenue where you design a user control for items, where you add a grid and bind the 5 string columns. and then add and bind 5 of these itemUserControl in your main control's datagrid. There might be constraints with grids in datagrids never tried it but … | |
Re: what is the error message you get and on which line does it happen? also : If CheckBox2.Checked = True Then 'nothing ElseIf CheckBox2.Checked = False Then aspouse() End If 'is the same as : If Not CheckBox2.Cheked Then aspouse() End If | |
Re: have you done anything so far?? we do not complete assignements, we help you with problems you encounter while working on them yourself! looking foward to see code from you :) | |
Re: ah shame it doesnt go back further than 3 months, couldve been fun to make a timed heat map of all the posts since launch!! :P | |
Re: If you want to split on specific characters then look up the [split](http://www.dotnetperls.com/split-vbnet) function. If you want to split the string after reaching a certain ammount of characters then you should try getting familiar with [loops](http://msdn.microsoft.com/en-us/library/ezk76t25.aspx) and the [substring](http://www.dotnetperls.com/substring-vbnet) function. | |
Re: had not lost in a long time op :( I just lost the game. | |
Re: i usualy set the prefered size of the canvas to the size desired, then call up the pack() method. | |
Re: for loops execute the code between "for" and "next" until the condition next to the for statement is reached , so the first loop for example : For I = 1 to 4 , will loop 4 times, the first time arround, I will equal 1 , the second time … | |
| |
Re: All your threads are about listviews and stuff, they are all very unclear and none show some work done. Nobody should give you code until you provide proof that you have given this problem a genuine try. You are not getting better, hell you get spoon fed answers and when … | |
Re: are the values gonna be constant like in your example? you pretty much have the code down. id probly use an IIf but your way would work to. save the values in constant variables if they are the two values that you are always gonna switch between. | |
Re: [loops](http://en.wikibooks.org/wiki/Visual_Basic_.NET/Loop_statements) [if/else](http://en.wikibooks.org/wiki/Visual_Basic_.NET/Branch_statements) [dates](http://msdn.microsoft.com/en-us/library/bb546099.aspx) even without google, just using the text box on this page : [1](http://www.daniweb.com/software-development/vbnet/threads/323752/compare-dates#post1387744) [2](http://www.daniweb.com/software-development/vbnet/threads/432047/date-comparison) [3](http://www.daniweb.com/software-development/vbnet/threads/357007/compare-current-date-with-one-in-ms-access-db) [4](http://www.daniweb.com/software-development/vbnet/threads/383279/how-to-compare-two-date-values-in-two-different-columns-of-a-table) [5](http://www.daniweb.com/software-development/vbnet/threads/272271/comparing-datetimes-find-the-closest-to-system-time) [6](http://www.daniweb.com/software-development/vbnet/threads/414860/date-compare) that was just from first page too... this reminds me a lot of [this thread](http://www.daniweb.com/software-development/vbnet/threads/445938/how-to-compute-working-hours) lol | |
Re: i think you can edit for 3 hours after the original posted time. as for the display bug i can't help you, i did do some edits today though. Using windows 7 and chrome. Worked fine for me. | |
Re: put the validation code in the [OnTextChanged](http://msdn.microsoft.com/en-ca/library/system.web.ui.webcontrols.textbox.ontextchanged(v=vs.85).aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-7) event | |
Re: a database would probly be overkill for this, i believe most browsers just use text files or at most an xml to store favorites. | |
Re: this reminded me how much i laughed yesterday watching this ;p [lie witness news](http://youtu.be/zR9NV7D4FVY) | |
Re: [Escape Characters](http://web.cerritos.edu/jwilson/SitePages/java_language_resources/Java_Escape_Sequences.htm) [Modulo](http://www.javaranch.com/drive/modulo.html) heres something to get you started ;) | |
Re: not sure if you wanted to leave it out but that pseudocode does not swap digits 1&3 and 2&4. I would think the user has to put in the 4 digit int as 1 input personally. as for the pseudocode questions, im not the best to answer this but when … | |
Re: You are not too far from what you want to acomplish. You will not need the myPet variable in Robin , nor most of the functions you gave it. First its gonna be important that you keep separated what is comon to all pets, and what is specific to a … | |
Re: [older posts about this](http://www.daniweb.com/software-development/vbnet/threads/132410/time-difference-in-vb.net) [another](http://www.daniweb.com/software-development/vbnet/threads/333380/time-difference-between-2-dates) [one more](http://www.daniweb.com/software-development/vbnet/threads/147892/time-differnce-between-two-datetimepicker) [here too](http://www.daniweb.com/software-development/vbnet/threads/190778/time-difference-between-two-text-boxes) [and here](http://www.daniweb.com/software-development/vbnet/threads/353198/timespan-difference-between-two-dates) | |
Re: you could use loops! one way would be to loop all assigned players when you generate a new number, making sure nbody else has been assigned that number yet. putting this whole logic in an outter loop to start over if it has. but that is not the most efficient … | |
Re: [What The Font!](http://www.myfonts.com/WhatTheFont/) | |
Re: id look into Key events i guess but it will fire the saves multiple times since you can't really know when hes done typing if you dont lose focus? just a thought! Good Luck | |
![]() | Re: Are you getting errors or is the result you are getting simply not the result you are expecting? What are the error(s) or what is the result you get/expect? |
Re: [quick fix](http://www.cplusplus.com/articles/iw6AC542/) | |
Re: I personally use chrome for everyday stuff, but when it comes to testing new code on the website i work on, i can't base my tests on global statistics since the site's target users are very specific and, according to my google analytics data, are over 80% ie users. Of … | |
Re: [SelectedIndexChanged](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listcontrol.selectedindexchanged.aspx) | |
Re: index = i + 1; i believe this line is (in part) your culprit. from a quick look the rest of the code makes sense although it might not be the most efficient way to find the 5 lowest values, but your inner loop starts at i = index, and … | |
Re: Check out the [Loops](http://www.cplusplus.com/doc/tutorial/control/) section in this tutorial. Surround your switch case with one! ![]() | |
Re: it would be easier if you included some code in your post and the exact error message you are getting along with the line at which you are getting it. | |
Re: there are many other ways than a switch to simply switch the currentPlayer value to the other player name. a simple if structure would be the easiest to understand, i personaly like using [ternary operators](http://en.wikipedia.org/wiki/%3F:) for such small tasks... something in the likes of : currentPlayer = (currentPlayer == player1 … |
The End.