Showing posts with label you. Show all posts
Showing posts with label you. Show all posts
Wednesday, February 18, 2015
Antivirus You should be purchasing Avira not Kaspersky according to this report

Click on link: Read this report here.
Monday, February 16, 2015
How You Can Keep Your Android Phone Safe From Hackers

Right when the market is flooding with the super gadgets, there is a subsequent increment in hackers who keep agitating smart phones with their nasty techniques. Basically smartphones are used for several purposes both online and offline almost like PC or laptops but as the same it also has possibility of getting hacked like any other sophisticated gadget. Hence, it is essential to pay attention towards the application that you use or install. Also a kind a data that you are storing in your smartphone matters a lot in this issue of hacking the android device.
Also Read: The Top 4 Websites to Create Android Apps Online for Free
Also Read: The Top 8 Best Alternatives to Google Play Store to Download Android Apps for Free
This article will focus on the tips which can empower the smartphones safety from hackers.
Security lock
It is the basic thing that you can access to secure data on the mobile handset. It is advised to have a password with the combination of both characters, symbols and numbers. It is essential to ensure that in case there is a password failure you need check change the password.
Connectivity
Some of the smartphone users keep their Bluetooth and Wi-Fi always on which is not good for the mobile phone’s health. Turn off these features when it is not required as they often connect data to the network that you are using. Don’t switch over to too many networks as it put you to the hacker’s risk.
Use minimal amount of public network
As per the current research on the hacking problem, using public Wi-Fi is the most dangerous thing to do. Connecting your device to the public network as well as hotspot is pretty risky thus you need to ensure that the concerned network is safe and secured. Beware of not using online banking or any confidential document on the public connectivity.
Free but fatal apps
Don’t get attracted with too many free applications and always go for the trusted and authenticated websites. People who tend to download the application from the random website may be targeted by the malware, spyware, worms and viruses. Don’t allow these applications to access your password in any case.
Keep your device clean
It is essential to keep your device clean and healthy and install the latest and updated version of security system. If you are using too much of internet connectivity then install both the antivirus and internet security.
Mobile theft
Mobile theft is increasing day by day and then it hardly takes anytime to lose your mobile phone. One of the major problems comes on your way then it losing all the confidential data so need to use certain applications which can immediately lock all the stored data.
The remote-wipe app
When nothing works, you can take care of your device by installing this wonderful application that will help you to remote access your device and its content.
Also Read: The 4 Best Live Chat Mobile Applications
Also Read: 4 Best Tips to Clean Your Touch Screen Device
Android rooted phones come at the bigger risk
Rooting android phones open dimension of exploring new features but at same it also becomes a bit risky while using the unauthorised apps and software.
About Author:
This is a guest post written by Tarun, He is a blogger and writes about Android on his blog AndroidCubes. He recommends you to check his latest guide to Root Micromax A35 Bolt.
Tuesday, February 3, 2015
Six programming paradigms that will change how you think about coding
Every now and then, I stumble across a programming language that does something so different that it changes how I think about coding. In this post, I want to share some of my favorite finds.
This is not your grandmas "functional programming will change the world!" blog post: this list is much more esoteric. Id wager most readers havent heard of the majority of the languages and paradigms below, so I hope you have as much fun learning about these new concepts as I did.
Note: I have only minimal experience with most of the languages below: I find the ideas behind them fascinating, but claim no expertise in them, so please point out any corrections and errors. Also, if youve found any new paradigms and ideas not covered here, please share them!
Update: this post hit the front page of r/programming and HN. Thank you for the great feedback! Ive added some corrections below.
Concurrent by default
Example languages: ANI, Plaid
Lets kick things off with a real mind bender: there are programming languages out there that are concurrent by default. That is, every line of code is executed in parallel!
For example, imagine you wrote three lines of code, A, B, and C:
In most programming languages, A would execute first, then B, and then C. In a language like ANI, A, B, and C would all execute at the same time!
Control flow or ordering between lines of code in ANI is merely a side effect of explicit dependencies between lines of code. For example, if B had a reference to a variable defined in A, then A and C would execute at the same time, and B would execute only after A finished.
Lets look at an example in ANI. As described in the tutorial, ANI programs consists of "pipes" and "latches" that are used to manipulate streams and data flows. The unusual syntax is tough to parse, and the language seems dead, but the concepts are pretty interesting.
Heres a "Hello World" example in ANI:
In ANI terminology, we are sending the
Both of these lines of code execute in parallel, so they could end up in any order in the console. Now, look what happens when we introduce a variable on one line and reference it later:
The first line declares a "latch" (latches are a bit like variables) called
The Plaid language also claims to support concurrency by default, but uses a permissions model, as described in this paper, to setup control flow. Plaid also explores other interesting concepts, such as Typestate-Oriented Programming, where state changes become a first class citizen of the language: you define objects not as classes, but as a series of states and transitions that can be checked by the compiler. This seems like an interesting take on exposing time as a first class language construct as discussed in Rich Hickeys Are we there yet talk.
Multicore is on the rise and concurrency is still harder than it should be in most languages. ANI and Plaid offer a fresh a fresh take on this problem that could lead to amazing performance gains; the question is whether "parallel by default" makes concurrency easier or harder to manage.
Update: the description above captures the basic essence of ANI and Plaid, but I used the terms "concurrent" and "parallel" interchangeably, even though they have different meanings. See Concurrency Is Not Parallelism for more info.
Dependent types

