Politics and information warfare

Information warfare is no doubted a strategy that a weaker adversary would use to manipulate a stronger adversary. In the case of the politics in America, there is always the threat of Russian interference. There have been claims that Russia is using information warfare against the United States to interfere in the elections. Information warfare is a wide-open playing field consisting of anything to do with information. No one is safe from information warfare, you might think that a meme is funny when you read it, and it is, but that same meme could be a piece of information warfare targeted at a more gullible person. Information warfare is used heavily in social networks so being alert while reading things that are spreading around is very important.

Things with respect to the issue of social network manipulation with information warfare could evolve in a number of ways. One might someday see penalties for posting manipulating data on a social network site like community service. A policy to address this kind of issue is difficult to address because people are entitled to free speech and that is the main ingredient of information warfare. The public can get educated on this issue by following this one guideline, common sense. The far left and the far right of political parties are first in line to revolt on certain issues which makes great entertainment for the rest of us, but they lack common sense when it comes to social networking aspects. For example, lately there was a picture of President Trump coloring the American flag wrong. Now some people are saying that he does not even know what the flag looks like. However, the truth about that meme was that he was copying off the little girl next to him. It is not a big issue; it was just something funny that we can all appreciate the humor in.

My reaction to this news story was that it was interesting to read. It was an interview of a professor at a university who is suggesting that Russia meddling with the election is really a form of information warfare. He suggests that Russia floods social media with manipulating information leading to misinformed voters. I agree with him, there are many people misinformed about politics because of this kind of information warfare and like I said it all boils down to common sense.

source: https://www.npr.org/2018/07/21/631164914/meddling-vs-information-warfare

Information warfare the heartbreaker

The heartbreaker was an information warfare attack made against the Israeli military where Hamas hackers would set up profiles on social media and entice Israeli military personnel with sex. It started out with enticing them with sex, then the hackers would try to get the soldiers to download applications on their smart phones that were really spyware, and then they would use that spyware to extract sensitive data from the soldiers phones. When Google was informed of this spyware, they removed the applications from the store. This is interesting because now I know that some applications on the Google store could potentially be spyware for military operations. There are also so many hackers in Pakistan that they have made a law for preventing hacking. If a person is killed because of this hacking, the hacker is punished by execution.

I have learned that you cannot trust any old application on the market these days. A solution to not falling victim to spyware that is on the market is to wait a while until you download the app. If you wait a while before downloading the app there is a chance that Google or the app store will remove the app before you even decide to download it. Another thing that I learned is that there are some very skilled hackers in Pakistan. According to the article that I read Pakistan has one of the largest hacker communities in the world. If you are trying to make some hacking software, you might want to hire a pakistanian.

The evolution of this kind of information warfare can result in almost anything known to humankind. They were using social engineering and the solicitation of sex to lure Israeli soldiers into a trap. The future of that can be something like actually spoofing soldiers friends whole social network profiles and luring them in while the soldier thinks that it is their friend. To prevent this kind of attack the first thing to take into account is that you should never respond to the solicitation of sex. When someone is soliciting sex to you that is a red flag right there, unless you are in Las Vegas. Computer professionals have already addressed this kind of issue by figuring out about it and reporting it to Google and the app store in which the spyware apps have been removed.

source: http://www.strategypage.com/htmw/htiw/articles/20180721.aspx

Quitting Cigarettes with Vaping

I have smoked cigarettes for 25 years. For the past about 4 years I have been saying i’m going to quit but I could never really do it. I smoked about a pack to a pack and a half a day.  About 10 years ago I was at a kiosk in the mall and there were electronic cigarettes there and my brother and I both purchased them. We used them and then when they were done we went right back to cigarettes.  So about a 2 months ago i seen that they had something called Vuse Vibe so i bought one. It kept me from smoking the whole time that i was vaping with it. It was rather expensive so i decided to go out to a vaping store and get a vaping unit and e-juices to go along with it.

It has been almost 2 months and I have smoked about 5 packs of cigarettes in that 2 months (usually when i’m out drinking beer).  Vaping has really made it possible for me to quit smoking.  I have read a report that people who vape have all most no cancer causing carcinogens in their system compared to people that smoke.  I’m getting old so taking care of my health is becoming more and more of a priority.  Just wanted to put it out there that vaping is a reasonable route to quit smoking. Not just for me, i’ve seen other people who have quit smoking by vaping. Right now I have a kangertech toptank evod system and 1 coil costs 1.50 and i spend about 14 dollars on juice a week. I could probably get those numbers down a bit more but i don’t plan on vaping for the rest of my life.  Eventually when I get enough time without smoking and only vaping then i’m going to cut down on vaping.

