when i create a new web application project it does not show the datanucleus.core.1.1.5.jar but this jar file should be exist as default. how to rectify this problem.
Hi i created one project in ASP.Net using SQL Server 2005.In that I got test connection succeed came but i got the following Error in coding .How to solve this
Error message is
Connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (Provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Hi,
I am having a hard time establishing a connection to my database file using JDBC-ODBC bridge. The driver I am using is sun.jdbc.odbc.JdbcOdbcDriver but I believe it is not present on Mac OSX by default and hence throws an exception for class not found.
I googled for the driver but could not find much useful information. Can somebody please help me establish the connection? Or send me any link which contains information I am looking for?
Thanks,
I'm trying to learn Silverlight here, creating a custom control template, however VS2010 refuses to recognize the ControlTemplate type, even though I have referenced the System.Windows assembly (which is by default when basing the project on the standard Silverlight Application template). I'm trying to recreate this seen on another SO stack.
Hi Friends
Can you please send me any example code on label color , by default it shows black color i want to change the color for look and feel in UI please help me ..
Thanking you
How can I create an attribute for an ASP.NET page that redirects to another page?
[MyAttribute()]
public partial class Default : System.Web.UI.Page
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
}
}
[AttributeUsage(AttributeTargets.All)]
public class MyAttribute: Attribute
{
public MyAttribute()
{
if (// something)
{
// I need to redirect to some page here
}
}
}
Suddenly in this article ("problem 2") I see a statement that C++ Standard prohibits using STL containers for storing elemants of class if that class has an overloaded operator&().
Having overloaded operator&() can indeed be problematic, but looks like a default "address-of" operator can be used easily through a set of dirty-looking casts that are used in boost::addressof() and are believed to be portable and standard-compilant.
Why is having an overloaded operator&() prohibited for classes stored in STL containers while the boost::addressof() workaround exists?
I've created a custom control that subclasses TreeView. Right now it's completely empty, doesn't override anything. However when I place an instance in the designer the 'Auto' value for the Width and Height fields is no longer available as it is with the default TreeView. What am I missing?
I'm trying to create custom icons for my taskbar/desktop icons in my Flex WindowedApplication. So far, I've edited my -app.xml file to include the following:
icons/t_16.png
icons/t_32.png
icons/t_48.png
icons/t_128.png
When the application is run, however, the default flex/air icon is still showing. I have my systemChrome set to standard, and transparent to false, not that they have any relevance to this.
Any ideas?
Is there a way to generate an http link which will open iTunes to the results of a query for apps with a specific keyword.
I have a number of apps and I want my users from my web site to see those with a common keyword. So not to my full list by default.
Scenario:
Local git repo, default master branch
FTP server with content of the repo (non git), synchronized daily with the local repo, master branch
Workflow:
user1 is working on local git repo (git add, working directory clean)
user2 (non git user) changed files directly on the FTP server
How can I import all files changed on FTP to the local git repo and see what has changed?
Hi guys,
I have a class which in C# doing RSA encryption where I used the default RSACryptoServiceProvider class. But I have a concern regarding the following; If you have the word hello for an input and the encrypted string is returned as ABCDE, if you perform another encrypt operation on the input hello, using the same keys (public and private) for the RSA will the output be again ABCDE?
Thanks in advance
I've got several input text fields, and my design requirement is to have gold text on a black background that, when highlighted, is black text on a gold background; however, Flash's default selected text highlight color scheme is white text on a black background and there is no way to change this.
Does anyone have any workarounds that are easy to implement and don't require additional classes (the design requests minimal outside classes).
I'm trying to debug a small program I've written in C. I open up the file in emacs, M-x gdb, give the program filename (a.out). When i switch to the source file in the emacs pane, and try to place a breakpoint in the main function, I get the message "No default breakpoint address now." and the breakpoint doesn't place, so I can't debug the program. I'm compiling the program with the options gcc -Wall -ansi -pedantic-errors -Werror. Any ideas?
I'm currently developing an Custom Application using the IP.Board framework, which is in PHP, which by default, creates a IPSMember object for the logged-in user. However, I'm developing an additional class, basically
class SpecialUser extends IPSMember
Is there a way to get the parent object, which is IPSMember to change to SpecialUser?
Our customer wants us to use a connectionstring with username = "external" and add schemaName "original" infront of our queries like:
"select columnA from original.TableA"
I dont want to change mapping files which are shared by other projects,
tried adding default schema as:
<property name="default_schema">original</property>
But this doesn't work. Any Help?
Good morning.
By default, and i don't know why, when the page ends the rendering, i get the submit button disabled.
<input type="submit" class="buttonColor" disabled="disabled" id="MyMatrix_ctl10_Form_btnSubmit" value="Enviar" name="MyMatrix$ctl10$Form$btnSubmit">
I need some way to enable it, or else i can't submit the form.
How can i do it?
Thanks.
I'm trying to convert the following list into a select list so it can be submitted via a form - the element within the lists will become the value of each option:
<ul class="selected connected-list ui-sortable" style="height: 279px;">
<li class="ui-helper-hidden-accessible" style=""></li>
<li title="Owner Name 1 - " class="ui-state-default ui-element ui-draggable" style="display: block; position: relative; top: 0px; left: 0px;"><span class="ui-icon-arrowthick-2-n-s ui-icon"></span>Owner Name 1 - <em class="thenumber">4.4796E+11</em><a class="action" href="#"><span class="ui-corner-all ui-icon ui-icon-minus"></span></a></li>
<li title="David Moffat - " class="ui-state-default ui-element" style="display: block; position: relative; top: 0px; left: 0px;"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>David Moffat - <em class="thenumber">07730423005</em><a class="action" href="#"><span class="ui-corner-all ui-icon ui-icon-minus"></span></a></li>
</ul>
This should convert to the following format:
<select style="display:none" class="selectoption" name="p_num[]" multiple="multiple">
<option value="">4.4796E+11</option>
<option value="">07730423007</option>
</select>
I have tried the following jquery code, but after many hours I'm pulling my hair out:
$('a.sendform').click(function(){
$('ul.selected').each(function() {
var $select = $('<select />');
$(this).find('li').each(function() {
var $option = $('<option />');
$option.attr('value', $(this).('em')).html($(this).html());
$select.append($option);
});
$(this).replaceWith($select);
});
});
Any help might save my remaining hair.
Many thanks
David
By default index of every javascript array starts from 0. I want to create an array whose index starts from 1.
I know, must be very trivial...thnx for ur help
I use a subclass of CRichEditCtrl to provide a CEdit+ type control. One thing I want is to disable drag-drop functionality, which the base class provided by default.
Disabling dropping is easy: ::RevokeDragDrop(m_hWnd);
But I can't see a simple way to disable the control being a drag-source. Is there an easy way?
For example, I want to write an activity that launches when you return from sleep (black screen). How can I set this activity to run instead of the default one?
Thanks
Hello,
I created a Server that listens for HTTP connections all the time. It's a default Console Application and runs on a Linux Machine using Mono (2.4).
The Problem is that i want this Server to move itself to the background (deamonize itself).
I couldn't find a Solution on Google and mono Server.exe & is not really what i'm looking for, eventhough it works for the moment.
Any hints/ideas?
hi,
I work now with andromda generator,and where I try to generate code ,I have this problem :
"The default goals should be specified in the section of project.xml instead of maven.xml ".
I use maven1.1 to download andromda plug-in
I have an NSTextField that I would like to enable "as-you-type" spell checking. When I load my application I can do this from the Menu Bar Edit Spelling and Grammar Check Spelling While Typing.
I would like this option to be enabled by default. Within IB I can enable this for a NSTextView but I would like to use NSTextField for this part of the UI.
Thank you.
For example, let's use the Add method of the ArrayList class. If I am using the default compiler settings in Visual Studio C# project in which arithmetic overflow is not checked, would ArrayList.Add() throw an OverflowException if I added too many items? Would surrounding the method call with checked or unchecked make any difference?
BTW, I would write a test program to determine the answer to this question if I had Visual Studio available to me right now.