This Visionary Sci-Fi Author Sees the Destruction of Human Civilization: Predatory Capitalism

Ted Chiang examines how Silicon Valley has become its own worst nightmare.

The political theorist Frederic Jameson once observed that “it has become easier to imagine the end of the world than the end of capitalism.” But what if predatory capitalism finally destroys life on earth? That’s the question posed by science fiction writer Ted Chiang, who argues that in “superintelligent AI,” Silicon Valley capitalists have “unconsciously created a devil in their own image, a boogeyman whose excesses are precisely their own.”

In a new essay for Buzzfeed, part of a series about the forces shaping our lives in 2017, the acclaimed author of “Arrival” (Stories of Your Life and Others) deconstructs our fear of artificial intelligence; specifically, that of tech titans like Tesla founder Elon Musk. For Musk, the real threat is not a malevolent computer program rising up against its creator like Skynet in the Terminator films as much as AI destroying humanity by accident. In a recent interview with Vanity Fair, Musk imagines a mechanized strawberry picker wiping out the species simply as a means of maximizing its production.

“This scenario sounds absurd to most people, yet there are a surprising number of technologists who think it illustrates a real danger. Why?” Chiang wonders. “Perhaps it’s because they’re already accustomed to entities that operate this way: Silicon Valley tech companies.”

In Musk’s hypothetical, the destruction of human civilization follows the logic of the free market.

“Consider: Who pursues their goals with monomaniacal focus, oblivious to the possibility of negative consequences? Who adopts a scorched-earth approach to increasing market share?” Chiang continues. “[The] strawberry-picking AI does what every tech startup wishes it could do—grows at an exponential rate and destroys its competitors until it’s achieved an absolute monopoly.”

Ultimately, the catastrophe Musk and others foretell has already arrived in the form of “no-holds-barred capitalism.”

“We are already surrounded by machines that demonstrate a complete lack of insight, we just call them corporations,” Chiang continues. “Corporations don’t operate autonomously, of course, and the humans in charge of them are presumably capable of insight, but capitalism doesn’t reward them for using it. On the contrary, capitalism actively erodes this capacity in people by demanding that they replace their own judgment of what ‘good’ means with ‘whatever the market decides.'”

For Chiang, the operative word is insight. Our capacity for self-reflection, or the “recognition of one’s own condition,” is what separates humans from the Googles, Facebooks and Amazons. And it is this deficiency that makes these monopolies so uniquely dangerous.

“We need for the machines to wake up, not in the sense of computers becoming self-aware, but in the sense of corporations recognizing the consequences of their behavior,” he concludes. “Just as a superintelligent AI ought to realize that covering the planet in strawberry fields isn’t actually in its or anyone else’s best interests, companies in Silicon Valley need to realize that increasing market share isn’t a good reason to ignore all other considerations.”

Read Chiang’s essay at Buzzfeed.

 

Related Stories

  • Are You Suffering from Selfitis?
  • Uber Stole Trade Secrets, Bribed Foreign Officials and Spied on Rivals, Filing Says
  • Dustin Hoffman Faces Disturbing New Allegations of Sexual Misconduct

The Right-Wing Backlash Against #MeToo Is Coming Sooner Than You Think

Conservatives are angry and scared. This can only end badly.

At first blush, the story about Texas associate deputy attorney general Andrew Leonie, who resigned hastily after making ugly comments about the #MeToo movement on Facebook, seems like another sign of a sea change happening in the United States when it comes to sexism. But for me, it only adds to the growing sense of dread that another shoe is lifting and that the big drop is coming soon, and it’s going to be a bad one.

Sexists are getting angry. They’re getting scared. They’re starting to lash out. I worry that it’s just a matter of time before some of their punches start landing.

Leonie, who identified as a man of “Christian faith” and father to “great kids” on his Facebook page, also took to Facebook at 2:40 a.m. on a Wednesday morning and wrote, “Aren’t you also tired of all the pathetic ‘me too’ victim claims? If every woman is a ‘victim,’ so is every man. If everyone is a victim, no one is. Victim means nothing anymore.”

It’s tempting to believe that a man who was making more than $150,000 a year representing the great state of Texas in court is merely another casualty who failed to follow the rule that there’s nothing worth saying on social media between the hours of midnight and 6 a.m. But, as Noor Al-Sibai of Raw Story noted, Leonie had a habit of saying gross things on social media, including posting a cartoon calling the Women’s March protesters “cunts.”

Leonie was shown the door with haste, even though he’s in Texas and works for Attorney General Ken Paxton, a profoundly misogynistic politician who whined that Texas would become a “sanctuary state for abortions” if undocumented immigrants were legally allowed to terminate unwanted pregnancies.

