Return Array from Web Service using ScriptManager & Javascript

 This is used to call the Web Service using ASP.Net and Script Manager. Must be inserted in .aspx page. 

<asp:ScriptManager runat=”server” ID=”scriptManager”>
<Services>
<asp:ServiceReference path=”WebService/TestService.asmx” />
</Services>
</asp:ScriptManager>

This is the script to call the web service method and print the result on the form: Read the rest of this entry »

Return Array From WebService

Here’s the simplest way to accomplish what you want. Have your webservice return a simple string array:

[WebMethod]
public string[] getPersonIds(string Id)
{
//substitute code to actually populate the array with the dataset data
string[] personIds = {“ADS34579354″, “ASR34579354″, “TYU34579354″};
return personIds;
} Read the rest of this entry »

EPS Overprint Variable

We needed a program to check a folder with eps files and check if they have overprint or not. To do so there is a variable in each eps file <xapTPg:HasVisibleOverprint>. If it is true, then that eps file has overprint and the variable will look something like this:

<xapTPg:HasVisibleOverprint>True</xapTPg:HasVisibleOverprint> 

If the variable is false, then the file has no overprint and the var will look something like this:

<xapTPg:HasVisibleOverprint>False</xapTPg:HasVisibleOverprint>

Next are other variables which maybe important to you:

  • <xapTPg:HasVisibleTransparency>False</xapTPg:HasVisibleTransparency>
  • <xapG:swatchName>C=0 M=0 Y=0 K=0</xapG:swatchName>
  • <xapG:mode>CMYK</xapG:mode>
  • <xapG:type>PROCESS</xapG:type>

Share Folders/External Drives with CMD

share

Yesterday we had a problem regarding sharing. We needed to share an encrypted drive to be accessed from other computers. To share a folder or any drive, you would normally

  • go to the folder/drive to be shared
  • right click
  • select properties
  • select the “Sharing” tab
  • Click “Advanced Sharing”
  • Check Share this folder
  • Click the “Permissions” button
  • Change Permissions as needed

But we had a problem. Encrypted drives or any other External Drives, when removed or a user logs off the system, the sharing properties and any others are lost and defaults are loaded again. So we didn’t want that the user would have to go through all the previous steps to share a drive or folder.

So this is the solution we found! Read the rest of this entry »

Get drunk with your iPhone – “Drinks”

drinks

  • AppStore Cost: $3.99
  • Download IPA from here

Ever wondered how that Long Island drink is done or what ingredients you need so you can make it at home. Well wonder no more as the AppStore has the answer.

There are plenty of drink apps in the App Store, but one of the best apps is Drinks which allows you to search for drink recipes by ingredient. So if you check that in your cabinet you only have Malibu and Jack in stock, you can tap the “ingredients” tab, and Drinks will give you a list of cocktails that can be made with those ingredients.

Drinks includes over 4,500 high quality cocktail recipes, includes both popular and lesser-known drinks. It even includes the type of glass, garnish and lets you to add your own recipes or tweak theirs to your liking. You can even add notes about how your Dad like his Valencia Punch.

Download Drinks For Free

Sync iPhone 3G with Google Calendar

nemussync-3g

The following post’s instructions also work with the iPhone 3G! Click here to view how you can sync your iPhone 2G or iPhone 3G with Google’s Calendar Online App.

Sync iPhone with 2 Computers

sync-iphone-2comp

One of the problems in iTunes is that you cannot sync your iPhone (or iPhone 3G) between different computers. So i started googling, and this is what I found…

In the instructions on the following website, you’ll find how to modify any iTunes Library so it can also be synced with your iPhone. You can then either manually manage your iPhone on a second computer, or sync different data on different machines (E.g. Music at home, Contacts/Calendar at work).

Click here for more info.