Tuesday, December 01, 2009

System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'

Login failed for user 'NT AUTHORITY\NETWORK SERVICE' hibara itt van egy leiras a netomatrix-rol:

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

forras: osxdaily.com

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

List of Open Internet Connections on Mac

lsof -i

iPhoney - iPhone Safari simulator

Looking for a way to see how your web creations will look on iPhone? Look no further. iPhoney gives you a pixel-accurate web browsing environment—powered by Safari—that you can use when developing web sites for iPhone. It's the perfect 320 by 480-pixel canvas for your iPhone development. And it's free.

Friday, October 02, 2009

Mac OS Quick Look-nal a "rontgenezes" be/ki kapcsolasa

be:
defaults write com.apple.Finder QLEnableXRayFolders 1
ki:
defaults write com.apple.Finder QLEnableXRayFolders 0

Mac OS Enable native NTFS read/write support

Itt van az eredeti, de kommentek kozott vannak ketkedok
  1. 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.
  2. Back up /etc/fstab if you have it; it shouldn't be there in a default install.
  3. Type sudo nano /etc/fstab.
  4. 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.
  5. Repeat the above steps for any other NTFS drives/partitions you have.
  6. Save the file and quit nano (Control-X, Y, Enter), then restart your system.
After rebooting, NTFS partitions should natively have read and write support. This works with both 32- and 64-bit kernels. Support is quite good and fast, and it even recognizes file attributes such as hidden files. My thanks go to Chrysaor, a MacRumors user who brought this to our attention.

Wednesday, September 30, 2009

Mac OS switch user

Csak mert mindig elfelejetem:
System Preferences / Accounts / Login Options / Show fast user swtiching menu

Sunday, September 27, 2009

Create a 'copy as plain text' service on Mac OS

Sam Sawyer leirja, hogy lehet megcsinalni.

Wednesday, August 12, 2009

Mac OS setfile utility

osxdaily.com:

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


+++++++++++++++++++++++++++++


/Developer/Tools/SetFile is a tool to set the file attributes on files in an HFS+ directory. It attempts to be similar to the setfile command in MPW. It can apply rules to more than one file with the options applying to all files listed.

Monday, August 10, 2009

Mac OS Print Screen

Apple key + Shift + 4
Utana ki lehet jelolni amirol kepet akarunk. Amint befejeztuk a kijelolest elkeszul egy png a desktop-ra.
Ha nem jelolunk ki, hanem leutjuk a space-t, akkor kamera lesz a kurzorbol es amelyik ablakra kattintunk arrol kapunk egy kepet a desktop-on.

Tovabba:

1: Create & Set a Designated Screen Shot Folder

Tired of screen shots cluttering the desktop? Me too, and the solution is simple: make a designated folder for screenshots to appear into and then set that as the new default screen shot location. I recommend making a subfolder in the ~/Pictures/ directory named “Screenshots”, then use the following defaults command to set that as the new save location for all screenshots:
defaults write com.apple.screencapture location ~/Pictures/Screenshots/
Follow that up with a restart of SystemUIServer for changes to take effect:
killall SystemUIServer
Test it out by taking a screen shot, it’ll now save directly to the Screenshots folder instead of the desktop.

2: Change the Screen Shot Image File Format

PNG files are typically large and bloated and not the most web-friendly, if your screenshots are destined for the web you can dramatically reduce the file size and avoid the hassle of batch converting images by just changing the default screen shot file type to another image format:
defaults write com.apple.screencapture type jpg
And again, restart SystemUIServer for JPG to be set as the new file type:
killall SystemUIServer
Take a screenshot to confirm. You can also choose GIF, TIF, PDF, or return back to PNG if you want the default setting again. Pick the appropriate format for your needs and this can prevent you from having to batch convert a huge group of images after they’ve been taken.

3: Take Impossible Screen Shots with a Timer

Launch the Grab app found in /Applications/Utilities/ and you can take screen captures on a timer, letting you screenshot things that would otherwise be impossible, like some menu pulldowns, system events, and splash screens.
  • From Grab, pull down the “Capture” menu and choose “Timed Screen”
The default Grab setting is 10 seconds, if you need to have a different time delay, use Terminal instead:
screencapture -T 3 osxdaily.jpg
Replace “3″ with how ever many seconds you want the timed delay to be.

4: Capture the Mouse Pointer or a Custom Cursor in Screen Captures

The aforementioned Grab app has a handy feature that lets you show the pointer in screenshots, and it’s actually customizable from a variety of pointer types. Here’s how to use it:
  • In the Grab app, open “Preferences” and select the desired cursor type”
  • Take a screen shot using Grab app to capture the mouse cursor
Show the cursor in screen shots

5: Move the Selection Area from the Original Position

Command+Shift+4 allows you to take a screenshot with a selection box, but have you ever wanted to move it around after you’ve drawn that selection box? You can.
  • Hit Command+Shift+4 to draw the screen shot selection box as usual, then hit and hold Spacebar and click to drag the box
Screen shot selection box
I’d never actually heard of this one before, but CultOfMac found this neat trick, cheers to them!

Friday, June 19, 2009

xsd:any element processContents attributuma

Olyan XSD-t kellett csinalnom ami egy szintig meghatarozza, hogyan nezzen ki az XML, de egy adott node alatt barmi lehetett. Erre volt jo az xsd:any element, de elsore belefutottam abba a hibaba, hogy nem allitottam be a processContents attributumot ami deafult strict-re volt alltiva es nekem lax kellett volna.

processContents
An indicator of how an application or XML pr
ocessor 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.

 This approach has few usability limitations:

- 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

forras:
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

"Akinek kellett már dokumentálás vagy UI prototípus egyeztetés céljából weblapról képernyőképet készítenie, az tudja, hogy a feladat nem minden esetben egyszerű. Akkor nincs gond, ha az oldal kifér a képernyőre, de mi van akkor, ha függőlegesen csak három képernyőnyi scrollozás után lehet az oldal aljára érni?...
...
kénytelen voltam írni egy célalkalmazást"

Tuesday, February 03, 2009

VIDEO_TS to iso to DVD on Mac OS

VIDEO_TS > iso:

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:

  1. Insert a blank disc.
  2. Start Disk Utility.
  3. From the File menu, choose Open Disk Image and select the ISO to be burned.
  4. In the list of volumes, you will now see an item representing the ISO file. Select it.
  5. Click the Burn button and follow the instructions.

Thursday, January 22, 2009

Avi file-ok osszecsatolasa

Kaptam 3 file-t (xy.001, xy.002, xy.003) ami egy avi file feldarabolasa volt. Mac OS-en kellett osszecsatolni amire az AJoiner-t hasznaltam.