Geeks With Blogs
Stephanie Grima C#, ASP.NET and my life. October 2008 Entries
[SharePoint] State Machine Workflow vs. Sequential Workflow
The two types of workflows which exist out of the box in Visual Studio are: Sequential Workflow State Machine Workflow Below, find the differences between them, so that when you are thinking of implementing a workflow, you would use the one that fits the most: State-Machine workflows: State-machine workflows are workflows which are driven by particular events. Example: OnTaskChanged OnTaskCreated OnTaskDeleted OnWorkflowActivated etc In order to move to another event, the workflow needs to meet another ......

Posted On Friday, October 31, 2008 10:49 PM

[SharePoint Designer]: “Unable to load workflow actions from the server.”
Today I encountered a new error at work which is: “Unable to load workflow actions from the server. Please contact your server administrator.” This occurred when I opened a SharePoint site in Microsoft Office SharePoint Designer, and then tried to add a Workflow. Apparently, if one makes a mistake when deploying his/her custom activities, no workflows work. The solution to this is to find the error in Visual Studio and then restart the IIS and try over again. Most probably, the error is in the new ......

Posted On Friday, October 31, 2008 8:08 PM

Winner of the October Grand Prize of Community-Credit.com
I just recieved an e-mail from David Silverlight telling me that I have won the grand prize of October with 95,500 points. I feel so happy about this! I was not expecting to win the grand prize for giving out my opinions over IT, and by helping those in need in SharePoint and other general programming techniques. So I won this cute Robotic Junkyard Dog called Scraps : "This mischievous robotic mutt performs a programmable series of up to 80 moves--if he listens, that is. He cocks his head, twitches ......

Posted On Friday, October 31, 2008 7:10 PM

