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

I left your post to stew since it's not clear you want to send EMAIL with some content. Frankly I have to guess that since you wrote MIME.

Anyhow I'd just hit https://www.tutorialspoint.com/javamail_api/javamail_api_send_inlineimage_in_email.htm since your code is in JAVA and you appear to want to send something graphic.

For plain text, well, that's well done so I didn't bother to look it up.

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

Then you have to show your work and tell us where you are having a block/issue. The forum is more about helping you in a specific issue rather than providing homework solutions.

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

I think we are making small progress here. So how about something that really cheesed an new boss I had years ago.

As a test he handed out the same task to about 5 programmers and meaured the keystrokes, LOC (lines of code) and of course time.

Result? All over the map. It didn't make sense to him why one person slayed it in under one hour and the longest time was a few days. Tossing out the high and low it looked better in just under 8 hours of work. But he still had questions.

Yup, we're only human.

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

@MA_2

Your post's title and content don't match IMO. But since you select the dataset in C#, why not export the datagrid content in C#?

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

So far, this looks to be something you get quotes on. http://www.interactiveaccessibility.com/services/accessibility-certification for example.
There are folk that will demand a free tool but a reading of the standard looks to be beyond a robot (tool) today.

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

I've fielded this question before. The real answer is to assign this to your CTO/CIO and have them implement your dream CRM. Open source is low cost but what I find are folk the demand a list of things but not willing to invest the time or budget. But that doesn't mean you can't get there. That is, your CTO/CIO and their programmers need to get to work.

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

"scripting is disabled by default with IE 11" doesn't appear to be true. Link I used: https://www.google.com/search?q=scripting+is+disabled+by+default+with+IE+11

If they disable JavaScript (JS) then that's the user's choice to go without and not something you need to address today. There are long discussions so I'll be brief about that and move on to a more likely issue.

The more common issue is a matter of your page and what you used on it. That is, I'm always checking http://caniuse.com/ to see if that's why it didn't work.

But if they opted to disable JS, that's they choice and not a security issue.

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

Here's the most recent news that I could find.

https://www.daniweb.com/community-center/daniweb-community-feedback/threads/506930/rewards-points

IOW, it's a donation and is appreciated.

-> To motivate folk to answer, the better the question the more motivation there is. There are long discussions about poor questions and issues about asking for code, so you know those get low end answers.

Back to you.

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

I think you want to debate rather than discuss. I could be wrong about that.

When I in my programming "mode" there are few apps up. You note a few but what I saw as a filled taskbar.

-> In regards to others the do tasks first time. Nope, they don't always do tasks first time. They likely just show you the finished work and not all the work or time it took to get there.

As to seasoning, only time will help you. You practice, code, refine your skill and don't go it alone (unless in school.) In fact that's a horrible thing most schools teach. That is, they teach that you code all along on your own. I don't mind as our office using a cooperative model will keep you out of the work force.

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

I'm not a Symfony user. But your video with what looks like a dozen plus open apps could be a problem. When I write in Visual Studio or Android Studio, I don't have that many apps open. So there's that.

I watched a bit at https://www.youtube.com/watch?v=HchMW8EhWPU to confirm you don't need that many apps open.

Let me address something (just one thing.) No programmer I know doesn't hit a roadblock. Programming today is not without pauses or as you put it "often there is tasks which are rarely or first time done."

My answer to that is this programmer is not seasoned. That is, they need to keep at it for a few more years.

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

Now all you need to do is to put in the time or hire it out. Daniweb does have a post where you can post the job you are offering.

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

Is this a program you are hiring to develop? If so, tell how much it pays and if there is more work in the future.

My bet is it's your homework. If homework, show your work and where you run into an issue.

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

I have to agree that the basics do help when you learn a new language. My first was Fortran which at the time there was no C language but there was Fortran, PL/1, Cobol and such.

What about testing for equality? You would think that's a basic thing you learn in C then get blown out of the water in JavaScript (JS.)
Watch https://www.youtube.com/watch?v=hQVTIJBZook and move to the 15 minute mark to see where a C programmer may get burned.

