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

PHP has a function for checking that.

http://php.net/manual/en/function.ctype-digit.php

Checks if all of the characters in the provided string, text, are numerical.

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

Line 4 is a string to me. If you cast it, it is what you cast it to. Which is proper.

So code as presented works as expected.

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

OK, the app runs up to line 42 and all looks OK. Now which line is troublesome?

Focus on that line and print or use a debugger to check the values to the calls.

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

To me, not a bug. The priors show that it's not a new problem and some folk have "fixed it." Here I think it's proper behavior and again, I'm running into more and more folk that demand that actions match what you see in Microsoft Word.

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

Here's the thing. That question has been kicked around for years. https://www.google.com/search?q=can't+backspace+a+newline+in+vim tells me a lot and can be deep reading.

In some views this is not a bug but a feature.

My call would be to not fix this.

PS. Added with edit. Vim is not Word. Once in a while you find folk using Word as the standard of how editing should work.

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

To speed things along, tell what error you see. That's 140 lines of code to slog through and the screen cap doesn't tell me it failed.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question before you update your post.

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

My thought was how I'd tackle it, not to supply code.

While in Visual Studio does the event fire (use of VS is assumed here) and how to tie code to events as well. Once in a while you find a VS coder that doesn't have the basics down.

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

This could make your third post with no answers. I think why this is happening is you need to share your work so far and polish the question. Also, make it open to other solutions. So an one and a two.

  1. Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question
  2. Tell more what this "bind" is.

For me I think I would tackle this by event handlers. That is, I put in the scroolbar and it's event handler does what you want it to do. This is by coding so you write the code. I only offer my approach.

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

@Don. I didn't find an answer to my question. That test would have me offer the method I used in another app where I launch workers to do the thing then workers die as they finish. The main app manages how many workers are running. Since we have multicore machines now, this is how I maximized my old app throughput.

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

@doncwilson. When I read your top post it was "Excel Workbooks are not being completely Closed via VB.net" and now
"I cannot get these instances of Excel to close after numerous changes and attempts".

So that's different so as a test, do these processes exit/close when your app or if running in Visual Studio (which version?) closes?

Why I ask is in one app that I fielded I had to spawn a copy of my app to do a thing and it would exit when done and that would clean up nicely. Files closing is one thing, a process is another. Sorry that I didn't read that right in your opening post.

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

@doncwilson

I didn't write to change the name but noted I would not use spaces in project folders. If it works for you, fine, but I don't.

Remember there are prior discussions so I didn't duplicate what they noted here. For example I read http://stackoverflow.com/questions/4813975/why-is-visual-studio-2010-not-able-to-find-open-pdb-files and find a dozen ideas. Which one is it this time? After reading it I like the one about "I had the same problem. It turns out that, compiling a project I got from someone else, I haven't set the correct StartUp project" since it sounds close to your issue where you are working an old, maybe imported project.

ddanbe commented: Indeed,no spaces. +15
rproffitt 2,701 https://5calls.org Moderator

Keep in mind I didn't read priors from https://www.google.com/search?q=pdb+not+found+visual+studio but 2 things I would try after I read prior posts on this.

  1. Create the folder structure myself. Do not use Windows Explorer. Use the command line.
  2. There's a space in the folder name. For reasons I never do that on projects. Your choice about that.
rproffitt 2,701 https://5calls.org Moderator

For cloning I've been using the Apricom USB 3.0 drive clone kit and software. Some won't think it's worth it. I have hair.

As to the RAM it looks OK at first glance. If the seller won't answer, that's a bad sign but doesn't mean it will or won't work.

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

Then let's call this a failed experiment. That is, when we write code we have a design or result in mind. If you just want to print the value 11, you can take a hello world and change the string to 11.

There's a lot more wrong with your code than lines 12 and 27. For example, C++ line 27 even if it worked would not print "11" but would output, possibly a Vertical Tab character. Don't believe it? Simplify it to setting a value to 11 and printing that value.

Can you share how you got this far? It's odd to see all those includes and you not use them.

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

Here's the thing. You didn't reveal what your code was supposed to do. I would be guessing what all that code was supposed and can't seem to find a data type Point in line 12. Maybe you left out more code or just need to reveal the software design specification.

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

Gentlemedia is right.

At the link supplied "Warning: To prevent unsolicited downloads over cellular networks at the user’s expense, embedded media cannot be played automatically in Safari on iOS—the user always initiates playback." So there it is.

Added with edit. Had a second thought and tested it. GIF plays without user intervention. It's not perfect but I did check this out on my iPhone 5s on iOS 10.0.2. Works. If you need a convertor, try Zamzar.

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

Don't get hung up on video encoding. Just move forward to HTML5 and use the autoplay tag noted in the docs.
https://developer.apple.com/library/content/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/AudioandVideoTagBasics/AudioandVideoTagBasics.html

Added with edit. Dummy me. The example shows a .mov. So there you are.

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

