Monday, November 15, 2010
Tuesday, November 09, 2010
forgatas Silverlight-ban
Monday, October 04, 2010
Thursday, September 09, 2010
David Mendez: Start, Stop, and Restart Windows Services from Mac OS X
Mac OS X includes Samba support by default, and this is really handy if you’d like to remotely restart and monitor services running on a Windows machine.
To list services running on the Windows machine, use this command:net rpc service list -I IPADDRESS -U USERNAME%PASSWORD
A practical example would be:net rpc service list -I 192.168.0.115 -U Windows%myPassword
After identifying the service you want to restart, you issue the following command to stop the service:net rpc service stop SERVICENAME -I IPADDRESS -U USERNAME%PASSWORD
Then you can restart (or start) the service by using the following command:net rpc service start SERVICENAME -I IPADDRESS -U USERNAME%PASSWORD
This is tip that I found on Lifehacker that was aimed at Linux users, but considering Mac OS X has a unix underbelly equipped with samba the command works just the same on a Mac.
Thursday, August 12, 2010
Sunday, June 13, 2010
Wednesday, June 09, 2010
readerQuotas
Wednesday, June 02, 2010
Sunday, May 16, 2010
Scott Guthrie: VS 2010 and .NET 4 Series
- Clean Web.Config Files
- Starter Project Templates
- Multi-targeting
- Multiple Monitor Support
- New Code Focused Web Profile Option
- HTML / ASP.NET / JavaScript Code Snippets
- Auto-Start ASP.NET Applications
- URL Routing with ASP.NET 4 Web Forms
- Searching and Navigating Code in VS 2010
- VS 2010 Code Intellisense Improvements
- WPF 4
- Add Reference Dialog Improvements
- SEO Improvements with ASP.NET 4
- Output Cache Extensibility with ASP.NET 4
- Built-in Charting Controls for ASP.NET and Windows Forms
- Cleaner HTML Markup with ASP.NET 4 - Client IDs
- Optional Parameters and Named Arguments in C# 4 - and a cool scenarios with ASP.NET MVC 2
- Automatic Properties, Collection Initializers and Implicit Line Continuation Support with VB 2010
- New <%: %> Syntax for HTML Encoding Output using ASP.NET 4
- JavaScript Intellisense Improvements with VS 2010
- VS 2010 Debugger Improvements (DataTips, BreakPoints, Import/Export)
- Box Selection and Multi-line Editing Support with VS 2010
- VS 2010 Extension Manager (and the cool new PowerCommands Extension)
Friday, May 14, 2010
WrapPanel
Victorgaudioso: How to use the Silverlight Toolkit’s WrapPanel to Create a Three Column ListBox
Thursday, May 13, 2010
Scott Guthrie: Silverlight 2 End to End Tutorial
To help people come up to speed with Silverlight 2, I've written a simple Silverlight application and put together a series of step by step tutorials that explain the different programming concepts behind it (controls, layout management, networking, data-binding, styles, user controls, templates, etc). I also added a tutorial post that demonstrates how to migrate the application outside of the browser and enable it to run as a desktop application using WPF and the full .NET Framework.
Below are the pointers to the 8 tutorials I've put together:
- Part 1: Creating "Hello World" with Silverlight 2 and VS 2008
- Part 2: Using Layout Management
- Part 3: Using Networking to Retrieve Data and Populate a DataGrid
- Part 4: Using Style Elements to Better Encapsulate Look and Feel
- Part 5: Using the ListBox and DataBinding to Display List Data
- Part 6: Using User Controls to Implement Master/Details Scenarios
- Part 7: Using Templates to Customize Control Look and Feel
- Part 8: Creating a Digg Desktop Version of our Application using WPF
Thursday, May 06, 2010
Wednesday, March 03, 2010
Wednesday, February 10, 2010
Tuesday, January 26, 2010
Zulfiqar: DataContract Serializer and IsReference property
Wednesday, January 06, 2010
Monday, December 14, 2009
Friday, December 11, 2009
Tuesday, December 01, 2009
System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
Dependig on the operating system this user account is either Network Service or ASPNET. On Windows 2003 ASP.Net process runs under context of 'Network Service' account and on Windows XP or prior the process runs under context of 'ASPNET' user account.
The error message gives all the clues that you need to figure out what the problem is. Your application is trying to open connection with SQL server and SQL Server is not authenticating the user context. ASPNET or Network Service is not some user account that you could have created. So first clue is that it is some built-in windows account that is trying to connect to SQL Server. That tells you that your connection string is using Integrated Security meaning it wants to use the login user's credentials to connect to SQL Server. This leads to next clue that you intended to use Windows authentication for ASP.Net application. Based on this forensic data and clues following is a list of things that could have gone wrong.
- Your connection string is wrong. Meaning you wanted to use SQL authentication but for some reason it is using Integrated Security
- Your settings in Web.config are wrong. Meaning that you wanted to use authentication mode to be windows but it is set to none.
- Your IIS settings for web application or virtual directory are not correct.
- You forgot to add these Windows accout to SQL Server users list
Based on above list, you can do the following to fix the problem.
- If you intended to use SQL authentication and not Integrated security then fix your connection string.
- Fix authentication mode in Web.config and set impersonation on if you intended to use Windows authentication for ASP.Net web application. Also make sure that you have turned off anonymous access in IIS for your ASP.Net web application
- You can grant 'Network Service' or 'ASPNET' user accounts permissions to connect to database.
Tuesday, November 17, 2009
Thursday, October 22, 2009
Force Safari to open target links in new tab rather than window
ou can force Safari to open target = “_blank” links into new tabs rather than new windows by opening the Terminal and typing the following command:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
Then restart Safari and from here on anytime you click a link targeted as _blank it will open in a new tab.
You can reverse this behavior and go back to the default new windows instead by typing:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool false
Friday, October 09, 2009
iPhoney - iPhone Safari simulator
Friday, October 02, 2009
Mac OS Quick Look-nal a "rontgenezes" be/ki kapcsolasa
Mac OS Enable native NTFS read/write support
- In Terminal, type diskutil info /Volumes/volume_name, where volume_name is the name of the NTFS volume. From the output, copy the Volume UUID value to the clipboard.
- Back up /etc/fstab if you have it; it shouldn't be there in a default install.
- Type sudo nano /etc/fstab.
- In the editor, type UUID=, then paste the UUID number you copied from the clipboard. Type a Space, then type none ntfs rw. The final line should look like this: UUID=123-456-789 none ntfs rw, where 123-456-789 is the UUID you copied in the first step.
- Repeat the above steps for any other NTFS drives/partitions you have.
- Save the file and quit nano (Control-X, Y, Enter), then restart your system.
Wednesday, September 30, 2009
Sunday, September 27, 2009
Wednesday, August 12, 2009
Mac OS setfile utility
Make a file or folder invisible in Mac OS X Finder
setfile -a V testfile.txt
Poof! Like magic, the file or folder is no longer visible via the Finder GUI, but don’t worry your files are still there and you can find them via the command line and will show with an ls command. If you want to make your files and folders visible again, use this command:
Make a file folder visible again in Mac OS X Finder
setfile -a v testfile.txt
Monday, August 10, 2009
Mac OS Print Screen
Tovabba:
1: Create & Set a Designated Screen Shot Folder
defaults write com.apple.screencapture location ~/Pictures/Screenshots/killall SystemUIServer2: Change the Screen Shot Image File Format
defaults write com.apple.screencapture type jpgkillall SystemUIServer3: Take Impossible Screen Shots with a Timer
- From Grab, pull down the “Capture” menu and choose “Timed Screen”
screencapture -T 3 osxdaily.jpg4: Capture the Mouse Pointer or a Custom Cursor in Screen Captures
- In the Grab app, open “Preferences” and select the desired cursor type”
- Take a screen shot using Grab app to capture the mouse cursor
5: Move the Selection Area from the Original Position
- Hit Command+Shift+4 to draw the screen shot selection box as usual, then hit and hold Spacebar and click to drag the box