Despite many fears to the contrary, it does seem that the #MeToo movement is affecting Republican careers. Rep. Trent Franks, R-Ariz., was pushed out after it was discovered that he tried to pay female aides to have babies for him. Rep. Blake Farenthold, R-Texas, has agreed not to run again, and is getting increasing coverage for his alleged harassment of employees. Alabama Republican Roy Moore lost his Senate bid after multiple allegations that he chased high school girls in his 30s came out. Now this Texas lawyer has been pushed out simply for saying gross things about sexual harassment victims.

It’s heartening, but let’s be clear: The only reason this is happening is that conservatives haven’t yet figured out a narrative they can use to derail the #MeToo movement. Part of the problem is that for decades, conservatives have argued against feminism by embracing the “chivalry” narrative, framing women as inherently weaker and in need of male protection. So while they won’t accept feminist arguments about sexual harassment being a matter of sex discrimination, they can’t help but admit that there’s no part of “protecting women like delicate flowers” that involves groping, making lewd and bullying comments, or forcing yourself on women.

That also suggests that if conservatives do find some way to derail the #MeToo movement — which, unlike women themselves, is indeed a delicate flower that could easily be destroyed — they are going to take it.

Leonie’s Facebook post — which, in what I’m sure was a great coincidence, was posted about 40 minutes after the bars close in Austin, Texas — captures that grasping desire to come up with some reason, any reason, to tell all those women to sit down and shut up already about how they don’t like being sexually harassed and abused. It’s a Federalist piece by D.C. McAllister, who dumps a few thousand words attacking a straw man, by arguing, without a shred of evidence, that feminists are opposed to consensual flirting.

“Here’s a little secret we have to say out loud,” she writes. “Women love the sexual interplay they experience with men, and they relish men desiring their beauty.”

(I’m convinced every Federalist writer is out to personally dial down the amount of sex people are having, by the power of their overwrought prose alone. Those two sentences are like a pair of twin beds, but in writing.)

There’s a desperation here, both from McAllister in trying to air out this tedious “feminists are prudes” argument and from Leonie, posting it at the 2:40 a.m. Absolutely no one believes that women who encounter powerful men masturbating at them, groping them, or locking them in rooms are flattered by the attention.

These old arguments and strategies aren’t working, which shows the power that stories have to disrupt false stereotypes and narratives. But if there’s one thing the past couple years have shown, it’s that reactionaries are surprisingly flexible about their strategies. And they’re experimenting, tossing out new ideas about how to end #MeToo.

The first shot, of course, was outing Sen. Al Franken as a serial groper, in an effort to create the narrative that everyone does it so no one should be held accountable. That failed, because Democrats finally saw through it and pushed Franken out. The second attempt was to deliberately make false accusations, with James O’Keefe trying to sell a false accusation against Roy Moore and someone, likely Mike Cernovich, falsifying a document accusing Sen. Chuck Schumer of harassment. The obvious idea there is that by getting some fake accusations into the bloodstream, they can “prove” that fake accusations are all around us and cast doubt on the real ones. Luckily, that failed.

But all this shows that conservatives aren’t going to concede this without a massive fight. Conservatives grasp, even if many liberals don’t, that we’re on the verge of a true social breakthrough. People are beginning to realize it’s not enough to kick a few gross men out, but that this is a systemic problem, that women really are disempowered, that men really do have unfair advantages, and that something really needs to happen to change that.

All of these incidents demonstrate, in other words, that the widespread opinion on the right is that #MeToo is a menace, that it needs to be ended and that the only question right now is how to do it. Their first efforts have failed, but mark my words: They’re going to keep trying. They have money and numbers to keep coming up with random ideas and testing them on the public. It’s just a matter of time until they find a strategy that sticks.

 

 

 

Related Stories

  • Tamara Holder Shares Horrifying Details of Workplace Sexual Assault at Fox News
  • Former Fox News Analyst Tamara Holder Shares Horrifying Details of Sexual Assault
  • The Fempire Strikes Back with #MeToo

Elemental Evil: Sessions 13 & 14

I just noticed that I am behind on my reporting on the Elemental Evil campaign. In the previous reported session the group had reached level 5 and was about to head for the Sacred Stone Monastery. Sessions 13 and 14 were about the adventures of the group in that monastery. However once again it has to be remarked that this particular group is mainly interested in the combat aspects of D&D, and less interested in the role-playing aspects. And the campaign has been chosen with this preference in mind, containing a lot of dungeon crawls. Nevertheless even in that campaign the group still managed to avoid most opportunities to find out more about the story, and spent those two sessions mostly in combat encounters.

