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

Hello old neighbor. I lived in Richmond, BC for years so onwards.

OK, why not a mobile site? It doesn't have to be one site to rule them all. Some things can be ejected like quote of the day since it's off message for the site. Also, weather forecasts? Many new to smartphone/pad sites have a rough time getting the site to be "on message."

There has yet to be a magic bullet (software) to transform a site from classic to mobile. And a single site may not be the answer if a deadline is that close. Just make a mobile version.

I'm sure you're reading http://www.creativebloq.com/mobile/mobile-design-912823 and https://en.wikipedia.org/wiki/Responsive_web_design so while that's all good to head to responsive design your platform of Dreamweaver templates may have too many hooks in you to let you make a mobile or responsive site. That's why I think you need to:
a. Make a mobile site.
b. Get on message. Forget quote of the day, weather, etc.

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

@Assertnull. The fiddle must be one that doesn't share like others. Anyhow the OP's spec is too light. This has "8 12 17 24 28 33 40...100 by while loop". Nothing like programming to spec.

// Jyt is a REPL for C++

// And you can include libraries
#include<iostream>

int main() {
  while (false) // 8 12 17 24 28 33 40...100
  {
  }
  return 0;
}
auto result = main();
// Press the "play" button to load this file and interact in the terminal.
// As C++ does not allow to redefine symbols, pressing "play" multiple times might cause errors.
// You can restart the whole enviroment by pressing the "reload" button.
rproffitt 2,701 https://5calls.org Moderator

Aha, now I get it. Some systems have a flag to the world that it's been edited. I will share a rather big forum at CNET doesn't show it either. Sorry I didn't get your question at first.

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

I think that happened to me. That is, edited and saved but it looked wrong. I had to press F5 to refresh the view and it was OK.

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

Sure. Given only that spec I can do that.
http://fiddle.jyt.io/github/5ead58c0a8898f38adb22c1cd6aeeb78

Remember, your spec was weak. Maybe not what you expected.

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

I have no problem dropping end of life IE versions. I mean, these ended quite a while ago.
https://support.microsoft.com/en-us/kb/3123303

This of course caused the Windows XP users to trigger.

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

I don't see a view of your site, what it does and so on. So 10K a second to millions will obviously have you design with a cloud. I'm running into folk that can flip (as in burgers) out a dedicated web server but it doesn't scale. That takes an entirely different mindset and often if ever a one person show.

With that, I want to segue into discussing the concept of Minimum Viable Solutions (or products.)

It happens all the time that a new web master or let's back that up to just "Designer" will get lost on the way to the bazaar. While it's all well and great that folk bring up testing, I've seen designers miss the market as they fret about scaling.

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

I don't know your design or why this is a concern. If I look at prior questions like https://www.daniweb.com/programming/web-development/threads/506651/how-to-make-this-script-animation-jitter-less that is client side and a server has nothing to do with the issue you asked about there.

About 5 years ago a run of the mill web server could easily hit 10K requests a second. If your site is lucky to get 10K requests why would a 1 second delay matter?

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

Then for FREE move up to a current version of VB.net. The only reason to pick up VB6 is if you are on the job getting paid to fix a legecy app from decades ago.

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

What a horrible site. I was reading it and then the lights dimmed and a big popup asking me to sign up showed up.

-1 for that.

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

You're back!

