4,901 Posted Topics

Member Avatar for AssertNull

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 …

Member Avatar for Reverend Jim
0
612
Member Avatar for Gamal_3

>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 …

Member Avatar for Gamal_3
0
321
Member Avatar for McLaren

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 …

Member Avatar for John_152
0
263
Member Avatar for Marlon189
Member Avatar for Siberian

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)

Member Avatar for Siberian
0
360
Member Avatar for Sameer_8

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 …

Member Avatar for Sameer_8
0
1K
Member Avatar for Rajan_8

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.

Member Avatar for Rajan_8
0
692
Member Avatar for mohan_5

It's [this](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing).

Member Avatar for Reverend Jim
0
78
Member Avatar for benits

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 …

Member Avatar for davidcairns
0
287
Member Avatar for MRehanQadri

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 …

Member Avatar for Reverend Jim
0
4K
Member Avatar for Dani

>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.

Member Avatar for Dani
6
1K
Member Avatar for happygeek

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.

Member Avatar for happygeek
0
1K
Member Avatar for DeanMSands3

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 …

Member Avatar for Reverend Jim
0
694
Member Avatar for Learner010

>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 …

Member Avatar for munawer_1
0
3K
Member Avatar for Dani
Member Avatar for jack_19
Member Avatar for ethan_5
Member Avatar for Cameron_4

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 …

Member Avatar for Reverend Jim
0
419
Member Avatar for PulsarScript

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 …

Member Avatar for JamesCherrill
0
304
Member Avatar for Mahfuz_2
Member Avatar for taldag

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 …

Member Avatar for MadDogMark
0
440
Member Avatar for ALi_66
Member Avatar for charlottegracie
0
113
Member Avatar for Harshit_4

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');

Member Avatar for charlottegracie
0
180
Member Avatar for Neethu_1

>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."

Member Avatar for Reverend Jim
0
155
Member Avatar for kishpopboy

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 = …

Member Avatar for CERTIVE
0
5K
Member Avatar for ray_8

Remove the rechargeable battery and then try to power up with the ac power connected. If it works then reconnect the battery.

Member Avatar for ray_8
0
272
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
487
Member Avatar for Dani

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 …

Member Avatar for rubberman
0
659
Member Avatar for Dani
Member Avatar for happygeek

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 …

Member Avatar for happygeek
0
465
Member Avatar for long5001

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 …

Member Avatar for long5001
0
973
Member Avatar for Reverend Jim

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 --> …

Member Avatar for Dani
0
592
Member Avatar for Er_3

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.

Member Avatar for Nisha_6
0
427
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
3
607
Member Avatar for easouza

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 …

Member Avatar for Reverend Jim
0
1K
Member Avatar for Dani

>I was being laughted at Oh, Woj. We are laughing at you for so many other reasons.

Member Avatar for Reverend Jim
0
731
Member Avatar for Vinny_3

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.

Member Avatar for Douglas_5
0
276
Member Avatar for John_147

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 …

Member Avatar for Reverend Jim
0
231
Member Avatar for tarael1

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 …

Member Avatar for tarael1
0
2K
Member Avatar for Dani

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 …

Member Avatar for rproffitt
0
601
Member Avatar for anousha

Can you please clean this up, add a little detail (like what you are having trouble with) then post it as a new thread?

Member Avatar for Reverend Jim
0
786
Member Avatar for joshl_1995

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 …

Member Avatar for joshl_1995
0
464
Member Avatar for joshl_1995

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 …

Member Avatar for joshl_1995
0
707
Member Avatar for _1_14

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 …

Member Avatar for Reverend Jim
0
383
Member Avatar for Cameron_4

>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 …

Member Avatar for diafol
0
202
Member Avatar for daveofgv

I believe you can only reference cells by column and row number in vb or vbScript, not by "A", or "B".

Member Avatar for muoixd
0
2K
Member Avatar for _1_14

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 …

Member Avatar for Reverend Jim
0
335
Member Avatar for Warrens80

Water under the bridge dude. We all have history. Welcome back.

Member Avatar for Warrens80
0
190
Member Avatar for සශික

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 …

Member Avatar for Amr_3
0
1K
Member Avatar for Karl_6
Member Avatar for Karl_6
0
301

The End.