The group entered the Sacred Stone Monastery via the garden and from there into the main hall. However that was exactly what the bad guys had planned for invaders, as the main hall contains a trap that drops the group down into the dungeon and into a cage with an Umber Hulk. Having beaten the Umber Hulk and then some orog and ogre guards, the group liberated a group of slaves used for mining work. That included members of the Mirabar delegation, which in the book is the official story hook. However the group showed absolutely no interest in asking them about what had happened to the delegation, and allowed the slaves to leave unescorted.

Next the group entered a part of the dungeon in which a Lich lives. A Lich is a challenge rating 21 monster and obviously not meant as a combat encounter for level 5 characters. But in spite of the Lich just being a bit grumpy and not immediately attacking, the group decided against getting information from him, and just fled. Having otherwise cleaned out the basement, the group found another staircase up, and found themselves in the middle of the monk’s quarters, where a big fight ensued. That included the boss of the place, a blind female monk with the name of Hellenrae. Just like in the previous two elemental keeps, the group killed the boss, looted the magical key part the bosses are carrying, and then legged it.

Then they returned to Red Larch to rest and recuperate. But the next morning at breakfast in the inn, they were attacked by four hell hounds. That was a bit annoying for the sorceress, who mainly had fire-based spells like scorching ray and fireball, to which the monsters were immune. But although they took heavy damage from fire breaths, the group prevailed and sent the dogs packing. They (correctly) concluded that the hell hounds had been sent by the one cult they hadn’t visited yet, the fire cult. As they had previously heard about druids planning a fire ritual at a location which corresponded to the location of the fourth elemental keep on their ancient map, they plan to go there in the next session.

15 Minutes of Fame

Google Analytics sent me an automated mail telling me that this blog had 1.7k visitors last month. That is less than I used to get in a single day a decade ago. The good news for Google / Blogger is that I don’t blame them for the decline, and won’t be showing up at their HQ with a gun. I am pretty certain that the loss of readers can be explained by the following factors:

  • I am writing much less now, 1-2 posts per week instead of per day.
  • I am not writing about a single topic, MMORPGs, any more, but about a variety of different things, which interest different people.
  • The original MMORPG topic of my blog isn’t of great interest any more.
  • Blogging, and hanging out on blogs, isn’t the medium of choice any more.

So basically I had my 15 minutes of fame, with highlights like being invited to a Blizzcon with a press pass around my neck and allowed to interview a Blizzard developer. Or getting free “review copies” of games (all of them disclosed on the blog) and stuff. I even got a few hundred dollars as donations over the years.

Blogging never was more than a hobby to me, it was obvious that quitting my day job for internet fame would have been an extremely bad idea. And then I am part of a generation that still believes that they are responsible for their own success or failure. My impression of younger generations is that they more often believe that success is owed to them, and that any of their failures must be due to evil acts from others. Now combine that with the fact that a YouTuber today can be a *lot* more famous than a blogger from a decade ago, and make a lot more money; and then you get closer to understanding why somebody might take a decline of internet fame so serious that she starts shooting people.

The internet has dramatically lowered the barrier of entry to self-publication and possibly fame. But that isn’t just true for you, it is true for everybody else as well. Thus fame is getting more and more fickle and short-lived. Being “internet famous” can be fun, but it appears that it can also be dangerous.

Remote access and control your PC using Android App : Android – LeaVe my baThRoom at-least !


Do you want to remotely control your PC? Android apps help to remotely access and securely control your desktop, laptop through mobile phones. To do this you will need to setup a remote desktop server on your computer. 


In this post we will take a look at 5 android apps which will help to remotely access and securely control your computer from anywhere using Internet.

1. TeamViewer

Team viewer is a remotely control app which provide spontaneous support or to remotely access an unattended computer or servers across different platforms.

teamviewer android application

Some Features of TeamViewer app

  • Support your clients and colleagues spontaneously
  • Access your office desktop with all of its documents installed applications
  • Remotely administer unattended computers
  • Easy file transfer to and from remote computer


2. VNC Viewer

VNC Viewer is a remote control app from RealVNC gives you instant remote access of your computers or servers from anywhere using your mobile.

VNC Viewer

Some Features of VNC Viewer app

  • It supports all popular desktop operating systems
  • Provide different authentication techniques to prevent unauthorized access
  • Provide backup and syn facility
  • Available online support and documentation through chat or E-mail


3. Microsoft Remote Desktop

You can use the Remote Desktop client for Android to work with Windows apps and desktops directly from your Android device.this tool only work on windows PC.

Microsoft Remote Desktop

Some Features of Microsoft Remote Desktop App
  • Support Windows OS desktop or servers 
  • Rich multi-touch experience supporting Windows gestures using RemoteFX.
  • Access to remote resources like printers using Remote Desktop Gateway (the same need to be configured on your network).
  • High quality audio and video support using advanced bandwidth compression.


