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

There's no question here. But I'll guess you want to know if a Citrix system could match your current run of the mill i7 based PC. In your test, no it didn't fare well but we don't know what the Citrix server is on. Until we know what powers the server it's easy to see for your use it's slower.

Your management should have no problem with you continuing to use your system and using the cloud system when its needed.

Citrix at first was not called cloud computing so that came later. It was more of a labeling effort rather than what I call cloud computing. In my view cloud computing can be a true cloud where your compute job can be spread over many CPUs in the compute farm. For Citrix this farm is usually pretty small and is sized to meet the meager needs rather than something for a power user.

Your Citrix server is most likely suited for Word and email use from the sounds of it.

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

Since you have Visual Studio you can break on the line that doesn't work (line 22?) and see what's up.

Also, I worry you have newlines in the input buffer so read https://stackoverflow.com/questions/17614761/calling-scanf-after-another-string-input-function-creates-phantom-input/17615082#17615082

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

A few issues.

  1. Your post topic is Pascal. Then what you write looks like an assignment and not about Pascal.
  2. In your text you write there is a question but no question is found. Again it looks like a homework assignment.

Before you reply, read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

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

I worry you didn't try the files at all. Also, contact the author of the original page you linked and ask for a Windows install package.

That is, I find many of today's programmers to struggle if they are tasked to unpack and install from the gzip or tar packages. Many are only able to proceed if it's installed for them.

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

So 2.35 seconds? Is this on a SSD or HDD?
I've found payback to be good enough that a move to SSD and more RAM is worth it. I don't see anything outstanding in the code that would make a big difference.

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

I think you have to share which SQL this is using. On MySQL you can list current users with https://www.google.com/search?q=show+users+on+mysql

But since the default allows "Joe" to login in and connect more than once, I think you'll have to lock them out in your code or explore use of the GRANT options. More at https://www.google.com/search?q=mysql+only+allow+one+user+per+login

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

@overwraith. It's a two way street. There are some that demand support but all this is volunteer like other forums. I see you dumped a lot of code so folk may shy away. Be precise with what is broken. Keep it short.

Also, read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

I think your post may have failed the "What is wrong with my code?" concept.

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

Given only this detail and no history, the machine apparently did this out of the box so put it back in the box to go back to the store to exchange for a good one.

Now you might correct everyone that it's years old and worked until something changed but you didn't tell that.

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

While we could go on and on, consider this ping result.

C:\>ping 0.0.0.0
Pinging 0.0.0.0 with 32 bytes of data:
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.

Ping statistics for 0.0.0.0:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\>ping 127.0.0.1
Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

So think about this. 127.0.0.1 actually exists and if there is a server on your machine then it can get the message.
Now look at 0.0.0.0. It just fails. This is a good thing if you want the packets bound for candyland.com to just die.
And yes, how this works depends on the OS and it's IP stack so you can open a discussion on that and end up with a dissertation.

Reverend Jim commented: Wish I'd thought of trying that ^_^ +14
rproffitt 2,701 https://5calls.org Moderator

I can think of two types of apps that could answer your question.

  1. Portable versions of an antivirus. These are only used to scan once the OS has booted. I'm going to call these trash since a rootkit can easliy evade this.
  2. Bootable Antivirus on USB. Now we're talking. Remember that no antivirus today is 100% effective and again we are talking SCAN ONLY as to be effective when the OS is running, we must install this to the OS.

So bootable AntiVirus (AV) scanners? Here's a list: https://www.geckoandfly.com/19582/free-usb-antivirus-fix-unbootable-windows-unmountable-boot-volume/
All these can be put onto USB or CD/DVD.

happygeek commented: what he said :-) +15
rproffitt 2,701 https://5calls.org Moderator

To me this looks like code that has a lot of missing methods. Also, it looks a lot like what was in the BlueJ programming book.
https://github.com/drblinken/informatica-examples/tree/master/eclipse/BlueJ/src/chapter11/musicplayer for example.

Since it's not homework, you should either get that book so you see how it's done or publish the entire code base.

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

Why does this code look so much like https://stackoverflow.com/questions/43950000/hackerrank-buying-show-tickets-optimization which is a post from about 2013?

It appears this is a online screening test of a company and is just one part of a longer app I see at https://pastebin.com/y34UERMj

ddanbe commented: Knowledge! +15
rproffitt 2,701 https://5calls.org Moderator

Small world. A friend had some similar issues but they worked with me and most if not all issues were cured. Their DVDRW drive was very old and slipping a new drive in fixed it. I'm finding folk blame W10 for the old drive failing and do not agree here. In this case the old drive showed problems on another W7 PC so it was clear the 20 dollar DVDRW drive is failing.