Example languages: Idris, Agda, Coq
Youre probably used to type systems in languages like C and Java, where the compiler can check that a variable is an integer, list, or string. But what if your compiler could check that a variable is "a positive integer", "a list of length 2", or "a string that is a palindrome"?
This is the idea behind languages that support dependent types: you can specify types that can check the value of your variables at compile time. The shapeless library for Scala adds partial, experimental support (read: probably not ready for primetime) for dependent types to Scala and offers an easy way to see some examples.
Here is how you can declare a
This creates a variable
The example above works fine because the type system knows both
Shapeless is an amazing library, but from what Ive seen, its still a bit rough, only supports a subset of dependent typing, and leads to fairly verbose code and type signatures. Idris, on the other hand, makes types a first class member of the programming language, so the dependent type system seems much more powerful and clean. For a comparison, check out the Scala vs Idris: Dependent Types, Now and in the Future talk:
Formal verification methods have been around for a long type, but were often too cumbersome to be usable for general purpose programming. Dependent types in languages like Idris, and perhaps even Scala in the future, may offer lighter-weight and more practical alternatives that still dramatically increase the power of the type system in catching errors. Of course, no dependent type system can catch all errors due to to ineherent limitations from the halting problem, but if done well, dependent types may be the next big leap for static type systems.
Concatenative languages
Example languages: Forth, cat, joy
Ever wonder what it would be like to program without variables and function application? No? Me neither. But apparently some folks did, and they came up with concatenative programming. The idea is that everything in the language is a function that pushes data onto a stack or pops data off the stack; programs are built up almost exclusively through functional composition (concatenation is composition).
This sounds pretty abstract, so lets look at a simple example in cat:
Here, we push two numbers onto the stack and then call the
Lets walk through this line by line:
This style of programming has some interesting properties: programs can be split and concatenated in countless ways to create new programs; remarkably minimal syntax (even more minimal than LISP) that leads to very concise programs; strong meta programming support. I found concatenative programming to be an eye opening thought experiment, but Im not sold on its practicality. It seems like you have to remember or imagine the current state of the stack instead of being able to read it from the variable names in the code, which can make it hard to reason about the code.
Declarative programming
Example languages: Prolog, SQL
Declarative programming has been around for many years, but most programmers are still unaware of it as a concept. Heres the gist: in most mainstream languages, you describe how to solve a particular problem; in declarative languages, you merely describe the result you want, and the language itself figures out how to get there.
For example, if youre writing a sorting algorithm from scratch in C, you might write the instructions for merge sort, which describes, step by step, how to recursively split the data set in half and merge it back together in sorted order: heres an example. If you were sorting numbers in a declarative language like Prolog, youd instead describe the output you want: "I want the same list of values, but each item at index
If youve used SQL, youve done a form of declarative programming and may not have realized it: when you issue a query like
The beauty of declarative languages is that they allow you to work at a much higher level of abstraction: your job is just to describe the specification for the output you want. For example, the code for a simple sudoku solver in prolog just lists out what each row, column, and diagonal of a solved sudoku puzzle should look like:
Here is how you would run the sudoku solver above:
The downside, unfortunately, is that declarative programming languages can easily hit performance bottlenecks. The naive sorting algorithm above is likely
Symbolic programming

