jwenting 1,905 duckman Team Colleague

Well, instagram isn't going to grow much bigger now that they've been sold to facebook...

jwenting 1,905 duckman Team Colleague

add a million random words in a hidden div at the bottom of your page for the search engines to pick up?
Seems popular... And gets your page listed everywhere so people see it whether they're searching for it or not...

Magic Beans commented: It is against search engine guidelines and google may penalize the website. +0
jwenting 1,905 duckman Team Colleague

spamming random email addresses with advertising for scams?
It seems very popular after all.

jwenting 1,905 duckman Team Colleague

first question to be answered is WHY you want to do the investment.
second question is WHAT type of solution would be appropriate for your business.
third question becomes WHO you're going to contract to implement the solution (or provide it if you're going with an off the shelf solution).

A SAAS provider will generally have people who specialise in doing just what you're trying to achieve, and will be happy to quote you a price for doing the work for you (or at least assisting you in it if you have your own developers on staff).
I used to work for several (in different industries) in the past and that was a pretty big part of my work.

Data conversions, implementing communications protocols with other systems, customising user interfaces with customers' colours, logos, and fonts, things like that are all things a SAAS provider can help you with if they know what they're doing.

jwenting 1,905 duckman Team Colleague

There are professionals who can restore books, sometimes.
They work for museums and rare book collectors.
They are expensive...
They'd leave you with a book that's hopefully in a better state or at least no worse and longer lasting, but at a (rather steep) price.

If you want to just recover the data, either try using a scanner and OCR software as suggested or type out the content of the book as you are reading it.

jwenting 1,905 duckman Team Colleague

my last journey I went for weeks without cellphone coverage. Was great.
Of course the thing was still there, but it was effectively no more than an alarmclock :)

That's the travel I like. No internet, no cellphone coverage. That's not to say I don't appreciate technology, but doing witout some of it can be nice for a while.

jwenting 1,905 duckman Team Colleague

Just send the site url to your local law enforcement agency. Right before they bust you for intellectual property theft they're going to generate a lot of traffic while cataloguing it all.

rproffitt commented: Best answer so far! +16
jwenting 1,905 duckman Team Colleague

Store them as strings. Unless you want to do the string to numeric conversion every time that turns the familiar string representation into its numerical format that's the way to go.

But beware that an ip address isn't the best way to go. Not only is it very easy to get a new one, it's also quite likely that multiple people have the same ip address (for example internet cafes, student dorms, etc.).
MAC address is far better, and if you're having paid accounts, username...

jwenting 1,905 duckman Team Colleague

Public cloud solutions may be cheaper and convenient in the short term, in the long term they're expensive, brittle, and leave you open to the whims of a third party (or multiple third parties) for the availability and security of your data.

That may be a risk you're willing to take, but I for one (and my customers and employers agree) wouldn't trust any mission critical data and process to such a system.

There were several examples recently of hundreds if not thousands of websites and systems going down at the same time because a public cloud provider (be it Amazon, Google, or whomever) had problems and had to take their servers down for hours.
There are also examples of companies completely destroyed because their public cloud provider suddenly decided to cancel their contracts. Think Parler who lost everything when Amazon (they were built on AWS) for political reasons (Amazon's management are Biden supporters, Parler's management are Trump supporters) shut down their contract without warning, leaving Parler with no product, no user information to even contact their users about what happened, and no income stream.
And of course that's not just public cloud providers. Youtube has done similar things to their content creators, deleting channels without warning because someone didn't like the content they were posting (despite it not breaking any TOS clause). Twitter can ban you for no reason and you have no recourse, as can Facebook, and if you're business is built on those platforms you now have …

rproffitt commented: Not to mention what Governments control. (Silent) switch and poof, something if not the entire Internet is gone. +16
jwenting 1,905 duckman Team Colleague

if you're that, am I a stone age man for having spent 25 years in software development professionally already?

jwenting 1,905 duckman Team Colleague

No, it's not. Not really.
Sure you can create the software, and on a small scale level (say for a few dozen people) with few features and little thought to security, moderation, and things like that it's going to not take that much time and server resources.
But if you're going to expand to millions of users you need those things (and security you really always need unless you're running in a very secure environment like a corporate IT system where everything sits behind multiple firewalls and can't be accessed from anywhere outside the building).

And that's where the real money comes in.
Hundreds if not thousands of servers to rent, 24/7 staff on hand to handle breakdowns, attacks, moderation requirements, software bugs, etc. etc.
Pretty soon the cost of operation alone runs into the millions of dollars per month, and that's before you even reach even a fraction of the size of something like Twitter.