4. Chrome Remote Desktop

Chrome remote desktop is a chrome browser extension which is fully cross-platform. Provide remote assistance to Windows, Mac and Linux users, or access your Windows (XP and above) and Mac (OS X 10.6 and above) desktops at any time, all from the Chrome browser on virtually any device, including Chromebooks.

Chrome Remote Desktop
Some Features of Chrome Remote Desktop
  • Able to setup screen sharing and remote assistance
  • Encrypted session using chromes SSL features including AES
  • Free to install and use at personal as well as commercial level
  • Streams audio and support copy-paste features

5. Splashtop

Last but not least we have Splashtop.It is the easiest,fastest,secure remote desktop app for accessing your Windows or Mac computer.it is easy to setup.
spalshtop
Some Features of SplashTop
  • Splashtop Business supports the Swiftpoint GT mouse for iPhone to enhance the productivity of your  remote desktop sessions
  • In session FPS settings– Experiment with these settings for the best performance on different networks and computers! 
  • Strong encryption including logging, audit trails and multi-level passwords. 
  • Business features include file transfer, remote print, chat and multi-user access.

Conclusion

TeamViewer is recommended for personal use because it is easy to use and also support screen sharing and support different operating systems. If anyone wants to perform basic remote control on windows then Microsoft Remote Desktop App is a good option.

Do you want to Learn Android Programming?

If Trump Fires Mueller, Is a Watergate Rerun Coming?

Firing special prosecutor Archibald Cox was a massive blunder for Richard Nixon. But yes, it could happen again.

For some reason I had a yearning to curl up on the couch and binge-watch Watergate documentaries this weekend. I can’t imagine why. Just because every TV talking head was breathlessly talking about the right-wing crusade against special counsel Robert Mueller’s office, and rumors were flying that Jared Kushner is shopping around for a crisis management firm, that’s no reason to think that the scandal may be headed for a new phase. But when news broke on Saturday that a Trump transition lawyer had sent a letter to Congress complaining that Mueller had allegedly obtained transition officials’ emails illegally, it sure felt as if something was going to break.

Trump returned from Camp David on Sunday night and told the press that he isn’t considering firing Mueller. Since he cannot tell a lie, that’s obviously the end of that. The Kushner business, on the other hand, may be true, in light of the news about the emails that the Trump team didn’t know were in the hands of prosecutors until after they had all testified, opening up the possibility that someone may have lied. As Michael Flynn and George Papadopoulos can attest, that’s a big no-no.

Trump’s transition lawyer, who doesn’t seem to have any experience in these matters, said that the way the prosecutors obtained the emails is illegal — but also said that Congress should make it illegal. So the nature of Team Trump’s specific complaints is a bit confusing. Evidently they had placed their own man in the General Services Administration, who assured them that emails they sent on government devices with the .gov address would be secured and wouldn’t be turned over without their knowledge.

Unfortunately, their man got sick and died, and the people beneath him were not told about this promise, and when the prosecutors came looking for the emails they were handed over, as would happen in any criminal investigation. Since all such emails are government property and everyone is informed before they are issued the email addresses that they have no expectation of privacy, there’s nothing unusual in any of it. But as we’ve seen before, the Trump team doesn’t really listen or pay attention to the normal rules and regulations. They apparently thought they had this all dialed in. As usual, they didn’t.

Mueller’s office made a rare public comment right after midnight on Sunday morning: “When we have obtained emails in the course of our ongoing criminal investigation, we have secured either the account owner’s consent or appropriate criminal process.” Apparently, they had reason to believe something criminal was going on in the Trump transition.

Lawyers from both parties weighed in on Sunday and explained that there’s nothing illegal about a government investigation obtaining emails from a government agency. The Trump attorney referred to “possible” executive privilege and attorney-client privilege, but didn’t really make the claim, mainly because executive privilege doesn’t exist for a president until he takes office, and if there were attorney communications that might be privileged, all it means is that prosecutors couldn’t use those to build their case. Needless to say, if the Trump team wants to argue this, the appropriate venue is a courtroom — which is exactly what the House Oversight Committee chair Trey Gowdy told them.

As I mentioned, Trump says he isn’t considering firing Mueller, but then, he isn’t literally the one who would fire him, is he? That job would fall to Rod Rosenstein, the deputy attorney general overseeing the special counsel investigation since Jeff Sessions recused himself from the case. Trump could direct Rosenstein to fire Mueller; if Rosenstein refuses, the president can fire him and demand that the next person in line do the deed. It’s not as if it hasn’t happened before.