Traevel commented: [] + [] == "" yep, sounds about right +7
rproffitt 2,701 https://5calls.org Moderator

Sadly no. But my bet is there is some formula from a paper that this this code implements. Since I don't know the paper this was coded from I can't point to the formula from the paper.

Try this. Go get the paper or papers on this cipher and look at the formula for a negation step.

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

key = -key; is the same as key = key * -1;

IOW, negation.

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

@gahhon, the edit button shows for some number of minutes after you post.

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

That's only slightly clearer. To me this sounds like the old question posed at
https://www.google.com/search?q=get+unique+android+device+identifier

So that's been kicked around the yard for years now. You'll have to dive in and figure out if that's OK or do you implement a self registration system.

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

Toptal is another source when you need to hire out.

But I agree with diafol on the issue of user interaction on the upload of a file. That sounds like good security for javascript otherwise folk could steal files by you just visiting any web site.

IOW. Don't ask folk to break javascript security features.

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

PS. Normally the divide and conquer noted at http://www.geeksforgeeks.org/closest-pair-of-points/ would have worked but in our GPS tracker the points were in Lat/Long rather than on a square grid.

Since this is an academic exercise, I think you need to ignore me here as we went through this a few too many times with the PHD never delivering better than the old tried and true system. My bet is today's CPU with FPU builtin made the costs of computing the distance cheap.

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

We did have a PHD try to optimize this routine and in every case it took longer than running through the set.

Here's the thing. Since our company actually does this IRL (in real life) I'll share the solution.

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

Who said my method is brute force? It's from a very real world hunk of code we use on GPS trackers.

You may of heard of us. "Flowers By Irene." (not really but I'm not lying that we have this code in a real world app.)

If nothing else I have given you the lead on how to get the distance.

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

Before we start, this isn't particular hard problem to solve once you get a few things out of the way.

First, how to calculate distance. You need to know the standard method which is https://en.wikipedia.org/wiki/Haversine_formula
This forumula is on the web in almost every language so I'll not write more about this.

Second, how to iterate throw the set of points. Since we want to find the two points closest to each other, that's pretty easy as iterations go. Ready?
TWO LOOPS. In psuedo code:

read in the dataset to our position array.lat, array.long.
init min_distance to a very large float number.
declare x, y to int type.
declare distance to float.

for x=0, x<sizeof(array),x++)
 for y=0, y<sizeof(array),y++)
   if x#y 
     distance = haversincedistance(array(x), array(y))
     if distance < min_distance 
         {
             savex = x;
             savey = y;
             min_distance = distance;
          }
      } end of loop x
   } end of loop y
cout the answers.

Unsure why we would divide and conquer this one.

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

While I have done this the answer is as you noted PLUS you write an install DOCUMENT for others to get it working.

That is, not everything is handled by your code or installer. YOU KNOW HOW TO DO THIS WORK. Now put that into the document.

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

Can you make a fiddle for others to look at?
https://jsfiddle.net/

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

Tough job. https://sourceforge.net/directory/os:windows/?q=arabic+ocr is as close as I got and the top hit used a web service, PHP and more.

IOW, you're into a rough ride.

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

I remember this being asked before somewhere.

Since they have an app now for at least ios you should use the app and not the web app.

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

That URL. Are you sure about that?

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

OK, it's time to bring something onto the table. It's this.

Not all distros run on all machines.

I have this Intel NUC with some dual core Intel and a good 8 out 10 distros either didn't run from the SSD or failed in various ways. In the end I went with what ran and today might try it again as it's been about 8 months and distros advance. I'm not into fixing a distro today.

Another thing. Any "Signature PC" and I'm advising to never do this.

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

Escaped? I'm going with no. About all that I see in heredoc mode is the need to escape the dollar sign where appropriate.

So given PHP will sub in variables in the heredoc mode, I think I'm back to my idea where I could not with the system I was using have "no icon." I used a blank icon when needed.

So back to you to insert some variable into your code and heredoc. This change the variable to be the blank or other icon.

