May, 2015

article thumbnail

Back-to-Basics Weekend Reading - Survey of Local Algorithms

All Things Distributed

As we know the run time of most algorithms increases when the input set increases in size. There is one noticeable exception: there is a class of distributed algorithms, dubbed local algorithms, that run in constant time, independently of the size of the network. Being highly scalable and fault tolerant, such algorithms are ideal in the operation of large-scale distributed systems.

article thumbnail

Interpreter, Compiler, JIT

Nick Desaulniers

Interpreters and compilers are interesting programs, themselves used to run or translate other programs, respectively. Those other programs that might be interpreted might be languages like JavaScript, Ruby, Python, PHP, and Perl. The other programs that might be compiled are C, C++, and to some extent Java and C#. Taking the time to do translation to native machine code ahead of time can result in better performance at runtime, but an interpreter can get to work right away without spending any

C++ 73
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Highlight Text In A String Using JavaScript And AngularJS

The Polyglot Developer

Have you ever wanted to highlight text in a string on a web page using AngularJS? If your answer was no, don’t disregard, because you may one day need to. The good thing is this is not very hard to accomplish. There are many ways to do this using JavaScript, but we’re only going to examine one of those methods. Using AngularJS and a few regular expressions (RegEx) with JavaScript, you can find text in a string and then apply your own customizations.

article thumbnail

Interpreter Compiler JIT

O'Reilly Software

Interpreters and compilers are interesting programs, themselves used to run or translate other programs, respectively. Those other programs that might be interpreted might be languages like JavaScript, Ruby, Python, PHP, and Perl. The other programs that might be compiled are C, C++, and to some extent Java and C#. Taking the time to do translation to native machine code ahead of time can result in better performance at runtime, but an interpreter can get to work right away without spending any

C++ 52
article thumbnail

Choosing performance

Tim Kadlec

Facebook just announced a new feature they’re calling “Instant Articles”. Facebook is positioning this as a way for publishers to have their stories displayed, within Facebook, “instantly”: Mobile web articles can take an average of eight seconds to load, by far one of the slowest parts of the Facebook app. Instant Articles provides a faster and richer reading experience for people in News Feed.

article thumbnail

Would Uber be so intriguing if we thought of it as the next American Airlines?

The Agile Manager

Suppose for a minute that self-driving cars become commercially available. Obviously, a lot has to happen before we get to that point, but suppose that it does. What happens to the economics of ground transportation? Today, cars are owned or leased by individuals (households) or fleet operators (delivery firms or rental car companies). Auto manufacturers sell to dealers, who sell to individuals and firms; finance companies from universal banks to specialist lenders finance the trade.

article thumbnail

The AWS Pop-up Loft opens in New York City

All Things Distributed

Over a year ago the AWS team opened a "pop-up loft" in San Francisco at 925 Market Street. The goal of opening the loft was to give developers an opportunity to get in-person support and education on AWS, to network, get some work done, or just hang out with peers. It became a great success; every time when I visit the loft there is a great buzz with people getting advice from our solution architects, getting training or attending talks and demos.

AWS 85

More Trending

article thumbnail

Make A Gallery-Like Image Grid Using Native Android

The Polyglot Developer

Previously I had written an article regarding how to make a gallery-like image grid using Ionic Framework , but what if we wanted to accomplish the same using the native Android SDK? In this tutorial we’ll see how to make use of the Android GridView with an image adapter to display remote images from the internet. The post Make A Gallery-Like Image Grid Using Native Android appeared first on The Polyglot Developer.

article thumbnail

Whitelist External Resources For Use In Ionic Framework

The Polyglot Developer

It was recently brought to my attention that big things came with the latest Apache Cordova Android and iOS update. One of the major updates being the requirement of whitelisting in order to use external resources. What exactly does this mean? Take the example of some random API like Facebook or TinyURL. If you try to perform a request on either of these APIs it will fail because by default everything external is blacklisted.

article thumbnail

Create A Minesweeper Game With Native Android

The Polyglot Developer

So recently I was presented with a challenge. Make a Minesweeper game using native Android with no additional frameworks such as Unity3D or similar. Minesweeper via Wikipedia : A single-player puzzle video game. The objective of the game is to clear a rectangular board containing hidden “mines” without detonating any of them, with help from clues about the number of neighboring mines in each field.

Games 52
article thumbnail

Get Remote HTML Data And Parse It In Express For Node.js

The Polyglot Developer

Have you ever wanted to fetch remote HTML data in a similar fashion to cURL or Wget using some backend web service and parse it? If you said no, don’t worry, I said the exact thing until I was challenged to do so. For the challenge, I chose to use Express as my framework and a few libraries to assist in the process of fetching and parsing. I chose to use the HTTP and HTTPS libraries for fetching the data and the htmlparser2 for parsing the HTML data.

article thumbnail

Draw A Graphic To A SurfaceView Using Native Android

The Polyglot Developer

There are many ways to create mobile Android games. For example you can use a framework like Unity3D or Unreal Engine, or you can use native APIs like the SurfaceView canvas or OpenGL. All the different methods have their pros and cons. In this particular example we’re going to see how to render graphics to the Android screen by extending the SurfaceView class and a canvas.

Games 40
article thumbnail

Ending My Adventure At UC Merced And Starting Fresh

The Polyglot Developer

Back in 2010 I was hired by the University of California, Merced (UC Merced) after having first worked as a student employee for two years prior. I was hired as part of the Student Information Systems (SIS) team of IT. Although my responsibilities spanned across all departments, I primarily supported the needs of the Undergraduate Admissions department.

Java 40
article thumbnail

Use RegEx To Test Password Strength In JavaScript

The Polyglot Developer

Recently one of my Twitter followers asked me how they might validate password strength using regular expressions (RegEx) in their code. Regular expressions via Wikipedia : A sequence of characters that forms a search pattern, mainly for use in pattern matching with strings, or string matching. RegEx is nice because you can accomplish a whole lot with very little.

Testing 40
article thumbnail

All About Java Modifier Keywords

The Polyglot Developer

I’ve been a Java programmer for a while now, however, recently someone asked me a question regarding one of Java modifier keywords and I had no clue what it was. This made it obvious to me that I needed to brush up on some Java that goes beyond actual coding and algorithms. After a few Google searches, I got bits and pieces on the topic, but never really the full story, so I’m using this post as a way to document the subject.

Java 40
article thumbnail

Sort An Integer Array Using Bubble Sort With Java

The Polyglot Developer

Previously you saw an implementation of Quicksort, one of the better sorting algorithms. This time we’re going to look at a much inferior sorting algorithm which generally makes its appearance in introduction to computer science type courses. I’m talking about the Bubble Sort algorithm. Bubble Sort via Wikipedia : Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps th

Java 40