Looking back at the Saturday Night Massacre in the fall of 1973, at the height of the Watergate scandal, Richard Nixon was furious that special prosecutor Archibald Cox had gone beyond what Nixon thought should be his mandate. When the president found out that Cox was looking into the financing of his West Coast White House in San Clemente, California, he went ballistic. Nixon probably had a lot less to hide in this regard than Donald Trump does.

But what finally precipitated Cox’s firing was the battle over the tapes of Nixon’s conversations in the White House, which had been described in detail by former White House counsel John Dean when testifying about the cover-up of the Watergate break-in. After the existence of the tapes had been exposed, Nixon refused to turn them over. Cox took him to court, and the court had ruled against the president. Nixon refused. His lawyers came up with a cockamamie plan to have one elderly conservative senator listen to the tapes and attest to the accuracy of White House-prepared transcripts of certain conversations under subpoena. Cox said no — that was in defiance of the court. He planned to take the case back before a judge and would abide by his ruling.

That’s when Nixon called up the Attorney General Elliot Richardson and told him to fire Cox. The president said to Richardson when he refused, “I’m sorry you choose to put your purely personal commitments ahead of the public interest.” To which Richardson replied, “Mr. President, it would appear that you and I have a different perception of the public interest.” Deputy Attorney General William Ruckelshaus also resigned, and then Solicitor General Robert Bork finally did the deed.

What happened next was interesting. Nixon wanted to shut down the office altogether and sent the FBI to lock the place down. But prosecutors wouldn’t leave and were giving press conferences. The public was all up in arms, and the media backlash was furious.

Nixon ended up having to appoint another special prosecutor and picked a conservative Republican, Leon Jaworski, who was predisposed to give the president the benefit of the doubt. But after refusing to appeal the case to the Supreme Court, Nixon finally gave up the tapes. When Jaworski heard him talking to John Dean, he said, “can you believe the president of the United States coaching a witness on how to evade the truth?”

That’s when the prosecutors got their indictments of the presidents’ men and delivered their case to the House committee considering impeachment.

Watching Trump and knowing how often he lies, it seems inevitable that there have been more than a few such moments for Mueller in reading some of those emails and listening to testimony from people around the president. The difference is that Nixon had an understanding of the necessity of maintaining stability in the system, even as he abused it terribly. Trump doesn’t even know what the system is and his lawyers don’t seem to have much of a grasp of it either. So far, Republicans in Congress are completely unwilling to do their duty.

Trump might follow the Nixon playbook and fire Mueller, but after that, the whole thing could go off the rails. As strange as this is to say, Nixon knew there were limits to his power. Trump doesn’t. Who knows what he might do?

 

 

 

Related Stories

  • Robert Mueller Has the Trump Team Panicked, No Matter What the President Says
  • The One Scenario in Which Trump Would Risk Impeachment and Fire Robert Mueller
  • Donald Trump Jr. and Ted Cruz Mock Barack Obama with Bizarre Cookie

How to install and configure TOMCAT server with Eclipse?

Download and Install Tomcat

For Windows
  1. Go to http://tomcat.apache.org ⇒ Under “Tomcat 8.5.{xx} Released” (where {xx} is the latest upgrade number) ⇒ Downloads ⇒ Under “8.5.{xx}” ⇒ Binary Distributions ⇒ Core ⇒ “ZIP” package (e.g., “apache-tomcat-8.5.{xx}.zip“, about 9 MB).
  2. Create your project directory, say “d:myProject” or “c:myProject“. UNZIP the downloaded file into your project directory. Tomcat will be unzipped into the directory “d:myProjectapache-tomcat-8.0.{xx}“.
  3. For ease of use, we shall shorten and rename this directory to “d:myProjecttomcat“.
Take note of Your Tomcat Installed Directory. Hereafter, I shall refer to the Tomcat installed directory as.
For Mac OS
  1. Go to http://tomcat.apache.org ⇒ Under “Tomcat 8.5.{xx} Released” (where {xx} is the latest upgrade number) ⇒ Downloads ⇒ Under “8.5.{xx}”⇒ Binary distribution ⇒ Core ⇒ “tar.gz” package (e.g., “apache-tomcat-8.0.{xx}.tar.gz“, about 9 MB).
  2. To install Tomcat:
    1. Goto “~/Downloads“, double-click the downloaded tarball (e.g., “apache-tomcat-8.0.{xx}.tar.gz“) to expand it into a folder (e.g., “apache-tomcat-8.0.{xx}“).
    2. Move the extracted folder (e.g., “apache-tomcat-8.0.{xx}“) to “/Applications“.
    3. For ease of use, we shall shorten and rename this folder to “tomcat”.
Take note of Your Tomcat Installed Directory. Hereafter, I shall refer to the Tomcat installed directory as .

