rproffitt 2,701 https://5calls.org Moderator

I don't see enough code so this is at a high level. Now that you know to put the code you want to run in form.load, put a timer on the form and in form.load, set the timer duration and enable it. Now when the timer fires, you have code to do what you want at that frequency.

rproffitt 2,701 https://5calls.org Moderator

That's still a portion of the code. As noted, move your rotation code over to the client in JavaScript and pull/change as you wish.

In a later reply you change your requirement to show all the images on the screen. That's a different requirement and you code as you wish.

rproffitt 2,701 https://5calls.org Moderator

Since you didn't reveal all the code, then my reply will be just about as incomplete.
On the client side keep track of which set and request the next when you feel like it.
That is, this is not something I would have in PHP but in the complete design.

rproffitt 2,701 https://5calls.org Moderator

I need some clarification here. PHP is usually server side so to loop images you usually have some HTML and JavaScript to display this on the web browser. That is, it would be odd to do this all in PHP.

rproffitt 2,701 https://5calls.org Moderator

Here's a basic item you learn as you write more VB code. If you want code that runs when the app or form loads, use form.load()'s handler.

rproffitt 2,701 https://5calls.org Moderator

Just a tip. If you use the Aforge kit, their forum is at http://www.aforgenet.com/forum/

rproffitt 2,701 https://5calls.org Moderator

Up at the top you wrote what you wanted sharing to do and it failed that spec.

About not adding a guest account, that's OK since it's a built in account that is enabled or disabled (your choice.)

Do I need to point back to what you asked for?

rproffitt 2,701 https://5calls.org Moderator

The tutorial notes how guest is special. In Windows speak it's a way to allow a connection without an account.

There are many ways to configure access but many failed to meet your specifications. You are the ruler here but just like Science sometimes you can't do what you want.

This is why I've kicked it around with you here. So you can see what you can do.

At this point you should be ready to go. If not, why not add a team member on your project that has the needed skills?

rproffitt 2,701 https://5calls.org Moderator

That's OK. The article is not limited to what I think you want to do but does dive into the settings, screens I would have to be conversant as well as au courant with those controls.

rproffitt 2,701 https://5calls.org Moderator

The article also noted if we wanted control over which users do what, we remove the guest from the access list.

I fear you have to go over the tutorial again. I also fear you may just have to dive in again and again till access controls, accounts, permissions and rights begin to make sense. I can only take you so far.

rproffitt 2,701 https://5calls.org Moderator

You have many questions.

  1. Users are that in Windows10/8 etc (non-server) that are used to log into Windows, correct ?
    Not entirely. Since we are on a non-server Windows OS the shares (and mind you I expect you to have read the tech article I noted) use the Windows accounts to know who is who. So to give the level of control you want, the share system must have some user accounting to effect this control. The easiest way would be to create as many users as you need so each connection uses that unique user account for access control.

  2. If so I assume I can limit the user to being able to login to Windows and strictly limit their credential to a shared folder, for example ?
    You'll need Windows Pro versions. Read https://technet.microsoft.com/en-us/library/cc957048.aspx
rproffitt 2,701 https://5calls.org Moderator

Not mundane at all. OSes, file systems, ownership, rights have a long history. My background goes from no file system OSes like what we had on old computers like GE-210 (dating myself) to CP/M, DOS, Novell, VAX VMS, UNIX and to NTFS and Windows which you are dealing with now.

If you are just arriving on the computer scene it may seem like a bit of a mess or hard work but I get that. We all start somewhere and here I had to divine what you wanted on what OS. If you can in the future leave out divination that would help us move faster.

Here's a very condensed primer: http://www.techradar.com/news/networking/windows-file-and-network-sharing-the-complete-guide-1119901

rproffitt 2,701 https://5calls.org Moderator

That's a two or more part question. To make the connection unique per PC the current implemention is, and this is keeping it simple, "Who are you and do you have rights to this?"

So to meet your goals changes with the OS but in all cases and OSes it's still going to require the server know this user and in your scenario so far you have asked to have a Windows share on a Windows client OS (not Server) so we have to work inside that framework.

So without creating accounts you lose control of the share since Windows sharing either allows connections by names and rights or wide open sharing (that guest account method which fails to meet a base requirement of yours.)

