Simplified : Client_Server – Socket Programming in Java

Client_Server – Socket Programming in Java

java socket programming



Client -server communication

At a basic level, network-based systems consist of a server , client , and a media for communication. A computer running a program that makes a request for services is called client  machine. A computer running a program that offers requested services from one or more clients is called  server machine.

Client-Server Architcture


What are Sockets?

In Client-Server architecture, you have two processes (running client-Server programs) that want to communicate with each other. For that, they have to establish a communication link between themselves. There is a network available,they just need to connect to this network , for this they use sockets.

Sockets in client server architecture

A socket is one endpoint of a two-way communication link between two programs running on the network.

An endpoint is a combination of an IP address and a port number. Every TCP connection can be uniquely identified by its two endpoints. That way you can have multiple connections between your host and the server.
The java.net package in the Java platform provides a class, Socket, that implements one side of a two-way connection between your Java program and another program on the network. 

How do I Open a Socket ?

If you are programming a client, then you would open a socket like this:
 Socket s;
s
= new Socket("Machine name", PortNumber);
Where Machine name is the machine you are trying to open a connection to, and Port-Number is the port (a number) on which the server you are trying to connect to is running. When selecting a port number, you should note that port numbers between 0 and 1,023 are reserved for privileged users (that is, super user or root). These port numbers are reserved for standard services, such as email, FTP, and HTTP. When selecting a port number for your server, select one that is greater than 1,023!


It is a good practice to handle exceptions. The above can be written as:

    Socket s;
try {
s
= new Socket("Machine name", PortNumber);
}
catch (IOException e) {
System.out.println(e);
}
If you are programming a server, then this is how you open a socket:

    ServerSocket ss;
try {
ss
= new ServerSocket(PortNumber);
}
catch (IOException e) {
System.out.println(e);
}
When implementing a server you also need to create a socket object from the ServerSocket in order to listen for and accept connections from clients.

Socket clientSocket = null;
try {
serviceSocket
= ss.accept();
}
catch (IOException e) {
System.out.println(e);
}

How do I create Buffered Reader?

Java BufferedReader class is used to read the text from a character-based input stream. It can be used to read data line by line by readLine() method. It makes the performance fast. 
    try {
BufferedReader br = new BufferedReader(new InputStreamReader(ss.getInputStream()));

}
catch (IOException e) {
System.out.println(e);
}

How do I create an output stream?

On the client side, you can create an output stream to send information to the server socket using the class  of java.io:
    PrintStream output;
try {
OutputStream ostream = sock.getOutputStream();
DataOutputStream dos = new DataOutputStream(ostream);

}
catch (IOException e) {
System.out.println(e);
}
The class DataOutputStream allows you to write Java primitive data types; many of its methods write a single Java primitive type to the output stream. The method writeBytes is a useful one.

How do I Close a Socket ?

On the client side:

    try {
output
.close();
input
.close();
s
.close();
}
catch (IOException e) {
System.out.println(e);
}

On the server side:

    try {
output
.close();
input
.close();
ss
.close();
}
catch (IOException e) {
System.out.println(e);
}
Let’s see java code for one-way communication using socket programming:

Client Side Code:
import java.net.Socket; 
import java.io.OutputStream;
import java.io.DataOutputStream;

public class SCPTL
{
public static void main(String args[]) throws Exception
{
Socket sock = new Socket("localhost", 5000);
String message1 = "Learn-Intern-Certify from SCPTL";

OutputStream ostream = sock.getOutputStream();
DataOutputStream dos = new DataOutputStream(ostream);
dos.writeBytes(message1);
dos.close();
ostream.close();
sock.close();
}
}
Server Side Code:
import java.net.ServerSocket;            
import java.net.Socket;
import java.io.*;

public class SERVER
{
public static void main(String args[]) throws Exception
{
ServerSocket sersock = new ServerSocket(5000);
System.out.println("server is ready"); // message to know the server is running

Socket sock = sersock.accept();

BufferedReader br = new BufferedReader(new InputStreamReader(sock.getInputStream()));

String message2 = br.readLine();
System.out.println(message2);
sock.close(); sersock.close();
}
}

Output:

Client:

Client side output
Server:

Server side output

Want to learn more about java?

One more 7th Continent post before I shut up :)

The 2nd Kickstarter for 7th Continent ended with 43,733 backers having pledged over $7 million. But if you missed it, there is a possibility to Late Pledge with options limited to getting either just the new expansion, or the whole game plus expansion. I don’t know how long this will be possible, I presume it is until the pledge manager goes live in November.

*Spoiler Alert*
My wife and me are making great progress on the first curse, The Voracious Goddess. We lost on the first attempt and restarted. Knowing the starting island better made things easier, so on the second attempt we managed to get off the island the comfortable way. That gives you a choice of three places to continue, and by pure chance we seem to have chosen the absolutely best one. We found a place to rest and spend our xp on advanced skills. We found a place to hunt and recover all of the adventuring deck. And we found the next two landmarks on the clue map.

