Freitag, Februar 27, 2015
Paper auf arxiv
The Evolution of Popular Music: USA 1960-2010
Matthias Mauch, Robert M. MacCallum, Mark Levy, Armand M. Leroi
Montag, Februar 23, 2015
Mono Mac / Xamarin Mac Notizen
Wann kann man auf die gebundenen Outlets zugreifen?
- Ab AwakeFromNib()
Wie beendet man das Programm beim Schließen des Fensters? Es gibt mindestens 3 Varianten:
- Im WindowController - per Event (in Initialize()):
this.Window.WillClose += () => NSApplication.SharedApplication.Terminate(this); - Im WindowController - per "Delegate" in Initialize:
this.Window.Delegate = new MyWindowDelegate();
dann MyWindowsDelegate:
class MyWindowDelegate : NSWindowDelegate
{
public override void WillClose(NSNotification notification)
{ // close app
NSApplication.SharedApplication.Terminate(notification);
}
} - Im AppDelegate ApplicationShouldTerminateAfterLastWindowClosed überschreiben:
public override bool ApplicationShouldTerminateAfterLastWindowClosed
(NSApplication sender)
{
return true;
}
- Schreibend:
NSUserDefaults.StandardUserDefaults.SetBool(true, "LastFileNameOK");
NSUserDefaults.StandardUserDefaults.Synchronize (); - Lesend:
bool val = NSUserDefaults.StandardUserDefaults.BoolForKey("LastFileNameOK"); - Defaults setzen (ungetestet, sollte so gehen)
var dict = new NSMutableDictionary ();
dict ["UserName"] = (NSString)"User"; NSUserDefaults.StandardUserDefaults.RegisterDefaults (dict);
- z.B. im AppDelegate entsprechende Methoden positionieren, Action-Namen entsprechend dem, was in XCode bzw. der API-Doc steht, z.B. für Neu:
[Action ("newDocument:")]
public void NewDocument (MonoMac.Foundation.NSObject sender)
{
// call mainWindowController and tell him to do something new
}
- http://blog.ac-graphic.net/blog/ - schöne Dev-Video Serie mit C#-Beispielen ergänzt
- Suchen xamarin mac stichwort
- Suchen bei Apple Dev Doku: https://developer.apple.com/search/
Freitag, Februar 20, 2015
Using Git
https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow Branching Guide
http://www.sourcetreeapp.com/ UI für Git+Mercurial auf Win+Mac
Donnerstag, Februar 19, 2015
CAD revisited
Which 3D software should I learn for 3D printing?
https://www.youtube.com/watch?v=ltRL0qXgo2A
Solidworks - using variables and equations
http://www.rs-online.com/designspark/electronics/eng/page/mechanical
Designspark Mechanical (free CAD)
http://www.punchcad.com/c-12-consumer-cad.aspx
ViaCAD (cheap CAD)
http://www.openscad.org/
OpenSCAD (program watertight STL models)
Freitag, Februar 13, 2015
.NET Genetic Algorithm Framework GAF
Sieht ganz gut aus, es gibt auch ein paar CodeProject Artikel dazu.
http://www.codeproject.com/Articles/873559/Implementing-Genetic-Algorithms-in-Csharp
http://www.codeproject.com/Articles/872836/Genetic-Algorithms-in-Csharp-Part-The-Travelling-S
Montag, Februar 09, 2015
Donnerstag, Februar 05, 2015
C# Hack: Tuple mit Namen durch anonymous Type
var list = Enumerable.Empty<object>()
.Select(r => new {A = 0, B = 0})
.ToList();
list.Add(new { A = 4, B = 5 }); // adding actual values
Mittwoch, Januar 28, 2015
Don’t distribute Objects
http://martinfowler.com/articles/distributed-objects-microservices.html
(Ja, ich arbeite mich gerade durch Martin Fowlers RSS Feed)
Dienstag, Januar 27, 2015
Brettspiele wie Carcassonne heißen “Eurogames”
in den USA, interessant.
Mit Bewertung: http://martinfowler.com/articles/eurogames
Cannot Measure Productivity
http://martinfowler.com/bliki/CannotMeasureProductivity.html
We see so much emotional discussion about software process, design practices and the like. Many of these arguments are impossible to resolve because the software industry lacks the ability to measure some of the basic elements of the effectiveness of software development. In particular we have no way of reasonably measuring productivity.