And that's after spending millions on developing the system in the first place to be secure, flexible, and performing well as well as having the features people have come to expect of such things. Features like the ability to send private messages, group messages, upload and share pictures and videos (all of which will have to be stored on your servers, greatly increasing storage requirements).

So at its most basic, the concept isn't difficult to implement nor as a proof of concept all that expensive.
But when you're thinking of going to production on …

jwenting 1,905 duckman Team Colleague
rproffitt commented: Went there, Apple store and Apple could not resolve. Told to buy new phone. +16
jwenting 1,905 duckman Team Colleague

there already is one: amazon.
Find them for free, then pay the author to read it.

rproffitt commented: Much better answer to the question. They asked about "finding"! +16
jwenting 1,905 duckman Team Colleague

Do keep in mind that being from Iran can harm your chances as Iran is under US sanctions and those may make it harder or impossible to sign up for a US university and/or getting a residence permit or visa.

jwenting 1,905 duckman Team Colleague

Another thing to take into account is that the first build of any Gradle (or Maven) project will take a lot longer than subsequent builds because it needs to download all your (direct and indirect) dependencies and plugins.
Once everything is available locally it works a lot faster (and other projects using the same dependencies and plugins with the same version will also go faster).

jwenting 1,905 duckman Team Colleague

I've been involved with projects outsourced to India several times.
All but one of those I got involved because the results coming out of India were so bad a local team was put together to rebuild the product from scratch.
The one that wasn't as bad wasn't mainly because the company had their own offices and staff in India AND sent senior developers and scrum masters to India on a rotation to oversee the people there.

And that's not specific to India. The same experience I've had with Pakistan, Indonesia, Romania, Poland, and several other countries.
Maybe all those companies just got unlucky, but I see a pattern and the general trend towards outsourcing seems to indicate that it's a common theme (meaning, ever more companies are stopping their outsourcing efforts and reinstituting IT departments at home).

jwenting 1,905 duckman Team Colleague

s=sql.connect(username=root,password=<correctpassword>,host=localhost,database=empl) gave error:NameError: name 'root' is not defined ;database exists

Seems you didn't create a root user when setting up mySQL, so you can't log in using that user either. You may have to log in anonymously...

See what credentials work on the commandline and use those.

DB12 commented: I checked the user and host of mysql commandline after logging in with the password and found root@localhost +0
jwenting 1,905 duckman Team Colleague

why is this flagged with Java, C++, and other irrelevant tags?

jwenting 1,905 duckman Team Colleague

that's not how the world works, kid.
You do your own work, and only when you are stuck you ask detailed questions about parts of the implementation you have problems with.
You do NOT ask other people to do your homework for you.

And oh, any airline who in 2021 buy their first computer and then expect to write an entire reservations system from scratch deserves to fail just as much as a kid who expects other people to do their homework for them deserves to fail.

jwenting 1,905 duckman Team Colleague

Question is: what level of technology.

The clothes you wear are the product of technology after all. So is most if not all of the food you consume.
Your toothbrush is the product of technology.

jwenting 1,905 duckman Team Colleague

here's your homework:
Learn C++ well enough to pass a certification exam.
Then write a new operating system for Apple M1 processors from scratch.

You have 2 weeks.

jwenting 1,905 duckman Team Colleague

Get a good book, read it, understand it, and start experimenting.

Bjarne Stroustrup is a good place to start if you're serious: https://www.stroustrup.com/
First 3 books he lists (all his own work) make a good start.

Another good book is Stanley Lippman's "C++ Primer".

Sure you can learn by just trying to swim, but without a solid foundation you'll not become a good programmer.

jwenting 1,905 duckman Team Colleague

you have the question, now translate it into the query language for your database.
If you're semi-competent at using that database that shouldn't be a problem.

jwenting 1,905 duckman Team Colleague

child class with 3 uncles

jwenting 1,905 duckman Team Colleague

Government here gives you a vaccination card with printed on it in bold that it can't be used as proof of vaccination...
IOW it's a nice memento of your time in the vaccination location but other than that it's useless.

Wonder how they're going to integrate with the EU wide "vaccine certificate" program that is supposed to go life next month.
Will everyone need to be vaccinated again to qualify for that given that we have no official way to prove we've already been vaccinated? It wouldn't surprise me.