It was getting nearly too easy, and so we decided to do something more risky. Instead of following the clue map further, we entered what I can only describe as a dungeon. We didn’t completely clear it out, because there was a rather suspicious lever we didn’t dare to pull. But we did everything else in it and exited with some treasure and more advanced skills. Next we will try to hunt again and then follow the path on the clue map.

MSNBC Shows Scary Clip of Trump and Putin Using Exact Same Talking Points

The two appear to be synching their propaganda.

Using footage from President Donald Trump’s recent rally in Florida and Russian President Vladimir Putin’s annual media conference, MSNBC demonstrated how the two world leaders are sharing talking points.

Both leaders insulted Trump’s opposition, made grandiose claims about the stock market and claimed Trump is the victim of fake news.

Putin has spoken on the phone at least twice with the president in the last week as he blatantly vies for power over Trump by boosting his fragile ego.

Watch the clip below.

 

Related Stories

  • There’s an Insidious Strategy Behind Donald Trump’s Retweets
  • Treasury Secretary Steve Mnuchin Seriously Claims Ignorance of CDC Banned Words Report
  • Sarah Palin’s Son Track Palin Was Arrested in Alaska on Domestic Violence Charges

Creating LOGO using Adobe Photoshop

Suven Consultants

Logo is the most important asset of a company. Logo represents your  company.

The dictionary meaning of a logo is a symbol, sign, or emblem. Human beings have used such symbols throughout time to convey a succinct message. In present times, logos tend to be graphical in nature, designed for easy recognition of an organization. It is a tool to build an identity for the organization, as part of its trademark or brand, and to generate favourable thoughts and feelings about the organization.  

A logo needs to be original and memorable for the greatest impact.

logo




 A logo refers to an image that relates to a company. For example, the image to the right, is an example of the Suven Consultants logo.

Features of a Corporate Logo


Identify Target Market
What type of customers are you trying to attract? The success of your company’s branding efforts will rely on the customers you are pursuing. Trendy graphics and hip hop music may attract the younger consumer, but this type of advertising might turn off the mature customers. Cater to the interests of your potential clientele.

Legalities
Research your ideas so you do not infringe on another company’s brand. Developing your brand is a long term investment. Register your trademark legally to protect your company’s name from imposters and possible customer confusion.

Logo and Color Scheme
Choose simple color choices and an easy to read font for your company logo. Choosing a graphic that says something about your business helps in creating your unique brand name. A good example of an effective logo is the swirled red, white and blue Pepsi® circle. The simple logo dominates the cans and bottles it is printed on and the only reading required is to determine if it is regular, flavored, diet or caffeine free.

Celebrity Endorsements
Visual stimulation will help prospective customers remember you. Grab their attention with ads and commercials using a recognized person or character. Hanes® sales increased when Michael Jordan became a spokesperson for their national campaign and television commercials. Small businesses starting out probably cannot hire a famous celebrity like Michael but there are other ways to attract customers and create an identity for your business. Create your own character. Animated celebrities like M&M® candies have been brought to life on television and online ads. If you are directly involved with your customers in a retail environment, you could be the face of your company. If you are uncomfortable using actual photos, consider turning your picture into a cartoon. There are several photo programs that can transform a picture into a sketch with the click of a mouse. You could also hire a professional to animate your likeness and use it on all of your advertising.

Catchy Tag line or Jingle
“You deserve a break today” is not heard as often as it used to be but most people still remember that catchy jingle. That saying became popular before there were fast food restaurants on every corner. It was a treat for a woman to pick up dinner at McDonalds® and not have to cook. What does your company offer that can help the consumer? Your tag line should be short, easy to remember and send a message to your customer. Turn your tag line into a musical jingle and your company will become the brand consumers will remember.
As a final step, drag your gradient layer below all the other layers in the Layers window.

Your logo is now complete!

——–

What We Will Make

We will use Adobe Photoshop CS6 for this tutorial, though you’ll be perfectly fine with older versions of Photoshop as well.

Step 1: Create a New Document

Go to File -> New, or press CTRL+N in Photoshop. Select the appropriate width and height for your design. I like to have a large enough canvas to work with – around 1000px width and 600px height. You can always change canvas size later.

Suven Consultants

Step 2: Create the Basic Shape

To create the effect that we want, we will make our logo with two overlapping shapes as shown below:
We’re going to use the ‘Pen’ tool to create our shapes. It’s the pen shaped icon on the toolbox to the left.

