It mostly depends on your server-side.

My own server-side sends 4 bytes firstly (as an int as the string bytes length) and then the whole string.

The "readIntFrom(stream)" function reads only 4 bytes exactly, to know in advance how many bytes to read (as a string) in the "readStringFrom(stream,withSize)" function.

If your server acts differently, you must find a creative way to react to the exact data sent from it (ex: if you already know the bytes length sent from the server, you can remove the "readIntFrom(stream)" function and pass the "readStringFrom(stream, withSize)" function.

Otherwise, you can set up your server to send:

(bytesLength: UInt32 as "4" bytes),

and then (string: String as "bytesLength" bytes).

Israeli elections have been taking place for 4 times, and expecting the fifth. For the fourth time, the elections have not formed any stable government nor have half of the population stopped wanting Bibi to retire.

“The Israeli Jewish Democracy” seems very attractive, it has the J word and Democracy in one phrase. But is it logically legit? Democracy, by Wikipedia:

Wikipedia continues later on defining democracy:

iCloud Drive usually starts syncing immediately after you insert a file in it, the issue starts whenever you’re working (photo/video editing, programming..) on a file or folder and iCloud keeps uploading the file on and on. Or if intend to compress a folder and it has undownloaded media.

Well, the simple solve for that is to add .nosync extension to any file or folder you wish to pause syncing.

However, managing files that has that specific extension is pretty hard, and you can easily forget about it. …

Photo by Florian Krumm on Unsplash

Got a Jar file but struggling to execute it? Learn how to run a Jar file in Ubuntu and other Linux distributions.


Make sure your development Java version isn’t higher than the one you’re installing.

$ sudo apt-get update$ sudo apt-get upgrade$ sudo apt-get install default-jre

Install MySQL:

Make sure your development MySQL version isn’t higher than the one you’re installing.

$ sudo apt-get install mysql-server$ sudo mysql_secure_installation

The second line is for configuring your MySQL server, you’ll need to choose a password.

Migrate MySQL database between instances (from local instance to virtual “remote” instance)

If you have an existing MySQL database and need to migrate in addition to your Jar…

Pixabay pictures.

There are plenty of reasons why we’d create a virtual instance for publishing a site, the first and most compelling, is that your site could be online the whole time, even if anything happened to your equipment, the second good reason is that you could publish your webpages to a domain you own.

Step 7 describes how to link your domain to your virtual instance server.

Things you’ll need to get this done:

  1. IntelliJ Ultimate. (JetBrains gives a free trial for 1 month)
  2. Apache Tomcat 8. (If you’re using this for server needs. You could use any later version)
  3. Google Cloud Platform account. …

The Palestinian-Israeli conflict goes on, Gaza is controlled and jailed by the Israeli government for 13 years. Gazan citizens cannot go out of the city borders, or bring anything or anyone in, and as you might have thought, they lack resources of energy, food, and water, or in a modern way to explain it “NO HUMAN RIGHTS IN GAZA”.

Israel started bombing Gaza when Gazans started protesting on the borders, protesting for their own lives, their minimal human rights.

It all started when Theodor Herzl formed the Zionist Organization and promoted Jewish immigration to Palestine in an effort to form…

Today is the day of commemoration for the approximately six million Jews who were perished during the Holocaust. Today, a memorial ceremony is held at Yad Vashem, six memorial torches is being torched for the six million Jewish victims.

Starting off with the fact that Israel excludes the rest part of victims, which were recorded as about 17 million victims, who were considered subhuman (Untermenschen).

Non-Jewish victims included Slavs, Romani, French, Belgian, Dutch, Greeks, Italians, LGBT people, the mentally or physically disabled, Soviet POWs, Roman Catholics, Protestants, Orthodox Christians, Jehovah’s Witnesses, People of color, Muslims, Spanish Republicans, Freemasons, leftists, communists…

Palestinian Israeli confrontations showing the differences between the two powers. -Image from Alahednews.

How is a terrorist determined? Could a terrorist be an IDF soldier? or is it only the Arabs who could be terrorists in a Jewish country?

For more than 70 years, the Israeli government has been demolishing Palestinian homes, arresting Palestinian activists against occupation and racism, building more and more settlements in the West Bank every single day, and yet, the only terrorist proposed is the Palestinian side.

But what about Israel? hasn’t it all started when Jewish families rushed for making Aliyah to Israel while Arab families had to leave their homes?

From an Israeli eye, Palestinians are terrorist…

A caricature of Prime Minister Benjamin Netanyahu and US President Donald Trump published in the New York Times’ international edition on April 25, 2019, which the paper later acknowledged “included anti-Semitic tropes.”

On April 25 New York Times’ published a caricature in the paper’s international edition showed Netanyahu as a guide dog wearing a Star of David on his collar leading a blind US President Donald Trump seen wearing a skullcap.

As an Israeli citizen I wasn’t shocked when the cartoon crossed through my feed, but what was more shocking was the dissimilarity between contrasting opinions. The cartoon itself for me and many others (Jews or not) was not offending at all, in fact it debates a very important issue. Well, others might consider this issue a “blessing”.

The word Anti-Semitic comes…

Pierre Janineh

Mobile Developer, Just a Christian-Atheist-Palestinian-Israeli-Arab-Gay kinda guy, just the type you could meet anytime.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store