[C#] [Java] Testing [Part 5]: Integration Testing
Integration Testing: The methods/procedures/functions that were tested seperately in Unit Testing are combined and tested as a group. Integration testing is mostly use to check the performance, reliability of a product and to check whether the requirements have been met. Advantage: It is important to test in groups before testing the application as a whole because you can find code problems earlier in the project. Disadvantages: Boring, monotonous Time consuming ......

Posted On Friday, October 31, 2008 9:12 AM

[C#] [Java] Testing [Part 4]: Unit Testing
Unit Testing Unit testing is when a tester, tests every method/function/procedure seperately. This is done to make sure that the most vital methods work as expected. Once the methods are tested one after the other, these are then put in groups according to what they do to form components. Then, these are tested using Integration Testing. This will be tackled in the next part. Advantages: Improves design Reduce cost of change because bugs are seen instantly Disadvantages: Time consuming. Testers and ......

Posted On Friday, October 31, 2008 6:51 AM

[C#] [Java] Testing [Part 3]: Gray Box Testing
Gray Box Testing Gray Box Testing is the combining of black box, and white box testing. It involves having access to internal data structure and algorithms, but the testing is still done at a user's level, therefore as black box testing. It is said to be mostly used in web services applications since the Internet is quite stable. Advantages: The testers do need to have the source-code while testing. Disadvantages: The testing is done based on limited knowledge of the internal code. Difficult to resolve ......

Posted On Friday, October 31, 2008 5:58 AM

[C#] [Java] Testing [Part 2]: White Box Testing
White Box Testing White box testing is known as clear box testing and glass box testing. The technique in white box testing is to have a very good knowledge of the internal code. The testers need to know what the product does, what the code really does because they need to examine the output values as well as the values within the methods/procedures/function. If the tester, does not know the code well, this kind of testing will be a failure and not accurate at all. It is ideal to do this kind of ......

Posted On Friday, October 31, 2008 4:40 AM

[C#] [Java] Testing [Part 1]: Black Box Testing
Black Box Testing Black box testing is the testing of methods/functions/procedures without knowing what is in the internal code. You would only know what to input, and what the expected outcomes should be. So to speak, no knowledge of the programme/application is required to do this kind of testing. Advantages The testers do not require any knowledge on the product being developed The testing is done from the user's points of view The programming and testing are done by different persons Disadvantages ......

Posted On Friday, October 31, 2008 12:10 AM

[C#] Array vs ArrayList
Array is: a datatype, thatcan be used by calling indexes. during runtime, one cannot really change the size of the array, unless you use the method of copying the array and getting rid of the old one. In .NET, the Visual Studio makes use of a special class to store the data. Because of this, the performance is actually quite fast. This is also because in an array, you need to specify the size and thus, the data is stored one after the other. Examples: int[ ] myNumbers= new int[5]; myNumbers[0] = ......

Posted On Thursday, October 30, 2008 6:14 PM

[Book Review] C# in Depth by Jon Skeet
C# in Depth - John Skeet If you are working with the 3.0 .NET framework, this book is highly recommended to you. It starts off with the basics and it goes up to describe generics, expression trees, LINQ (chapter 10), lambada expressions (chapter 9). The book is made up of a little less than 400pages of in depth descriptions and samples. The book is divided into three: History of C# C#2 - how it solved problems in the past versions C#3 - the new features The book gives very good information on where ......

Posted On Thursday, October 30, 2008 10:16 AM

J2EE vs PHP
So I had to do a comparison between the Java language and PHP for college... and I thought I'd put it online as an article :-) Here it goes! In comparison to PHP, the J2EE language is far more maintainable in terms of updating an application or website. It is heavily object oriented, whereas OOP in PHP is rather new, since mostly, it is scripting. Java also has a better linear performance. And thus, it beats PHP on performance benchmarks as well. In polls and according to most programmers, J2EE is ......

Posted On Thursday, October 30, 2008 9:19 AM

[C#] [Java] Control Structures Part 5 : FOR Statement
For Statement The for statement, mostly known as for loop, is a way to iterate over a range of values. It is mostly referred to as a loop since it is used as an iteration until the expression is fullfilled. for(initialization; termination; increment) { statement/s } Initialization: this is executed once, to start the loop Termination: the loop stops once this expression becomes false Increment: After each iteration, this incrementation is invoked. The value here is either of incrementation or decrementation ......

Posted On Wednesday, October 29, 2008 10:54 PM

[C#] [Java] Control Structures Part 4 : DO/WHILE Statement
DO/WHILE Statement So people may ask: What is the difference between a while loop and a do while loop? The difference is that the do... while has the expression in the bottom of the loop. This means that he code has to be executed AT LEAST, ONCE. The while statement on the other side, is not executed at all if the condition is false from the beginning. This is how a do while looks: do { statement/s} while (expression);A more real example is the following:int counter = 1;results = "";do { results ......

Posted On Wednesday, October 29, 2008 9:14 PM

[C#] [Java] Control Structures Part 3 :WHILE Statement
While Statement The while statement is continously executed a block of code, until the condition is not true anymore. The while statement is also called a loop since it executes repeatedly one after the other until the condition is not met anymore. while (expression) { statement/s } A proper example of a while loop is the following: int counter = 1; string result = ""; while (counter < 11) { result += "Count is: " + counter; counter++; } Explanation: While the counter is less than 11, therefore ......

Posted On Wednesday, October 29, 2008 7:25 PM

[C#] [Java] Control Structures Part 2 : Switch Statement
Switch Statement It is a control statement, which lets you transfer control to different statements within the switch, according to the value in the switch expression. switch(expression) { case "statement1" : statement1 body; break; case "statement2" : statement1 body; break; default : default body; break; } If the switch expression matches the criteria within one of the statements, the body beneath it is performed until it meets the end of the body, which is break. If the expression doesn't meet ......

Posted On Wednesday, October 29, 2008 7:13 PM

[C#] [Java] Control Structures Part 1 : If / Else Statement
If/Else Statement: The code between the curly brackets executes only if it meets the value of the boolean expression: if(expression) { statement1 } else { statement2 } If expression is true, execute statement1, else if it is false, execute statement2. The following is a much more realistic example: string sentence = ""; if(name == "Stephanie") { sentence = "Hello " + name; } else { sentence = "Hello there"; } An improvement over this if/else statement is the nested if/else. This means that when the ......

Posted On Wednesday, October 29, 2008 9:55 AM

[C#] [Java] Basics : Arithmetic Operators
The following are the basic arithmetic operators used in programming: + : the sign indicating the operation of an Addition. Addition is when two numbers are added or combined to get an amount or total. It can also be the joining of two such as strings. example: int x = 5; int y = 4; int z = x+y; therefore, z = 9 example: string wordOne = "go"; string wordTwo = "away"; string phrase = wordOne + " " + wordTwo; thereforem phrase = "go away" - : the sign indicating the operation of a Subtraction. Subtraction ......

Posted On Wednesday, October 29, 2008 9:02 AM

So.. Who's David Silverlight?
David Silverlight is the mastermind behind SEVERAL sites. To name a few: www.community-credit.com www.xmlpitstop.com (this is one I heard about recently) www.stupidcubicle.com www.nonprofitways.com David Silverlight is a geek which regards to programming and xml and yes, if you were wondering: Silverlight was named after him. David himself writes about this on his blog [see here]. In short... Bill and David met for some drinks and a chat. They talked about things in general and then started to talk ......

Posted On Wednesday, October 29, 2008 6:40 AM

RealTechnologyHeroes.com
RealTechnologyHeroes.com RealTechnologyHeroes.com is a very cool website with a great concept. As described by many people, it "uses Geek Humor to recognize people for their special talents". One has the opportunity to send awards and to even create new ones on the fly. Example of awards include: "Mr. It Works on My Computer Guy", "Mr. I Can Write My Own Version of ASP.NET better than Microsoft" Guy and "Mr. Overly Complicated Application Guy" . This website is owned by the guy which Silverlight ......

Posted On Wednesday, October 29, 2008 5:28 AM

Tutorial: [SharePoint Designer] Deploying an Activity to Office SharePoint Designer
Tutorial: Deploying an Activity to Office SharePoint Designer I had a really difficult time to deploy my first activity to Office SharePoint Designer, because I didn't find a complete tutorial of how to do it, so I figured out that I should do a proper one and share it with you all. Please read :-) 1. Save and successfully build the activity in Visual Studio 2. Sign the Assembly: · Right click the solution node in the Solution Explorer · Select Properties · Click the tab named: Signing · Check the ......

Posted On Wednesday, October 29, 2008 4:50 AM

[C#] MPX - Multi Pointer X
MPX is a technology which allows multiple independent pointers (mouse cursors) at the windowing system level. By this, we mean that these mouse cursors are all connected to one single computer. This technology features the additional of multiple input devices and are ideal for various projects like: games which involve more than one player, two handed drawings, some sort of quizzes where users use one single computer etc. The following is a screen shot of where the MPX technology is used: The following ......

Posted On Tuesday, October 28, 2008 7:50 PM

Difference between TFT and LCD Monitors
Difference between TFT and LCD Monitors: This is a question which I have been asked about several times by people who are thinking on upgrading their TV or computer monitors, so I figured out I should answer this online for anyone who has doubts. TFT, which stands for Thin Film Transistor, is not really different from LCD. TFT, comes from the family of the LCD technology. It is a variant of LCD, it is a modern version of the LCD technology. TFT, has a very well improved image quality and makes use ......

Posted On Tuesday, October 28, 2008 6:20 PM

Transactions [C#]
A customer has two bank accounts. In bank account A, he has 50 Euros. On bank account B, he has 100 Euros. The customer wants to put 25 Euros from bank account A in bank account B. In order to do this, one should have two SQL statements: UPDATE AccountA SET Balance = Balance – 25 WHERE Customer = 1; UPDATE AccountB SET Balance = Balance + 25 WHERE Customer = 1; However, if the first update statement successfully executes, and the second one fails, the customer will end up with having 25 Euros deducted ......

Posted On Monday, October 27, 2008 9:25 AM

New Logo for .NET [Visual Studio]
I have read online at [http://blogs.msdn.com/chko... that a new logo has been announced by the Microsoft team for the .NET applications. This is said to be due to the key values Microsoft team wants ".NET to stand for: consistency, robustness and great user experiences". What do you all think of the new logo? In my opinion it looks good in the sense of design, and as the .NET world is evolving, a new logo is essential to show the customers that ......

Posted On Friday, October 24, 2008 7:43 PM

[FREE SHAREPOINT TOOLS] Free Workflow Activities
I found online some free Workflow Activities for SharePoint, it is worth it to take a look at them and see if they are significant for you: http://wf.netfx3.com/files/... These include: ForEach Activity Workflow WebPage Activity Create Word Document Activity Send Email Activity Create Excel Spreadsheet Activity SQL Server Database Activity Enjoy ......

Posted On Friday, October 24, 2008 7:04 PM

[SharePoint - VisualStudio] Error : Corroleation value has not been initializedon declaration *correlation name* for activity *name of activity*

 

This error arises on the deployment of a SharePoint Workflow where the developer has put an activity above the onWorkflowActivated activity.

Kindly, put the onWorkflowActivated activity as the first activity in your workflow as this is a SharePoint restriction.

Try to deploy again. Good luck!

Posted On Friday, October 24, 2008 6:26 PM

[SharePoint - VisualStudio] Description of the files when creating a SharePoint Server Sequential Workflow Library
The files that appear in the solution explorer automatically when you create a new Sequential Workflow Library are: · Feature xml (DeploymentFiles\FeatureFiles) : o This xml file is used to put together a workflow as a feature, in order for it to be deployed into SharePoint. When creating the project, this file is almost blank. · Workflow.xml (DeploymentFiles\FeatureFiles) : o This workflow xml file is the final piece the developer needs to deploy workflow to SharePoint. At the beginning, this file ......

Posted On Friday, October 24, 2008 6:17 PM

[HTML] Defining styles for links
A:link This is used to modify the style for normal unvisited links. A:link { text-decoration: overline; } A:visited This is used to modify the style for visited links. A:visited { text-decoration: underline; } A:hover This is used to modify the style for hovered links. The link becomes hovered when the mouse moves over the link. A:hover { text-decoration: none; color: green; } ......

Posted On Tuesday, October 21, 2008 8:55 PM

[Book Review] MicrosoftOffice SharePoint Designer 2007 Step by Step - Penelope Coventry
Book Review: MicrosoftOffice SharePoint Designer 2007 Step by Step - Penelope Coventry This book is full of tutorials and hints in building customised SharePoint sites. It helps you build pages complete with CSS (Cascading Style Sheets), Libraries, lists and also webparts which are very customisable. I bought the book for the main purpose to learn creating workflows with SharePoint Designer 2007, and it really help me. The book as the title says, is really step by step and it is designed and laid ......

Posted On Tuesday, October 21, 2008 8:29 PM

Java - on which application do you code Java?

 

At college and at home, I make use of Netbeans, however, sometimes it tends to slow down and occassionally it gives me random failed compilations for no reason at all. At some point, I close and open the Netbeans application and things start running perfectly again.

Any suggestions on what else I could use?

Thanks!

Posted On Tuesday, October 21, 2008 8:39 AM

The Basics : Relational Operators used in coding
The Basics : Relational Operators used in coding Both in Java and .NET (especially in terms of C#), the same relational operators and syntax are used in conditions. Below find them listed together with a definition and an example of each: Operator: Definition Example: Meaning: < less than If (x < y) { } If x is less than y… do something > greater than If (x > y) { } If x is greater than y… do something <= less or equal to If (x <= y) { .= } If x is less or equal to y… do something ......

Posted On Tuesday, October 21, 2008 8:35 AM

TCP networking technology in a Chat Application
TCP networking technology in a Chat Application: TCP technology will allow the communication between a server and a client and vice versa, through the use of serializing an object over a network, such as the Internet. The advantage to using TCP over Socket programming is that TCP performs a great deal of functions transparently, such as acknowledging the receipt of data packets, retransmitting lost packets etc. The disadvantage to using TCP over Socket programming is that Sockets are a great deal ......

Posted On Tuesday, October 21, 2008 8:27 AM

[Book Review] Microsoft SharePoint 2007 for Dummies by Vanessa L. Williams
Microsoft SharePoint 2007 for Dummies by Vanessa L. Williams As soon as I got my job as a SharePoint programmer, I was given a couple of books to get familiar with SharePoint as a server. One of the books is Vanessa L. Williams’ “Microsoft SharePoint 2007 For Dummies”. Most of the book focuses on: Tips and features of the server Detailed step by step information to configure a SharePoint Server Set up sites Granting access to users Creating personal sites Data and business management Ways on how ......

Posted On Monday, October 20, 2008 8:08 AM

Community-Credit.com
Community-Credit.com Have you ever thought about the possibility of being rewarded for the blogs/articles you have written? Every month, Community-Credit.com gives out a number of geeky gifts to the top contributers. It is a website where one can find a huge number of articles from alot of communities. I'd suggest you would check it out. It is worth it! If you consider yourself smart, and would like to earn a stupid gift, register to Community-Credit.com :-) ......

Posted On Sunday, October 19, 2008 4:23 AM

StupidCubicle.com
StupidCubicle.com Ever needed to spice up your cubicle at work? Ever thought you need any computer geek stuff? StupidCubicle.com is the right place to go. Check it out, you will not be disappointed. Examples: Teddy Bear USB Drive Tones of Shirts to choose from ......

Posted On Sunday, October 19, 2008 4:02 AM

Copying/Moving a document to another library anywhere in the site or sub-site [SharePoint]
Part 2 Copying/Moving a document to another library anywhere in the site or sub-site Workflow 2 Go to the document library in which the documents are going to be stored. 1. In SPD, go to File > New > Workflow. 2. Name it “Check Out Item” and attach it to your SharePoint Library… In our case “Documents”. 3. Check the boxes for: a. Automatically start this workflow when a new item is created b. Automatically start this workflow whenever an item is changed 4. Click Next > to Continue. 1. Name ......

Posted On Sunday, October 19, 2008 2:35 AM

Copying/Moving a document to another library anywhere in the site or sub-site [SharePoint]
Part 1 Copying/Moving a document to another library anywhere in the site or sub-site We need to make two workflows: A workflow started manually on the document which is required to be moved/copied A workflow which starts off automatically when an item is created or modified on the document library which we are moving or copying documents on. Workflow 1 First of all, go to the document library from which the documents are going to be copied or moved. 1. In SPD, go to File > New > Workflow. 2. ......

Posted On Saturday, October 18, 2008 11:33 PM

My other passion aside from programming.. Photography
Lately, I have been going around Malta and taking some photos of landscape and nature in my free time. One particular place I went is Valletta, which is Malta's capital city. Below, find some photos I took. Hope you all like :-) ......

Posted On Wednesday, October 15, 2008 5:21 AM

About me: Stephanie Grima
So, I have been writing here for over a month, and I have never really introduced myself. I think it's about time that you guys get to know a bit about me. Well, I am Stephanie Grima and I come from a little island called Malta. It's right in the middle of the Mediterranean Sea, in Europe of course. I doubt that many of you are familiar with Malta but, it's a really sunny island especially in summer. Tourists go crazy over our beaches, good food, history and nightlife. Imagine, we have a whole town ......

Posted On Monday, October 13, 2008 8:32 AM

WSS Services in SharePoint
WSS Services in SharePoint WSS stands for Windows SharePoint Services. WSS is the foundation product, and in SharePoint, nothing is possible without it. Associate metadata with list items and files Create versions of list items and files Check out files in order to edit Manage approval of content For search facility, index sites, lists and libraries The use of libraries and/or list items in business processes ......

Posted On Sunday, October 12, 2008 7:39 PM

Free SharePoint Designer Custom Workflow Activities
Free SharePoint Designer Custom Workflow Activities Link: http://www.codeplex.com/SPD... These are add-ons for Office SharePoint Designer and are used in building up Workflows for SharePoint sites. I will be making use of Copy List Item Extended Activity in one of my blogs. This activity lets the user copy items from one site to another (from a subsite to another subsite in the same site). Other activities include: sending attachment with an email ......

Posted On Friday, October 10, 2008 10:12 PM

Should we go for Windows Vista, or not? [Pros and Cons]
Windows Vista: Pros and Cons I just bought a laptop which has Windows Vista. Since I wasn’t sure if it’s feasible to keep it with this Operating System, I researched to see the advantages and disadvantages of Vista. Here is what I gathered out of personal use and research What I love about Windows Vista: · The increased security, although you can also get this by having Service Pack 3 on Windows XP · The new looks, which in my opinion are way better than those of Windows XP · The side bar is a nice ......

Posted On Friday, October 10, 2008 5:55 PM

Conquer Online - Game Review
Conquer Online - Game Review Conquer Online, is a game that I have played for about three and a half years. I had 3 characters in all, two trojans which are characters which can hold two weapons, and i also had an archer - everyone knows what an archer is! The environment of the game was wonderful, it is colorful and very Chinese related. Character customization is pretty amazing for a free of charge online game. At the beginning one chooses the type of character: trojan, archer, taiost or warrior, ......

Posted On Friday, October 10, 2008 6:33 AM

SharePoint Permissions... Part 4
SharePoint Permissions... Part 4 Breaking Inheritance The owner has the permission to create unique permissions at the time you create a site. If you change your mind later, you have to break inheritance. To stop inheriting permissions from a parent site: 1. Browse to the People and Groups page for a site 2. Click the site permissions header in the Quick Launch bar. 3. Choose Actions > Edit Permissions – a dialog box confirming that you wish to stop inheriting permissions appears. 4. Click OK ......

Posted On Friday, October 10, 2008 4:38 AM

SharePoint Permissions... Part 3
SharePoint Permissions... Part 3 People and Groups Site Settings > Users and Permissions > People and Groups Group is a container for assigning permission levels to a user. Permission levels are a container for storing a set of individual permissions and these permissions are what give rights to a user. Site Permissions section lets the admin/user view the permissions assigned to particular users and groups in the site. From here, one can create new permission levels. Creating a permission ......

Posted On Friday, October 10, 2008 2:48 AM

SharePoint Permissions... Part 2
SharePoint Permissions... Part 2 Dependencies and descriptions Most of the permissions are dependent on other permissions. When choosing a permission which has dependencies on other permissions, these are automatically selected. For permissions who have dependencies, visit the following link: http://office.microsoft.com... Tips on Administration of SharePoint Permissions It is suggested that at the beginning one uses the standard SharePoint groups which ......

Posted On Friday, October 10, 2008 1:34 AM

SharePoint Permissions... Part 1
SharePoint Permissions... Part 1 SharePoint Services 3.0 has five permission levels by default. Particular permissions are associated with these permission levels. The site owner has the privilege to assign these permission levels with different users and/or groups, modify which permissions are associated with these permission levels and add new permission levels according to his needs. Note: Limited and Full Control levels cannot be modified. Default Permission Levels in Windows SharePoint Permission ......

Posted On Wednesday, October 8, 2008 2:25 AM

Copyright © Steffi | Powered by: GeeksWithBlogs.net