rproffitt commented: Typical gov program (i.e. f### up again.) Sure let's mention what party is fighting over vaccine passports. +0
jwenting 1,905 duckman Team Colleague

Does that even exist any more?

Alamir Rangel commented: Irrelevant +0
jwenting 1,905 duckman Team Colleague

What have you actually tried?
What exactly is your problem?

We're not here to do your homework for you...

jwenting 1,905 duckman Team Colleague

Got the second dose and still don't have the promised 5G connection in my brain.
Where do I file a complaint?

dmacdougall commented: Since the second dose I've had that urge as well,and I can see in the dark too. Do you wake up in crazy places? I do. +0
jwenting 1,905 duckman Team Colleague

It's time to do your own homework, kiddo.
We're not your free homework service.

My current rate is $125 an hour plus taxes, minimum of 80 hours, prepaid.

jwenting 1,905 duckman Team Colleague

got my first shot about 2 weeks ago. Apart from the usual stiffness in the arm for a few hours after the injection (I have that with any vaccine), I didn't have any side effects except this very bad urge to bite people in the neck and suck out their blood.
Help?

jwenting 1,905 duckman Team Colleague

And your problem is?
That's a pretty basic assignment, typical for a school homework thing.

You should have no problem figuring it out on your own if you've been paying a minimal level of attention in your math and programming classes.

jwenting 1,905 duckman Team Colleague

Why go to all this trouble writing everything from scratch?
Far more practical to take an existing framework and write your entire REST call in a few lines of code :)

Building a REST service
https://spring.io/guides/gs/rest-service/

Consuming a REST service
https://spring.io/guides/gs/consuming-rest/

Doing it all yourself is a good learning exercise, and can be fun, but it's far from the most efficient way and extremely error prone.

That's not to say things can't get complicated using things like Spring, but the complexity is at an entirely different level and not something you're going to encounter for basic things like this.

jwenting 1,905 duckman Team Colleague

You can write most things in most languages and have it perform either horribly or quite good enough.

And often people have a completely incorrect idea about performance.

I've just completed a project in Java for a customer who was insistent that Java would never be able to offer the required performance (they needed it to handle messages in under 80 milliseconds per batch of several hundred messages).
We delivered an application that didn't just match their requirements, but blew them out of the water.

We could have however just as easily written something that was so glacially slow it'd still be processing the first message 2 weeks after the test began. It all depends on proper application architecture, design, and implementation.

Problem is, if you're asking the question you are asking you're in no position to design such a system let alone implement it.

jwenting 1,905 duckman Team Colleague

And? What's stopping you?

jwenting 1,905 duckman Team Colleague

Nope, we're not going to do your homework for you.
And nope, it's not at all urgent to anyone except you.

If you'd put in some minimal effort you'd have been able to do it yourself long before anyone will even bother to look at the content of some suspicious zip file you post here.

jwenting 1,905 duckman Team Colleague

Seems like you at least failed for lack of even bothering to try.

jwenting 1,905 duckman Team Colleague

Don't bother with obfuscators. Nobody is going to want to look at your code anyway.
And even if, it's extremely unlikely your code is so brilliant people are going to want to steal it.

The SOLE reason to use obfuscators and stuff like that is if your code has such serious security implications if it gets compromised that you need to do everything possible to prevent that.
And if you were in that situation you'd not be here asking about this, you'd have a dedicated and highly trained security team working on it already.

jwenting 1,905 duckman Team Colleague

"give me the code" is NEVER a good way to start.

At the very least be polite and ask nicely.

As said, there are many examples of how to do this, and many scenarios to think of that would lead to different ones depending on how the images actually arrive on the server.

I've implemented it several times, and am not going to give you any code both because of your attitude but also because said code is not mine to give away but belongs to my employers.

Quite often you can do it in just a few lines of code.

jwenting 1,905 duckman Team Colleague

You may want to start by having a hybrid environment, with both Java and PHP, implementing new projects in Java while maintaining the old ones in PHP for the time being until a change to them is required that warrants a complete rewrite.

That's how we've over the years got rid of (most of) our extensive Perl code base.

jwenting 1,905 duckman Team Colleague

The problem in Texas isn't the machine registering incorrectly, but the machine having a poorly designed user interface.
People do something to change the selection on the screen, then instantly press the ok button (or whatever mechanism) while the screen is still updating.
At that moment the new selection hasn't yet registered with the machine's electronic brain and it registers the old selection.

Poor design IMO, the voting button (whatever) should be locked so it can't be activated until the screen shows the correct data that will be registered if and when it is pressed.

A far worse problem happened in the Netherlands several years ago and prompted the government to order ALL electronic voting machines to be taken out of commission.
Due to a security problem at a storage facility, it became possible for a group of activists to break into the facility, steal a machine, modify it to always register a specific result, and return the machine to the facility without it being noticed.
In this specific case the activists recorded their actions and sent the tape to law enforcement and election officials, causing a massive stink as you can imagine, and ALL electronic voting was banned almost instantly as a result.

Our machines didn't print anything, the voter pressed a button next to the name they want to vote for, then another button to finalise the vote, which is then stored on an attached secure laptop that's sent to a central location after …

