4,901 Posted Topics
Re: Markdown syntax is not as flexible as BBSCode but it is much easier to use, especially for edits-after-the-fact - as anyone who had to do word processing in the pre-wysiwyg days can confirm. If you need to reference line numbers in code that you are including in a post, my … | |
Re: >Use the value of PI = 3.14285714 To 8 decimal places, the value of PI is 3.14159265. What is the point of using 8 decimal places when your third place is already wrong? >and is it better to use while() or do{} while() ? It doesn't matter unless your equations … | |
Re: I'm not motivated by the rewards feature. I will answer a question if - The question is explained clearly - The OP has shown effort to answer it him/herself - I have the knowledge required to do so or the question is interesting enough for me to want to figure … | |
Re: Further... The `if` statement expects an expression that evaluates to `true` or `false`. The statement if (app.activeDocument.pathItems[0].filled == true) could be better written as if (app.activeDocument.pathItems[0].filled) | |
Re: For public void adjustSalary(double percentage) how do you specify the percentage? If you are giving percentage as a number from 0-100 then you have to use the calculation this.monthySalary = this.monthlySalary + (percentage / 100.0); If you are specifying 5% instead as 0.05 then you don't have to divide by … | |
Re: A Ceasar cyper encodes by shifting letters in one direction, and decodes by shifting in the opposite direction. `key` is the number of places to shift. If the user wants to decode then `key` is negated to shift in the opposite direction. | |
Re: It's [this](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing). | |
Re: It is possible. I haven't done any serious database work now for over ten years, but that was almost the exact technique I used to manage a set of tables for a large system (400mB monthly tables kept from 1998 forward). At the end of each month I had to … | |
Re: You can't define what is a garbage value any more than you can write down all the wrong answers to a question. You decide what constitutes a correct value and try to define a pattern that matches all correct values. Anything else is garbage. A pattern for an integer might … | |
Re: >You guys tell me which you would prefer: Doesn't matter to me. For anything more than a few lines I use MarkdownPad, then copy/paste into the thread. | |
Re: Every time I click on the link in [this post](https://www.daniweb.com/community-center/daniweb-community-feedback/moderators-place/threads/507783/under-attack#post2217174) I get the same message. | |
Re: Have you run any diagnostics? If so, what do they report? Have you run `chkdsk` or `sfc`? Do you recall what changes you made just prior to the first freeze? If you know when it started you could look at your Settings/Applications and sort by date to see what you … | |
Re: >i dont want to use label I don't know why not. It's so simple. You don't even have to name the label unless you want to modify the text after you place it. Dim lbl As New Label lbl.Font = New Font("Arial", 12.0!, FontStyle.Regular, GraphicsUnit.Point, CType(0, Byte)) lbl.Location = New … | |
Re: Your `barcode` array has a trailing blank included with every barcode and the one you are comparing it with (user input) does not include the blank so you will never get a match. You could fix that by doing a `Trim()` before copying the string into the array. That's the … | |
Re: If you break up the root parts of the word you get "poly" meaning "many" and "morphism" meaning "form" (loosely). Take method names. Let's say you want a method to find the absolute value of a number. In ore-OOP programming you would need (this is not necessarily a complete list … | |
Re: Definitely [Everyrhing](https://www.voidtools.com/). Dir will find files but it is slow and not flexible. For example, try to find files with three particular strings but in any order. You'd have to do something like (using my files) dir /s /b | grep -i adam | grep -i andrew | grep -i … | |
Re: It depends on your requirements and your current skill set. | |
Re: Try do { printf("\nEnter the radius of the circle -: "); scanf("%f", &r); area = 3.14 * r * r; printf("The area of the circle is -: %f", area); printf("\nDo you want to try again (y/n) -: "); ch = getch(); } while(ch == 'y' || ch == 'Y'); | |
Re: >Which multi-threaded program is recommended for reducing CPU usage I think the obvious answer to that is "the program that does the least amount of processing." | |
Re: Here is an example [code] Dim amin As DateTime = CDate("08:00:00") Dim amout As DateTime = CDate("12:05:00") Dim pmin As DateTime = CDate("13:30:00") Dim pmout As DateTime = CDate("16:43:00") Dim amhours As TimeSpan = amout - amin Dim pmhours As TimeSpan = pmout - pmin Dim total As TimeSpan = … | |
Re: Remove the rechargeable battery and then try to power up with the ac power connected. If it works then reconnect the battery. | |
My son is looking to buy a new gaming system. For reasons I have detailed elsewhere on Daniweb, there is no way in hell we will consider a Dell system. They were great once. They aren't anymore. And their service sucks big time. We would prefer a prebuilt system because … | |
Re: I've never had one with a dedicated video card but I don't see this as a biggie. I can't imagine that you could upgrade the video card in a laptop and, to me, that seems the only reason to have a separate card. Incidentally, that's the reason my son's next … | |
Re: If the current Lenovo's are built to the same quality as the old ThinkPads then you'll have good machines. Those things were built to last. The one I bought for one son back in spring of 2004 is still chugging away. Of course, he has upgraded to newer machines since … | |
Re: You can convert a datetime string to a datetime value as long as you properly match the [format of the string](https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior). For example import datetime t1 = "02/11/2017 10:43 AM" t2 = "02/27/2017 01:11 PM" d1 = datetime.datetime.strptime(t1, "%m/%d/%Y %H:%M %p") d2 = datetime.datetime.strptime(t2, "%m/%d/%Y %H:%M %p") dsec = (d2 … | |
Just for fun I went to the start of the [Word Association Game](https://www.daniweb.com/community-center/threads/302/word-association-game#post2075) thread. I noticed it was started 14 years ago but there seems to be a problem with the date order. Post 1 - 14 years ago - Lucy Post 2 - 13 years ago - cellphone --> … | |
Re: Because most people download content a lot more than they upload it. Streaming a Netflix movie does not require that much info to be sent upstream. | |
Here's a handy tip I haven't seen documented anywhere. If you have an Explorer window open, do the following 1. Click in the address bar to the right of the address so that the entire address is highlighted/selected 1. Type `cmd` in the address bar so that it replaces the … | |
Re: Check the root of the external drive and see if there is a hidden file named `desktop.ini`. In my `My Documents` folder it contains [.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770 IconResource=%SystemRoot%\system32\imageres.dll,-112 IconFile=%SystemRoot%\system32\shell32.dll IconIndex=-235 and in `My Music` it looks like [.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21790 InfoTip=@%SystemRoot%\system32\shell32.dll,-12689 IconResource=%SystemRoot%\system32\imageres.dll,-108 IconFile=%SystemRoot%\system32\shell32.dll IconIndex=-237 Note the diffent values for `IconIindex`. My guess … | |
Re: >I was being laughted at Oh, Woj. We are laughing at you for so many other reasons. | |
Re: Have you tried restarting your router? You might also try running perfmon to get more granularity on your stats. You can run it from the task manager (Win 10) or from the command line by perfmon /res Select the `network` tab and go from there. | |
Re: If I substitute some values and evaluate the first expression I get UPDATE ptransaction SET Quantityt = 23, Partial_totalt='24' WHERE Product_Codet =CODE''AND soldtime = '2017-02-26 09:10:57' You probably intended something like UPDATE ptransaction SET Quantityt = 23, Partial_totalt=24 WHERE Product_Codet ='CODE' AND soldtime = '2017-02-26 09:10:57' Check out the placement … | |
Re: I agree. Save your data to an external drive, then wipe and install Windows 10 from scratch. Make the SSD your primary drive. You could allocate about 120 gig to your C partition (more or less depending on how many apps you intend to install), then make the rest D … | |
Re: Just throwing out another idea here... I'm trying to think of some way to discourage people from posting in old threads. Perhaps when a thread is over a certain age limit the edit box could be replaced with a large button with the text >This thread has been inactive for … | |
Re: Can you please clean this up, add a little detail (like what you are having trouble with) then post it as a new thread? | |
Re: You can access a router by browsing to a particular IP address. On my router the address is `192.168.1.1`. If you browse to that address you will be asked for a username/password. If you do not know the credentials then you will have to attach to the router via cable … | |
Re: You might try just rebooting your router. I have to do that periodically when my connection bogs down (only 3 computers on it). As soo as it restarts my connections speed up considerably. There is no way I can see what the problem is but I suspect router tables are … | |
Re: I don't have a suggestion for a solution but I'd like to comment on the code. I've taken the above code and rewritten it as if (QRC.UserExists(textBox1.Text)) { if (UserExistsToday()) { label8.Text = "User added today"; } else { label8.Text = "User added before"; } without getting into a discussion … | |
Re: >It does leave the app open to beginners tinkering with the external plain text files. That's funny. I externalized scripts (mostly Excel) because the users had to have write access in order to allow modification of the Excel data, but because the script was external it could reside in a … ![]() | |
Re: I believe you can only reference cells by column and row number in vb or vbScript, not by "A", or "B". | |
Re: If the data is already in TextBox4 (that's what I think you are saying) then you can read/write the text whether or not the control is visible just like you would with any other control, but if it IS hidden then I don't see how the KeyDown event for TextBox4 … | |
![]() | ![]() |
![]() | Re: At 1000 transactions per day it **does** matter what kind of database you use. I once had to support an application built on Access. Once the database got to a certain size we had to do a rebuild weekly because it kept crashing. At 1000 transactions per day you'll run … |
Re: After line 18 you add some code to the effect if (pledge >= 100) { numMugs++; } |
The End.