hi i wrote a module for user page generation. After login the path goes to users/[user-name] and i want to customize it using my module. how to handle it?
I have a requirement like, an activity runs for about more than an hour. I need to get the best 8 minute window where some parameters are maximum.
say a value x, which is dynamic for every second. if my activity runs for one hr,i get 3600 values for x. I need to find the best continuous 8 minute time interval where x value was the highest among…
I'm sure there's an elegant solution to the problem but I just can't get my head around it. I am trying to call a web service from within a Windows service. The web service is secured (using Windows authentication). The account that the windows service runs under does have the rights to call the web service but I can't figure out how to get those…
i added a profile field to registration form. how to show in edit registration (account) form . i wrote a module for edit account in that $form [function editregistration_form_user_profile_form_alter(&$form, &$form_state) ] doesn't contain the values of custom profile fields.
I am trying to extract phrases using rules such as the ones mentioned below on text which has been POS tagged
1) NNP - NNP (- indicates followed by)
2) NNP - CC - NNP
3) VP - NP
etc..
I have written code in this manner, Can someone tell me how i can do in a better manner.
List<String> nounPhrases = new…
hello
I have complete code of facebook connection. But When i dragged the complete code into my application then 112 errors will occurs. wherever i have use use that code "FBConnect/FBConnectGlobal.h"Then error will arises "FBConnect/FBConnectionGlobal.h" No such file or directory. Even i have given all the path in project…
Hello All,
I am using a UiTableView in our application.We have two tabs in controller one is add to shopping list where i add more than one items in our shopping list in database,other one is shopping list which shows items for shopping.
The problem is that when i add items from shopping list tab then items are…
I have got a enum
public enum TypeDesc
{
[Description("Please Specify")]
PleaseSpecify,
Auckland,
Wellington,
[Description("Palmerston North")]
PalmerstonNorth,
Christchurch
}
I am binding this enum to drop down list using the following code on page_Load
protected void Page_Load(object sender, EventArgs e)
…
I found email composer sample code from iphone OS Ref Library. Here is a code-
Code:
NSArray *toRecipients = [NSArray arrayWithObject:@"first@example.com"];
NSArray *ccRecipients = [NSArray arrayWithObjects:@"second@example.com", @"third@example.com", nil];
NSArray *bccRecipients = [NSArray…
I'm trying to create a custom attribute called Tag for all editable elements. I added the following to attrs.xml
<declare-styleable name="Spinner">
<attr name="tag" format="string" />
</declare-styleable>
<declare-styleable name="EditText">
<attr name="tag"…
hi i got list of warning regarding file size when i try to upload an image using file upload.
"POST Content-Length of 12223490 bytes exceeds the limit of 8388608 bytes in Unknown on line 0"
My question is how to avoid displaying warning messages (i got 5 warnings).
I careated couple of linq classes & marked the datacontext as unidirectional. Out of four classes; one is main class while other three are having the one to many relationship with first one; When I load the object of main class & put into the memory OR serialize it into an XML file; I…
hi i have a table as follows id,school,address,city,phone,email,fax . There is almost 40 cities . I need to select 1 entry from each city. can any one guide me
Hello all,
I have a site that allows a user to login using their facebook login id through a .net system. When the user posts a comment in my site, I want it to automatically post the comment on their facebook wall too. How can I do this using .net?
I am working in an android application and I want to Clear my Bitmap data. The scenario is that I am taking a screen capture of an Widget(Imageview) and I am storing it in a Bitmap. This action comes in a Button click. SO after some time I get a Memory error. So I want to clear the values in…
i want to create a quiz application. the questions should be randomly selected from a word/text file(which contains some 20 questions). the application is in c#. syntax plz...
I am using same class name in two namespaces, say A and B. Should the include guards be unique while declaring the classes with different namespaces too?
I mean can't there be two files names AFile.h (in different directories) with same include guards and declaring different namespaces?
…
I'm try to use drupal open id module. When i used to login using any provider id(yahoo,google..) the step it goes to registration page of my site. My question is how to populate details of the user to my form without additional burden to the user ?. For ex name,email-id etc. Is there any…
hi i need to know how to add attribute onchange to a custom content_type field?
For ex my content_type has 2 fields phone (name:field_phone[0][value], id:edit-field-phone-0-value),email (name:field_email[0][value], id:edit-field-email-0-value). i'm unable to add attribute as follows.
…
hi i want to find how to find no of weeks and each mondays date between 2 dates. for ex 10-07-2009 to today .
Note :consider leap year and other date related constrains also.
I have a piece of code shown below:
$(".tagArea li").mouseover(function(){
$(this).animate({
borderWidth: "2px"
}, 1000 );
});
$(".tagArea li").mouseout(function () {
$(this).animate({
borderWidth: "1px"
}, 1000 );
});
When I try to hover it on a particular list…
I an using Spring 3.1 + Hibernate 4.x in my web application.
In my DAO, i am saving User type object as following
sessionFactory.getCurrentSession().save(user);
But getting following exception:
org.hibernate.HibernateException: save is not valid without active transaction
I…
In my case,
I was storing the sql query in my database as text.
I am showing you one record which is present in my database
Query.all
:id => 1, :sql => "select * from user where id = #{params[:id]}"
str = Query.first
Now 'str' has value "select * from user where id =…