As to any file loss most of the time I find the owner does not have backups. That is strange because for decades we've been using PCs and not one OS has been without the need for backups. Well, maybe that Chrome OS?

-> But here's a thing. Drivers are still too hard for everyday users to deal with. Just last night I was at a relative's home and they couldn't print. Another family member had tried over the phone, failed and Geeksquad said all the laptops and printer were fine.

What was it? I don't know because I treated it like a new setup. I went to the printer to pair it to the WiFi network then to the non-printing laptop to remove all printers, install the latest printer driver and it just worked. While I am used to doing this, average Joe/Jane computer owner is lost.

So should we expect owners to keep learning or should we continue with calling in techs to fix our systems in home? I think this is our choice to …

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

Remember I'm not an expert on this but category would matter (read that first link) and about your script, I don't see code here so no one can see much yet.

That aside I'm running into web masters (?) that try to get by with copying in scripts and templates. They often are unable to see what's wrong in the code. Lesson, many. If you run a script, you should have some idea how it works at the very least. Many have scripts they used and only look after it fails... You get the idea.

diafol commented: Using black box scripts sees the box turn into a hole! +15
rproffitt 2,701 https://5calls.org Moderator

OK, so I thought if mobile was off, how about a Chromebook? Now that's really looped. There are so many things that don't work right that it's not going to help if I list them all. This reply may not work unless it shows up.

But on the Chromebook there are no signs at all of the up vote. Not asking for this to be fixed either. Just it's interesting to see how sites deal with the Chromebook.

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

Remember this is your typical AMD system that hits repair counters all over. After the PSU the motherboard is suspect. You usually find this after a few years of hard use. The owners want proof and if you have the board you offer the fix for a price. If they don't you return it with a note about the motherboard plus the CPU and maybe RAM. No reason to estimate less than this.

Added with edit: Your details are not complete. I missed if there are other issues like high heat, slow fans or heatsink compound from year ago. A better diag for me is a Web Speccy. Read how at https://www.piriform.com/docs/speccy/using-speccy/publishing-a-speccy-profile-to-the-web

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

You are right. There are few controls "on" the router. For control we usually point a web browser at the router, log in and configure.

The product manual is at https://www.linksys.com/us/support-product?pid=01t80000003KRTzAAO and small world, I have setup this model in the past.

Page 28 of http://downloads.linksys.com/downloads/userguide/E_Series_UG_E900Rev_3425-01486_Web.pdf notes the disabled feature.
Looks like you're all set.

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

I have to ask why you don't configure the router's radio to "OFF." Every router I've configured over the past 2 decades has this.

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

Keeping your system safe is usually done with the usual antivirus suite or using a current Linux OS (two most common methods I run into.)
The other way to keep your system safe is with backups. Let's say you give me your current boot drive for safekeeping. How long till your system is running again? As in a system drive crash.

I find developers sometimes forgo backups. Usually the newer ones that haven't learned this lesson. Sometimes they think there's another answer because telling them to backup "is not helping."

After that, you can scan the site as others noted at https://www.google.com/search?q=How+to+scan+WordPress+website+for+malwares+and+virus%3F

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

@M. A little too abstract without some context. I wonder if your image at photobucket might have had the question or the answer to my "But why?" but that's a lot of code without a question.

Photobucket seems to be a good place gone bad. I don't use them anymore.

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

The one big thing about app stores is the proliferation of malware, trojans, rootkits and spyware. The issue is not the cost overhead of the current app stores but the almost utter disregard of the other app stores in regard to apps that have malware and other issues.

It's almost like you want to be the go-to app store for those that have malware embedded in their apps.

My bet is you'll be a hit with the darkest of the dark side developers.

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

So I went looking for this LG and at the Apple site read the reviews at https://www.apple.com/shop/product/HKN62LL/A/lg-ultrafine-5k-display

That was not a happy reading. But did confirm a few things. One, you're not alone in seeing product issues and most of all, the display may have firmware. So that's my input here.

See if the display has a firmware update.

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

I don't want to upset you again but my fix would be to use a timer then in the timer apply the effect you want on the controls.

