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 SystemUIServer
2: Change the Screen Shot Image File Format
defaults write com.apple.screencapture type jpg
killall SystemUIServer
3: Take Impossible Screen Shots with a Timer
- From Grab, pull down the “Capture” menu and choose “Timed Screen”
screencapture -T 3 osxdaily.jpg
4: 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
Friday, June 19, 2009
xsd:any element processContents attributuma
processContents
An indicator of how an application or XML processor should handle validation of XML documents against the elements specified by this any element. If no processContents attribute is specified, the default is strict. If processContents is specified, it must one of the following:
strict | The XML processor must obtain the schema for the required namespaces and validate any element from those namespaces. |
lax | The XML processor attempts to obtain the schema for the required namespaces and validate any element from those namespaces; however, if the schema cannot be obtained, no errors will occur. |
skip | The XML processor does not attempt to validate any elements from the specified namespaces. |
Friday, March 27, 2009
Microsoft AppLocale
Unicode based platforms, such as Windows XP, emulate the language environment required to run non-Unicode applications by internally converting application's non-Unicode text data to Unicode using a system-wide variable commonly called the system local (or language for non-Unicode applications). The language of the non-Unicode applications should be of the same script or family as the one defined by the system locale. Failing to meet this condition results in display of garbage characters in the UI of the application.
- Only an administrator has the ability of setting the system locale value.
- Setting the system locale requires a system reboot.
- Only one system locale can be set at a time.
AppLocale (or Application Locale) is a temporary solution to these limitations caused by non-Unicode applications running on the Unicode (UTF-16) based Windows XP. AppLocale detects the language of the legacy application and simulates a corresponding system locale for code-page to/from Unicode conversions.
++++++++++++++++
Ha batch file-bol futtatjuk akkor tudni kell a hexa language id-kat
pl: AppLoc.exe foo.exe /L0401 arab kornyezetben inditja a foo.exe-t
Thursday, March 12, 2009
Thursday, February 26, 2009
Ha nincs Wi-Fi
http://forum.speedshop.hu/index.php?automodule=blog&blogid=3&&req=printentry&eid=21
Ha nincs a közelben (pl. munkahelyen) WiFi HotSpot, de van egy laptop vagy egy PC WiFi adapterrel, akkor ebből tudunk Wi-Fi hálózatot készíteni az iPhone-unknak.
Alábbiak szerint működik a dolog.
Windows Vista-n
- Ellenőrizd, hogy az internet működik–e?
- Lépj be ide: Vezérlőpult / Hálózat és megosztási központ (network and sharing center)
- Balra a feladatok menüben klikkelj az új kapcsolat létrehozására
- Itt válaszd ki a vezeték nélküli ad hoc hálózatot (wireless ad hoc network)
- Adj nevet a hálózatnak és egy WEP kódot, ha nem akarod mindenkivel megosztani
- Kattints a "kapcsold be az internet kapcsolat megosztását" opcióra és kész.
Mac-en
- Ellenőrizd, hogy az internet működik–e?
- Rendszer tulajdonságok (system preferences), kattints a megosztásra (sharing)
- felül kattints az Internet gombra a kívánt oldalhoz
- válaszd ki, hogy honnan szeretnéd használni, neked a beépített ethernet kell (Built in –Ethernet)
- lent a kis ablakban pedig az AirPort –ot válaszd
- az opciók alatt tudsz nevet és kódot adni a hálózatnak
- klikkelj a start-ra és készen is van
Widows XP-n
- Ellenőrizd hogy az internet működik –e?
- vezérlőpult / hálozati kapcsolatok
- jobb klikk a vezeték nélküli kapcsolatokra (wireless connections) és kattints a tulajdonságokra (properties)
- először a vezeték nélküli hálózatok alatt (wireless networks) jelöld be azt az ablakot, hogy: használd a windows-t, hogy konfigurálja a vezeték nélküli hálózati beállításokat.
(Use windows to configure my wireless network settings)
- lent a kedvelt hálózatokban (preffered) kattints a hozzáadásra (add)
- adj nevet a hotspot-nak, aztán válaszd ki a megosztott (shared), majd a WEP opciót. Adj neki egy kódot, majd kattints az OK-ra.
- most klikk a további lehetőségekre és jelöld ki, hogy: csak gépről-gépre (ad hoc) hálózatok (computer-computer (ad hoc) networks only)
- itt minden befejezve, kattints az OK-ra mindenhol
- most jobb klikk a helyi hálózati kapcsolatokra és klikk a tulajdonságokra (properties)
- a legtetején van egy speciális (advanced) lapfül
- internet kapcsolat megosztás (internet connection sharing)
- jelöld be az első beallítást, de vigyázz arra, hogy a második ne legyen bejelölve.
- OK mindenhol és kész is van
Előfordulhat hogy a BIOS-ban be van jelölve, hogy ne használjon WiFi-t, ha van aktív kábeles internet, akkor ezt ki kell kapcsolni, hogy működjön!
Friday, February 13, 2009
Balássy György: Nagy méretű weblapok fotózása – Webpage Capture
...kénytelen voltam írni egy célalkalmazást"
Tuesday, February 03, 2009
VIDEO_TS to iso to DVD on Mac OS
After searching the forums and trying various things, I still couldn't find a quick, reliable, free method of burning a VIDEO_TS folder to a pure UDF DVD, so that it would play in regular DVD players, as well trigger DVD Player to start up automatically. Anyway, as often is the case, Terminal had the answers. Just type in this command and change the paths to suit:
hdiutil makehybrid -udf -udf-volume-name DVD_NAME \
-o MY_DVD.iso /path/to/VIDEO_TS/parent/folder
Make sure that /path/to/VIDEO_TS/parent/folder is the path to the folder containing the VIDEO_TS folder, not the VIDEO_TS folder itself. Once the .iso file has been created, drag this to Disk Utility and hit the Burn button.iso to DVD:
- Insert a blank disc.
- Start Disk Utility.
- From the File menu, choose Open Disk Image and select the ISO to be burned.
- In the list of volumes, you will now see an item representing the ISO file. Select it.
- Click the Burn button and follow the instructions.