That's quite the project you are undertaking. If I ignore part of what you asked, my thoughts is that you need a cloud person to build out a cloud to do the analysis grunt work. This does not sound like anything you would run full time on a PC except to test a slice of the detection system you'll eventually move to your megawatt cloud sound smashing check system. (I'm not kidding.)

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

Since you are open to formatting, look up the old HP USB FORMAT TOOL (google it!) and try that. I'll skip any advice about running as admin, formatting on Linux and head to the obvious. These things have limited life spans. Here a 16GB stick is now under 4 bucks at the grocery store. Only those that can't wrap their head around the life span or cheapness spend more than a hour trying to save it.

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

I guess you didn't get the hint Ray. So here it is, no offense intended. Post your question as a new post. If you are looking for testers, go ahead and say so.

Posting in old dead threads will only get you dusty replies.

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

When this happens to me I seek out the STAND ALONE INSTALLER for the product I want to install. I feel you need to learn how to find this so I'll pause here.

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

The sad thing is that Excel is a poor man's database. You have no control over data entry and more.

The price for this is at best a lunch meal since it's just a bad design choice. Now if you had gone with some SQL database and a frontend with reports, now you are in the ballpark of a real app.

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

Even here, in the sticks of USA, Amazon Prime is my answer. I can return if it's not good enough. Google like this:
Amazon Best sellers computer monitors.

Stay in the top 10 and there are reasons why those are there. Of course you have to match what works with your computer.

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

Reminds me how my smart phone outed where I had lunch one time. That was annoying.

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

I don't think I can cover what is something we covered in a graphics programming session but I'll try.

Example. If you use a simple for loop and change the image size or location you are at the mercy of task scheduling in the browser and OS.

This is why you use a timer to fire off the changes. That was at each discrete time interval you get so much change.

So, you say want smooth, then you set the position, opacity based on time not on random processing speed of the browser.

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

I have to ask. Did you try .001 instead of .05?

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

As I read https://www.google.com/search?q=A+client+wants+to+send+a+request+to+server+for+checking+that+a+string+palindrome&ie=utf-8&oe=utf-8 it appears you didn't tell all. That is, this is your homework or code challenge. As such you need to read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

In short, your post looks like a copy/paste of some homework.

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

Your post calls for a script and then "batch" but left out that is must be in "bash", cmd.exe, command.com or other shells. Powershell can be called from a cmd or command.com shell so to be this is fine.

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

This sounds too similar to this old tip of the week.
https://technet.microsoft.com/en-us/library/ff730953.aspx

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

Why not use loops? Is there something you haven't told the forum such as this is a homework assignment or a code challenge?

Programmers rarely limit themselves like this. Also, your software specification is unclear here. But that won't stop you. Think over how you would do this manually. Now sketch out those steps on paper, and then implement each step in code.

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

I have a question for you. Your app might be counting the payload bytes and not the full packet. How versed are you about payload vs packet size?

(This question is also the answer why such counts rarely match.)

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

Here's my simple answer.

  1. Any client side script is open to explotation so you don't put any password tests there.
  2. So all your security is on your server side. The client "logs in" and for that session its for that login.
  3. About "discover the URL to my API. " That's a given. Any decent scientist can figure out the URL. That's why you have them login. That way you know who did what when and ban those that misbehave.
rproffitt 2,701 https://5calls.org Moderator

@Paul. I gave psuedo code. Let's see your line of code that resulted from that.

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

I have a variety of tools to examine startup items. I don't know what you use but here's my usual.

HIJACKTHIS. Be aware it's a power tool. Don't just go removing all it finds.

AUTORUNS. Another good tool.

So far, those are my goto (heresy in programming talk) tools for this sort of work.

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

In psuedo code something like:
if 1 in B and 2 in B and 3 in B do something.

Looks like you need something like this one liner to test for that.

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

Both versions appear to fail this guide. http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-141388.html

Now discounting that, if both work then good stuff. But the arguments about try/catch are legendary.
https://www.google.com/search?q=should+java+use+try+catch

My view? What are the coding standards your company mandates or your client demands?
Hint? The person with the gold sets the rules.

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

This reads like a wheel. I took a google like https://www.google.com/search?q=shakespeare+full+indexed+in+python and found not only Shakespeare fully indexed but Whoosh.

Everywhere I looked, the solutions were > 32 lines. But there are more choices than an US election.

Gribouillis commented: Awesome. Whoosh looks great! +14
rproffitt 2,701 https://5calls.org Moderator

In app controls you made appear to be just like you noted (office is still using VS2008 for now so I can't test newer for a few months.)

But I think you want to publish your extensions to get the effects you noted. https://msdn.microsoft.com/en-us/library/ff728613.aspx
This is not something I've done. Just something that came up a few yarns ago.

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

From memory this is an old complaint about VS2005 and VS2008. I will forego sharing any googles about it. Be sure to ask Microsoft to add this in the future.

Yes, for some reason intellisense will autocomplete it.

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

Take a moment to read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

Also you already have the output so your question is already answered by you. Maybe you had other XML files and needed an app to filter or such but your post omitted that plus didn't show your work so far. You pasted an input and output and said you wanted that output.

Since you have your output already, my guess is you forgot a lot of your other questions.

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

I can't write your app for you but you could, in your app, have a "listener" for a message that the database has changed.

If this was me I'd have some server that hosted the database and an app to notify subscribed clients there was a change.

But I must stop short of writing your app and answer that given the story so far all you need is the design, your server and client apps.

-> It's possible that you may want to forget any client app and make it all web based on your server. That way inventory data is centralized and you never lose track of who is the master. The other upside is you never deal with client apps. Your server/web/database doesn't care if it's Android, iOS, Windows or other devices asking.

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

Then your app would send such messages as need be. I don't see the problem here.

Unless you were expecting such an app to be off the shelf.

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

You have to define offline here. By offline you mean no internet. It appears you have a LAN with WiFi so is that connected or not?

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

@Aarav. While I'm sure there are progress bars in the basic API, you say you searched so let's go with scorched Earth here and not check the API.

What is a progress bar but two rectangles? https://www.google.com/search?q=android+draw+a+filled+rectangle finds examples of drawing a filled rectangle so you could roll your own as you see fit next.

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

@OP. That hijack is most likely it.

I suggest you beef up your browser security. I use 2 things on most browsers.

  1. Web Of Trust (it's out for most browsers.)
  2. An adblocker. Now there are some that hate these but they also block scams and more. I use:
    a. Ublock Origin (or)
    b. Adblock+
rproffitt 2,701 https://5calls.org Moderator

@OP. Reinstalling browsers and most apps keep settings. This means a reinstall is not a reset in the case of say Chrome, Firefox and other apps.

Good news to read a reboot helped.

AssertNull commented: Yup +6
rproffitt 2,701 https://5calls.org Moderator

This sounds like the usual infection. You can try resetting the browsers (how is on the web) but I'd scan with the tools listed by Grif at this link.

The proxy setting is rarely used here. But some malware used that to hijack PCs.

Other issues include incorrect date and time, and older WiFi connections such as WEP.

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

When I've seen this, the motherboard is usually toasted somewhere. The battery and charger are of course suspect but odds are motherboard first.

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

Take a moment to read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

After that, add your line 90 for folk to take a look at.

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

I didn't look at Ionic but to merge the data from two systems I'd use a database to host the shared data. My choice over the years has been MySQL so here's that google.
https://www.google.com/search?q=bootstrap+database+connection

So yes, bootstrap talks SQL so there's your common data area.

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

My guess is that line 16 is fine and line 17 is the issue. Why not take the error/warning prima facie and use variables instead of strings in quotes?

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

Here's a similar reason I bailed on a company like that. I didn't tell them outright why but it was the company had ripoffs of almost every software they used. Such a company would likely (and did) have no respect for the creators in the company. They imploded a year later and probably best for all that could to be clear of the blast zone.

Today I think the following when someone wants help with cracked software.

Help me jack this.

Nope.

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

In your function it generates a (hopefully) random number. I noted you need to check that first. Have you?

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

Are you getting random numbers? You should System.out.println() that to see if that is the issue or something else.

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.