Example languages: Aurora
The Aurora language is an example of symbolic programming: the "code" you write in these languages can include not only plain text, but also images, math equations, graphs, charts, and more. This allows you to manipulate and describe a large variety of data in the format native to that data, instead of describing it all in text. Aurora is also completely interactive, showing you the results from each line of code instantly, like a REPL on steroids.
The Aurora language was created by Chris Granger, who also built the Light Table IDE. Chris outlines the motivation for Aurora in his post Toward a better programming: some of the goals are to make programming more observable, direct, and reduce incidental complexity. For more info, be sure to see Bret Victors incredible talks: Inventing on Principle, Media for Thinking the Unthinkable, and Learnable Programming.
Update: "symbolic programming" is probably not the right term to use for Aurora. See the Symbolic programming wiki for more info.
Knowledge-based programming

Examples: Wolfram Language
Much like the Aurora language mentioned above, The Wolfram Language is also based on symbolic programming. However, the symbolic layer is merely a way to provide a consistent interface to the core of the Wolfram Language, which is knowledge-based programming: built into the language is a vast array of libraries, algorithms, and data. This makes it easy to do everything from graphing your Facebook connections, to manipulating images, to looking up the weather, processing natural language queries, plotting directions on a map, solving mathematical equations, and much more.
I suspect the Wolfram Languages has the largest "standard library" and data set of any language in existence. Im also excited by the idea that Internet connectivity is an inherent part of writing the code: its almost like an IDE where the auto-complete function does a google search. Itll be very interesting to see if the symbolic programming model is as flexible as Wolfram claims and can truly take advantage of all of this data.
Update: although Wolfram claims the Wolfram Language supports "symbolic programming" and "knowledge programming", these terms have slightly different definitions. See the Knowledge level and Symbolic Programming wikis for more info.
Read more »
This is not your grandmas "functional programming will change the world!" blog post: this list is much more esoteric. Id wager most readers havent heard of the majority of the languages and paradigms below, so I hope you have as much fun learning about these new concepts as I did.
Note: I have only minimal experience with most of the languages below: I find the ideas behind them fascinating, but claim no expertise in them, so please point out any corrections and errors. Also, if youve found any new paradigms and ideas not covered here, please share them!
Update: this post hit the front page of r/programming and HN. Thank you for the great feedback! Ive added some corrections below.
Concurrent by default