At this point why not take a few tutorials on Windows Administration since we are now at a point where it's clear you need that.

rproffitt 2,701 https://5calls.org Moderator

As to the question about using what Windows sharing offers, yes you are sharing a folder on its own but your requirements blow up what Windows does. That is, you specified this to "when I want to access the folder on a networked computer, I will be promted for ..." which isn't how it works today. I'm sure somehow if you wrote enough code to make a custom security module you could but I would not help on that. It's a tar pit of a design and anyone that has tried it either vanished from view, burned up and went to Linux or came back from the void with a fresh appreciation that it's easier just to manage shares and accounts.

OK, that out of the way you wrote "Does this mean that if one tries to access shared folder; as long as the user enters in the correct user to the Windows account and password they will be able to access the folder ? If so that would mean I would be populated with users on the Windows account; users as in thsoe who can also log into the host computer sharing the folder, correct ?"

Almost correct. Since we are not using Windows Server the "server" is our choice of how we want to tackle the share. If you want to make sure that only certain usernames and passwords work for the login portion (we have yet to talk about share permissions!) then each user and their password …

rproffitt 2,701 https://5calls.org Moderator

Here it's right under your post at the top.

It's Gold in color and the biggest button ever. It's a beautiful button and you won't have to pay for it.

rproffitt 2,701 https://5calls.org Moderator

If you found it works with the VPN then it's a geo-location issue and you need to mark this solved.

rproffitt 2,701 https://5calls.org Moderator

" I want to continue to login to Windows using the email based login but add users to this account, "

That's not possible. Windows Server offered users in groups but an user account can not add users. Can you share how you came to think that Windows and let's include Linux supported adding users to an user account?

Maybe this is all about share permissions which is not adding users to an account but users to the Windows installation then adding permissions to that share to allow these folk access to that folder?

-> In your last paragraph I will answer this will NEVER HAPPEN. What won't happen?
"If I can add a user then I can tell the folder to share the folder based on <UserName> when I want to access the folder on a networked computer, I will be promted for the <UserName> password and I will have access to the folder based on a different user."

Sorry no and never unless you create a monster amount of code. Due to something called single signon, that will never happen (without you creating a huge custom security system and a year or two in coding hell.)

I have a question. Why don't you use what Windows Sharing offers? Of if it must work the way you wrote here, time to bail to an OS that does what you want.

rproffitt 2,701 https://5calls.org Moderator

Sorry Siberian but all this back and forth and I have to divine information. I'll respect this need for keeping it secrect and guess.

So for this sort of setup, it's a failure since use of the Email login means we have more testing of the home versions of Windows about accounts and sharing. I never use the email based logins here. I use a local login and for the share control you want, you either move to a Server version of Windows, Linux or such then add the user accounts then set share permissions per user or if Windows Server by group.

For this discussion you do nto have a Windows Server OS so you can only add users to the Windows "server" machine and work hard at creating permissions. It's not pretty or easy.

rproffitt 2,701 https://5calls.org Moderator

It appears you are spamming your questions. That's taking more than your fair share of free help.
I think you are thinking

Why not maximize your odds by posting it on twenty sites!

rproffitt 2,701 https://5calls.org Moderator

Simply yes. Long ago I had an app with this requirement. So the EVENT that I triggered my resize was the form.resize event.

More at https://www.google.com/search?q=form.resize+event+handler&ie=utf-8&oe=utf-8

rproffitt 2,701 https://5calls.org Moderator

@yosri_1 I guess as a challenge you could try this in VBA. To me that's a non-starter in so many ways.

Good luck on your apps and reports.

rproffitt 2,701 https://5calls.org Moderator

Sounds like you have a plan. Now go write some code to do it step by step. Many blow up on launch. That is, webcam capture to the bitmap we need to run through a Sobel filter. Have you got step 1 (image capture) done yet?

Remember that this is your app to write. I don't mind chatting how we did it on a very very small system.

rproffitt 2,701 https://5calls.org Moderator

Worked here. I'm in some sunny part of the USA today.

rproffitt 2,701 https://5calls.org Moderator

This is a well worn research area. I'll share a cheap motion detection system we used in a low budget system. NO SOURCE CODE EVER. Do not ask.