KushMishra commented: Thanks, but yes I really do not want to use timers. May be some nested triggers, if we could have them practically in WPF (don't know) ? +4
rproffitt 2,701 https://5calls.org Moderator

OK, I take it you have your number of days from borrowdate to returndate. Now you need the number of Sundays between those dates.
If I was going to look into that I'd read priors at https://www.google.com/search?q=PHP+How+many+Sundays+between+dates%3F

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

This might take you a few years to create so why not use one of the open source code editors like Ace?
https://ace.c9.io/#nav=higlighter notes you can change what and how it highlights.

EDIT: Just after I posted I read this: https://www.wired.com/2012/07/google-open-sources/

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

Here's the 411. First you do this manually then you convert those steps to a script. Some don't understand the need for the first step.

Gribouillis commented: Don't forget to record the steps during the manual phase! +14
rproffitt 2,701 https://5calls.org Moderator

No you may not use more than ONE monitor at a time.

You may not also use a DVI-D (there are no less than 5 types of DVI, you must specify) since the board you wrote about has no such connection.

Now that you are possibly going to add a video card, there are a few cheaps ones that are single monitor use only. Until you know what you are getting plus full model numbers on the monitors the answer will be no or unclear.

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

This one is simply no. https://www.gigabyte.com/Motherboard/GA-H81M-S-rev-10#sp shows one and only one video port.
http://download.gigabyte.us/FileList/Manual/mb_manual_ga-h81m-s_e.pdf confirms one video port. Looks to be VGA.

To get to 2 monitors you'll have to add a video card and the onboard might disable so be sure your card notes dual monitor support.

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

@Stefan. If you don't want the echo's, read https://ss64.com/vb/echo.html to either set them to not be interactive or comment, remove as you see fit.

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

It appears folk have written web pages about this. Here's how I found them: https://www.google.com/search?q=combine+Windows+7+32+and+64+bit+installer

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

To AssertNull, I'll try to answer since I've been driving my 2014 Leaf since November, 2016.

  1. I use the 110V charger the car came with since I'm cheap and it works for me. To get a discount on the SDG&E rate you have to install a second meter and charge off peak hours. The cost to install that meter when I asked was over 1K. So that would blow my savings from ICE to EV. Even with my increase in electrical consumption it works out to 20 to 22 cents (USD) per KWH.
  2. Here's my current math. The car is averaging 4.0 to 4.1 miles per KWH so we can use that to calcucate our per mile or KM cost. Our Prius gets 54 MPG so current per gallon cost is about 3USD. 3USD divided by .22 gets us how many KWH we can buy or 13.64KWG or 54.54 MPGe. So the cost is nearly identical to the Prius today. When November 1, 2017 arrives, the EV will win this round. (2a) Maintenance is every 15,000 miles which is just a battery, brake fluid check and maybe a cabin air filter so maintenance is less. Also no smog test for the EV. Here that runs 50ish every 2 or so years.
  3. The battery pack is pretty large, there is someone that has a booster pack that doubles the range but the economics have me say you should shop the new 200+ mile per charge models.
  4. This is …
AssertNull commented: Good feedback from an actual owner +0
rproffitt 2,701 https://5calls.org Moderator

Can't see why I would use such a thing. To get up to speed read http://preshing.com/20110811/xkcd-password-generator/

Of course Correct Horse Battery Staple is no longer safe.

Given you can do this on your own, why would you or I bother with such a site?
That is, unless you are just spamming this, ringtone sites and not here to discuss it.

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

In light of the self driving car discussion I thought I'd start revving folk up about the electric cars we have today.

For me it was almost by accident I moved into my current EV which is a 2014 Nissan Leaf SV. I have a nice enough van but I wanted something for short trips about town. So I had a thought to "Google it." I googled "Worst resale value cars." At number 2 was the Leaf. I know this car but not very well and decided to take a deeper look. The reasons for its poor resale value are many but the short list is the new models showing up with 200+ mile range and the rebates here. Example. If your state/country hands the buyers back 7,500USD then the resale price is instantly that much less. There are other reasons such as new models get free charging for 2 years and some fear the battery life issue.

Just these two factors alone were slamming down the prices. So off I went shopping (this was November 2016.) I found a spotless 2014 Leaf SV for 11K USD, 30K miles and drove home. Prices have eroded since then. I didn't bother installing a quick charge system since I'm fine with overnight charging. That's more savings.

Range is at most 80 miles due to some battery wear and that's well inside where I need to go 98% of the time so since November 2016 I have spent 55USD in gas. That's for …

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

I can share what we do in the shop with such a PC. Ready? We downsize it. Any component that isn't required to get a BIOS screen is removed. If that doesn't bring it back we remove the case because a lot of homebuilt PCs have extra mounting posts and create issues.

So if you downsize it to just motherboard, CPU+HSF, one stick of RAM and PSU without a case and it still doesn't stay up, it's one of those 4 parts.

Ritesh_4 commented: worked with bare minimums +7
rproffitt 2,701 https://5calls.org Moderator

English can be a bear. I read it as a question about about modern UI using GL. My mistake. Since the UI can be modern, and no one has chatted about modern GL, I read it differently and apologize for that.

To me there is OpenGL 2.x and 3.x. So if you want to start again, try keeping your code strictly to the latest OpenGL. Would that be modern GL?

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

Your link 404'd for me. I wonder if this is just spam.

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

It would be very hard to not beat your model if it's this one:
https://www.cnet.com/products/toshiba-satellite-c655/review/

If you are totally lost, let's start with the best sellers on Amazon. This is at:
https://www.amazon.com/Best-Sellers-Computers-Accessories-Traditional-Laptop/zgbs/pc/13896615011/ref=zg_bs_nav_pc_2_565108

Ignore the chromebooks.

The current #1 is under 400 but to hit that price it has half the RAM I'd want to see, only the core i3 and a stock sluggish HDD. But it should be a step up.

At #3 and just under 600 is Core i5 powered, 8GB RAM and a 256GB SSD. Now this will perform to most folks expectations.

Nod to models with i5 or better, 8GB or better and SSD.

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

I find folk only learn about backups (one backup copy is not good enough today) when they lose it all or pay for recovery.

I've had some luck with Recuva and I like it since it doesn't write to the drive we are recovering files from.

But you will get a client that wants to fix the failed drive whether it be file system damage or something else. They are just new so you gently educate them that it's the last cookie (see https://www.youtube.com/watch?v=rHfEmIXkWfg ) so when it's gone, it's gone.

Moving on. I continue to be amazed at the thousands spent on recovery when my small 2TB USB drive was delivered to my mailbox for under 90USD. And yes I bought two since one is not a backup.

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

You left out details that might help. Always supply full model numbers, age and prior service. For example if it's years old I always try a new CMOS battery (cheapest part, might fix it, worth the risk.) Some feel that spending 1 dollar is too much a risk and maybe they are telling you they want a new laptop.

The symptoms are not a sure sign it's this or that but I'd try the new battery then the usual soft reset which is simple. Remove the power adapter, unplug the big battery then press and hold the power button for 60 seconds. Release, slip in the big battery, apply power and re-test.

cereal commented: 1+ for CMOS battery +15
rproffitt 2,701 https://5calls.org Moderator

That's one deep rabbit hole. Read and think over the discussion at https://bugzilla.redhat.com/show_bug.cgi?id=1409631

Notice this?

Some HP notebooks using this rtl8188ee hardware module can't get AP scan results with pin-based interrupts mode, enabling MSI interrupts mode could fix it.

Now you might complain that this isn't exactly your version but go down that rabbit hole to find that make, model of the PC and WiFi hardware is needed to see if anyone has a fix.

Hope you remembered to plot a return path to the surface.

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

Just a thought. Did you try the right arrow key? Also try tab, control+right arrow.

ddanbe commented: You're too kind :) +15
rproffitt 2,701 https://5calls.org Moderator

@rubberman. Long ago, we used the 2500AD C compilers. Even then the assembler was free but I knew better than to let the staff slug it out on assembler. What we had to do wasn't that tight on CPU use so a lot of us learned C way back when.

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

As there are many Outlook versions as well as passwords to the email at your ISP you need to be more specific today.

Also, only Microsoft can reset your Outlook.com password. BEWARE folk that will for money reset it or sell you spammed Outlook PST/OST tools. Those are spammers, not here to help you.

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

The one thing you never do is fall for shills and spammers on this. You will learn that the shill asks this question, then the spammer follows up. Only the foolish will fall for this.

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

The web is huge. No one can guess what you downloaded or what site. Try again, don't leave out details and as to slow compiling I'm finding new coders that complain when compiles take a minute. They freak when we show them how long it takes to compile a Linux distro.

Nothing wrong with a compile taking time, is there?

ddanbe commented: Nope! +15
rproffitt 2,701 https://5calls.org Moderator

When I see a login like that I cringe. The basic problem is that the password is stored in the clear rather than a hash salted result. Here's priors about this.

https://www.google.com/search?q=Dont'+store+passwords+in+databases

In those discussions you'll find many examples. Add the keyword PHP to get more specific.

In other words, you dug a hole and I shouldn't hand you a shovel.

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

As a developer of apps for embedded devices, testers on the production line and field diagnostics I've run afoul of IT groups that were for the most part not willing to invest the time to embrace the product development side of the business.

IT seems OK for run of the mill office work, the company web site, billing systems and such but the product developers are aliens or "the enemy within."

So they don't support us. That's fine by us. They also don't want the job but are ready to throw stumbling blocks in your path.

Is IT outdated today for companies that create apps and more?

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

https://helpx.adobe.com/creative-suite/kb/cs6-system-requirements.html shows Windows 7 so I worry you have a HACKED VERSION. Adobe's installer should detect the OS and tailor the install to match what OS is used.

But there are folk that download hacked/cracked CS6 and they are the ones I see getting into trouble.

ddanbe commented: Yep! +0
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

@J, that's not how this works.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question first before you reply.

If you want to hire someone to write an app, then you put the details and SRS (software requirements specification) up along with the pay for the job.

If you are writing "Gimme the codez." then I think you need to be clear about that but still need to read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question first.