So I just wanted to put that out there that vaping IS an alternative to smoking and it has worked very well for me and plenty of other people. It is way cheaper than smoking and a lot healthier for you as well. If you vape to stop smoking I say keep up the good work.  A lot of people joke about people who vape but it is really a good way to quit cigarettes. Thank you for reading I hope that this article may help another smoker who is really addicted to nicotine and is helpless over the addiction how I once was.

Having a Smartphone in Class

Whether you think it is a good idea or a bad idea students are going to have cell phones in class for as long as cell phones exist. To be honest every time I go to class I put my cell phones sound settings on silent and I don’t use my cellphone unless instructed by the professor to do so. I think having a smart phone in class is a good idea for those occasions where the professor tells the class to “Google” something. Also, smart phones are an important device for emergency use so I personally cannot see any type of rule to abolish use of smart phones in class. But there are the occasions where students have their ringers on and interrupt class in the middle of a lecture with a very loud ringing of their smart phone. I have seen a teacher get really mad at a student for his phone ringing in class when it was even past the end of class time.

All in all I think that having a smart phone in class is a good idea. At the end of class you can get contacts of classmates and make new friends, use the smart phone to “Google” something if the teacher permits it, and most importantly in the case of an emergency you have your smart phone. All that I can really come up with are positive reasons to having a smart phone in class compared to the very minor negative effects of smart phones in class which are usually only committed by people who aren’t serious about being a student in the first place.

Everyone has a smart phone these days and they are a very usefull source of information. Students need information more than anyone these days to stay on top of their game. Whether it be reviewing classwork over the net to getting a new contact, to even emergency use, smart phones are going to be a part of our everyday lives for a very long time. Thank you for reading 🙂


Naked Man Space Suit

So, I have always wondered how people will be able to expand into space and colonize other planets. It occurred to me that we will need to be able to enter outer space without space suits. Yep that’s it!! We will have to find some way to shield our skin and all our holes(nostrils, mouth, etc….) so that if we were in outer space, or some other planets surface we will survive without almost dying instantly.

Lately I have heard of “water bears” or (tardigrades) and supposedly they can withstand temperatures ranging from -272 deg C to +150 deg C, they can be without water for a period of 10 years, and they are extremely resistant to radiation. Now if you ask me the scientists should have jumped on that discovery since they first made it and figured out some way to blend that organisms homeostatic properties with that of the human being.  Its always been a dream of mine to be able to live in space without a spacesuit and maybe these water bears are the key.

Not only does copypasteearth think that eventually there will be an actual earth for each and every person, they love to think about floating through space naked haha. We have come a long way into exploration of space and personally I think that if we have any chance at all of colonizing Mars we will definitely need a Naked Man Space Suit. There would maybe have to be some biological engineering going on between the tardigrades and the humans so that we can have the same resistance in space that they do. Our nostrils, mouth, anus, and other openings would have to have some sort of transparency to the genetic mutation so we can still use them. If NASA or SpaceX is working on something like this my hats off to them. Probably not in my life time but I forsee the naked man spacesuit in the future of mankind. Thank you for reading 😉

How to work with JSON (JavaScript Object Notation)

In this article I will write about working with JSON. JSON stands for JavaScript Object Notation. It is a great way to send objects back and forth through client-server and also to create API’s that return JSON when information is requested. Lets look at an object in javascript.