Sorry lew but inxi would have me sleuthing the machine's make and model then I could check on compatible RAM.

Is this a test to see if I can guess the laptop model? I'm good but given you have that info, seems I could use that time to do something else.

Maybe I got that wrong but I have run into folk that write "I told you enough for you to figure it out. You're not allowed to ask questions." You can imagine my response. Mostly I let them eat static.

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

So your question had me look to other ways. https://tinyapps.org/blog/misc/201005080700_boot_any_iso_from_usb.html was a fun read as a few look new and interesting.

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

About virtual machines don't make partition changes to physical USBs. I recall doing that years ago. It was long ago but today I stick with a bootable copy of GPARTED when I need to edit partitons.

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

You wrote "WinUSB is not a choice since it's seemingly offline, unetBootin" so I shared what I used last time. Once in a while you have a client that has no Windows machines at all so you get the files from them and make it for them. I understand that but I'm a bit of a lazy bum. That is, if I find I need a Windows machine, that's what I use. I am agnostic about OSes.

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

I can sort of answer that. That 2006 Dell E1505 was a return from my son from his college days. It only had 1GB RAM but a bad HDD.

The 120GB SSD was all of 30 bucks on a door buster sale so that went in. The boot time was about 45 seconds with just 1GB RAM on W10. Since it was looking good at this point I found a 2GB memory upgrade kit for 15 bucks on Amazon. That helped boot time fall to under 30 seconds. So yes, more RAM is a good thing. I quote the 33 seconds because it shows just how much time you can save with SSD.

The 33 second is from a cold boot (not sleep) and launching Firefox, typing test into the google search box, press enter and getting a result.

Let's hope your laptop is better than this 2006 E1505.

I'm unclear on your "what to look for" question. I get memory from crucial.com and sometimes from Amazon. I only look to see if they mention my model or if I'm chancing it, I look to DDR type, voltage, and the 20 other items that DDR specs can have. I don't like doing that work so often it's Crucial or Amazon items that mention the target machine.

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

Sorry but the last time I did this I used MSFT's tool at http://wudt.codeplex.com/

Now some .iso's do not work on USB so you have to test that out. I used the old ODD (optical disc drive) to be sure my ISO worked before I did the USB test. And to make matters more fun, BIOS issues. I don't own your PC so I can't tell you the settings to use for 7 and 10. I know on 7, uefi is the pits at times.

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

Just a tip. Always add the model number so folk don't have to sleuth out what model this was.

Laptop CPUs are rarely changeable and sourcing is a pain too. Forget all that and pop in the SSD now. The speed gain I'm seeing is phenomenal.

Example. Dell E1505 2006 Inspiron with 2GB RAM 120GB SSD boots W10 in 33 second from cold to a Google web result. That's one old laptop yet it's very usable. With the old HDD it took 5+ minutes to do that.

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

Close enough. My view on picking power supplies is close to that. Today unless you are an electroinics engineer you also get a "single rail PSU." My choice is to much higher on the Watts since I want my PC to run for more than 2 years.

Your car at 80 MPH breaks down faster than at 70.

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

Nothing glares at me and says it won't work. There are too many builds to choose from today and if I was going for my first build I would check out https://www.reddit.com/r/PCMasterRace/wiki/builds too.

Installing the OS is well done on the web so it's Windows so you dive in, install and start your trip through driver hell. It's not that bad, just remember you can always start over and change your plan. Only the newest of the new worry about this area. I haven't and I've been at this since the early days (pre-PC.)

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

The thing with code is there is always a better way.

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

Try adding a loop to encompass or enclose what you want to loop on.

In psuedocode.
loop
what you want to loop on
until exitcondition.

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

The thing is, you are using vb.net and could set a break on line 2 to see what line 1 is doing. I'm sure there's a lot more code than you shared and those other forms are not going to magically update. That is, forms do not update without, well, you're a vb.net developer so your question is two fold. First you use the tools to see what's up with line 1 then next you break in the app to examine the target form values.

Didn't anyone show you how to use the breaks?

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

I don't know your ISP or why the DMZ test failed. You could share why suddenly the port is open (why or what changed.) There are ISPs that this will never work on.

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

That's not a good sign. I forgot to tell you to undo all your port forwards before the DMZ test. If the DMZ fails, you most likely have an ISP that blocks all incoming or does a NAT before it arrives at your home.

Let's hear more about your ISP.

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

As a test. Put the IP of the camera into the DMZ entry of the router.

And yes, some ISPs are essentially all inbound ports closed. This has confounded a few of our seasoned networkers but it's rare so do the DMZ test soon.

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

You're right. If they are doing things right, they can't send you your old password.

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

If some site actually sent you an email with the password that is indeed not a good thing since they should not have the in the clear password according to current thinking. Current thinking is to use one way encryption and compare the results. If they have your password in a database, "that's not good."

What has been acceptable is to send you a password that is good for only a few minutes. Current thinking on this is fluid.

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

