lightwave 3d software free downloadmicrosoft office 2000 premium free download chipmac os x 10 5 leopard operating system free downloadinternet download accelerator video indirme
Microsoft Expression Studio 4 Ultimate DreamSpark Program, Film, Oyun indir
Anoop s observations on tech, web, design plus more.
Some time back, I collated an index of 7 Must Read, Free EBooks Developers, and lots of people think it is useful. So, I thought
Happy New Year, this really is my first post in 2012. I ll be sharing few awesome learning resources I ve bookmarked, and pointing out
Recently I was doing R D associated with finding a viable, affordable platform for client nodes. Obviously, I came across Raspberry
Over recent weekends I ve take some time building a fairly easy robot which can be controlled using Kinect. You is able to see it for action
I stood a property within my View Model, of your Enum type, and desired to bind multiple radio buttons to the. Firstly, I wrote a straightforward Enum to
Azure HD Insight Services is often a 100% Apache Hadoop implementation together with Microsoft Azure cloud ecosystem. In this post, we ll
Aggregated several of my earlier articles on design patterns I published in code project, and published an e-book on the very same over Scribd.
A wide range of people ask me for great book recommendations. Hence, for quite a while, I was considering compiling an instant list of useful free
As I mentioned during my last post, more and much more organizations are leaning towards Web Oriented Architecture WOA that happen to be highly
What all decisions you have made today were depending some type of algorithms?
When you asked google maps to inform you the shortest driving route? Or whenever you asked Siri tell you the hotel on your break fast? Or whenever you checked Flip board or Twitter to discover the recent stories to meet your intellectual appetite? Or once you found your date according to those recommendations and profile matching?
Wait, exactly how you found this information and your reason for reading it now?
Today, the majority of our decisions are produced with the help of apps. Or in plain english, these apps plus the related algorithms, could be some where within the cloud wired in their mind, influence us in most our decisions, modifying or seriously impacting our behaviour. They influence our thoughts and decisions start by making suggestions, deciding what information we percieve or dont see - even deciding whom should we follow or date. And every day, a lots of people including me spend nearly all of their time enriching these algorithms, and building latest apps using them, to assist influence everyone, according to social data, past behaviour and stuff like that.
All Hail Google Now, Siri, and Cortana. And those recommendations and ads springing up from every where persuading you. And the algorithms behind these people.
So, you can theoretically debate that, we're also at a reason history the place where a connected people nature is seriously influenced and/or modified through the complex nexus of apps and algorithms.
The technological singularity, or perhaps the singularity, can be a hypothetical moment when artificial intelligence could have progressed towards the point of an greater-than-human intelligence, radically changing civilisation, as well as perhaps human nature
This post isn't to alert that SkyNet will need over tomorrow. Also, the intention isn't to state that it must be either consistently, that are two mediocre relative terms.
You continue to have the choice to shut down, nevertheless the persuasion to complete things easy by delegating it with an app wins virtually all the time. And I think which is fine - given that we carefully exercise our free will to generate the final decision.
Or we already commenced trusting apps over our own intelligence?
In my last post, we explored the way to create a small Roslyn app to compile C code, to try out a number of the new C 6.0 features.
Now go on and play with a few of the preview features. Try things out. Create a file with a few C 6.0 sugar and compile it with your above app. You can explore which features that happen to be completed in this list, through the Roslyn documentation in CodePlex
Primary constructors assist you to specify arguments with your class declaration itself. Also, now C supports assigning to Auto properties. Together, you need to use it to initialise classes, as shown below.
C 6.0 may support Primary Constructors and Assignment To Auto Properties using System; using ; using ; using ; using ; namespace CSharp6Test //Feature: Primary Constructors or Class with arguments ; class Pointint x, int y //Feature: Look ma, it is possible to assign to auto properties now public int X get;set; x; public int Y get;set; y; class MainClass public static void Main //Using Primary Constructor var pnew Point1, 3;//Reading the values back in the properties X0, p.X; Y0, p.Y;
Another completed feature appears like the support for direct invocation of static methods directly, without having the full name space
Just import the namespace using ; namespace CSharp6Test class Class1 public static void Main //And utilize the static methods now directly WriteLineLook ma, now you may use static methods like ;
Say farewell to the dirty strings whenever using dictionary objects and collections. Let us determine if the new Indexed member syntax is likely to work. See it here.
using System; using ; using ; using ; namespace CSharp6Test class Class1 public static void Main //See the modern dictionary initializer syntax var dnew Dictionary string, int item11, item22;//This is even better//var dnew Dictionary string, int item11, item22;//And now you may access indexed members using variablename syntax//No more dirty strings WriteLine0, d.item1; WriteLine0, d.item2;
Try compiling these apps with this Roslyn test app Get it here. Compile them: Leaving the other features your choice to try out. Happy Coding!!
Some from the C 6.0 Features are great. And it is possible to try them out now as the brand new Roslyn preview fades. You can explore which features which are completed in this list, through the Roslyn documentation in CodePlex. Some from the Done features for C, depending on the documentation there include
Primary constructors - class Pointint x, int y
Auto-property initializers - public int X get; set; x;
Getter-only auto-properties - public int Y get; y;
Using static members - using ; Write4;
Indexed member initializer - new JObject x 3, y 7
Indexed member access - c.name c.first c.last;
Declaration expressions - s, out var x;
Use precisely the same to explore if those features are implemented.
Create a brand new C Project in Visual Studio 2012/2013, start Nuget console, and install Rolsyn pre release bits. I m achieving this in VS 2012.
Now, let's write some code to parse the Syntax tree and perform compilation
FILE - using ; using ; using ; using System; using ; using ; using ; using ; using ; using ; namespace CSharp6Test class Program static void Mainstring args try C Roslyn Code Verifier.; if 0 C Usage: CSharp6Test file ; return; //User provided the output filename string file args0; string output 2? output args1: file ;//Create a syntax tree on the code SyntaxTree tree file; C Dumping Syntax Tree; ;//Dumping it using our extension method ; ;//Compile C Trying to compile Syntax Tree; output; catch Exception ex Oops: 0, ; Sorry Skywalker, that's an exception - Love, Yoda;
Well, since it is evident, we have been just parsing the syntax tree from your file, dumping it, and compiling it. The Dump and Compile extension methods are here to your service.
FILE - using ; using ; using System; using ; using ; using ; using ; using ; using ; namespace CSharp6Test public static class SyntaxTreeExtensions public static void Dumpthis SyntaxTree tree var writer new ConsoleDumpWalker; ; class ConsoleDumpWalker: SyntaxWalker public override void VisitSyntaxNode node int padding ;//To identify leaf nodes vs nodes with children string prepend 0? - :.;//Get the type from the node string line new String, padding prepend ;//Write the fishing line line; node; public static void Compilethis SyntaxTree tree, string output //Creating a compilation var compilation CSharp6Test, new List SyntaxTree tree new MetadataFileReference, new MetadataFileReference, new MetadataFileReference, new MetadataFileReference, new MetadataFileReference ;//Lets perform the diagnostics var check ;//Report issues if any if 0 bool hasError false; ; C Few Issues Found; foreach var c in order 0: one out of 2, , , ; if hasError true; if hasError C Errors found. Aborting; var emit output; if C No Errors
And which is it. Go ahead and compile when you please. Youve a smaller tool to test the brand new C features. Checkout my next post about experimenting with a few of the C 6.0 features.
Here is usually a quick intro screen cast on Big Data and creating map reduce jobs in C to distribute the processing of big volumes of internet data, leveraging Microsoft Azure HDInsightHadoop On Azure, depending on my virtual tech days presentation.
If you havn t yet found out about ScriptCs, it is just not too late. Go here
I just checked within a ScriptCs Templating module to integrate Razor and StringTemplate transformations in ScriptCs workflow. ScrtipCs Templating module can put a Razor or StringTemplate ST4 template together with one or more model files normally an xml file or json file, for scenarios like code generation or templating. Example below.
Install scriptcs. You have to install the nightly build using Chocoloately -
Open the remedy and build it in Visual Studio.
nuget pack - version 0.1.0-alpha
In VS, edit your Nuget package sources Tools- Library Package Manager- Settings and add the folder the spot that the package lives locally.
Note that no matter what you pass after - - will goto the module as the arguments.
Run scriptcs together with your template, file specifying our template module using - modules switch:
argument let scriptcs load our template module.
Check the log output for details.
Template module automagically converts xml files/urls and json files/urls to dynamic models which might be used out of your template. Technically, it makes a C fleuent dynamic object that wraps the xml/json.
Quick example: Create a brand new folder, and make a file inside that.
Now, you could make your template, and save it - Let us use razor syntax.
Now, it is possible to run the transformation by specifying the model file, this way
Regenerate the effect file and pay attention to.
For converting XML files/data into a dynamic model object thatll be accessed from templates, ElasticObject is employed. Refer /amazedsaint/ElasticObject
Do precisely the same as above, but using vb since the template language
More tests should be added, and St4 support is often a bit untested. Happy Coding.
Over recent weekends I ve take some time building a straightforward robot that could be controlled using Kinect. You is able to see it doing his thing below.
Ever since I see this Cisco paper that mentions Internet Of Things will crate a whooping 14.4 Trillion endangered, I revamped my interests in hobby electronics and started hacking with DIY boards like Arduino and Raspberry Pi. That developed into fun, and wound up with the robot. This post provides you the overall steps, along with the github code may help you make your own.
Even should you don t use a Kinect for your controller, you'll be able to easily build a controller making use of your phone Windows Phone/Android/iOS as we're using blue tooth to convey with the controller and also the robot.
Now, here is usually a quick start guide to make your own. We ve an app running inside the laptop that may be communicating towards the Robot via blue tooth in such cases that pumps the commands dependant on input from Kinect, you can easily produce a phone UI too.
And in the event you already got the thought, this can be a code You may read further to create the hardware part.
You need to create some expertise in Arduino and/or Netduino In this situation I ll workout on Arduino. Explore Arduino. The best way is usually to Mainly you must understand the Pins inside the Arduino board. You can write simple programs together with the Arduino IDE try the Blink sample to blink an LED in IDE File- Samples. PFB the pins description, from SparkFun website.
GND 3 : Short for Ground. There are several GND pins about the Arduino, any one which can be utilized to ground your circuit.
5V 4 3.3V 5 : The 5V pin supplies 5 volts of power, and also the 3.3V pin supplies 3.3 volts of power. Most in the simple components used while using Arduino run happily from 5 or 3.3 volts. If you re uncertain, check out Spark Fun s datasheet tutorial then look the datasheet for the part.
Analog 6 : The area of pins in the Analog In label A0 through A5 within the UNO are Analog In pins. These pins can understand the signal from an analog sensor just like a temperature sensor and convert it in a digital value that we can see.
Digital 7 : Across on the analog pins would be the digital pins 0 through 13 about the UNO. These pins bring both digital input like telling when a button is pushed and digital output like powering an LED.
PWM 8 : You may have noticed the tilde next to a number of the digital pins 3, 5, 6, 9, 10, and 11 around the UNO. These pins behave as normal digital pins, but they can also be used for something called Pulse-Width Modulation PWM. We employ a tutorial on PWM, until then, consider these pins to able to simulate analog output like fading an LED inside and outside.
AREF 9 : Stands for Analog Reference. Most from the time you may leave this pin alone. It is sometimes accustomed to set another reference voltage between 0 and 5 Volts as being the upper limit to the analog input pins.
Again, you could potentially find a web-based store to get these components. Also, you can try the nearby local electronic store and buying some bread boards, jumper wires find some mail to mail female to female wires etc likewise. Here is the listing of components you need to construct CakeRobot. A Chassis I used Dagu Magician Chassis From Spark Fun, Rhydolabz they come in two stepper motors which can be controlled by our driver board.
A Arduino board with Motor Driver I used Dagu Mini Motor Driver purchased in Rhydolabz in India. For other countries you must search and locate. Some description around the board is found here It also incorporates a special slot to connect dagu blue tooth shield. You could also use Micro Magician
You also need a Micro USB cable to get in touch your PC on the motor driver to upload code.
A Tiny blue tooth dongle for the PC/Laptop, such as this one, to talk with the blue tooth shield inside robot when you don t have built-in blue tooth
Duct tapes/rubber bands yea, were prototyping so no soldering adjusted now
You have to spend some hours figuring out tips on how to program each in the components. To start with, spend playtime with Arduino somewhat, connecting LEDs, switches etc. Then, understand a little about programming the Digital and Analog pins. Play with all the examples
Try programming the ultrasonic sensor in case you ve one with your Arduino, using serial sockets. If you are employing Ping sensor, read this
Try programming the blue tooth module Code I used for that distance sensor and blue tooth module are during my examples below, however it ll be cool if you may figure things out yourself.
Assemble the Dagu Magician Chassis, and place/screw/mount the mini motor driver and Bluetooth module in addition to the same. Connect the ingredients using jumper wires/plugin as required. A advanced schematic below. Here is usually a low resolution snap of mine, from top.
You can explore the whole code inside Github repo - How ever, here i will discuss few pointers. According towards the Dagu Arduino Mini driver spec, the next digital pins can be familiar with control the motors To make a motor move, first we must set the direction by doing a
of HIGH or LOW for Forward/Reverse for the direction pin. Next set the motor speed by doing an
of 0255 to your speed pin. 0 is stopped and 255 is full throttle.
In the Arduino code, were initiating communication via blue tooth, to take commands as strings. For example, speedl 100 sets the left motor speed to 100, and speedr 100 set the right motor speed to 100. Relevant code below.
Setting in the communication with Bluetooth shield over serial 115200;//rn42 //Read the input In getSerialLine shortened for brevity whileserialIn! n if 0 return; serialIn ; if serialIn!n char a charserialIn; strReceived a; //Process the command shortened for else if commandspeedl valgetValueinput, ; analogWriteleftMotorSpeed, val; else if commandspeedr valgetValueinput, ; analogWriterightMotorSpeed, val;
Have a look at the entire code from the quick Arduino client here. Then, compile and upload the code in your mini driver board.
Essentially, what we're also doing is definitely tracking the Skeletal frame, and calculating the gap of your hand from the hip to offer the direction and speed for that motors. Skeletal tracking details here We are leveraging /for identifying the Blue tooth shield for you the commands. Please keep your blue tooth shield is paired with the PC/Laptop/Phone it is possible to normally accomplish that by clicking the blue tooth icon in system tray in Windows, and clicking Add Device.
For each 600 ms, send a brand new command//btCon is our instance variable for any blue tooth connection, built within the cool 32Feet library internal void ProcessCommandSkeleton skeleton var now ; if 600 return; prevTime ; Joint handRight ; Joint handLeft ; Joint shoulderRight ; Joint shoulderLeft ; Joint hipLeft ; Joint hipRight ; Joint kneeLeft ; if , 0; if , 0; if var speed - 200; if speed 230 speed 230;, intspeed; if var speed - 200; if speed 230 speed 230;, intspeed;
The code is here now in Github. Fork it and have fun with it, and expand it. In my last post we were built with a look at Interactive Extensions. In this post, we ll complete a recap of Reactive Extensions and LINQ to Event streams.
Reactive Extensions are out there inside the wild for a while, and I experienced a series about Reactive Extensions several years back. How ever, after my last post on Interactive Extensions, I thought we must discuss Reactive extensions inside a bit more detail. Also, in the following paragraphs we ll touch IQbservables one of the most mysteriously named thing/interface within the world, can be after Higgs Boson. Push and Pull sequences are everywhere and now using the devices one end plus the cloud in the other end, the majority of the data transactions happen via push/pull sequences. Hence, it is very important grab principle concepts concerning the programming models around them.
Let us go on a step back and discuss IEnumerable and IQueryable first, before discussing further about Reactive IObservable and IQbservable Qbservables Queryable Observables Oh yea, funny name.
As you could be aware, the IEnumerable model can be viewed a pull operation. You are getting an enumerator, then you iterate the gathering by advancing using MoveNext over a set of items till you reach a final item. And Pull models are of help when the environment is requesting data from another source. To cover some basics - IEnumerable incorporates a GetEnumerator method which returns an enumerator using a MoveNext method as well as a Current property. Offline tip - A C for every statement can iterate on any dumb thing that will return a GetEnumerator. Anyway, this is what the non generic version of IEnumerable appears to be.
public interface IEnumerable IEnumerator GetEnumerator; public interface IEnumerator Object Current get; bool MoveNext; void Reset;
Now, LINQ defines a number of operators as extension methods, in addition to the generic version of IEnumerable i.e, IEnumerable T - So by leveraging the sort inference support for Generic Methods, you'll be able to invoke they on any IEnumerable with no specifying what kind. I.e, you can say as an alternative to String. You can explore Enumerable class to discover these static extensions.
The actual query operators in this instance like Where, Count etc with related expressions are compiled to IL, and so they operate in process just like any IL code is executed by CLR. From an implementation perspective, the parameters of LINQ clauses like Where can be a lambda expression As you could be already knowing, the from. select is simply Syntax sugar that gets expanded to extension types of IEnumerable T, and usually a delegate like Func T,. can represent a symbol from an in memory perspective. But what when you want apply query operators on items sitting some place else? For example, how you can apply LINQ operators along with a set of knowledge rows stored inside a table in a very database that could possibly be in the cloud, instead associated with an in memory collection that's an IEnumerable T? That is precisely what IQueryable T is made for.
IQueryable T can be an IEnumerable T It inherits from IEnumerable T plus it points to some query expression that may be executed in the remote world. The LINQ operators for querying objects of type IQueryable T are defined in Queryable class, and returns Expression Func T. once you apply them upon an IQueryable T, which is usually a you can understand about expression trees here. This will probably be translated on the remote world say a SQL system by way of a query provider. So, essentially, IQueryable concrete implementations points to some query expression along with a Query Provider it does not take job of Query Provider to translate the query expression to your query language with the remote world where it gets executed. From an implementation perspective, the parameters you pass for LINQ that is certainly applied while on an IQueryable is assigned with an Expression T,. instead. Expression trees comes with a way to represent code as data or style of Abstract Syntax Trees. Later, the query provider will walk through this to make an equivalent query in th
public interface IQueryable: IEnumerable Type ElementType get; Expression Expression get; IQueryProvider Provider get; public interface IQueryable T : IEnumerable T, IQueryable, IEnumerable.
For example, in LINQ to Entity Framework or LINQ to SQL, the query provider will convert the expressions to SQL and hand it over for the database server. You can even observe the translation for the target query language SQL, by looking for the Or in short, the LINQ query operators are applying on IQueryable will probably be used to create an expression tree, and this is going to be translated because of the query provider to make and perform query within a remote world. Read this informative article if you're not clear about how a symbol trees are created using Expression T from Lambdas.
So, now we will get into your anatomy and philosophy of observables.
As we discussed, objects of type IEnumerable T are pull sequences. But then, in solid world, occasionally we push things likewise not just pull. Health Alert after you do both together, be sure you do it safe. In a lots of scenarios, push pattern makes a lots of sense as an example, as an alternative to you waiting in a very queue infinitely day and night using your neighbors in front on the local tn post office to collect snail mails, the postal service agent will just push you the mails in your home whenever they arrive.
Now, one on the cool reasons for push and pull sequences are, they're duals. This also means, IObservable T is really a dual of IEnumerable T See the code below. So, to hold the story short, the dual interface of IEnumerable, derived while using Categorical Duality is IObservable. The story goes like some members in Erik s team he was with Microsoft then were built with a well deserved temporal meglomaniac hyperactive spike after they discovered this duality. Here can be a beautiful paper from Erik on that should you are more interested A brief breakdown of Erik s paper is below.
Generic version of IEnumerable, ignoring the non generic IEnumerable base interface IEnumerable out T IEnumerator T GetEnumerator; interface IEnumerator out T : IDisposable bool MoveNext;//throws Exception T Current get; //Its dual IObservable interface IObservable out T IDisposable SubscribeIObserver T observer; interface IObserver in T void OnCompletedbool done; void OnErrorException exception; T OnNext set;
Surprisingly, the IObservable implementation appears like the Observer pattern.
Now, LINQ operators are cool. They are very expressive, and gives an abstraction to query things. So the crazy guys from the Reactive Team thought they ought to take LINQ to operate against event streams. Event streams are usually in fact push sequences, rather than pull sequences. So, they built IObservable. IObservable fabric allows you to write LINQ operators along with push sequences like event streams, much like a similar way you query IEnumerable T. The LINQ operators on an object of type IObservable T are defined in Observable class. So, how would you implement a LINQ operator, like where, upon an observer to complete some filtering? Here is a fairly easy example in the filter operator Where for the IEnumerable with an IObservable simplified to compare and contrast. In the case of IEnumerable, you dispose the enumerator when we have been done with traversing.
Now, look with the IObservable s Where implementation. In this case, we return the IDisposable handle to a Observable so that any of us can dispose it to avoid subscription. For filtering, were simply creating an inner observable that we have been subscribing on the source to use our filtering logic inside that - then creating another top level observable that subscribes for the inner observable we created. Now, you'll be able to have any concrete implementation for IObservable T that wraps a meeting source, and then you are able to query that using Where!! Cool. Observable class in Reactive extensions has few helper techniques to create observables from events, like FromEvent. Let us create an observable, and query the events now. Fortunately, the Rx Team already contains the entire implementation of Observables and related Query operators so that individuals don t finish up in writing customer query operators similar to this.
You can perform nuget for install-package Rx-Main to set up Rx, and try out it that shows event filtering.
Obviously, within the above example, we're able to ve used but I just needed to show how you can wrap an outside event source with observables. Similarly, you are able to wrap your Mouse Events or WPF events. You can explore much more about Rx and observables, and few applications here. Let us get over it now to IQbservables.
Now, allow us to focus on IQbservable T. IQbservable T may be the counterpart to IObserver T to represent a query on push sequences/event sources as a representation, just like IQueryable T would be the counterpart of IEnumerable T. So, just what exactly this means? If you inspect IQbservable, you'll be able to see that
public interface IQbservable out T : IQbservable, IObservable T public interface IQbservable Type ElementType get; Expression Expression get; IQbservableProvider Provider get;
You can easily see that it comes with a Expression property to represent the LINQ to Observable query just like how IQueryable had an Expression to represent the AST of an LINQ query. The IQbservableProvider accounts for translating the expression to the words of a remote event source can be a stream server from the cloud.
This post is really a very high level introduction to Rx Extensions, and here is definitely an awesome talk from Bart De Smet you cannot miss.
And i want to take the liberty of embedding enter created by Charles that is usually a concrete representation with the abstract drawing Bart did within the white board. This is the report on this post.
We ll discuss more practical scenarios where Rx and Ix comes so handy from now on mainly for device to cloud interaction scenarios, complex event processing, task distribution using ISheduler etc - along by incorporating brilliant add-on libraries other people are creating along with Rx. But this place was for a fast introduction. Happy Coding!!
Recently while I was giving a C talk, I pointed out that a great deal of developers continue to be not familiar using the advantages of many of the evolving, but very libraries. Hence, I thought about writing a dangerous post introducing a number of them included in my Back To Basics series, generally and Javascript. In this post we ll explore Interactive Extensions, which is really a set of extensions initially developed for Reactive Extensions from the Microsoft Rx team.
Interactive Extensions, at its core, includes a number of new extensions means of IEnumerable T i.e it adds a volume of utility LINQ to Object query operators. You may have hand coded many of these utility extension methods some where else in your helpers or utility classes, however a great deal of them are aggregated together because of the Rx team. Also, this post assumes that you are familiar together with the cold IEnumerable model and iterators in C. Basically, what C compiler does is, it will take an yield return statement and generate a class outside of that per iterator. So, in a way, each C iterator internally holds scenario machine. You can examine this using Reflector as well, with a method yield returning an IEnumerator T. Or better, there is really a cool post from my good friend Abhishek Sur here or this post about implementation of Iterators in C
Fire up a C console application, and install the Interactive Extensions Package using install-package Ix-Main. You can explore the namespace in - Now, allow us to explore some useful extension methods that got put into IEnumerable.
Let us quickly examine few useful Utility methods.
What most effective version of Do does is actually interesting. Itll lazily invoke an action on each element inside the sequence, when we carry out the enumeration leveraging the iterator.
Let us build a set of numbers var numbers new int 30, 40, 20, 40 ; var n; Before Enumeration; foreachvar item in result //The action are going to be invoked if we actually enumerate After Enumeration;
And the effect below. Note that the action in cases like this, our to print the values is applied place after we enumerate.
Now, the implementation in the simplest version of Do way is something in this way, when you have a simple peek in the the Interactive Extensions source code within Codeplex, you could potentially see how our Do technique is actually implemented. Here is usually a shortened version.
DoWhile in Ix is fairly interesting. It generates an enumerable sequence, by repeating the origin sequence till the given condition does work.
IEnumerable TResult DoWhile TResult IEnumerable TResult source, Func bool condition
Consider this code.