PostsCommentsPayoutsghasemkiani (69)in #programming • 7 years agoMerging PDF Files with JavaMerging 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…ghasemkiani (69)in #nowruz • 7 years agoHappy Iranian New YearToday 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…ghasemkiani (69)in #news • 7 years agoStephen Hawking, one of the greatest physicists of our time, dies at 76Stephen Hawking’s family released a statement today, confirming his death at his home in England. Source: Wikimedia , originally from NASA . Public domain.…ghasemkiani (69)in #javascript • 7 years agoUsing Scoped NPM PackagesNPM 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…ghasemkiani (69)in #javascript • 7 years agoOptimistic Typing in NashornI 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…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Reflect.applyThe 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…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Reflect.constructThe 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:…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: ReflectReflect 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…ghasemkiani (69)in #medicine • 7 years agoNew Horizons Broke the Record of the “Pale Blue Dot” PictureThe 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.…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Object.freeze and Object.isFrozenIn 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…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Object.seal and Object.isSealedIn 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…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Object.preventExtensions and Object.isExtensibleIn 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…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Object.prototype.hasOwnPropertyObjects 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…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Object.isYou 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…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Object.keys, Object.values, and Object.entriesWhen 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…ghasemkiani (69)in #motivation • 7 years agoWhat 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…ghasemkiani (69)in #steemit • 7 years agoSteemit Reached 700,000 MembersIn 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…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Object.getPrototypeOf and Object.setPrototypeOfThese 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__…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Object.assignThe 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…ghasemkiani (69)in #javascript • 7 years agoJavaScript Basics: Object.createIn 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