Some ISPs block inbound ports so it's up to you to figure out what ports are open and closed. No one but you and your ISP can tell what's blocked.

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

And that's the rub. You have to find where they are coming from. For me I checked my phone and have all of 3 apps installed besides what was stock. You?

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

I'd read https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question before you reply.

You accidentally put your entire post in a code block so that's OK. You can try harder from now on.
You wrote there are errors but didn't call out what the error was or what line it happens on. Add that next.

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

You need to revisit this. Ready?

"Any code written by man can be broken by man."

If you want this to be airtight, you lost the battle before it started. There's plenty of source about MP3 so there's nothing lacking out there. But you have decided to take a long hard path so get to it before your app's window of opportunity closes.

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

While I think you've been a little short on detail, why not put the MP3 directly into your app's resources?

If you need to know how, here's the google on that. https://www.google.com/search?q=embed+mp3+in+my+vb.net+app

This way, it's not ready to play anywhere but your app.

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

@Assertnull. I like my one liner since to add names I don't have to add more tests. Just plonk the name I want in the big string and let the find find it.

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

Line 9 is not doing what you think. The compiler would complete the OR before doing the comparison. So that's a complete miss.

You should rewrite that to check each name on it's one or try the old is this string in that string (contains.)
example:

if ("Peter John".find(name) != string::npos) {
//.. found.
} 

Alter to fix or to taste.

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

I see no code so I'll offer this.

VB has an event called "onchange" or similar that you can hang your code to fire (run) when a cell changes value.
This is not an offer to write your code or tutor vb.net.

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

I think this was summed up at http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/difference-between-windows-7-product-key-and/9de1d99c-f5e4-41e2-9c7b-6b81e39b5b97?auth=1

Product Keys and Product IDs are two completely different things,

despite the similarity of the terms.
The 20 character Product ID is created during the installation
process and is prominently displayed towards the bottom (in the
Activation section) on the opening panel window resulting from
right-clicking the Computer icon and selecting "Properties" from the
context menu. It is used to obtain/qualify for technical support
(limited though that may be) from Microsoft; it is of no use during the
installation process.
The 25 character Product Key is used to "prove" ownership of a
legitimate license and is required to perform the installation, and is
either stored on the DVD packaging on a sticker that says "Do not lose
this number," or is on a Certificate of Authenticity (CoA) label affixed
to an OEM computer.

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

Since you didn't list what you tried, it's tough to add a new idea except to take it into the shop you deal with for such work.

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

Tell more. For example some models do not beep but hold in reset when the CMOS battery is too low.

Tell more. As a PC Tech I expect you to have a Volt meter at the very least to measure and check things. If not, just pop in new batteries as they are cheap in bulk.

And again, tell more. I see nothing about the PC and why you replaced the PSU. Did you measure it? What told you to replace that part?

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

Good find. http://www.alex-ionescu.com/?p=52 appears to be the source discussion and CODE seems to be mentioned in the comments at:
http://wj32.org/wp/2010/03/30/howto-use-i_querytaginformation/

Alex appears to be active with a recent blog post in May, 2016.

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

WIsh I could help here. I had hopes we could find any existing tool in Windows or outside that showed what you were after then work with that to see how it was done. But that didn't work out.

Maybe we tackle it another way. Such as what caused you to dig into this. I shared a story about a friend programming to dig into network traffic and for him, it was something I knew about. A setting change and the traffic stopped. So while that didn't use any tools to trace it back to the source, that was good enough for him.

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

Another day and I just have to ask "Why do this?"

Don't get me wrong here. Just last month a buddy was trying to track down internet use on his new laptop and was coding, running scans and generally not doing anything fun. As it was a new W10 machine I mentioned and asked if he had turned off Windows Update sharing. He had never heard of this and that along with some other items were flipped off and his mystery internet activity is now gone.

But if it's not that, we really need to find and see what you are looking for in other tools so we can backtrace to how they do that.

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

Maybe the thread does not ever do the I/O? As no tool to date has revealed that, consider the case of an app I wrote long ago.

While it did do network I/O, the byte count was showing up in svchost because that's the API call I made and svchost did the actual work. No inspection tool I ever found would have traced it back to me exactly. Some may call that a glaring Windows fault.

I think we'll have to find that I/O in any tool, control panel, app or anywhere then work out how they did that.

We may also be bumping into security issues here. That is, given that our (still to be made) app wants to inspect an app on the inside, those memory blocks and such may not be accessible due to "security." But here I'm still trying to see where what you want to see has been exposed before by any means.

TL:DR. -> Let's find where what you want has been exposed and find how how to do that in our own code.

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

Which of the many controls and apps in Windows tells you what you are trying to push into your app?
http://www.bleepingcomputer.com/tutorials/list-services-running-under-svchostexe-process/ is a fine read that shows most of what you might be looking for in the GUI form so which of those pictures show what you are looking for?

It sounds like you are trying to craft another Task Manager. But I'm guessing.