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

Just a thought. Review where you got this code from. Was it running on some Apple like yours? They may have it on some PC so your choice of devices may be off. Remember I don't own hardware like yours and you forgot to tell in your opening post.

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

Maybe it's like a custom bit of hardware. That is, to do this you need that. I can't guess why you must not use GEMS and Packages but if that's how it's done, why not do that and complete the project?

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

Be sure to keep an eye for others asking similar/same questions like at http://stackoverflow.com/questions/43568141/custom-attribute-based-access-control-angular-rails

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

I think you'll have to explain this in detail. Here, Netbeans is the IDE where I edit code. https://en.wikipedia.org/wiki/NetBeans

So your topic is about updating which coupled with your question my answer would be "open your project in Netbeans, edit the thing you want to update and save your files and project."

Maybe you meant something else entirely.

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

I can't know you were coding and running this on an Apple Mac. Alter my link to reflect that change in detail. As I don't have an Apple Mac but the iPhone and iPad I can't duplicate your issue.

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

As a test try working apps first before you write new code. I can see this happen if say a Pi was connected to a monitor. Most monitors don't have speakers so the audio over HDMI would fail. As to your Pyaudio, I can't guess your setup.

Using https://www.google.com/search?q=raspberry+pi+pyaudio+configuration here the second article is about setup.

My advice is to COPY what others have done before you try it on your own.

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

When you take your app to another PC, what SQL server did you install there?

That is, I've yet to see vb.net's installer install the server for me. I have to add that.

As to the connection string, you HARDCODED that. Seems this is your first rodeo so next time add some screens to your app (most folk call it Settings) to allow customization of the app for each install instance.

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

Let me think back to my PalmOS apps. They had no My.Settings feature so I would have to add code that ran on a form load to read from saved settings.

All hand coded so here you are with an all too similar issue or feature you want to code up. So what's the next step? Write code now that you know what you want it to do.

In parting, this is likely done in your form.load event handler.

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

Here you go. Read posts and finds with https://www.google.com/search?q=Forced+matrix+with+Php%2FJavaScript%2FMysql to see that this appears to be a job folk put up on Freelancer and more.

However I am encountering more and more folk that want complex systems for free. That's OK, but to get there you create or contribute to an open source project. This really upsets folks new to coding and creating a new thing.

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

Get well soon. That bug ran around here last month and caught a bit of it too. Longer time to recover it seems.

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

I still don't see a good question here. No code and more. It's possible you are like some that post on forums and write "Gimme the codez."

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question first then add your code and where you are stuck.

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

Keep reading those priors and always reboot the host.

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

I see prior answers with this search. https://www.google.com/search?q=Max%3A+2%2C048KiB&ie=utf-8&oe=utf-8

I know you are a little seasoned by now but maybe you couldn't get the words into google just right.

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

Be sure to test it harder. Grab a corner and make it tiny. Some controls don't like the negativity.

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

Sounds like you've reached the end of your own repair skills. Get estimates as most of these are cheaper to replace than fix.

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

WARNING. I should have noted this. Be sure to test that "this" dimensions are not zero. That is, what size is this when the app is minimized?

I didn't account for this and my demo crashed when an user did that. I knew what it was but due to the rush to get the demo working (it was a demo) I hadn't coded for this instance.

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

This does not sound like the topic you started with. It sounds more like some multi-level-marketing web site you want to create.

If it's urgent, put up what the pay is for this.

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

Read the link I posted so you can ask a full question. As to technique you use what you know. If you don't know, then you take more classes, tutorials and hit the web. If you want someone to write it for you, be sure to tell how much you are paying.

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

That's the short version and you forgot to ask a question or show your code and where your app failed.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question about how to post a better question.

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

That's vague. Why would I use an arduino or such? Tell more why we can't just use what we got?

(Yes, show me what you got!)

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

Tell more. What is this DevExp? https://github.com/golang/go/wiki/DevExp ?

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

Just a thought. Aren't there prior discussions on this?

I know a lot of new programmers are in a rush today.

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

Take some time to tell more. Supply the line of code that fails or is this about a Cellular Phone SIM?
https://www.google.com/search?q=Jio+sim

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

Welcome new member. Please take time in making good posts. Topic titles are important since it is what folk see first.

Take time to make a good impression. This and more is covered at https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

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

Cereal may have the workaround.

Anyway, instead of using composer on the server, you could install it on local and then use SFTP (Filezilla has the client too) to upload all the files to the server.

rproffitt 2,701 https://5calls.org Moderator
  1. Crossposted it seems.
    https://www.sitepoint.com/community/t/basic-php-proxy/260637

  2. I'd try something more current. Here's one to try from late 2016.
    https://gist.github.com/iovar/9091078 and there are others out there.
    Since you want to use code and not create such, try other flavors.
rproffitt 2,701 https://5calls.org Moderator

Let's say it's the parent folder. Now create yet another folder in the folder you 777'd so the folder and its parent are wide open.
Also try / instead of . (see that last link I gave.)

It's entirely possible your host doesn't support this app/system.

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

How many years do you have? I mean if you don't google for this, can't find it, I worry you'll be in development for years.

Is your goal to make and sell storefronts? Or do you have something for sale?

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

My bad. I didn't check for priors. Read them at https://www.google.com/search?q=flarum+directory+is+not+empty

https://github.com/composer/composer/issues/2278 notes using / instead. I am not a flarum person.

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

Those permissions. Can you go 777 for a test?
Read https://www.tutorialspoint.com/unix_commands/chmod.htm

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
rproffitt 2,701 https://5calls.org Moderator

Why overwriting the the first content of "datadir" made a difference...?

Sounds like file permissions or rights issues to me. Your app runs as some user and the overwrite creates the file with the rights of the app and its context.

I find this most often happens under Windows. Linux, not so much. What was the host OS?

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

Something's unclear here. First you want to create it then you want to download it. Which is it?

https://www.google.com/search?q=downloadable+English+dictionary

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?