jwenting 1,905 duckman Team Colleague

Looks to me like he's running against JavaSE compact1 profile, which doesn't have JDBC (along with quite a few other things).

https://netbeans.org/kb/docs/java/javase-jdk8.html Netbeans can indeed now switch profiles in the IDE, maybe he did that inadvertently.

http://www.oracle.com/technetwork/java/embedded/embedded-se/documentation/compact-profiles-overview-2157132.html

jwenting 1,905 duckman Team Colleague

Don't insult people by claiming your problem needs urgent attention. It doesn't, a blocking problem at a customer site that's costing a million dollars an hour until it's fixed is urgent, a school assignment isn't.

You've gotten a lot of help, if you think none of it is valuable, you clearly don't consider anything except a ready made solution to your homework you can then turn in as your own to be valuable.

I'd not want someone who thinks like that as a future colleague.

Learn the language, learn to think, learn to solve problems. That's the most valuable advise anyone can honestly give you here.

jwenting 1,905 duckman Team Colleague

before or after taxes? :)

rproffitt commented: Also, tariffs. Can't get around that now. +15
jwenting 1,905 duckman Team Colleague

Driving lessons and effective patrolling by the police for violations would help a lot more.

jwenting 1,905 duckman Team Colleague

So you want people without practical experience to build you something for free which you then sell, after which you may give them some money if you make enough of a profit.

Sounds like a scam to me.

rproffitt commented: The Pope said that the cup didn't run over, the cup got bigger. +14
jwenting 1,905 duckman Team Colleague

Why is DW in the current state? What (or who) contributed to it?

The massive flood of homework kiddos dumping their highschool programming assignments verbatim caused many of the regulars to stop even bothering to browse the programming forums.

Combine that with the very high incidence of spambots in the community forums at around the same time and a lot of people just stopped coming regularly at all.

This coming around the same time as a change in the site layout that was far from loved by the oldtimers (the current...) and is pretty hard to navigate (and was even harder initially) and you have the reason many people no longer read what questions are posted.
If they're even there (the people with answers) chances are good they can't see the questions they could have an answer to so those questions go unanswered.

jwenting 1,905 duckman Team Colleague

Not just that, but spamming it on an unrelated 8 year old forum post reeks of bad intentions or at the very least poor judgment.

jwenting 1,905 duckman Team Colleague

Ah yes. The old "we skip the testing and pass the savings on to you" business model.

"early access", sign up now for discounts on future DLC...

Who wouldn't want to work towards this?

What's the catch? One way to make car accidents an extreme rarity is to make car ownership illegal or otherwise impossible (like by making the cost prohibitive for all but government officials driving cars out of other peoples' tax money).
I wouldn't want to work towards that.

As is, car accidents are already pretty rare, at least accidents that cause such serious injuries that people are permanently disabled or killed.
Those are the few and far between ones that make national news, rather than a sideline about why a major road was blocked for an hour or so while wreckage was removed (and even those articles aren't all that common).

The only reason you tend to see them as much as you do is the sheer volume of traffic on the roads. And the only realistic way to get it down is to reduce that volume which, without a major investment in both the frequency, capacity, travel time (reduction...), and cost (reduction) of public transport will require a massive campaign to do just what I described, make operating a car illegal or financially impossible for the vast majority of people.

And making public transport both more frequent, have higher (or better more easily adjustable) capacity, AND reduce the travel times …

jwenting 1,905 duckman Team Colleague

12:30 am here. I spent 40 minutes on the treadmill at 11. Plopped myself down on the couch for a little bit, washed up, and now I'm here on my computer

And there's the problem. You go straight from strenuous physical (or mental, just as bad) activity to laying in bed trying hard to sleep.
The body and mind don't work like that, they need time to unwind.

Sit on the couch with some light reading, preferably with some soft music and muted light, for half an hour or so.
No food or drinks in that period, allow your body and mind to slow down.

THEN go to bed, maybe read a few pages more, and turn off the light.
Don't squeeze those eyes shut and think so hard about why the heck you're not falling asleep, as that's probably the very reason you're not falling asleep. Allow your mind to wander and slow down as well as your body, and you'll eventually drift off to sleep.

First period it will take a while, but after some time it'll go a lot quicker.

Turning your alarm clock around so you're not constantly reminded of the time can help as well. The darn thing will go off in the morning to tell you it's time to get out of bed, that's the only time you really need it :)

jwenting 1,905 duckman Team Colleague

And break it up into methods, makes everything a lot easier to read and figure out what it all means.
Combined with debug logging and copious comments, it can really help making sense of code.

Ideally, you'd modularise it and write independent tests for each module, but for an obvious school project of this small size that's probably overkill.