Building a website with C++ (CppCMS). Part 1.
Written by Drus_K
Dear %username% , I would like to share with you my first-hand experience in creating a Website on CppCMS (library-template engine on C++). It can also be named as “help for beginners on CppCMS”. Why Would You Write a Website with C++ There are different pros and cons...
Benchmarks: 14 Sorting Algorithms and PHP Arrays
Written by ahwoobachairiesaas
In this article I will tell you about the benchmark of sorting algorithms, written on PHP. There are 14 algorithms presented: quickSort countingSort combSort heapSort mergeSort shellSort selectionSort insertSort gnomeSort combinedBubbleSort cocktailSort bubbleSort oddEvenSort bubbleSortWithFlag Algorithms are not alphabetically ordered, but in order of their performance speed descending when sorting an array of 8 thousand elements. The following arrays dimensions, used for sorting, are presented: 1 100 200 400 600 800 1000 5000 10000 15000 20000 25000 30000 Each measurement was performed with different array filling, which is passed to sorting function. In the first case the array has been filled by random values with a (1, n) interval, in which n — is an array dimension. In the second case the array has been filled by random values with a (1, PHP_INT_MAX) interval, in which PHP_INT_MAX — is maximum variable value of INT type in the current system. InLibreS3: Open Source Amazon S3 Implementation
Written by Kukuruku Hub
The first version of LibreS3 project has been announced . LibreS3 is a robust open source implementation of the Amazon S3 service, supporting a subset of the S3 REST API. It's compatible with Amazon S3 client libraries and built on their basis tools, such as python-boto, s3cmd and...
Browser Extension to Extract the Text from Images
Written by alizar
Naptha — is a very useful Chrome extension. It automatically recognizes text of all the images that are downloaded by the browser. With the help of this extension you can edit images text, select, copy and translate it. This extension is indispensable for copying the text from the document scans, photographs, posters, diagrams, charts, screenshots and even memes. The idea to create this extension was born on the basis of xkcd meme. It showed the websites, which didn’t allow selecting the text at their web-pages. Ironically, xkcd website can also be referred to “violators” as it doesn’t allow selecting the text inside the memes. Naptha extension fixes this drawback. Developers say that the Stroke Width Transform algorithm, which is used in the extension, can recognize a text even of incoherent flourishes. This peculiarity can be considered as a bug or a feature. By the way, Naptha works for anyMobile Responsive Design
Written by muhurov
When designing a mobile version of the site, the core question is still what resolution to choose and which ones are the most popular. By reference to statistics we will consider five the most popular resolutions of mobile screens resolutions. And five the most popular tablet resolutions. And then media queries are entering the game. For instance, if we add the following code to the style sheet, it will define the site background, provided that a certain device will have 480 or less pixels screen. @media screen and (max-device-width: 480px) and (orientation: portrait) { #background { width: 480px; background:url(/img/background.jpg); } } We can also use CSS-rule @import for the conditional loading of stylesheets into the current stylesheet. For example, the following code imports the phone.css, provided that a certain device will have the screen and the display area of maximum width 480 pixels. @import url("phone.css") screen and (max-width:480px); When creatingLock-free Data Structures. 1 — Introduction
Written by khizmax
I hope that this article will give a good start for a series of notes about lock-free data structures. I would like to share my experience with community, monitoring and thoughts about what lock-free structures are, how to implement them and whether the concepts of Standard Template Library...
Lytro Company Announced a Plenoptic Camera of the Second Generation
Written by ilya42
Lytro Company, founded by Ren Ng from Stanford University, is commercializing plenoptic photography. It’s a photo of the light field when matrix with the help of micro lens system fixes not a 2D image but full information of the scene light field — you can focus such images right after the shooting, and photos taken by this camera allow you to get a stereo image. The first Lytro camera looked more like a cute toy and shots quality was not that high. After rendering it into a 2D image its resolution was just a few mega pixels. The second generation camera, named Lytro Illym , looks much more like a real camera in both appearance and features. The size of the sensor has been increased from 1/3" to 1", images resolution is 40 Megaray (it’s the measurement for plenoptic cameras) compared to 11 in the first Lytro. 2D imagesPaperFold: Foldable Smartphone With Three Displays
Written by marks
The most interesting projects of electronic devices have been introduced lately. Electronic devices we could only dream about before. For example, a modular smartphone Project Ara should be introduced in 2015 by Google. Also, one of these days information about a project of a...
Leonardo da Vinci: Daily Routine
Written by kal1sha
Few people know that Leonardo da Vinci invented a way to spend little time for sleep, but not suffer from doing so. He slept only an hour and a half per day! Many people say that it was the exact secret of his efficiency. Today it is called a polyphasic sleep. Genius Leonardo decided that he spent too much time on sleep and invented his own sleep method. It lies in sleeping for 15 minutes every 4 hours. And he lived like that during not a week, but many years. Why does it work? Psychologists say that after sleep our working capacity increases from 6 to 10 times as much. And wise Leonardo used it to the fullest extent. Other psychologists say that polyphasic sleep doesn’t match all the people and they should read the literature about: sleep nature relaxation eutrophy healthy living P.S. I think this sleep method willHow to DDos any website with Facebook Notes
Written by ValdikSS
A month and a half ago chr13 discovered a way to perform DDoS of any website with the help of Google Spreadsheet, and now he applied such a method to Facebook Notes. And it worked! Operating procedure is absolutely the same as in Google Spreadsheet: Create a list with «unique»...
Yogurt making machine powered by Arduino
Written by Shrim
Everyone knows that yogurt is a very better-for-you product, plus it’s delicious. There is a short story under the cut about how I decided to create a yogurt maker, some pictures and a sketch. Wandering in the vast expanses of the Internet I came across such an interesting thing as a yogurt maker. My wife likes yogurt and fairly often buys it. Having read the specialized website, I was inspired. I was inspired by the very thought of easily making yogurt at home, plus it will be more health-giving than the store-brought one. Having read a few reviews and comparisons, my wife and I decided to buy “Moulinex YG230 YOGURTEO”. But oops, we couldn’t find where to buy it in our town. We were just going to place an order when it dawned upon me. What is a yogurt maker? Roughly speaking, it’s a device for keeping some definite temperatureLibreSSL: clean version of OpenSSL (OpenBSD project)
Written by Kukuruku Hub
Participants of the OpenBSD project, that have developed the system of the same name and also different tools such as OpenSSH, OpenBGPD, OpenNTPD and OpenSMTPD, began a LibreSSL project. It is a cleared from odd codes, easier version of OpenSSL. Theo de Raadt, the founder and the manager of OpenBSD and OpenSSH projects said that they have managed to get rid of approximately 90 000 code lines at C and 150 000 lines of the content on the whole. MacOS, Netware, OS/2, VMS and Windows support is deleted as few people need it. ”We are trying to make code more clean. 99.99% community representatives don’t need VMS support and 98% don’t need Windows support, — says Theo de Raadt. – They need POSIX support so that Unix and Unix-derivatives could start. People don’t care about FIPS. Code should be simple. Even after all the changes, the code base is stillOpenSSL Heartbleed Vulnerability Guide
Written by Vanav
What can be stolen by attacker Private key of the TLS server, private key of the TLS client (if the client is vulnerable), cookies, logins, passwords and any other data that are shared between the server and his clients. And you don’t need to monitor the communication path, you just can...
Marionette.js. Drag&Drop model sorting in the collection
Written by pharrell
Swapping elements in a list is a common task. But as a rule it is often made in a thorny way, especially if it’s Drag&Drop. And now I am going to tell you about a very easy and flexible way to do it using Marionette.js and jQuery UI Sortable. Installing jQuery UI We will need part of Sortable only, so in order to save the traffic, I cleared all the ticks for you here . You just need to download it. Pay attention We are using a reference to Marionette in the code below: var Marionette=Backbone.Marionette; Creating Behavior template This functionality will be implemented with Behaviors. Here’s the behavior code that will be in charge of capacity to sort models inside the collection: Behaviors.Sortable=Marionette.Behavior.extend({ onRender:function(){ var collection=this.view.collection // Close the collection ,items=this.view.children._views // Get the list of child elements ,view ; for(var v in items){ view=items[v] // Hook the elementWorld of Minecraft: full-scale model of Denmark
Written by ilya42
The Danish GeoData Agency launched a full-scale model of Denmark. The model is very detailed and was generated with real geographical data — it includes not only relief but also buildings, vegetation, parks and attractions Only the location of rocks and minerals on the ground and color facades of...
Hack: Facebook's new programming language for HHVM
Written by sferrka
Facebook has presented Hack – a new programming language based on the PHP syntax and intended for implementation with HHVM (HipHop Virtual Machine). Applications written on Hack can seamlessly interact and go with an existing code written on PHP, as the HHVM environment supports the...
eMersion Gesture Control System for Music Performance and More
Written by cudell
Don’t just let music move you, move to make music. We've created a smart technology that allows your instrument to transform movement, orientation and momentum into audio & visual effects. It's essentially wearable technology for musicians, dancers, digital interactive and...
Erlang/OTP 17.0 has been released on April 9
Written by saa
Erlang — is a general-purpose concurrent, garbage-collected programming language and runtime system. The release has a lot of new different features and changes. The first thing is that the versioning scheme has been changed. Previously it was R15B, R16B, etc. New data type —...
bcat: pipe to browser utility
Written by MaGIc2laNTern
Great find! bcat is a small utility to pipe console's output to browser. Do you have a script which outputs HTML? bcat! Do you need to preview a README file with Markdown formatting? bcat! Is your script fetching web pages and you want to see the result? bcat! Do you just simply want to say...
or