var object = {
self : {name:"customer1",job:"cashier"},
todo :"jsonobject",
names : [{employ:"work",happy:true,work:"program"},

This object, called object has a couple variables and an array names. Now lets see this object in JSON format.


in javascript to turn an object into JSON you use the JSON.Stringify method


And to turn JSON into and Object you use JSON.Parse method

var object = JSON.parse(json);

Now to work with JSON in php you can make objects in php and then use json_encode to turn the object into JSON like this

<?php $myObj = new \stdClass();
$myObj->name = "John";
$myObj->age = 30;
$myObj->city = "New York";
$myArray = array();
for($i = 0;$i < 10;$i++){ 
$myArray[$i] ="hello world".$i; 
$myObj->hello = $myArray;
$myJSON = json_encode($myObj);
echo $myJSON;

Now the variable $myJSON will look like this after you encode it

"city":"New York",
"hello":["hello world0","hello world1",
"hello world2","hello world3","hello world4",
"hello world5","hello world6","hello world7",
"hello world8","hello world9"]}

and if you are sending a JSON object to a php script using JSON.stringify you can grab the object in php with something like this using json-decode

$obj = json_decode($_POST["x"], false);

And that is pretty much the basics for using JSON in javascript and php. One note i was looking around and it appears that you are not supposed to send functions through JSON but there is a way that is not consistent so it shouldnt actually be done, as far as i know. I hope you enjoyed this article. Untill next time 🙂

A Cookie Helper object in JavaScript

This example is a little helper class to make and erase cookies in javascript. I will first post the Cookies.js script that will create, read, and erase cookies from your browser.


author: Copypasteearth 7/17/2017

function COOKIE () {

this.createCookie = function (name,value,days) {
if (days) {
var date = new Date();
var expires = "; expires="+date.toGMTString();
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
this.readCookie = function (name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
return null;
this.eraseCookie = function(name) {

Then you just include this javascript in a webpage and create the object and then you can call the different functions as you will. Here is an example HTML file using it. This file just pretty much tests out the Cookies.js file.


<!DOCTYPE html>

<html lang="en">
<meta charset="utf-8" />


<script src="Cookies.js"></script>
<h1>this is a test of Cookies</h1>
<h2 id = "cook"></h2>
<input id = "cookiename" type="text" placeholder="cookie name..."></input>
<input id = "cookievalue" type="text" placeholder="cookie value..."></input>
<input id = "days" type = "number" placeholder="number of days"></input>
<button onclick="buttonClick()">Create Cookie</button>
<input id = "getcookie" placeholder="cookie name"></input>
<button onclick="getCookie()">Read Cookie</button>
<input id = "erase" placeholder="cookie name"></input>
<button onclick="deleteCookie()">Erase Cookie</button>
<p id= "paragraph"></p>
var Cookie = new COOKIE();
function buttonClick(){
var name = document.getElementById("cookiename").value;
var value = document.getElementById("cookievalue").value;
var days = document.getElementById("days").value;
document.getElementById("paragraph").innerText = "Cookie Created: " + name + "=" + value + ";" + days;
function getCookie(){
var name = document.getElementById("getcookie").value;
var cookie = Cookie.readCookie(name);
document.getElementById("paragraph").innerText = "Cookie Read: " + name + "=" + cookie;
function deleteCookie(){
var name = document.getElementById("erase").value;
document.getElementById("paragraph").innerText = "Cookie Erased: " + name;


and that’s pretty much it for this article. Maybe you can get some use out of this. I hope you enjoyed this article.

QuickSort sorting algorithm in java with Generics that implement Comparable

In this article I’m going to touch on the sorting algorithm called Quicksort. Its worst case time complexity is O(n^2) and its best case time complexity is O(nlogn). Firstly the method we are going to make is going to take a generic array and those elements should implement the Comparable interface so they can be sorted. Take this Circle class for example. When you implement the Comparable interface you specify in the compareTomethod what makes a circle greater than, less than, or equal to another circle. In this example we return whether the radius of the circle is bigger or smaller than the circle it is being compared to.


 * author: copypasteearth
 * date: 7/17/2019
public class Circle implements Comparable<Circle> {
    public int xValue;
    public int yValue;
    public int radius;

public int compareTo(Circle o) {
return (this.radius - o.radius);
public String toString() {
return "x: " + xValue + " ---y: " + yValue + " ---radius: " + radius;

Next we create the Quicksort class that has the method quicksort and a main method to test out the quicksort method. The quicksort method is a recursive method and the base case is if(a < b). The method goes through the generic array and sorts the elements based on what the compareTo method tells it. Here is the Quicksort class.


 * author: copypasteearth
 * date: 7/17/2019
import java.util.Random;
public class QuickSort<T extends Comparable<T>> {

public static <T extends Comparable<T>> void quicksort(T[] array, int a, int b) {
if (a < b) {
int i = a, j = b;
T x = array[(i + j) / 2];

do {
while (array[i].compareTo(x) < 0) i++;
while (x.compareTo(array[j]) < 0) j--;

if ( i <= j) {
T tmp = array[i];
array[i] = array[j];
array[j] = tmp;

} while (i <= j);

quicksort(array, a, j);
quicksort(array, i, b);

public static void main(String[] args) {
Integer[] integerarray = {50, 55, 11, 89, 90, 1, 20, 11};
QuickSort<Integer> qsinteger = new QuickSort<Integer>();
qsinteger.quicksort(integerarray, 0, integerarray.length-1);
for(Integer i: integerarray) {
String[] stringarray = {"bird","moth","apple","zebra","banana","desert","pig"};
QuickSort<String> qsstring = new QuickSort<String>();
qsstring.quicksort(stringarray, 0, stringarray.length-1);
for(String i: stringarray) {
Circle[] circlearray = new Circle[20];
Random rand = new Random();
for (int index = 0; index < 20; index++)
circlearray[index] = new Circle();
circlearray[index].xValue = Math.abs(rand.nextInt()) % 100;
circlearray[index].yValue = Math.abs(rand.nextInt()) % 100;
circlearray[index].radius = Math.abs(rand.nextInt()) % 100;

System.out.println("Circle Array Unsorted....");
for(int i = 0;i < 20;i++){

QuickSort<Circle> qscircle = new QuickSort<Circle>();
qscircle.quicksort(circlearray, 0, circlearray.length-1);
System.out.println("Circle Array Sorted");
for(Circle i: circlearray) {



If you run this code you will see the results from the main method. First it sorts an Integer array and then a String array. Then it makes a Circle array and prints them out unsorted then it sorts them and then prints them out again sorted. That pretty much does it for this example on quicksorting. In the future I will probably go through the rest of the sorting algorithms. Hope you enjoyed it.

Donate or Subscribe to support Copypasteearth!!!!!

Your Donation

Obesity in the World Today

Obesity is a growing problem in today’s world.  You might ask what are the reasons that today’s people are more likely to be obese. People try to cut carbohydrates, sugar, fat, anything to live a healthier life these days and they feel even more pressured to do so because of the increasing epidemic of obesity.  There are a lot of factors that can contribute to a person being obese which are diet and exercise.  Through the right diet and exercise a person will not even have to worry about obesity.

Being on a diet is important because everyone is on one.  If you weren’t on a diet you would be dead from starvation.  Everyone is different having to do with genetics and how they are affected by the environment. Culture is another factor that has a lot to do with diet.  Some people cannot eat sugar and are diabetics and sugar intake has increased at an order of magnitude or even higher since the 80’s when I was a kid.  Everything has sugar in it these days and is probably the main culprit in the obesity craze.  Regulating sugar intake is probably important so you don’t eventually become diabetic.  Some people say that cutting carbohydrates is a good way to battle obesity.  Why are companies packing their foods with sugar?  Because sugar tastes good and it is an inborn preference to love the sweet mother’s milk when a child is just born.  Whether companies took advantage of this innate preference is besides the point that people really need to watch their diets so that they do not run into health problems like obesity.  Some people can eat all of the junk food they want and not gain a pound.  I know this because I am one of those people.  But since I’ve been getting older I have started to watch my diet because cholesterol is really building up inside me.  So everyone is on a diet and the point is that you have to be aware of your diet and change it so you can stay healthy.

Exercise these days seems to be a thing of the past.  When I was young back in the 1980’s I was outside at the parks every day running around, wading through the creek, and building tree forts.  These days the kids want to not even move and look at their tablets and smart devices.  You probably don’t burn a lot of calories when you don’t even move.  Exercise is important for everyday functioning.  I recently read an article that said your memory improves when you exercise because it enlarges your hippocampus, the area of your brain that is used for memory.  So exercise enlarges your brain and burns calories.  Calories left over at the end of the day turn to fat when you sleep.  I cannot urge it enough these days that the kids need to exercise in order to stay healthy.  I always take my nieces to the park so they can run around and play with other kids and get out some of the energy that they have from calories in the food they eat.  I used to run 5 miles at once, once a week and I am going to try to start it up again to lower my cholesterol.  Exercising will lead to having a faster metabolism.  The faster your metabolism the quicker you will burn calories and fat.  If you have a fast metabolism you would never even have to worry about obesity, ever.

To conclude I’d like to again stress the effects of diet and exercise on the disease of obesity that has struck our country in the past couple decades.  As far as diet is concerned watch how much sugar, carbohydrates, fats, and calories you take in.  And for exercise, make sure you go out regularly and stay active so you can burn all those calories and speed up your metabolism.  Being healthy requires a proper diet and exercise regimen to stay clear of obesity.

%d bloggers like this: