tag:blogger.com,1999:blog-72237015126930233232024-03-08T02:52:19.241-08:00she nerdlesDevlin Carnatehttp://www.blogger.com/profile/14600257020567043721noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-7223701512693023323.post-47804624230781684912011-09-15T12:59:00.000-07:002011-09-15T13:00:02.809-07:00using mac function keys in a remote windows sessionthis one was really frustrating to figure out. my company has a terminal application that requires function keys to navigate. my home computer is a mac based OS with a mac wireless keyboard, and so when i work from home, i have to use this workaround in order to navigate that terminal app:<br />
<br />
<blockquote>fn-option-<function key><br />
then<br />
fn-command-<function key></blockquote><br />
<br />
yes, it takes both combinations for one function key. so, for example, to use f12:<br />
<blockquote>fn-option-f12<br />
fn-command-f12</blockquote><br />
page up & down are similar:<br />
<blockquote>fn-option-<up arrow><br />
then<br />
fn-command-<up arrow></blockquote>Devlin Carnatehttp://www.blogger.com/profile/14600257020567043721noreply@blogger.com0tag:blogger.com,1999:blog-7223701512693023323.post-46075761813419471752010-09-03T17:37:00.000-07:002010-09-03T17:41:20.703-07:00VNC from a Windows PC to Mac OSi spent a few hours recently trying to make this work... it should be a straightforward thing to remotely connect to a mac from a PC. but the two platforms, like cain and abel, just seem to hate each other.<br />
<br />
<b>Configure your mac to accept an incoming connection.</b><br />
enabling remote access in mac OS X is easy. system preferences->sharing->screen sharing. select the computer settings button, and select the option to allow VNC access with a password. pleeeez... password your shits or suffer the wrath of khan! leave the other options at default.<br />
<b><br />
Make note of your mac's IP address.</b><br />
system preferences->network. look at the TCP/IP information for whatever network interface your using. if you have an ethernet cable connected to your mac, you're looking for the built-in ethernet IP Address. or your mac could be using a wireless airport connection. <a href="http://kb.wisc.edu/helpdesk/page.php?id=6526">Screenshots and steps explaining how to find the IP Address of your mac.</a><br />
<br />
<b>Install a VNC client on your PC.</b><br />
i use the free version of <a href="http://www.realvnc.com/products/free/4.1/download.html">RealVNC</a>. the download screen asks for your contact information, but none of the fields are required. so just skip down to the Download button. once you download the file and start the installation wizard, take the defaults... except where it asks if you want to install VNC Server or VNC Viewer or both. you only need VNC Viewer.<br />
<br />
theoretically, you should be ready to fly. but in my case, when i tried to connect to the mac using VNC viewer, a saw a quick flash and then NOTHING. oooo. ahhhh.<br />
<br />
the solution was to create a VNC preferences file.<br />
<br />
<blockquote>[Connection]<br />
Host= IP_ADDRESS_OF_MAC_GOES_HERE!<br />
[Options]<br />
UseLocalCursor=1<br />
UseDesktopResize=1<br />
FullScreen=0<br />
FullColour=1<br />
LowColourLevel=1<br />
PreferredEncoding=hextile<br />
AutoSelect=0<br />
Shared=0<br />
SendPtrEvents=1<br />
SendKeyEvents=1<br />
SendCutText=1<br />
AcceptCutText=1<br />
DisableWinKeys=1<br />
Emulate3=0<br />
PointerEventInterval=0<br />
Monitor=<br />
MenuKey=F8<br />
AutoReconnect=1</blockquote><br />
copy the above and paste into notepad. be sure to insert the IP Address for your mac on the HOST line. when you save the file, enclose the name in quotes with a .vnc on the end. for example, i called mine: "mac.vnc"<br />
this forces notepad to save the file as .vnc type instead of .txt<br />
<br />
<b>Create a batch file to run VNC viewer with the .vnc settings file.</b><br />
i don't want to have to bring up the command prompt and type blah blah blah every time i VNC to my mac. waste o time.<br />
so... i created a batch file so all i have to do is double click on an icon when i want to connect. the process:<br />
copy the following into a new notepad file and save as "vnc_mac.bat" (quotes are important so notepad doesn't save it as .txt)<br />
<blockquote>start "vnc" "c:\program files\realvnc\vnc4\vncviewer.exe" -config "c:\program files\realvnc\vnc4\mac.vnc"</blockquote><br />
some things to note: your mac.vnc file needs to be in the same folder as your VNC viewer executable. in most cases, your path will be the same as the one above. but it's possible you may need to change the file path (if you didn't install RealVNC on your C:\ for example).<br />
<br />
i then put my mac_vnc.bat file in My Documents and created a shortcut to the desktop.<br />
<br />
double click the shortcut on your desktop to mac_vnc.bat, and you should be prompted for the VNC password you set on your mac. <br />
<br />
and all is happy with the world.Devlin Carnatehttp://www.blogger.com/profile/14600257020567043721noreply@blogger.com2tag:blogger.com,1999:blog-7223701512693023323.post-55252873060876163722010-09-03T17:10:00.000-07:002010-09-03T17:48:16.477-07:00goodbye sharepoint, hello other nerdle realms...i no longer have access to a production sharepoint environment, and as such, i probably won't be blogging much about adventures in sharepoint.<br />
<br />
but i'm a nerdle to the core... so there will always be things i learn that maybe are of interest to others out there in the cybersphere.Devlin Carnatehttp://www.blogger.com/profile/14600257020567043721noreply@blogger.com3tag:blogger.com,1999:blog-7223701512693023323.post-43556589998912239872010-01-22T15:56:00.000-08:002010-01-22T15:57:33.583-08:00Non-Specific Data Source Error in Sharepoint Data View Web PartI ran into another annoyingly generic M$ error today when trying to configure the data source for a Data View web part (DVWP) in Sharepoint Designer. I had created a SQL view which referenced some Sharepoint list data, did some calculations in SQL, and I wanted to show the results back in Sharepoint.<br />
<br />
I was able to successfully show the list of SQL tables / views in the data source manager, but as soon as I selected my SQL view and clicked Next, I saw:<br />
<blockquote><span style="font-size: small;"><span style="font-family: Calibri;"><span style="font-size: x-small;">"Server Error: An error occurred while retrieving the list of Databases from : The server for the data source returned a non-specific error when trying to execute your query. Check the format and content of your query and try again. If the problem persists, contact the server administrator."</span></span></span> <br />
</blockquote>I found a <a href="http://www.sharepointdev.net/sharepoint--design-customization/error-with-connecting-to-sql-server-2005-from-sharepoint-designer-6097.shtml" target="_blank">forum</a> where a user suggested that the issue was Sharepoint Designer failing to properly handle SQL queries that were missing fully qualified table references. I played around with that idea and determined through testing that it wasn't the source of my problem.<br />
<br />
But, it did cause me to remember that the SQL database in which I'd created my view was not the Sharepoint Content database, and I had referenced Sharepoint data. The view ran fine in SQL. But I wasn't configuring the Data View web part with *my* credentials.<br />
<br />
Aha!<br />
<b>Problem resolved:</b> in SQL, add a User Mapping to the Sharepoint Content database in the properties of the login I was using in my Data ViewDevlin Carnatehttp://www.blogger.com/profile/14600257020567043721noreply@blogger.com0tag:blogger.com,1999:blog-7223701512693023323.post-2265839951244294052010-01-05T11:31:00.001-08:002010-01-05T11:36:20.255-08:00"Failed to Load" workflow in Sharepoint Designeri ran across this error today when attempting to open existing workflows, and found several posts which indicate the 12.x.x.xxx folder under \Documents and Settings\<user>\Application Data\Microsoft\SharePoint Designer\ProxyAssemblyCache need to be deleted (after closing Designer).</user><br />
<br />
this didn't work in my case. it did allow me to create new workflows, but i wasn't able to open my existing ones.<br />
<br />
and then i remembered the other day, i was troubleshooting a different sharepoint issue and in doing so, i replaced web.config with an earlier copy. it didn't fix my other issue, but i also didn't restore the web.config to the later version.<br />
<br />
so, i put the latest copy of web.config back in place, renaming the older, "safe" copy of the file. i then deleted the 12.x.x.xxx folder, and launched SPD.<br />
<br />
and there was much joy & singing across the land.Devlin Carnatehttp://www.blogger.com/profile/14600257020567043721noreply@blogger.com0tag:blogger.com,1999:blog-7223701512693023323.post-48442159531065665612009-12-10T13:00:00.000-08:002010-01-22T16:01:03.774-08:00Finding the Elusive Lookup Field with SQL Query against Sharepoint's Backend DatabaseBecause Sharepoint data is housed in SQL, it's possible to query it using T-SQL (example <a href="http://weblogs.sqlteam.com/jhermiz/archive/2007/08/15/60288.aspx" target="_blank">here</a> ). Of course, M$ says you shouldn't query the database directly, as it could impact performance, schema could suddenly change with a sharepoint update, blah blah blah. There ARE supported ways in which to query Sharepoint data in SQL, such as <a href="http://slam.codeplex.com/" target="_blank">Sharepoint List Association Manager</a> on codeplex.<br />
<br />
Finding the data isn't too hard. But the other day I encountered a list with fields of type "lookup" in sharpeoint, and realized that lookup fields are handled differently in the database. You can't just look at the UserData table fields like you can with other types of data.<br />
<br />
Lookup data requires a JOIN between UserData and AllUserData tables on the UserData.intX and AllUserData.tp_ID fields for the corresponding list in AllUserData. So, I used the concept of <a href="http://weblogs.sqlteam.com/jhermiz/archive/2007/08/15/60288.aspx" target="_blank">querying Sharepoint list data in SQL</a> and added the following steps to the process:<br />
Find the proper tp_ListId in AllUserData by looking for the List Name in tp_DirName. This value is not going to be the same as the tp_ListId value in UserData because "lookup" means it's two different lists ;)<br />
Review the UserData table int fields and find the one that corresponds to the AllUserData.tp_ID, and create your table join here.<br />
In my case, the value I needed was stored in UserData.int7:<br />
<blockquote><b>SELECT</b> WSS_Content.dbo.AllUserData.nvarchar3 AS EmployeeName<br />
<b>FROM</b> WSS_Content.dbo.UserData <b>INNER JOIN</b> WSS_Content.dbo.AllUserData <b>ON</b> WSS_Content.dbo.UserData.int7 = WSS_Content.dbo.AllUserData.tp_ID<br />
<b>WHERE </b> (WSS_Content.dbo.UserData.tp_ListId = '<i><value from="" id="" list="" of="" userdata=""></value>value of UserData.tp_ListId</i>') <b>AND</b> (WSS_Content_TServer.dbo.AllUserData.tp_ListId = '<i>value of AllUserData.tp_ListId</i><i><value alluserdata="" from="" id="" list="" of=""></value></i>')<br />
</blockquote>Devlin Carnatehttp://www.blogger.com/profile/14600257020567043721noreply@blogger.com0tag:blogger.com,1999:blog-7223701512693023323.post-75588690276634253452009-11-29T20:01:00.000-08:002010-01-22T16:02:07.775-08:00multiple login prompts to sharepoint / wssthis seems to be a fairly common problem in sharepoint, and it can be caused by different things.<br />
<br />
first, the core of the issue is not <i>sharepoint</i> failing to authenticate; it's an authentication failure at the Windows OS level. by default, Windows re-prompts for authentication three times when there's a problem with authentication, and then it denies access. in sharepoint, the three prompts are seen, but there usually is no message stating that authentication has failed after the third prompt. (however, you can verify the failure by reviewing Event Viewer->Security logs on the web front end server)<br />
<br />
here are the issues that can lead to multiple prompts for authentication<br />
<ul><li><u>IE is configured to always prompt for credentials</u>: in this scenario, the solution is usually to change IE settings so that it passes the credentials of the currently logged in user. see <a href="http://www.paulliebrand.com/2008/04/02/sharepoint-consistently-prompting-for-user-credentials/" target="_blank">here</a> for more information. <br />
</li>
</ul><ul><li><u>permissions problem with a file or directory</u>: this one can be as simple as the company logo being on a file share / directory that users don't have at least read permissions. if it's a problem with an image on the page, you'll see a red x instead of the logo, for instance. you can either add read permissions to the file share in which the image file resides, or add the image to a picture library in sharepoint to which all users have at least read access. if it's not an image on the page, it could be a more difficult problem to track down, such as a file in your virtual directory with improper permissions (see <a href="http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_22109776.html#18455209" target="_blank">here</a> for an example).</li>
</ul><ul><li><u>sharepoint needs to be extended to a new zone</u>: you can tell if you need to extend your site to a new zone by watching the url in the address bar as you see each login prompt. for testing, try the following: at the first login prompt, click cancel without inputting your credentials, and make note of the url. then close your browser, launch a new session and provide credentials to the first prompt, but click cancel on the second prompt, and make note of the url before closing your browser. continue this process for the third prompt. if at any point the url changed, it's an indicator that you need to extend your site to a new zone and configure alternate access mappings (AAM) in central administration. see <a href="http://blogs.msdn.com/sharepoint/archive/2007/03/06/what-every-sharepoint-administrator-needs-to-know-about-alternate-access-mappings-part-1.aspx" target="_blank">here</a> for a great article on AAM.<br />
</li>
</ul>Devlin Carnatehttp://www.blogger.com/profile/14600257020567043721noreply@blogger.com2