Lets kick things off with a real mind bender: there are programming languages out there that are concurrent by default. That is, every line of code is executed in parallel!
For example, imagine you wrote three lines of code, A, B, and C:
In most programming languages, A would execute first, then B, and then C. In a language like ANI, A, B, and C would all execute at the same time!
Control flow or ordering between lines of code in ANI is merely a side effect of explicit dependencies between lines of code. For example, if B had a reference to a variable defined in A, then A and C would execute at the same time, and B would execute only after A finished.
Lets look at an example in ANI. As described in the tutorial, ANI programs consists of "pipes" and "latches" that are used to manipulate streams and data flows. The unusual syntax is tough to parse, and the language seems dead, but the concepts are pretty interesting.
Heres a "Hello World" example in ANI:
In ANI terminology, we are sending the
"Hello, World!" object (a string) to the std.out stream. What happens if we send another string to std.out?Both of these lines of code execute in parallel, so they could end up in any order in the console. Now, look what happens when we introduce a variable on one line and reference it later:
The first line declares a "latch" (latches are a bit like variables) called
s that contains a string; the second line sends the text "Hello, World!" to s; the third line "unlatches" s and sends the contents to std.out. Here, you can see ANIs implicit program sequencing: since each line depends on the previous one, this code will execute in the order it is written.The Plaid language also claims to support concurrency by default, but uses a permissions model, as described in this paper, to setup control flow. Plaid also explores other interesting concepts, such as Typestate-Oriented Programming, where state changes become a first class citizen of the language: you define objects not as classes, but as a series of states and transitions that can be checked by the compiler. This seems like an interesting take on exposing time as a first class language construct as discussed in Rich Hickeys Are we there yet talk.
Multicore is on the rise and concurrency is still harder than it should be in most languages. ANI and Plaid offer a fresh a fresh take on this problem that could lead to amazing performance gains; the question is whether "parallel by default" makes concurrency easier or harder to manage.
Update: the description above captures the basic essence of ANI and Plaid, but I used the terms "concurrent" and "parallel" interchangeably, even though they have different meanings. See Concurrency Is Not Parallelism for more info.
Dependent types

Example languages: Idris, Agda, Coq
Youre probably used to type systems in languages like C and Java, where the compiler can check that a variable is an integer, list, or string. But what if your compiler could check that a variable is "a positive integer", "a list of length 2", or "a string that is a palindrome"?
This is the idea behind languages that support dependent types: you can specify types that can check the value of your variables at compile time. The shapeless library for Scala adds partial, experimental support (read: probably not ready for primetime) for dependent types to Scala and offers an easy way to see some examples.
Here is how you can declare a
Vector that contains the values 1, 2, 3 with the shapeless library:This creates a variable
l1 whos type signature specifies not only that its a Vector that contains Ints, but also that it is a Vector of length 3. The compiler can use this information to catch errors. Lets use the vAdd method in Vector to perform a pairwise addition between two Vectors:The example above works fine because the type system knows both
Vectors have length 3. However, if we tried to vAdd two Vectors of different lengths, wed get an error at compile time instead of having to wait until run time!Shapeless is an amazing library, but from what Ive seen, its still a bit rough, only supports a subset of dependent typing, and leads to fairly verbose code and type signatures. Idris, on the other hand, makes types a first class member of the programming language, so the dependent type system seems much more powerful and clean. For a comparison, check out the Scala vs Idris: Dependent Types, Now and in the Future talk:
Formal verification methods have been around for a long type, but were often too cumbersome to be usable for general purpose programming. Dependent types in languages like Idris, and perhaps even Scala in the future, may offer lighter-weight and more practical alternatives that still dramatically increase the power of the type system in catching errors. Of course, no dependent type system can catch all errors due to to ineherent limitations from the halting problem, but if done well, dependent types may be the next big leap for static type systems.
Concatenative languages
![]() |
| cat |
Ever wonder what it would be like to program without variables and function application? No? Me neither. But apparently some folks did, and they came up with concatenative programming. The idea is that everything in the language is a function that pushes data onto a stack or pops data off the stack; programs are built up almost exclusively through functional composition (concatenation is composition).
This sounds pretty abstract, so lets look at a simple example in cat:
Here, we push two numbers onto the stack and then call the
+ function, which pops both numbers off the stack and pushes the result of adding them back onto the stack: the output of the code is 5. Heres a slightly more interesting example:Lets walk through this line by line:
- First, we declare a function
foo. Note that functions in cat specify no input parameters: all parameters are implicitly read from the stack. foocalls the<function, which pops the first item on the stack, compares it to 10, and pushes eitherTrueorFalseback onto the stack.- Next, we push the values 0 and 42 onto the stack: we wrap them in brackets to ensure they get pushed onto the stack unevaluated. This is because they will be used as the "then" and "else" branches (respectively) for the call to the
iffunction on the next line. - The
iffunction pops 3 items off the stack: the boolean condition, the "then" branch, and the "else" branch. Depending on the value of the boolean condition, itll push the result of either the "then" or "else" branch back onto the stack. - Finally, we push 20 onto the stack and call the
foofunction. - When all is said and done, well end up with the number 42.
This style of programming has some interesting properties: programs can be split and concatenated in countless ways to create new programs; remarkably minimal syntax (even more minimal than LISP) that leads to very concise programs; strong meta programming support. I found concatenative programming to be an eye opening thought experiment, but Im not sold on its practicality. It seems like you have to remember or imagine the current state of the stack instead of being able to read it from the variable names in the code, which can make it hard to reason about the code.
Declarative programming
![]() |
| GNU Prolog |
Declarative programming has been around for many years, but most programmers are still unaware of it as a concept. Heres the gist: in most mainstream languages, you describe how to solve a particular problem; in declarative languages, you merely describe the result you want, and the language itself figures out how to get there.
For example, if youre writing a sorting algorithm from scratch in C, you might write the instructions for merge sort, which describes, step by step, how to recursively split the data set in half and merge it back together in sorted order: heres an example. If you were sorting numbers in a declarative language like Prolog, youd instead describe the output you want: "I want the same list of values, but each item at index
i should be less than or equal to the item at index i + 1". Compare the previous C solution to this Prolog code:If youve used SQL, youve done a form of declarative programming and may not have realized it: when you issue a query like
select X from Y where Z, you are describing the data set youd like to get back; its the database engine that actually figures out how to execute the query. You can use the explain command in most databases to see the execution plan and figure out what happened under the hood.The beauty of declarative languages is that they allow you to work at a much higher level of abstraction: your job is just to describe the specification for the output you want. For example, the code for a simple sudoku solver in prolog just lists out what each row, column, and diagonal of a solved sudoku puzzle should look like:
Here is how you would run the sudoku solver above:
The downside, unfortunately, is that declarative programming languages can easily hit performance bottlenecks. The naive sorting algorithm above is likely
O(n!); the sudoku solver above does a brute force search; and most developers have had to provide database hints and extra indices to avoid expensive and inefficient plans when executing SQL queries.Symbolic programming