The basic method is to take a frame or bitmap and put it through a Sobel filter (what this is and code is on the web.)
Now since we had only a pitiful 16MHz CPU our image only had a few zones so in simple words we had a count of the edges in each zone and if the count changed by more than some percent or number we called that movement.

rproffitt 2,701 https://5calls.org Moderator

So just after line 6, the alert on uploadUid.value shows nothing? Remember this is not a new issue/problem. Those priors did not find one cause or cure, just that Chrome may do that.

rproffitt 2,701 https://5calls.org Moderator

I worry your have re-discovered a VS bug now. Read http://stackoverflow.com/questions/2625239/unable-to-copy-a-file-from-obj-debug-to-bin-debug and links there.

As to your code, I see no copy command in any line so I take it you know it's not your code?

rproffitt 2,701 https://5calls.org Moderator

Resources are not files. Let's see some code that opened and read a file, not the app's resource.

More detail at https://msdn.microsoft.com/en-us/library/7k989cfy(v=vs.90).aspx

rproffitt 2,701 https://5calls.org Moderator

A few notes.

  1. I don't see the complete page code.
  2. Priors at https://www.google.com/search?q=Form+Data+value+wont+pass+on+Chrome don't find one cause or cure.
rproffitt 2,701 https://5calls.org Moderator

I've yet to determine which Windows so I have to write about Server versions and exclude the other scenario which differs.

I respect your need to keep secrets and wont' pry.

"AD" in this discussion would be Active Directory.

rproffitt 2,701 https://5calls.org Moderator

I think you're catching on. For Windows Server the account management is a big part of running the OS.

For your Windows 10 Home, Pro and such the only accounts the OS knows of are the local accounts so we have to add those users and then look to adding them without using Everyone or enabling the Guest account. AGAIN, I dismiss the Domain and AD Windows client sharing scenario here.

It's a bit of a mess to maintain so I never endorse this method.

rproffitt 2,701 https://5calls.org Moderator

You can't talk strictly about Windows sharing because it varies from version to version of Windows. It's a mess.

On Windows Server versions you do this one way.
On Windows such as Windows 10 Pro, you add accounts on the "server" then add rights to the share and folder.

Take time to test all this out. And as Windows sharing is like you telling me you have jellybeans. Too many variables.
And Happy Easter.

rproffitt 2,701 https://5calls.org Moderator

You must be writing about Windows sharing. Unless you are on a Windows Server OS, the list is only of the accounts the "server" knows about.

