Login
Discover
Waves
Decks
Plus
Login
Signup
ghasemkiani
@ghasemkiani
69
Followers
9900
Following
6885
Resource Credits
Available
Used
Created
August 10, 2016
RSS Feed
Subscribe
Posts
Blog
Posts
Comments
Communities
Wallet
ghasemkiani
programming
2018-04-03 10:17
Merging PDF Files with Java
Merging PDF files is a common task that we usually need to do in our daily activities. Of course, it is possible and fairly easy to merge PDF files in various applications, including Adobe Acrobat or other
$ 4.873
108
155
ghasemkiani
nowruz
2018-03-20 16:15
Happy Iranian New Year
Today 2018-03-20, at exactly 16:15:28 GMT (19:45:28 IRST), the Earth passes the point in its orbit where the ecliptic longitude of the Sun is 0°. It is the so-called vernal equinox, or the beginning of
$ 5.597
60
97
ghasemkiani
news
2018-03-14 08:12
Stephen Hawking, one of the greatest physicists of our time, dies at 76
Stephen Hawking’s family released a statement today, confirming his death at his home in England. Source: Wikimedia, originally from NASA. Public domain. This is a tragic event, since he was a great scientist
$ 8.273
57
58
ghasemkiani
javascript
2018-02-26 12:38
Using Scoped NPM Packages
NPM is the most widely used package manager for NodeJS. It has more than 600,000 packages with hundreds of millions of downloads per day. NodeJS uses directory hierarchy for finding modules. Specifically,
$ 8.608
46
62
ghasemkiani
javascript
2018-02-21 15:44
Optimistic Typing in Nashorn
I have a bunch of programs written in JavaScript for Nashorn, the fast JavaScript engine shipped with JDK 8 and later. Since I had been working on a NodeJS project for the last couple of months, I hadn't
$ 11.976
37
41
ghasemkiani
javascript
2018-02-16 03:08
JavaScript Basics: Reflect.apply
The method Reflect.apply is just a better and more meaningful way to do Function.prototype.apply. In other words, it allows you to call the given function using a specified context (this argument) on an
$ 6.848
43
49
ghasemkiani
javascript
2018-02-16 03:02
JavaScript Basics: Reflect.construct
The method Reflect.construct helps construct a new instance from a constructor function given an array of arguments. It has a functionality similar to the new operator: function Employee (firstname, lastname)
$ 6.250
30
28
ghasemkiani
javascript
2018-02-14 19:40
JavaScript Basics: Reflect
Reflect is a global object in ES6 and later that provides the reflection API for JavaScript. Most strongly typed languages, such as Java, provide a reflection API which you can use to inspect and fine-tune
$ 7.368
31
37
ghasemkiani
medicine
2018-02-12 07:50
New Horizons Broke the Record of the “Pale Blue Dot” Picture
The New Horizons probe was launched in 2006 in a mission to explore Pluto. First, it had a flyby of Jupiter and used this massive planet’s gravitational force to boost its speed. Then, in 2015, it arrived
$ 8.190
36
41
ghasemkiani
javascript
2018-02-10 13:21
JavaScript Basics: Object.freeze and Object.isFrozen
In the previous posts, I discussed about two levels of object protection: Object.preventExtensions and Object.seal. The last level of protection is Object.freeze, which also makes all the properties
$ 7.997
32
48
ghasemkiani
javascript
2018-02-08 09:31
JavaScript Basics: Object.seal and Object.isSealed
In the previous post, I wrote about Object.preventExtensions. That functions prevents the addition of new properties to an object. However, it does not prevent you from configuring, mutating, or even deleting
$ 7.714
30
35
ghasemkiani
javascript
2018-02-08 04:57
JavaScript Basics: Object.preventExtensions and Object.isExtensible
In JavaScript, an object is extensible by default. This means that new properties can be added to the object. In some circumstances, you my want to prevent extensions to the object. To this end, you can
$ 7.644
25
32
ghasemkiani
javascript
2018-02-06 06:42
JavaScript Basics: Object.prototype.hasOwnProperty
Objects in JavaScript have not only their own properties, but also the properties that are on the objects in their prototype chain. Object.keys gives a collection of the object's own properties, but the
$ 18.778
33
60
ghasemkiani
javascript
2018-02-04 09:41
JavaScript Basics: Object.is
You may have heard of the book JavaScript: The Good Parts (Yahoo Press, December 2008) by Douglas Crockford. The name, obviously, implies that JavaScript has bad parts, too. The equality operator == is
$ 7.982
39
53
ghasemkiani
javascript
2018-02-02 06:08
JavaScript Basics: Object.keys, Object.values, and Object.entries
When you call the function Object.keys on an object, it returns an array containing the names of the given object's own, enumerable properties. Contrary to the for...in loop, the inherited properties are
$ 7.254
38
50
ghasemkiani
motivation
2018-01-31 08:30
What Is Success and How Do You Define It?
When I was a kid, there was one subject that was repeatedly given to us for essay writing class: “Which one is better, knowledge or wealth?” It was a real cliché and the essays students wrote were also
$ 7.012
49
72
ghasemkiani
steemit
2018-01-30 17:21
Steemit Reached 700,000 Members
In a few minutes, Steemit membership will surpass 700,000 members. More than 21% of these members joined Steemit during the last month. The growth rate has evidently accelerated and it will even increase
$ 8.886
38
47
ghasemkiani
javascript
2018-01-29 20:31
JavaScript Basics: Object.getPrototypeOf and Object.setPrototypeOf
These functions, as is evident from their names, enable you to get and set the prototype of an object. In light of the availability of these functions, the use of the __proto__ property is generally
$ 7.244
27
33
ghasemkiani
javascript
2018-01-29 20:21
JavaScript Basics: Object.assign
The function Object.assign is used to assign the values of “enumerable” and “own” properties from one or more source objects to a target object (first argument). If the properties have getters or setters,
$ 7.317
24
12
ghasemkiani
javascript
2018-01-29 20:10
JavaScript Basics: Object.create
In an earlier post (Object Creation and Manipulation Functions in JavaScript), I listed some functions that are available on the Object constructor. Here is the list once again: create assign defineProperty
$ 7.409
25
17