Haris Custo
Posts
If you stack on infinitive loop where your Samsung Omnia 7 (Windows) phone keeps on restarting, this may solve your problems (it solved mine)
Make sure your Device is switched off (remove and reinsert the battery)
1. Press and hold the Camera, Volume Down, and Power buttons simultaneously.
2. Release Power when the phone vibrates, but continue to hold down Camera and Volume Down.
3. Release Camera and Volume Down when the Format prompt is displayed on screen.
4. Press Windows key twice to confirm the hard reset.
Enjoy your phone now
PlusConf is free online Conference founded by Benjamin Alijagic , you can watch videos from conference bellow.
The first one is by Allan Branch from LessEverything
@emanuelblagonic: “I totally agree – Your logo is not a brand!” by @allanbranch
@jasonhanley: “In business, you are weeks away from losing your house, losing your car, and living with your f-ing mom.” #plusconf @allanbranch
@jeff_epstein: “Money is a great justification for doing something you don’t really want to do” the genius of @allanbranch #livinthedream #plusconf
@NickRovisa: “Spend less, save more” – @allanbranch #plusconf – #plusconf live on http://livestream.com/plusconf
Other speakers you can watch at http://www.livestream.com/plusconf
As I said before, I’m starting my first Blog post series, and it would be about Windows Presentation Foundation (WPF).
WPF, a component of Microsoft .NET Framework, empowers you to build the next-generation of Windows user experiences. WPF supports UI, media, documents, hardware acceleration, vector graphics, scalability to different form factors, integration with Windows, interactive data visualization, and superior content readability.
I’ll assume that you have basic information about WPF and that you have played a little with it and try to build something. I’m using VS 2010 for programming, and Expression Blend 4 for designing application.
WPF Application Architecture
This one is no-brainer, but I need to start with something Every time I’m creating new application I want to have place for Common code and Data access separated from my UI project. Even if you think that your application will be small one and that you don’t have any need to separate it, I would still suggest you to take this advice and Separate Common classes and DataAccess from UI.
So for a start, I’ll have structure like this:
Tweet is WPF app which will consume data from Tweet.DataAccess (C# class library). Common library (as it’s name suggest) will contain all common stuff which is used by 2 or more projects. Basically it starts as an empty project and as your app evolve you will start to move methods or classes from other projects to common and reuse them as you need.
Tweet.DataAccess will be responsible for accessing/updating/saving data to Database. Here I will use Entity framework (EF) as ORM (Object relational mapper) but you can use anything you want (maybe LightSpeed or NHibernate). My database will be SQL CE (to keep examples simple) but thanks to EF and it’s option Generate database from Model, I can create SQL Server or SQLite support in couple of minutes.
This was easy next time, we will go in details how to get data from database with Entity Framework.
A few minutes ago Enis Šahinović posted on twitter
So Windows Phone 7 smartphones are on sales in the US. I haven’t seen anyone waiting for them in front of the stores. #wp7 #windowsphone7
But I disagree with him, look below
LOL
I was thinking to write blog post series about process of developing WPF applications.
The series would be about WPF and:
- Main architecture of Client/Server application (the big picture)
- Using Entity Framework with SQL Server, SQLite (or SQL CE) and WPF (+Advanced topic on Error handling on Model level)
- Authentication and Authorization
- Navigation through Forms in WPF app.
- Implementing MVVM pattern and using Commands (to have clear XAML forms without Code Behind files)
- Localization with RESX files (+Special chapter of localization using Google Translate API)
- Synchronization between multiple clients and Server (with sync framework)
- Implementing design (From image to actual application)
- Creating bindable User Controlls
- Creating Styles, templates and Themes
- Advanced printing in WPF
- Creating Installation
- Creating custom application updater
- Easy way to control Errors in one place
Let me know in comments if you are interested in these topics or what else do you want to know?
Left side of this image is design not produced, but instructed, by developer (Me).
Right side of image is design created by designer (Emanuel Blagonic)
Which one is your favorite, and what is your profession?
Leave your thoughts in comments
Well, it’s really easy!
I don’t know about you, but I have huge problem with copying files from my debug folders. First of all, it’s annoying, and second of all it takes time.
I’m using Visual Studio 2010 .
I have Solution with 14 projects (yes, it’s big solution – actually it’s POS Sector Solution, one of our products for Clubs and Restaurants), and not all projects are referenced between themselves, so there is no way to have all of .exe and .dll files in one Debug directory.
When there is tough day, i need to copy about 20 files from 5 directories for about 10 times in a day, and send them to my teammates for purpose of testing. All that ALT + TAB, CTRL + C, ALT + TAB, CTRL + V x 5 folders * 10 times = 45min / 1h lost every day.
To solve this, i created Batch file which copy all of files that i need, from Debug to Update directory.
Here is example of batch file :
@echo off
copy “D:\projects\POS Sector\bin\Debug\POS.BusinessLogic.dll” “C:\UPDATE\POS.BusinessLogic.dll” /y
copy “D:\projects\POS Sector\bin\Debug\POS.DataAccess.dll” “C:\UPDATE\POS.DataAccess.dll” /y
You can have as many as you need copy statements, but they must be on new line.
@echo off on first line will prevent any commands in the batch file to be sent to the screen when executed.
/y param means overwrite existing file.
Here is how you create batch file
The same way you can create batch file which will backup your directory.
Do you have some tricks like this one, which are ease to do, but save a lot of time?
Photos
Posts
Updates
-
@neximuss Deal :)
-
Moonfruit Finally Exits For $29 Million In Cash To Re-energize Yell http://t.co/DlYor9Yb
-
@neximuss Drugi su me i ponukali da objavim, kažu vidi ga isti Eric :)
-
Sve je tu http://t.co/QwkGFkMV RT @lucijanblagonic: IMHO @zriha, ako si se zeznuo s postom o Navigo sistemima i neplaćanju pa ga obrisao...
-
A good day's work David May 22 http://t.co/O4ASalKg
-
Encyclopedia Stack Exchange http://t.co/Dgwi0Xze
-
Same here :) RT @portentint: Leap Motion http://t.co/IHons8v7 I ordered one. I couldn't stop myself.
-
@lucijanblagonic kraj 2012 / početak 2013 - tko preživi :)
-
Upravo naručili http://t.co/MlCNFOFj #Amazing
-
The Six Enemies of Greatness (and Happiness) http://t.co/KfHc0IHj
-
http://t.co/mj6HaWVs Web API: Generating a Web API help page using ApiExplorer http://t.co/9SaZyiVq
-
Four types of mobile apps http://t.co/WT5Veb0O
-
Inventor of Google Voice now reinventing conference calls http://t.co/0HPJbKqj
-
Microsoft Research just exploded the world record for data sorting in a 60 second window http://t.co/vdZvrfkf
-
Looks amazing :) RT @github: Announcing GitHub for Windows! https://t.co/qqGWmRQu
-
Najdraže mi je na "hvala" odgovoriti, "hvala Vama na ukazanom povjerenju :)" #sales
Solutions Architect at Luna.Com d.o.o. IT Engineering, Mostar - Bosnia and Herzegovina