I'll dismiss the scenario of a Windows Client sharing when it's on a domain (just to keep it clear that's a different scenario.)

So "Everyone" is everyone with an account on this server. Unless you enable the Guest account. Then it's anyone, which is different from Everyone.

Confusing at first. And changes as we change Windows OSes from say Windows 7 Pro to Windows Server 2020.

rproffitt 2,701 https://5calls.org Moderator

I see you need to get your command line working then we can share that command and help you put that into your Line 2.

rproffitt 2,701 https://5calls.org Moderator

There is the old method worth knowing about. Find the KBnnnnnnn (the n's are the number of the KB) then google that KB number. Many of these have manual downloads and installers.

Worth noting are those cracked and crack activated Windows. These are known to fail WU (Windows Update.) Be sure you know your OS condition. That is, no cracks, not infected.

rproffitt 2,701 https://5calls.org Moderator

I wonder if this is disabled in Chrome, many articles like http://www.pcmag.com/article2/0,2817,2490222,00.asp so anything to get around this is a hack and most forums won't get into that.

Read http://stackoverflow.com/questions/17994666/video-auto-play-is-not-working-in-safari-and-chrome-desktop-browser for a simpler bit of code. You are likely working at this too hard.

rproffitt 2,701 https://5calls.org Moderator

Please add what browser this is. On iOS devices, this will not work and never will. Why has been explained many times.

Without the full context, I would be guessing what you are trying to do this on.

rproffitt 2,701 https://5calls.org Moderator

XML is a programming language would be news to me. I only thought of it as what it was, the extensible markup language that served as a way to write something that might work across many systems.

https://www.google.com/search?q=explain+xml seems to tell us this and more.

rproffitt 2,701 https://5calls.org Moderator

I see I wrote caniuse.com not caniuseit.com. Computers be like that!

As to JSLint, I'd tolerate nothing. I'll share I made money going halfway around the world just to re-iterate that compiler and lint warnings shall be fixed.

rproffitt 2,701 https://5calls.org Moderator

If you wish. You could tell the users to use other than Chrome?
In parting, also use caniuse.com to check if your code is tripping over some other items.

Did the current code pass JSLint?

rproffitt 2,701 https://5calls.org Moderator

jshell.png
My takeaway was this picture.

So JavaScript is like Schrödinger's cat and quantum mechanics. That is, if anyone tells you they understand it....

rproffitt 2,701 https://5calls.org Moderator

That line doesn't look off on its own.

What does JSLint have to say about your code?

  1. JSLint (you can find that on your own.)
  2. Watch https://www.youtube.com/watch?v=hQVTIJBZook to learn more about this and issues with javascript.

I upset a fellow coder by insisting a clean lint report before we started debugging.

rproffitt 2,701 https://5calls.org Moderator

Can you share line 1194?

rproffitt 2,701 https://5calls.org Moderator

OK, so let's see priors minus PDO!
https://www.google.com/search?q=PHP+Pagination+Class&ie=utf-8&oe=utf-8#q=PHP+Pagination+Class+for+mysqli+-pdo&*

The example I linked to first does not require a lot of work. Just configure and use. In my view, you have a lot of priors (wheels) to look over.
If you want to write this again, then you dive in and work it hard.

rproffitt 2,701 https://5calls.org Moderator

Given all the prior work on this, shouldn't we be using off the shelf solutions (wheels)?
Example at https://github.com/BenGriffiths/pdo-mysqli-pagination

cereal commented: great suggestion! +14
rproffitt 2,701 https://5calls.org Moderator

Go to the Codepen for that and see what I changed in the JS area as follows.

var chart = AmCharts.makeChart( "chartdiv", {
  "type": "serial",
  "theme": "light",
   "depth3D": 20,
  "angle": 30,
  "dataProvider": [ {
    "name": "Income A",
    "open": 0,
    "close": 11.13,
    "close2": 14.13,
    "close3": 17.13
  }, {
    "name": "Income B",
    "open": 11.13,
    "close": 15.81,
    "close2": 19
  }, {
    "name": "Total Income",
    "open": 5,
    "close": 15.81,
    "close2": 16.9
  }, {
    "name": "Expenses A",
    "open": 12.92,
    "close": 15.81,
    "close2": 17.9
  }, {
    "name": "Expenses B",
    "open": 8.64,
    "close": 12.92,
    "close2": 16.1
  }, {
    "name": "Revenue",
    "open": 2,
    "close": 8.64,
    "close2": 13.2
  } ],
  "valueAxes": [ {
    "axisAlpha": 0,
    "gridAlpha": 0.1,
    "position": "left"
  } ],
  "startDuration": 1,
  "graphs": [ {
    "fillAlphas": 0.8,
    "openField": "open",
    "type": "column",
    "valueField": "close",
    "clustered": false
  }, {
    "fillAlphas": 0.8,
    "openField": "close",
    "type": "column",
    "valueField": "close2",
    "clustered": false
  }, {
    "fillAlphas": 0.8,
    "openField": "close2",
    "type": "column",
    "valueField": "close3",
    "clustered": false
  } ],
  "columnWidth": 0.6,
  "categoryField": "name",
  "categoryAxis": {
    "gridPosition": "start",
    "axisAlpha": 0,
    "gridAlpha": 0.1
  }
} );
diafol commented: Glad the OP thanked you RP :( +15
rproffitt 2,701 https://5calls.org Moderator

Let me share I don't fret about this unless it goes on for about a month. Also, any competing security app could interfere with Defender so for now my advice is not fret and wait it out.

rproffitt 2,701 https://5calls.org Moderator

I think you need to trace through your code to see why it does what it does. If you had a question about one or two lines in particular to look at I would look but 100?

So, in your IDE set break points and if no IDE, use print statement to reveal what's inside at that point.

rproffitt 2,701 https://5calls.org Moderator

As this is your code, correct the errors one by one. It is really that simple.

rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

This sounds like something of a wheel. ie, code that we go get and use and not re-write.

Yes, I found it at https://www.rosettacode.org/wiki/Balanced_brackets in over a dozen languages including c.