vendredi 25 janvier 2013

.Net and Softwaredesign tips:

C# quick & easy tutorial: http://www.ivobrugge.be/cursusweb/csharp/index.asp

Hoe een object verdwijnt (GC):

Destructors: http://www.c-sharpcorner.com/UploadFile/chandrahundigam/UnderstandingDestructors11192005021208AM/UnderstandingDestructors.aspx

Destructors - IDisposeable - Finalize: http://csharpsimplified.wordpress.com/2010/10/03/destructor-finalize-idispose/

Heeft een, is een en gedraagt zich als:
http://stackoverflow.com/questions/14139097/c-sharp-inheritance-implements-extends
http://db.tt/ZUFKvlWR

Delegates, events, Lambda expressions en anonymous methods:
Delegates terug te vinden in de tutorial onder Polymorfisme


Events: 

Events enable a class or object to notify other classes or objects when something of interest occurs. The class that sends (or raises) the event is called the publisher and the classes that receive (or handle) the event are called subscribers.

http://www.codeproject.com/Articles/9355/Creating-advanced-C-custom-events/
http://msdn.microsoft.com/en-us/library/ms366768.aspx 

Lambda expressions:


A lambda expression is an anonymous function that you can use to create delegates or expression tree types. By using lambda expressions, you can write local functions that can be passed as arguments or returned as the value of function calls. Lambda expressions are particularly helpful for writing LINQ query expressions.
To create a lambda expression, you specify input parameters (if any) on the left side of the lambda operator =>, and you put the expression or statement block on the other side.

http://msdn.microsoft.com/en-us/library/bb397687.aspx

Anonymous methods:

Anonieme methoden zijn methoden dat men kan oproepen op één bepaalde plaats (via een delegate), maar nergens anders. Eens de (delegate) overschreven is, is deze methode ook verloren.

Zo lang een delegate deze anonieme methode onthoud, kan een gebruiker deze oproepen. Na overschrijving is dit gedaan.


Nullable types, operator overloading, extension methods, anonymous types:


Gelijkheid en volgorde: 

Collections en generics: 

Enumeratie en iteratoren: 
IEnumerable
http://msdn.microsoft.com/en-us/library/vstudio/cc138362.aspx
http://www.codeproject.com/Articles/18717/Enumerating-Objects-in-C
http://msdn.microsoft.com/en-us/library/vstudio/dscyy5s0.aspx

foreach
for
while
do ... while
if ... else
switch ... case ... : ... break;

User defined controls: 

Threading:

 

Assemblies:


LINQ:
http://db.tt/jX78shaj

DB conn Access:
http://stackoverflow.com/questions/4598294/reading-data-from-access-database-in-c-sharp

http://www.youtube.com/watch?v=jd3yUjGc9M0 

https://docs.google.com/document/d/1j7C9kUj5g3WQD_6rIvWkShS5CvSpw_ErS4Pz8K2lgFY/edit 

lundi 26 mars 2012

A great app you need to give a try #MAC

Alfred: Alfred will help you with all the basic tasks you need (especially if you have the powerpack)
  • start your apps
  • play your favorite music
  • find files you don't remember were even on your mac
  • make you do searches on facebook, google, twitter, wikipedia and others
  • calculator, dictionnary, etc (same as spotlight, but you don't actually need to start the applications)
  • Do some system actions (sleep, shut off, lock, empty the trash)
  • perform some shell scripts
  • etc, etc
 http://www.alfredapp.com/



dimanche 11 mars 2012

Get some mac apps for free


Sometimes, you just want a program, but don't want to spend a fortune on it (or don't have the money, especially if you're a student). Then, here's the solution:

Go to a torrent site (e.g. torrentz.com) and type:
   Serial box #month #year (#month being the current month: e.g. 3, #year being the current year: e.g. 2012)
and download the torrent with a torrent client such as Transmission or μTorrent
Then you just follow the links (demo and serials) and the instructions

Be careful, sometimes it doesn't work anymore if you update the program you've done this for...

I don't push anyone to cheat their way through a program, but sometimes it is pretty useful to know it's out there...
Connect to your Microsoft SQL Server on a Mac without emulation

Install the Oracle SQL Developer software
Download the MySQL jdbc driver
Start the Oracle SQL Developer Software 
go to tools -> preferences -> Databases -> 3rd party JDBC drivers
 and add the downloaded driver in the list

Create a new connection in the main window, and you'll see a tab with SQLServer

Done!