PS. Added with edit. Not to leave you without example.
http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
Notice how the substition works in example 7 and 10.

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

Time to read https://help.ubuntu.com/community/UEFI (again if you already did.)

The Celeron looks to be 64 bit so be sure your selected Ubuntu is 64 for the reasons given in the Ubuntu UEFI article.

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

Back to the PC maker if you must have the onboard working. I continue to use those under 10 buck USB audio cards when I need to fix this.

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

"The idea is not to have any icons showing if a choice is not made, but if one is, then the icon for that choice will show with the variable data"

I had such an app long ago and failed to achieve what you asked so I settled for a blank icon instead. Why this was, was due to the tools of the day and compiler, etc. Today, on a web page I might do differently but here, I thought I'd share how I worked around the no icon idea.

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

That story, that color, oh what a mess.

OK, the blinking cursor and can't get to the BIOS would have me unplugging ALL storage devices. No HDD, SSD, ODD, flippy, floppy and sticks. Now a CMOS reset and try for the BIOS. If the BIOS comes up, then I set date/time and what settings I wanted THEN I save, reboot and make sure I can get to the BIOS screen again.

With that out of the way I can connect up my USB bootable Linux to see that work. No other devices yet.

OK, we're up and time to add the SSD and try again.

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

So many questions.

I used bar code readers to do similar but you claim this is to be done without display to the user.

I see no sign how you would tell if they are leaving or arriving. What does you design document say about that?
(Did you design this before you wrote code?)

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

Dani wrote in some prior discussion that DW scans these and breaks them for some reason later. So it looks good on posting then later, the bot breaks it for us.

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

As to tuts, you asked that before. Good answers so far.

As to sanitizing, https://www.google.com/search?q=sanitize+user+input+sql finds my favorite "Bobby Tables." Read that one and always watch XKCD.

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

I recall our host to tell why this is. While it's an annoyance, I don't recall why this feature must be kept.

To RevJim if I see a strike out on like this, is that not like this?

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

I looked at this years ago and today looked again. Unless you buy a library it has yet to be "simple."
Example code for some other UFR reader at https://www.youtube.com/watch?v=B1K7SMXa4gA

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

I don't own your setup so I can't see why something is not reachable. The most common reason I find failures is firewalls. To that I constantly am amazed at how often this is the cause. Since I didn't install or configure your network or server, I can't tell you where it broke.

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

For this you may be looking at a custom machine. Way back when I worked with print shops they would "run" such jobs but today your new to this folk think it's a machine you buy. Good luck on your hunt but do not fall for the "I'll email and post on boards" trap. That is, you must pick up the phone to the makers of stapling printers.

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

I'll share a trick I used long ago. It's very simple. In my code I present the UI first, then go on to read files, setup arrays and what not. That way the user gets the screen to see ASAP and then behind the scenes, while they ponder the first move, my app is working at getting ready.

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

I'd just re-re-re-research this with say https://www.google.com/search?q=browser+chat+client+using+XMPP+Servers and not try to bend any to my will.

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

@Stefan. Congrats on your 100th topic. But I fear you've been watching the Yoda channel too much. Unclear your question is.

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

@X. How does that work for the topic? "How to Assign a value taken from LastName Text box to a Modular Variable."

I think it's clear now that the OP needs to refine their question.

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

@ Xavier_5
Now show me how to do that to the text box as itprosam asked.

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

@UI. Shivya may be helpless for a bit since basics are basics. I run into folk looking for PHP 7 tuts yet they didn't get the basics down first which a PHP 5 tut would be just fine.

diafol commented: Yes +15
rproffitt 2,701 https://5calls.org Moderator

Line 5 of the clear button handler looks good. But another place would be just before you need to use the variable.

By the way, why do you call this a "modular" variable? I don't recall such a term in my classes.

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

Did you try

LN = txtLastName.Text

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

Not to leave you to read forever. Think about any changes, such as some USB thing. In fact, shutdown, unplug power, all USB things and then power up. Plug in the keyboard and mouse (laptop, doesn't apply.) and then try again.

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

Why is there a semicolon at the end of line 1?