Example languages: Aurora
The Aurora language is an example of symbolic programming: the "code" you write in these languages can include not only plain text, but also images, math equations, graphs, charts, and more. This allows you to manipulate and describe a large variety of data in the format native to that data, instead of describing it all in text. Aurora is also completely interactive, showing you the results from each line of code instantly, like a REPL on steroids.
The Aurora language was created by Chris Granger, who also built the Light Table IDE. Chris outlines the motivation for Aurora in his post Toward a better programming: some of the goals are to make programming more observable, direct, and reduce incidental complexity. For more info, be sure to see Bret Victors incredible talks: Inventing on Principle, Media for Thinking the Unthinkable, and Learnable Programming.
Update: "symbolic programming" is probably not the right term to use for Aurora. See the Symbolic programming wiki for more info.
Knowledge-based programming

Examples: Wolfram Language
Much like the Aurora language mentioned above, The Wolfram Language is also based on symbolic programming. However, the symbolic layer is merely a way to provide a consistent interface to the core of the Wolfram Language, which is knowledge-based programming: built into the language is a vast array of libraries, algorithms, and data. This makes it easy to do everything from graphing your Facebook connections, to manipulating images, to looking up the weather, processing natural language queries, plotting directions on a map, solving mathematical equations, and much more.
I suspect the Wolfram Languages has the largest "standard library" and data set of any language in existence. Im also excited by the idea that Internet connectivity is an inherent part of writing the code: its almost like an IDE where the auto-complete function does a google search. Itll be very interesting to see if the symbolic programming model is as flexible as Wolfram claims and can truly take advantage of all of this data.
Update: although Wolfram claims the Wolfram Language supports "symbolic programming" and "knowledge programming", these terms have slightly different definitions. See the Knowledge level and Symbolic Programming wikis for more info.
Subscribe to:
Posts (Atom)