For academic learning, I recommend “zip” (or “tar.gz”) version, as you could simply delete the entire directory when Tomcat is no longer needed (without running any un-installer). You are free to move or rename the Tomcat’s installed directory. You can install (unzip) multiple copies of Tomcat in the same machine. For production, it is easier to use the installer to properly configure the Tomcat.

Create an Environment Variable JAVA_HOME

(For Windows)
You need to create an environment variable called “JAVA_HOME” and set it to your JDK installed directory.
  1. First, find your JDK installed directory. The default is “c:Program FilesJavajdk1.8.0_{xx}“, where {xx} is the upgrade number. Take note of your JDK installed directory.
  2. To set the environment variable JAVA_HOME in Windows 7/8/10: Start “Control Panel” ⇒ System and Security (Optional) ⇒ System ⇒ Advanced system settings ⇒ Switch to “Advanced” tab ⇒ Environment Variables ⇒ System Variables ⇒ “New” ⇒ In “Variable Name”, enter “JAVA_HOME” ⇒ In “Variable Value”, enter your JDK installed directory as noted in Step 1.
  3. To verify, RE-START a CMD shell (restart needed to refresh the environment) and issue:
    SET JAVA_HOME
    JAVA_HOME=c:Program FilesJavajdk1.8.0_{xx}

How to configure tomcat server in Eclipse IDE?

In Eclipse IDE, go to menu Window > Preferences. Then expand the Server > Runtime Environments node in the Preferences dialog:

Click Add… to add a new server runtime environment. In the New Server Runtime Environment dialog, select Apache > Apache Tomcat v x.x  and check the option Create a new local server:

Click Next. In the next screen, click the Browse button to specify the existing installation directory of Tomcat on your computer:

Click Finish, the selected Tomcat installation is added to the list of server runtime environments, as shown below:

Click OK to close the Preferences dialog, the new server runtime is added to the Servers view:

You can now drag and drop a project into this server in order to deploy and run the project.
NOTE: If you don’t see the Servers view, you can show it by go to the menu Window > Show View > Others…, then look for Servers.

Writing First Servlet:

1. Create Dynamic Web Project

To create a Servlet we need to create a new ‘Dynamic Web project’ which can be done in three ways,

  • Right click on Project Explorer -> New -> Dynamic Web Project
  • File menu -> New -> Dynamic Web Project
  • Click on the down arrow on New icon on toolbar -> Dynamic Web Project

 Click “Next” button.Click “Next” button.

Check ‘Generate web.xml deployment descriptor’ checkbox and click “Finish” button and Eclipse IDE will generate the web project automatically as shown below

2. Create Servlet Class

Select from the menu File –> New –> Servlet.

Write “com.srccodes.example” in the ‘Java Package’ field and “HelloWorld” in the ‘Class Name’ field. Click ‘Next’ button.

We can specify deployment descriptor (web.xml) specific information in the following screen. Just keep every thing as it is for the time being. Click “Next” button.

Click ‘Next’ button.Click ‘Next’ button.
Eclipse will generate a Servlet class based on the configuration / input we provided in the previous steps.
3. Write Custom Code

Add your code inside ‘doGet’ method. ‘setContentType’ method of HttpServletResponse sets content type of the response to ‘text/html’ which is the standard MIME content type for Html pages. ‘getWriter’ method of the response object returns a PrintWriter object. This will be used to print our “Hello World!” string in the browser.
Edit the generated ‘HelloWorld.java’ as per the following code.

File: HelloWorld.java

package com.srccodes.example;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 * Servlet implementation class HelloWorld
 */
@WebServlet(“/HelloWorld”)
public class HelloWorld extends HttpServlet {
    private static final long serialVersionUID = 1L;
        
    /**
     * @see HttpServlet#HttpServlet()
     */
    public HelloWorld() {
        super();
        // TODO Auto-generated constructor stub
    }
    /**
     * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
     */
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType(“text/html”);
        PrintWriter printWriter  = response.getWriter();
        printWriter.println(“

Hello World!

“);

    }
    /**
     * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
     */
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // TODO Auto-generated method stub
    }
}

4. Run Your Servlet Code

Right click on the project ‘HelloWorldServlet’ and select from context menu ‘Run As’ –> ‘Run on Server’.
Select the existing tomcat server.
Click “Finish” button. HelloWorldServlet web application will be deployed in the tomcat web server.
6. Browser Output

Eclipse will open a browser and your server side code will print ‘Hello World!’ in the browser.

Web Analytics :- key to e-coMMerce BusineSS

