Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Welcome. I hope Jenny enjoys her stay.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The first thing I'd try is opening a command shell as Administrator and see if you can access the files. Failing that you can (still as admin) go to the root of the drive and type

cacls * /e /t /g everyone:f

/e = edit the ACLs (instead of replacing them)
/t = apply the changes to all sub-folders and files
/g = grant permission

If you don't want to muck with the ACLs then you could create a Linux Live CD or USB (google it) and boot off it. You should be able to get at all the files from there.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I suggest you use the Windows Task Scheduler to run your program at the given interval rather than relying on your program to continue running in the background. Using WTS would cover you if your program were to be interrupted for any reason (reboots, etc.). Plus it simplifies your code.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Have you looked at Unity for game development? There are lots of tutorials available.

beddu commented: Yes, I did. Never took it seriously, but I played a little with it too! +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Try View -> Group By -> (none), then go to details view (CTRL-SHIFT-6) and pick your sort column.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Essential? How about operators who speak the target language clearly and fluently?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Do you have a question?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You insert code by using the </> tool or by indenting everything one tab (or four spaces).

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I had previously deleted the above post under the "keep it pleasant" rule. On second thought I'd rather leave it visible to show the vacuity of the typical Trump supporter arguments.

If you want to have an intelligent conversation I'm up for it. Instead you responded by name calling. You couldn't attack the argument so you attacked the person. If you have a response to the mountain of evidence aginst Trump, other than the usual "fake news" or "lies", then let's have at it. But if you are just going to spout conspiracy theories then don't waste my time.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I prefer test at the bottom for this as well but Python doesn't allows it unless you use a break like

while True:
    inp = input("user input: ")
    #stuff
    if input("do you want to continue (y/n): ") == "n": break

which, I admit, is cleaner than my pseudo-code.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Sounds like you need a loop. What have you tried so far? In pseudo -code it looks sort of like this (with the test at the top)

continue = yes

while continue = yes
    Get user input
    Do processing
    Prompt user to continue
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I'll put in a plug here for Unchecky. I put this on my Father-in-law's computer and it automatically unchecks any boxes for crapware that comes along with other installs. It's saved him from multiple Avast installs (among other things).

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I had to set up a batch file to do this years ago in vbScript. Now I would write it in Python but here is the original. I suggest you try it in a test folder to make sure it does what you want.

'                                                                                        '
'  Name:                                                                                 '
'                                                                                        '
'    delete_older_than.vbs                                                               '
'                                                                                        '
'  Description:                                                                          '
'                                                                                        '
'    This script deletes all files more than the given number of days old.               '
'                                                                                        '
'  Usage:                                                                                '
'                                                                                        '
'    delete_older_than ## [folder] [-r] [-d]                                             '
'                                                                                        '
'    ##            is a number of days.                                                  '
'    folder        is the folder (current by default) to do the deletes in               '
'    -d            delete (default is list files to be deleted but don't delete them)    '
'    -r            recursively delete in all subfolers                                   '
'                                                                                        '
'  Note:                                                                                 '
'                                                                                        '
'    You are not asked to verify the delete so use caution.                              '
'                                                                                        '
'  Audit:                                                                                '
'                                                                                        '
'    1999-10-06  rj  original code                                                       '
'                                                                                        '

set wso = CreateObject("Wscript.Shell")
set fso = CreateObject("Scripting.FileSystemObject")
set arg = Wscript.Arguments

'check the command line arguments

if arg.count = 0 then
    howto = array( _
        "delete_older_than ## [folder] [-r]", _
        "", _
        "  ##       files older than this number of days are deleted", _
        "  folder   root folder (current by default) to do the deletes in", _
        "  -d       delete the files (default is list files to be deleted)", _ 
        "  -r       recursive delete on all sub-folders", …
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

xcopy with /t and /e options will do this. Type xcopy /? for details.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Don't hold your breath. The OP hasnb't been on this site in 8 years.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I never use sync across machines. If I want to maintain consistency across machines I use Resilio Sync. It's a direct connection between machines (data never goes to an intermediate server), transmission is always across the shortest available path (on local machines all traffic never goes past my router), and all data is encrypted before being sent.

It's free for personal use. I find it especially useful to share very large files (too bit to email) with my son in the UK. Yes, Firefox Send will handle big files, but Resilio handles the encryption and will halt/resume as connections are made/broken.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Sounds like homework. You won't learn anything if we do it for you. Please show us whet you have done so far. Please take a few minutes to read the Daniweb Posting Rules and Suggestions For Posting Questions.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Welcome to Daniweb. Please take a few minutes to read the Community Rules.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Does that mean Microsoft is not to be trusted?

Why focus on just that? There are so many other reasons to not trust Microsoft. Aside from Cortana, I've noticed that OneDrive keeps coming back. Fortunately I can make it go away quickly by importing DisbleOneDrive.reg which contains

REGEDIT4

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
@="OneDrive"
"System.IsPinnedToNameSpaceTree"=dword:00000000
"SortOrderIndex"=dword:00000042

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\DefaultIcon]
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,69,\
  6d,61,67,65,72,65,73,2e,64,6c,6c,2c,2d,31,30,34,33,00

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\InProcServer32]
@=hex(2):25,73,79,73,74,65,6d,72,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,73,\
  68,65,6c,6c,33,32,2e,64,6c,6c,00

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\Instance]
"CLSID"="{0E5AAE11-A475-4c5b-AB00-C66DE400274E}"

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\Instance\InitPropertyBag]
"Attributes"=dword:00000011
"TargetKnownFolder"="{a52bba46-e9e1-435f-b3d9-28daa648c0f6}"