Now create a new layer. Name it Shape 1. Select the pen tool, select ‘shape’ in the tool properties at the top. Choose a bright red color for the fill (I used #ed1c24).
It’s useful to switch on the grid while drawing. Go to View -> Show -> Grid, or press CTRL + ‘. Create the shape as shown below:

For the second shape, instead of drawing it from scratch, we can simply duplicate the Shape 1 layer and flip it horizontally.
Select the current shape in the layers window on the right. Right click on it and select ‘Duplicate Layer’. Name the new layer Shape 2 you want.
Now select the duplicate layer, go to Edit -> Transform Path -> Flip Horizontal
You should have the following shape now:

Suven Consultants
Step 3: Change Colors

Since we want to create an overlapping ‘Origami’ like effect, we will make one of our shape layers slightly darker in color to give the impression of depth.
Double-click on the Shape 2 thumbnail in the Layers window. The color selection pane should pop-up.

Select a slightly darker shade of color.
While you’re at it, drag the Shape 1 layer on top of the Shape 2 layer in the Layers window as well, such that Shape 2 appears to be behind Shape 1.

Suven Consultants

Step 4: Creating the Shadow

Duplicate the Shape 1 layer as described above. Name it Shadow Layer Change the color of this new layer to black (#000000). Go to Filter -> Blur -> Gaussian Blur. Choose a radius of 2.75 pixels. Your image should look like this now:

Now drag the Shadow Layer underneath Shape 1 in the Layers window. Right click on Shadow Layer and select ‘Create Clipping Mask’
Your image logo should now have the nice shadow effect.

Suven Consultants

Step 5: Add the Text

We’ll now add text to our logo. Unfortunately, the default Windows font selection isn’t exactly too great. So instead of using tired, stale fonts like Arial, we’ll head over to Google Fonts and download a bunch of new, modern fonts.
For this project, I recommend downloading Raleway. This is just a personal preference though. You can choose any one of the hundreds of free fonts on Google Fonts. Some of my personal favorites are:

  • Open Sans
  • Roboto
  • Ubuntu
  • Exo
  • Lobster
  • Bevan

I choose Arial with font-weight of ‘bold’ and a font-size of 200px. Feel free to experiment with this if you want.
Place the text below the logo. For a bit of extra effect, add a drop shadow to the text. Right click on the text layer, select ‘Blending Options’. In the window that pops up, choose ‘Drop Shadow’ and pick the parameters:
Suven Consultants

Step 6: Add a Background Gradient

This is the final step to give our logo a bit of dramatic flair.
Click the ‘Create New Fill or Adjustment Layer’ button at the bottom of the Layers Window.
Choose ‘Gradient’. In the window that pops up, select ‘Radial’ under Style. Make sure to check the ‘Reverse’ option at the bottom. 
Now, double click on the gradient color in the window. The gradient edit window will pop up. Play around with the colors and settings for a while until you find something you like.

Suven Consultants

Do you want to Market your product using Digital Marketing ?

Xiaomi’s Mi A1 Special Edition in Red is coming to India (updated)

Update (12/19/17): The gorgeous Xiaomi Mi A1 Special Edition is officially coming to India. Beginning December 20, customers will have the chance to order the Red version of the Mi A1 from Mi.com and Flipkart’s online store. Additionally, the device will be available from Mi Home stores, Mi preferred partner stores, and other retail partners. The device will run customers Rs. 13,999.

December 20 is also the start of Xiaomi’s “No. 1 Fan Sale” in the country. Xiaomi is celebrating its fans with sales on phones like the Xiaomi Mi MIX 2, Mi Max 2, Redmi 4, Redmi Note 4, and Redmi Y1 Lite. The Mi MIX 2 will see a price drop from Rs. 35,999 to Rs. 32,999, while the Mi Max 2 will drop from Rs. 14,999 to Rs. 12,999. The Redmi 4 gets a Rs. 1,000 discount, while pricing details for the Redmi Note 4 and Redmi Y1 Lite have yet to be released yet.

You can get check out all of the deals on Mi.com starting December 20.


Original article (12/14/17): It seems like red has caught on as a color of choice for smartphones, since OnePlus and Samsung have red versions of their flagship smartphones. Whether it’s because of that, or whether it’s because it’s the season for such a color, Xiaomi has joined the fray with the Mi A1 Special Edition.

Don’t let the name fool you; the only thing special about the Mi A1 Special Edition is the red color it comes in. That being said, the shade of red looks much less like Samsung’s Burgundy Red and more like OnePlus’ Lava Red, with the color choice meant to stand out than be more subtle.

Either way, it comes across as vibrant and stunning, with the added red color meaning that the Mi A1 is now available in four colors.

Elsewhere, the Mi A1 Special Edition remains identical to the normal Mi A1. In other words, you’ll find a 5.5-inch Full HD display, with a 5 MP camera up front and dual 12 MP cameras around back. Under the hood, Qualcomm’s Snapdragon 625 chipset and 4 GB of RAM power the phone, and while the processor might be a bit long in the tooth at this point, it allows for greater battery efficiency.

Editor’s Pick

That efficiency is what helps give the Mi A1 very good battery life in our testing, regardless of the modest 3,080 mAh battery. If the 64 GB of internal storage is not enough for your needs, the microSD card slot allows for up to 128 GB of additional storage.

Finally, the Mi A1’s story revolves around its status as one of the handful of Android One devices out there, which means that the phone runs stock Android 7.1.2 Nougat. That makes the phone the only Xiaomi smartphone that runs stock Android out of the box, something that slightly disoriented us at first but that we eventually got used to.

According to GizmoChina, which spotted the phone, the Mi A1 Special Edition is currently available in Indonesia for 3.099.000 rupiahs, which translate to roughly $228. There is no word if the phone will be available in other markets, though we’ll keep an eye out if it does.

Anthony Scaramucci Publicly Blasts ‘Loser’ Steve Bannon During Hannukah Party Remarks

The speech was supposed to be about his pilgrimage to Israel.

On Tuesday, short-lived White House Communications Director Anthony Scaramucci took a jab at fellow ex-Trump aide Steve Bannon at a New York Hannukah party.

As the New York Post‘s Page Six reports, The Mooch blasted Bannon as a “messianic loser” at Rabbi Shmuley Boteach’s annual Hannukah party on the second-to-last night of Jewish holiday.

As Page Six notes, Scaramucci was at Rabbi Boteach’s party to discuss his recent trip to Israel — and was also the subject of a recent controversy after his “Scaramucci Post” Twitter account published a controversial tweet poll asking how many people died in the Holocaust.

“He’s a loser,” Scaramucci reportedly said. “He’ll be a stalwart defender of Israel until he’s not. That’s how this guy operates. I’ve seen this guy operate.”

“The problem with Bannon is he’s a messianic figure,” he added. “It’s his way or the highway.”

Scaramucci also once again brought up “leakers,” the ostensible subject of his rant to a New Yorker writer over the summer that likely led to his ouster a mere 10 days after taking his press secretary job. At the Hannukah party, The Mooch accused Bannon of “leaking on everybody” in the White House.

“I’m not Steve Bannon,” Scaramucci told The New Yorker‘s Ryan Lizza in July. “I’m not trying to suck my own c*ck.”

 

Related Stories

  • How Fox News Is Waging ‘Psychological Warfare’ on the American People
  • Trump Judicial Nominee Withdraws After GOP Senator Publicly Humiliates Him
  • Steve Bannon Failed to Disclose That He’s $2 Million in Debt: Report

12 Most Insane Rules From the Biggest Neo-Nazi Website on the Internet

White supremacist style guides are…different.

The Daily Stormer is an online hub for racists, white nationalists, anti-Semites, neo-Nazis, and other assorted angry white men. It’s run by Andrew Anglin, who’s been in hiding for months avoiding an SPLC lawsuit charging stochastic terrorism against a Jewish woman in Montana. (Even underground, Anglin has managed to pull in a healthy sum in donations from supporters.) Among the confirmed readers of Anglin’s site are Dylann Roof, who in 2015 murdered nine black parishioners in a South Carolina church, and James Harris Jackson, who murdered a black man in New York City using a sword last March.

HuffPost writer Ashley Feinberg recently got a bit more insight behind the curtain of Anglin’s operation via the site’s 17-page style guide for contributing writers. The document lays out a few standard rules and protocols, from good HTML practices to proper grammar dictates, as well as a few rules that apply only to racist bloggers. The guide is packed with writerly advice on how to promote Anglin’s goals, which begin with expanding readership and end with an all-out race war. The key, per Anglin, is to maintain the site’s veneer of “non-ironic Nazism masquerading as ironic Nazism.”

Here are 12 of the most insane pieces of advice from the biggest neo-Nazi website on the internet.

1. Always blame the Jews.

Anglin writes that the Daily Stormer is “designed to spread the message of nationalism and anti-Semitism to the masses.” To that end, he notes that authors’ “prime directive” is singular: “Always Blame the Jews for Everything.”

“As Hitler says, people will become confused and disheartened if they feel there are multiple enemies. As such, all enemies should be combined into one enemy, which is the Jews. This is pretty much objectively true anyway, but we want to leave out any and all nuance. So no blaming Enlightenment thought, pathological altruism, technology/urbanization, etc. just blame Jews for everything.”

Anglin goes on to assert that Jews should be blamed “for the behavior of other nonwhites” as well as white women. “Women should be attacked, but there should always be mention that if it wasn’t for the Jews, they would be acting normally.”

2. Go easy on the swear words, heavy on the racial slurs.

Contributors are discouraged from “an overuse of profanity” which “can come across as goofy.” But Anglin recommends liberal use of racial epithets, and even offers a helpful list of specific “allowed and advisable” slurs.

•Negro/Negroid
•Monkey
•Ape
•Spic
•Wetback
•Beaner
•Beanperson
•Kike
•Yid
•Sheeny
•Christ-killer
•Haji
•Sandperson
•Paki (can be used for non-Pakistani Moslems, especially Arabs, because that’s funny)
•Muzzie
•Chink
•Gook
•Zipperhead
And others

Anglin adds that while the n-word is also cool, it “shouldn’t be used constantly.” Let spontaneity be your guide, he seems to suggest. Keep people guessing about what new and disgusting way you’ll express your racist self!

3. Demean women, gays, black folks and, of course, the Jews every chance you get.

Anglin shares that “[f]*ggots can be called all the words for f*ggot,” though scatological references are frowned upon. He gives a specific list of words recommended for describing women, and the word “woman” doesn’t appear on it once. Instead, it features “slut,” “whore,” “bitch,” “harlot,” “trollop,” “slag,” and “skag.”

This is yet another moment when Anglin slips in a reminder to writers to shoehorn in more anti-Semitism amidst the misogyny. “Whenever writing about women,” Anglin requests, “make sure to follow the prime directive and blame Jew feminism for their behavior.”

4. But also, be sure to keep things fun and funny so people want to join the…clan!

The most insidious aspect of Anglin’s style guide is its repeated insistence on a stealth recruitment strategy that relies on humor and lightheartedness to get young white readers excited about white nationalism. He repeatedly admonishes writers to cool it with the super angry racist diatribes that might scare newbies off. Instead, he suggests, authors should infuse their racism with lots of jokes, like the hipster racism of Vice circa 2003. (Ironically, in this same document, Anglin trashes Vice co-founder and hipster-racism aficionado Gavin McInnes as a “bottomless bucket of lulz.”)

“While racial slurs are allowed/recommended, not every reference to non-white should not be a slur and their use should be based on the tone of the article. Generally, when using racial slurs, it should come across as half-joking—like a racist joke that everyone laughs at because it’s true. This follows the generally light tone of the site.”

Here’s the key, though: “It should not come across as genuine raging vitriol. That is a turnoff to the overwhelming majority of people.”

Anglin reaffirms that the goal is to lure new readers, and potential new adherents to the alt-right’s racist agenda, above all. And the way to do that is by dressing the message up in internet memes and provocative jokes, and then to drive the (racist) point home over and over again.

“[T]hough we do mean to keep readers who are already in the know informed and entertained, it should always be considered that the target audience is people who are just becoming aware of this type of thinking,” Anglin writes. “The goal is to continually repeat the same points, over and over and over and over again. The reader is at first drawn in by curiosity or the naughty humor, and is slowly awakened to reality by repeatedly reading the same points.”

You know how you can end up knowing the words to a song you hate if you hear it enough on the radio? Repetition works. And Anglin’s betting that his writers can beat the audience over the head with their message until it’s gotten inside their heads.

5. Again, avoid overt hatred, despite the fact that it’s precisely what you’re peddling.

“Most people are not comfortable with material that comes across as vitriolic, raging, non-ironic hatred,” Anglin restates in another section of the document. “The unindoctrinated should not be able to tell if we are joking or not. There should also be a conscious awareness of mocking stereotypes of hateful racists. I usually think of this as self deprecating humor—I am a racist making fun of stereotype of racists, because I don’t take myself super-seriously.”

He adds, “There should be a conscious agenda to dehumanize the enemy, to the point where people are ready to laugh at their deaths. So it isn’t clear that we are doing this—as that would be a turnoff to most normal people—we rely on lulz.”

To put a very fine, super ugly point on it: “This is obviously a ploy and I actually do want to gas kikes. But that’s neither here nor there.”

6. Quote liberally from mainstream media sources to borrow their validity and authority.

Anglin urges writers to recycle “large parts” from articles in mainstream news outlets as a way to siphon legitimacy toward his own site. The idea is to do a good enough job of combining verifiable facts with nonsense racist propaganda that the two start to blend together.

“Being able to see the mainstream source quoted allows us to co-opt the perceived authority of the mainstream media,” Anglin writes, “and not look like one of those sites we are all probably familiar with where you are never certain if what they are saying has been confirmed.”

7. Note the media outlets covertly helping us do our dirty work.

While suggesting that writers find concise versions of real news stories to incorporate into their posts, Anglin notes that two news outlets seems to share a similar worldview.

“RT and Breitbart have the benefit of being closer to our own spin on many issues,” Anglin writes, “meaning….they are more likely to include points of interest.”

8. Take inspiration from—who else?—Adolf Hitler!

A quote from Anglin, without commentary: “The basic propaganda doctrine of the site is based on Hitler’s doctrine of war propaganda outlined in Mein Kampf, Volume I, Chapter VI. If you have not read this, please do so immediately.”

9. By all means, stir up the anger and rage of violent racist readers, but do it in a way that ensures we can feign innocence in court.

As he notes in a section titled “Violence,” Anglin is well aware that “It’s illegal to promote violence on the internet.” But as someone holding out hope that the U.S. will break out into a wide-scale race war, he’s dedicated to surreptitiously urging violent attacks by his racist followers en masse.

If you’re writing about some enemy Jew/feminist/etc., link their social media accounts,” Anglin advises writers for his site. “Twitter especially. We’ve gotten press attention before when I didn’t even call for someone to be trolled but just linked them and people went and did it.”

He also suggests that “it’s totally important to normalize the acceptance of violence as an eventuality/inevitability.” So murderous racists like Dylann Roof and Anders Breivik are hailed as heroes using language so over-the-top it borders on comical.

“This is great because people think you must be joking,” Anglin cynically notes. “But there is a part of their brain that doesn’t think that…[E]ven when a person can say to themselves ‘this is ridiculous,’ they are still affected by it on an emotional level. Whether they like it or not.”

10. Use popular culture as a vehicle for the white nationalist message.

People like what they know, and so Anglin aims to replicate recognizable and widely known media to engage readers in a way they understand. Early on in the style guide, Anglin admits that the Daily Stormer “is in many ways modeled off of successful liberal blogs such as Gawker.” (Anglin has reportedly previously cited Vice and Infowars.) He recommends writers fill their posts with “pop culture gifs of the style that Buzzfeed uses.”

But beyond just mirroring cultural digital ephemera, Anglin suggests that writers subvert—or rather, “hijack”—popular memes to give them a racist twist.

“Cultural references and attachment of entertainment culture to Nazi concepts have the psychological purpose of removing it from the void of weirdness that it would naturally exist in, due to the way it has been dealt with by the culture thus far, and making it a part of the reader’s world. Through this method we are also able to use the existing culture to transmit our own ideas and agenda.”

The site got lots of attention when it dubbed Taylor Swift an “Aryan Goddess” and suggested the singer is “a secret Nazi.” (For the record, Swift tried to sue a blogger who essentially demanded she disavow the alt-right, at least until the ACLU intervened on the blogger’s behalf. Conversely, Swift has never threatened to sue an actual white nationalist for claiming she supports their cause.)

Anglin also notes he turned 50 Cent’s “In Da Club” into an anti-immigrant song, because racists are lazy, garbage culture vultures who steal black people’s stuff while complaining about the browning of America.  

11. There’s no such thing as bad press.

Remember how stoked the alt-right was when presidential candidate Hillary Clinton gave a speech about how awful they were? That’s because you can’t shame a movement bereft of morals and principles from jump. Also, because the alt-right’s unofficial motto is “there’s no such thing as bad press.”

“We should always be on the lookout for any opportunity to grab media attention,” Anglin affirms. “It’s all good. No matter what.”

12. Even the payment system is a ‘jokey’ homage to Hitler.

Feinberg found that neo-Nazi hacker Andrew Auernheimer, who also serves as systems administrator for the Daily Stormer, recently shared this information with a group of prospective contributors: “[O]kay basically, it works like this, you can write articles, if we dont like them you can put them on your own blog or whatever, if we accept them for publication we will pay you $14.88.”

1488 is a popular number among white supremacists and other garden-variety racists. Fourteen is a reference to the “14 words,” a racist slogan favored by white nationalists and the like. Two eights—the eighth letter of the alphabet—stands for HH, as in Heil Hitler. (During the 2016 presidential election, a PBS docu-special happened to catch an enthusiastic Trump supporter’s gigantic “88” hand tattoo.)

 

Related Stories

  • Racism Is a Highly Profitable Online Business
  • Late-Night Hosts Agree: After Roy Moore’s Defeat, ‘The Real Loser Here Is Donald Trump’
  • Blame the Media? The NY Times Coverage of Clinton v. Trump Was Lacking

Smartphone VR: Another 3D fad or the real deal?

This is the second in the three-part series looking at 3D imaging. In the first, we looked at why every time “3D” has failed to become totally mainstream. Today, 3D is back and trying to make a splash in mobile devices – this time in the form of “virtual reality.” Is VR — especially on smartphones — going to be a long-term success, or just another example of a 3D fad?

VR headsets like the Oculus Rift, HTC Vive, PlayStation VR and similar “tethered” products have made great strides in the last few years. So-called “mobile” VR headsets, like Samsung’s Gear VR and Google’s Daydream, have been even more successful (or at least more widespread). They’re basically head mounts for your smartphone with some optics thrown in, and lately it seems like everyone is making one. But will it stick?

Having just looked at the fanfare-and-failure cycles of 3D in general, should we really expect VR to really have staying power? Will it make a big splash and then fade just like its predecessors?

Wikipedia A Samsung VR conference in 2016

At heart, VR headsets are stereoscopic “3D” displays, with the all same potential problems and an added twist. It’s “virtual reality” because it lets you look around at, and interact with, this illusory three-dimensional world. That requires displaying the correct images to create a stereo effect, figuring out where the viewer is actually looking, and changing the image to match in real time. 

At the heart of it, VR headsets are stereoscopic 3D displays, with the same potential problems as every other example of the species.

If you move your head to look behind something, then that something had better move out of the way in your field of view, just as though it were really there. VR requires combining a convincing stereoscopic display with the sensors and graphics processing power needed to render and update your virtual view in a smooth, convincing manner. This is part of why I said that augmented reality is an even bigger challenge: if you’re going to, say, place an imaginary creature on a real tabletop, then not only do you have to render the creature correctly but keep it in the proper relationship to its real-world surroundings.

A dedicated, “tethered” VR headset can pull off all of its assigned tasks pretty well. Connecting it to a standalone computer, which could be anything from a barebones notebook to IBM’s Watson, means you can throw as much processing power as you can muster at problems. But the simple fact that it’s a product designed solely for the purpose of VR means that it has displays, optics, head-tracking systems, and so forth than could all be optimized to that goal. That’s not to say these products are going to be the perfect answer, but they’ve at least got a big leg up on the other option.

Editor’s Pick

That other option is “mobile” VR, which is typically a plastic mount with straps to go over your head and lenses over your eyes, and you supply the rest— namely a smartphone, which provides the displays, processing, and position sensing needed to create a virtual world. This is, in my not-so-humble opinion, a remarkably bad idea.

That “s” on “displays” wasn’t a typo. Yes, your phone only has the one display, but here it’s forced to play the role of two. Left-eye and right-eye images have to be shown simultaneously, and it’s up to the optics in the headset to deliver those correctly to the eyes. That means only half the pixels on the screen are available for each image, which leads to an aspect ratio and resolution charitably described as “less than optimal.”

A Galaxy S8 features a 5.8″ 2960 x 1440 OLED screen at 570 PPI. It’s a really nice smartphone display in anyone’s book, but close to a 2:1 aspect ratio. Splitting it in two in a VR headset means each eye gets an almost perfectly square display to use. That’s not good when we’d really like to have a wide field of view. The human eye uses something roughly equivalent to a 5:3 aspect ratio (of course, it’s also not a nice clean rectangle, but rather a sort of fuzzy oval).

There are two ways to fix this. You could use the full area of each half, displaying pre-distorted image on the square space and relying on the optics to stretch the image to the desired wider area— the same sort of trick used in anamorphic movies. However, If the distortion introduced into the image isn’t exactly what the optics were designed to “undo,” you’ve got problems. The other option is to just not use the full height of the display. If, on the S8, we have a 1440 x 1440 space for each image, but we want, say, a 16:9 view, we could just center a 1440 x 810 image in that space and it would be good to go, albeit at well under half the phone’s full resolution.

We could just demand a higher resolution in our phone screens. “But Bob,” I hear you protest, “didn’t you just tell us a few weeks ago that packing more pixels onto a phone was a bad idea?” Yes, I did. That article also generated some comments which took me to task for ignoring the needs of VR. But that was my point: smartphone display choices should ignore VR, at least as a top priority.

Smartphone display choices should ignore VR, at least as a top priority

Phone-based VR headsets represent the entry level in the VR market. They suffer from too many compromises already to be the choice for serious VR users, and paying for the extreme levels of screen resolution needed to address just that one issue makes no sense. As good as they are, smartphone graphics processing and position/orientation sensors just aren’t up the task of matching what you can do with a dedicated headset and tracking hardware.

Again, consider the Galaxy S8. It’s got an MSRP of more than $700—over $200 higher than Samsung’s own Odyssey VR/MR headset, which features dual 1440 x 1600 OLED displays coupled with a full array of cameras, motion and position sensors, integrated headphones, and adjustments for interpupillary distance. Putting a higher resolution display in a phone just for VR is like paying to put a Ferrari engine in a Toyota Prius. Sure, you’d get a lot more power, but the platform just isn’t meant to do what you want. You’re better off just buying the product meant for that use in the first place.

Graphics processing burden goes up literally geometrically with increased resolution, which isn’t the best idea for a battery-operated device.

We could even put a 4K display into a phone, and get a great resolution for each eye. The graphics processing burden goes up geometrically with increased resolution. Even if you build the added power into the processor, it just isn’t the best idea for a battery-powered device. Phone-based VR is best for what it was supposed to be: a quick and relatively economical means of introducing VR into the consumer market. But let’s not make the mistake of thinking it’s the right answer for the serious VR fanatic.

It’s not like dedicated VR headsets are perfect either. They still suffer from all of the other problems we’ve described earlier with stereoscopic displays, with the additional concern that motion tracking and its resulting view is never going to quite match what we see in real life. VR is getting a lot of attention in education circles, to name one interested market, but how long will that love affair last if kids get severe eye fatigue from using it?

24th Air Force

There’s a way around even that concern, though. All we need is a display that can produce a real three-dimensional image, one that actually has the appearance of solid objects occupying space, and without any glasses, headsets, head tracking, or any of those burdens. We’ve even already seen examples of this; surely everyone by now has seen a hologram. You’ve probably even got a few in your wallet, on your credit cards.

So when can we replace our old-fashioned flat displays, and free us from all this stereoscopic nonsense?Stay tuned.

An error of reasoning on Bitcoin

On 22nd May 2010, Laszlo Hanyec bought a pizza for 10,000 bitcoins. This Twitter page shows the current USD value of that pizza, which is $141 million today. It is nearly impossible to hear that story and not regret not having bought 10,000 bitcoins seven-and-a-half years ago for the price of a pizza, and be a multi-millionaire today. So why didn’t we?

Bitcoins have no firm link to anything of real value, they aren’t supported by gold, or by some brick-and-mortar assets, or by a government. The value of bitcoins is based purely on the stupidity and greed of the people buying it. So we deemed ourselves somewhat more intelligent and decided not to invest in bitcoins.

Our error of reasoning was the following: There are only limited quantities of gold, of brick-and-mortar assets, or of government assets. Human stupidity and greed is in near infinite supply. Thus a currency based on stupidity and greed can rise much, much higher than a currency based on real assets.

Please do not confuse this analysis with a recommendation to buy bitcoins today. You would lose your shirt. Like in any Ponzi scheme the main losers are always the ones investing last.

How E-commerce Sites can Increase Sales with Pinterest?

Pinterest is basically a platform for users to visually share and discover exciting new interests by posting, or “pinning”, as it’s popularly called, videos or images to their own boards or that of others.

If you’re looking to drive more traffic and sales to your e-commerce site, Pinterest is one of the social networks you must add to your marketing arsenal.

People like to pin products on Pinterest and plan purchases. If used properly, your e-commerce site should be able to generate a high revenue with Pinterest.

Let’s see some of the best ways to harness the full potential of this social media platform:

1. Pick Your Pins Carefully

Quality over quantity – that’s one rule every business owner is aware of. And if you’re planning to boost your e-commerce sales using Pinterest, this rule applies even more to you.
Of course, volume is important but only to keep things consistent. Pin all your new items, engage users regularly, and keep things fresh. But, as Pinterest is an entirely visual medium, you need to be aware of which images attract the attention of the users the most.
There are two kinds of people you will come across on Pinterest, those who are ready to purchase from you right away and those who need some time.
You need to pin content that both these sets of audience will want to interact with.
As per the Yotpo guide to sell on Pinterest, brand images without faces receive 23% more sales than those with faces. So, your knowledge of product photography is definitely going to pay off here.
Other things that add to the effectiveness of yours pins include:
  • Color plays a key role, with a rich color scheme paying off more dividends than a single color pin. People also seem to prefer red images to blue ones.
  • Always consult analytics, like Pinterest business tools. This will help you figure out what works best for your target audience.
  • Your product pictures should have a minimum width of 600 pixels, with the ideal size being 736 pixels wide. Images that are taller will get Repinned more often.

2.Enable rich pins:

When you enable rich pins on your e-commerce website, some extra information like the real-time price and description of the product will appear on the pin. This can increase traffic and sales. So ensure you enable rich pins on your website.
You can also try using buyable pins. This will display the price of the product on Pinterest. People will also be able to directly buy the product on Pinterest like in this pin.

3. Create a Pinterest-Friendly Ambience on Your Website

Simplify the process of pinning images and articles from your business site. You can do so by adding a button to your website so that the process becomes faster. Because the higher the number of pins you get, the greater will be the exposure to your business.
It would be even better if you have another person pinning your product or web page as it raises your credibility factor even more than if it were you endorsing them by yourself.

4. Concentrate your efforts on promoting your brand lifestyle

Pinterest deals with more than just the sale of products; you can use the platform to influence your customer base and make them see how your brand integrates with their world.
Instead of creating boards consisting of your own products, it is a good idea to establish boards around brand values and lifestyle themes. A themed board should not be limited to your own goods; try to include other pins as well.
You need to understand that your buyers are coming to Pinterest for information and inspiration, rather than just buying stuff. Achieve the first objective, and the second one will follow on its own. And nothing works better in this regard than staying true to your brand.
If your company manufactures a unique sort of product, integrate your original pins with related pins. Basically, you will be weaving a story for your customers, with the moral being that your products are unique and something they need in their lives.

5. Use popular trends to your advantage

Being unique is good, but sometimes you just need to go with the flow. In the case of Pinterest, this means following the popular trends.
For example, seasonal content carries as much weight online as it does in traditional shops. Any pin that corresponds to major seasons, holidays, and events is bound to draw a crowd. All you need to do is understand your audience, and stay true to their interests.

6. Host contests to increase engagement

Raising engagement is always easier when you host a contest on Pinterest. However, you need to study the advertising guidelines for the platform carefully and never engage in spammy actions or any sort of content that is frowned upon.

7. Never underestimate the power of influencers:

Work with bloggers and influencers on Pinterest to improve the popularity of your products on the platform. When a Guest Pinner creates a board on your account, it draws a huge crowd. However, make sure you work with Pinterest users who cater to the same client as your business.

8. Draw the attention of the community

Bigger is better – at least when it comes the crowd size you involve to help raise engagement levels.
Make sure anybody can participate in the process. Ask customers to share pictures of themselves with your items. This is a great way to find accessible images of your photos worn by actual people.

9. Learn when to draw the line

Never pin too much on the same day. It’s understandable that you want your boards to be completely developed, but bombarding your customers with a barrage of pins is not the solution. After all, who wants to scroll through large numbers of your pins showcasing what is basically the same product in a different color.
Follow the points given above to create a professional level Pinterest strategy that excels at generating traffic, driving engagement, and above all, boosting your online sales.

Want to Learn Digital Marketing?