Web analytics is the measurement, collection, analysis and reporting of web data for purposes of understanding and optimizing web usage. However, Web analytics is not just a process for measuring web traffic but can be used as a tool for business and market research, and to assess and improve the effectiveness of a website. Web analytics provides information about the number of visitors to a website and the number of page views.

Importance of Web Analytics
We need Web Analytics to assess the success rate of a website and its associated business. Web analytics used to

  • Assess web content problems so that they can be rectified
  • Have a clear perspective of website trends
  • Monitor web traffic and user flow
  • Demonstrate goals acquisition
  • Figure out potential keywords
  • Identify segments for improvement
  • Find out referring sources

Google Analytics

Google Analytics is a freemium web analytics service offered by Google that tracks and reports website traffic. Google Analytics is now the most widely used web analytics service on the Internet. Google Analytics is offered also in two additional versions: the subscription-based Google Analytics 360, previously Google Analytics Premium, targeted at enterprise users, and Google Analytics for Mobile Apps, an SDK that allows gathering usage data from iOS and Android Apps.

Google analytics helps you to track and measure visitors, traffic sources, goals, conversion, and other metrics (as shown in the above image). It basically generates reports on −

  • Audience Analysis: As the name suggests, audience analysis gives you an overview of the audience who visit your site along with their session history, page-views, bounce rate, etc.
  • Acquisition Analysis: Acquisition means ‘to acquire.’ Acquisition analysis is carried out to find out the sources from where your web traffic originates. Using acquisition analysis, you can Capture traffic from all channels, particular source/medium, and from referrals and also Trace traffic from AdWords (paid search).
  • Behavior Analysis: Behavior analysis monitors users’ activities on a website.
  • Conversion Analysis: Conversion is a transaction by a user on your website. For example, download, checkout, buy, etc. To track conversions in analytics, you need to define a goal and set a URL that is traceable.

KISSmetrics

KISSmetrics is a powerful web analytics tool that delivers key insights and user interaction on your website. It defines a clear picture of users’ activities on your website and collects acquisition data of every visitor.

KISSmetrics helps you identify the following −

  • Cart size
  • Landing page conversion rate
  • Customer activity on your portal
  • Customer bounce points
  • Cart abandoned products
  • Customer occurrence before making a purchase
  • Customer lifetime value, etc.

Best Features of KISSmetrics

  • Ability to track effective marketing channels.
  • Figure out how much time a user takes to convert.
  • Determine a degree of which user was engaged with your site.
  • A convenient dashboard. You do not need to run around searching for figures.
  • Installation
  • Just sign-up for an account and customize accordingly.

Tracking
Add a java snippet under tag of the source code of your website.

Event Setting
By default, KISSmetrics sets two events for you − visited site and search engine hit. To add more events, click on new event, add an attribute and record an event name.

Setting up Metrics
Click on create a new metric. Select your metric type from the list. Give metric name, description, and event. Save metric.

Measures

You need to find a few key metrics for your business. You have a website and it has a tracking code in it.

Audience

Pageviews − Pageviews is the number of views of a page. Multiple pageviews are possible in a single session. If pageviews is improved, it will directly influence AdSense revenue and average time on website.

Bounce rate − Bounce rate reflects the percentage of visitors returning back only after visiting one page of your website. It helps you to know how many visitors do so. If the bounce rate of a website increases, its webmaster should be worried.

Pages per session − Pages/session is the number of pages surfed in a single session. For example, a user landed on your website and surfed 3 pages, then the website pages/session is 3.

Demographic information − Demographic data shows Age and Gender. With the help of Demographic Info, you can find the percentage of Male/Female visitors coming to your website. Analyzing the ratio of this data, you can make a strategy according to genders. Age group data help you find what percentage of age group visiting your website. So, you can make a strategy for highest percentage of age group visitors.

Devices − This data shows the devices info. In devices info, you can easily find how many percentage of visitors come from mobile, how many come from desktop, how many come from tablets, etc. If mobile traffic is high, then you need to make your website responsive.

Acquisition

Traffic sources − In the acquisition, you have to check all your sources of the traffic. Major sources of the traffic are −

Organic traffic is the traffic coming through all search engines (Google, Yahoo, Bing….)

Social traffic is the traffic coming through all social media platforms (like − Facebook, Twitter, Google+, …)

Referral traffic is the traffic coming through where your website is linked.

Direct traffic is the traffic coming directly to your website. For example, typing the url of your website, clicking on the link of your website given in emails, etc.

Traffic Sources

Source/Medium − This metrics gives you an idea of the sources from where you are getting traffic (Google, Yahoo, Bing, Direct, Facebook…).

Site Content