[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder]
"FolderValueFlags"=dword:00000028
"Attributes"=dword:f080004d

I also have one named turn-off-cortana.reg

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]
"AllowCortana"=dword:00000000
MickeyD commented: "There are so many other reasons to not trust Microsoft". Thank you I focused on what I did because it was of interest to me. I hoped to open a dia +1
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

exactly why many of his supporters like him

And I'm sure many of them depend on those services he plans to cut which is exactly why I consider his supporters morons for the most part (see my signature). Most are likely able to think and reason, they just choose not to. His billionaire backers are just contemptible, entitled, (rude gerund) assholes.

stuff gets done

I loved a recent man-on-the-street segment where the reporter got the "he gets stuff done" from the interviewee. When asked "what stuff?" he couldn't think of even one thing.

Forces on the political right (and to a lesser degree on the left) have succeeded in eroding the public trust in our institutions

The right has eroded public trust with endless lies, and blocking every bill passed by the left that might improve peoples' lives. The left has eroded public trust by being spineless wimps.

The motto of USA culture today is: "winning at any cost".

I thought this was the new US motto

Me_pluribus_unum.jpg

rproffitt commented: "This is mine. This is also mine. All this is mine too." Sadly, the olive branch is lost. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I am being over-notified.

I started a new thread to tell the community that "Active State Komodo IDE Now Free". I got four emails telling me I had started a new thread.

2020-01-28_195028.jpg

pritaeas endorsed me in

  • web development
  • hardware and software
  • computer science

I received 5, 4, and 4 emails respectively telling me this.

2020-01-28_195016.jpg

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

If the default password has ever been changed you may have to reset the router to factory. I find that a cable connection is best when setting initial security.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can bookmark posts by using the bookmark tool at the lower right of every post, then reference them by Hamburger -> Topics and Posts -> Bookmarked Posts. Or you can use other items in the same menu to see a list of threads you have started, or posts you have written.

2020-01-26_094113.jpg

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

There are five icons at the lower right of every post. The second from the left is Bookmark. Click on this to add bookmark that you an refer to later from Topic and Posts -> Bookmarked Posts (in the menu at the left when you click on the waffle)

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

variable names are short, even abbreviated

Therefore cryptic. Might as well go back to FORTRAN 66

you sacrifice total clarity for code cleanliness

I see no reason to ever sacrifice clarity. Programming prime directive - if your code isn't clear, rewrite it (APL programmers can ignore this).

The programmer can choose any valid mix of ASCII and symbols

I was under the impression that you required a special editor which would translate character sequences like -> into appropriate Tyl symbols. Is this not the case?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Virtual CLone Drive also works. And it's free.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

calculateCharges is the function you have to write to determine how much a customer pays. You pass it the number of hours parked,

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

@jduch - if you have some time to kill you might have a look at icaros. As a former Amiga owner you might find this interesting.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

What you posted is not fully tested, reusable code. What you posted is a question which clearly falls under the default category of "discussion/question".

When you created this thread, right above the area where you pasted your code was:

DO NOT post code with errors or known bugs. Code snippets must be fully tested, reusable code to share with others.

Clearly you found those instructions confusing. Would you care to suggest alternate instructions?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Welcome to Daniweb. Please read the Daniweb Posting Rules, particularly the one about hijacking threads. I would also like to mention that if you want to use Daniweb to advertise (I removed your ad link) it would be polite to purchase an ad in order to help support the site.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

straight-forward

Is splunge 21 a function call or a variable assignment? If you can't tell the difference by looking at it then it is not straightforward.

Instead of keywords, Tyl programmers use regular ASCII characters

While I am willing to forgive this in a language like APL which requires a special character set because of the dozens of primitive operators I think the requirement for either a specialized keyboard or editor to support this is a failure of Tyl.

lists and scalars are identified by the last letter 's' in their name

While this seems reasonable at firt glance (line is scalar and lines is a list), it falls apart when you realize that many singular words end in "s". For example, "boss". Maybe not the best example but you see the problem. And even under this restriction, how would you declare a list with one element and distinguish that from a scalar? You've already stated that