Landing pages − Landing pages are the pages where the visitors land first (normally, home pages of the websites are the landing pages). With the help of this metrics, you can find the top pages of the website. Using this metrics, you can analyze how many pages are getting 50% or more traffic of the website. So, you can easily find which type of content is working for you. Further, based on this analysis, you can plan the next content strategy.

Site speed − Site speed is the metrics used for checking page timing (average page load time). Using this metrics, you can find which page is taking more time to load, how many pages have high load time, etc.

Want to Learn Digital Marketing?

Gardmore Abbey 5E rerun – End

I think I forgot to report one or two sessions of my Gardmore Abbey 5th edition rerun. The campaign suffered from something very typical of campaigns in my local role-playing club: Player attrition. You start with 5 players, all very enthusiastic, and then over the months real life intervenes, or enthusiasm fades, and in the end it is hard to get a quorum together.

Today we finished the campaign. The players were level 7, but they had never fought the orcs who were the main force holding the abbey. So for the grand finale I strung together two encounters: The defense of the watchtower against attacking orcs (who had brought a hill giant and dire wolf cavalry), followed by the group attacking the keep with the orc chieftain. As there were only 3 players left, these were tough fight, especially with some lucky dice rolls on my side, like the hill giant scoring a critical hit.

But in the end the group prevailed and, having done all the quests in the abbey, returned to Lord Padraig. Having previously found out how the abbey fell through the use of the Deck of Many Things, they were able to persuade the lord to give them the last remaining cards. That assembled the deck, and allowed them to draw from it.

Ander the ranger drew just one card, but it was the Talons, which destroyed all his magical items. Ouch! Raymond the librarian barbarian drew two cards, but ended up drawing cards that gave him more draws. In the end he lost 10,000 xp, got permanently cursed, and gained a rare magical weapon. Kaze the monk drew 3 cards: The first lost him 5 points of intelligence (and he had only 10). The second gave him 50,000 xp and a rare wondrous item. And the third allowed him to erase the effect of the first card. Which meant that he was the only one who got really lucky, gaining 3 levels and some nice magic boots.

The Deck of Many Things is by itself frequently a campaign-ending item, and thus not recommended unless you don’t plan to continue anyway. But with the dwindling player-base this was the good opportunity to end the campaign on a high note.

The culture war is a deliberate distraction

Capitalism is the best economic system for the overall creation of wealth. However it is lousy at distributing that wealth fairly between the people who contributed to the creation; and it equally sucks at all other issues which require solidarity (e.g. health care) or involve the common good (e.g. the environment). After WWII it appeared that the first world countries had solved that problem: They had all created political systems in which “the right” fought for freedom and capitalism, and “the left” fought for fair distribution, solidarity, and the common good. Alternating between left and right governments created a balance, and even allowed different countries to arrive at different points on that balance, e.g. Scandinavian countries having more solidarity, and the US having more capitalism.

However the system had one inherent flaw: Politicians are by definition members of the elite, the ruling class. And that is true for left wing politicians as well. Thus a right wing politician fighting for unfettered capitalism that makes the rich richer and the poor poorer was both following his party politics and his own greed. While the left wing elite was naturally less inclined to fight for policies that aided less well off, because it didn’t help them personally. So at various points in the 90’s the left wings in different countries simply gave up on economic policy for fairer distribution of wealth, and just joined the capitalist camp which made the elite richer. Today a left wing politician like Bernie Sanders or Jeremy Corbyn who still push for some economic fairness and solidarity are considered as “odd” and decried as “communists”.

Now this has created a growing rift between voters and the elite that leads them in politics and media. The people simply isn’t represented any more. They are being fed lies like “your salaries are only low because of immigrants” or “tax cuts for the rich will trickle down to you”. In their desperation they increasingly vote for extremists and populists, and end up harming themselves even more through the resulting policies. And the left and right wing elite in order to be seen to do something play acts a culture war to distract the masses from the real problems.

In Germany there is an organization of soup kitchens which collect food past its sell-by-date and distributes it to people who are so poor that they have to beg for food. One local organization recently made headlines because they enacted a controversial “Germans first” policy, after food fights had broken out in which younger male immigrants shoved aside elderly German grandmothers. And the discussion is all about the culture war, with the left fighting for equal rights for the immigrants, and the right defending priority for the natives. Only the extreme left is mentioning the real problem: That in one of the world’s richest countries, at the top of the economic cycle and full employment, there are still so many people having to beg for old food that the soup kitchens can’t feed all of them.

As Bill Clinton still knew, “it’s the economy, stupid”. If the centrist parties fail to represent the economic interests of the majority of the population, they will fade into irrelevance. History repeats itself, and the rise of populist parties in Europe in the 1930’s (not just in Germany) isn’t really the example we would want the world to follow. We need to see the culture was as the distraction that it is, and concentrate on the real economic problems.