s 100

would be invalid. It seems to me that if you are going to have a language with no keywords you shouldn't restrict variable names like this.

TylLang commented: Convntionally, variable names are short, even abbreviated, and function names do have a meaning. So, with a little concentration over a program, it ca +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

BTW, make sure you are using a 3.x version of Python. Python 2.x is at end-of-life.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I recently had to give up using the Amiga

Awesome. My first "personal" computer was a C64. When the Amiga 1000 was released I couldn't buy it fast enough.

I don't know how Visual Basic compares to Gui4Cli. Why is it abandoned ?

I've never heard of Gui4Cli but I suspect it was abandoned because of a lack of support for .NET.

I miss the Amiga arexx interfaces

Yup. That was an amazing feature. I get by using AutoIt but ARexx was much more powerful. If you install AutoIt (it's free) you can script actions in the AutoIt scripting language, or through vbScript or Python using the AutoItX interface. Iv'e been doing this for years. If you need help with this please start a new thread with AutoIt as a tag.

I have python installed. Does wxpython replace it?

wxPython is simply another module that you can import from within a Python program. You install it by

python -m pip install --upgrade pip
pip install wxPython

Technically you don't need the first line but I frequently get messages saying "you really should update pip" so I run the first line to make sure I am always current. The documentation for wxPython can be confusing but there is a forum which is very helpful and there are a number of books I can recommend if you need.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The company that makes EpiPen (Mylan) increased the price for two pens from $100 to $600 between 2010 and 2016. Each pen contains only $1 of epinephrine. Generic versions such as Adrenaclick are available for as little as $10 a pen ($110 at CVS with a $100 discount coupon from the manufacturer), however in the US, if a doctor states EpiPen (brand name) on the prescription instead of epinephrine auto-injector (generic name) the pharmacist is not allowed to substitute the generic form. If you need a prescription for an auto-injector, make sure the doctor uses the generic name.

This restriction does not apply in Canada where pharmacists may substitute an equivalant generic product.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Technically you were never a democracy. You were a republic. There are subtle but important differences. Differences notwithstanding, you are still pretty much f**ked. Not that we're that far behind you on the curve.

rproffitt commented: You're right. Is that a pun as well? (right?) Wow, too far right. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I suggest that instead of posting a low-res, blurry, hard to read screen cap of your code you copy/paste your actual code. Some people may actually go to the trouble of testing code locally and being able to copy the code from here ensures that they are testing the same code that you are running.

As a rule, when I get an error the first thing I do is examine the actual sql command string.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

On the plus side, nothing associated with Trump could in any way be deemed "cultural" so that wouldn't be classified as a war crime.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

For future reference, please post text intead of a lo-res, blurry, hard to read image of text. Some of us are dinosaurs with somewhat less than 2020 vision.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The OP hasn't been on this site in 5 years so don't expect a reply.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You don't know how to do this, yet your signature advertises you as an ASP.Net Developer. Do you see the problem here?

rproffitt commented: In their profile, 50-99 employees. I guess this company does not work well together. +15
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I've read a lot of books about Python and by far the best one for beginners is Beginning Python: From Novice to Professional by Magnus Lie Hetland.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

1) Which while?
2) Which line?

Сергей_7 commented: 23 line +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
  1. No more Trump(s)
  2. Media that doesn't pretend there are two sides to every story for fear of being called biased (as if there is anything wrong with being biased in favour of the facts).
  3. Fair elections.
  4. Serious consequences when the media or a politician knowingly reports false information.
rproffitt commented: (US political party wish) 1. No more AOC's. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

We don't do your homework for you.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Hi back from someone whose grandparents came to Canada from the Netherlands many years ago.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Gotta love how the GOP just keeps inventing rules. The latest one reasons that because no president has ever been impeached during his first term, we should not impeach Trump.

rproffitt commented: Maybe we have to wait for the third term. "Donald Trump Deserves A Third Term, Say Some Supporters" +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

What is "reminiscence space"?

There's an amusing old story about how all those files got there...

rproffitt commented: There's another story about teens and their "homework" folders too. "How did that get there?" A: Science research. +15
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

It is not gone as a scripting language, only as a browser scripting language. You can still write code to run under cscript.exe and wscript.exe.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Or you could subtract the random number mod 3. That makes it easier to keep it within the given range.

x = new random number in range (-25,43)
x = x - x mod 3
JamesCherrill commented: Cunning! +15
matt21mcr commented: That looks great! I have no idea how to use it in my code, but I will be trying everything to work it out. I'd be so grateful if you could help me:) +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

That sounds more like the Martingale betting system for roulette.

rproffitt commented: This system might seem to work at first, but the math doesn’t lie. Gamblers however overlook facts like these. +15