Is there a way to add sun one application server 7 to eclipse IDE. Its for maintaining an enterprise application project. The jdk is also 1.4 used for the application.
Hi,
How to load a multiple line query in one row using mysql.The data is stored in a text file.
For example:
"GGAGTTGTGGGAGTGGAGGAGGAAGAGGCGGTGGGGAGTACGGGGGCTGGTCCCAGAAGATGGCGGAGGC
GGGGGATTTCTGGTAGGTCCTACTTTAGGACAAGATGTGGTGGTACTGTTGAAGCGTCAGTCTTTGATTC"
Thanks in advance.
I need to config one SMTP server (sendmail) to send mail with 2 interfaces with different ip's depending server.
For example: In same machine with to ip: 1.1.1.1 and 2.2.2.2 i need to send email [email protected] by 1.1.1.1 and [email protected] by 2.2.2.2
I don't now if i can configure it on sendmail, or use iptables, some idea ?
Thx.
How can I change the permissions depending on if it is a get or a post. Is it possible to do it in one class or would I have to separate it out into two classes? If its a get I want "permission_classes = (permissions.IsAuthenticated)" and if its a post I want "permission_classes = (permissions.IsAdminUser)"
class CategoryList(generics.ListCreateAPIView):
queryset = QuestionCategory.objects.all()
serializer_class = QuestionCategorySerializer
permission_classes = (permissions.IsAuthenticated,)
I have an issue with a WCF REST service (.NET 4) which has multiple host headers, but one end point.
The host headers are for example:
xxx.yyy.net
xxx.yyy.com
Both host headers are configured in IIS over HTTPS and redirect to the same WCF service endpoint.
I have an Error Handling behavior which logs some extra information in case of an error.
The problem is that the logging behavior only works for one of both URLs. When I first call the .net URL, the logging is only working for requests on the .net URL. When I first call the .com URL (after a Worker Process recycle), it’s only working on requests on the .com URL.
The configuration looks like this:
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<services>
<service name="XXX.RemoteHostService">
<endpoint address="" behaviorConfiguration="RemoteHostEndPointBehavior" binding="webHttpBinding" bindingConfiguration="HTTPSTransport" contract="XXX.IRemoteHostService" />
</service>
</services>
<extensions>
<behaviorExtensions>
<add name="errorHandling" type="XXX.ErrorHandling.ErrorHandlerBehavior, XXX.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
</behaviorExtensions>
</extensions>
<bindings>
<webHttpBinding>
<binding name="HTTPSTransport">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</webHttpBinding>
</bindings>
<behaviors>
<endpointBehaviors>
<behavior name="RemoteHostEndPointBehavior">
<webHttp />
<errorHandling />
</behavior>
</endpointBehaviors>
</behaviors>
….
Should I configure multiple endpoints? Or in which way could I configure the WCF Service so the logging behavior is working for both URLs?
I tried several things, also solutions mentioned earlier on StackOverflow. But no luck until now...
I have this model:
class Journals(models.Model):
jid = models.AutoField(primary_key=True)
code = models.CharField("Code", max_length=50)
name = models.CharField("Name", max_length=2000)
publisher = models.CharField("Publisher", max_length=2000)
price_euro = models.CharField("Euro", max_length=2000)
price_dollars = models.CharField("Dollars", max_length=2000)
Is there a way to let people fill out either price_euro or price_dollars?
I do know that the best way to solve the problem is to have only one field and another table that specify the currency, but I have constraints and I cannot modify the DB.
Thanks!
$query1 = "select * from linkat_link where emailuser='$email2' or linkname='$domain_name2' ORDER BY date desc LIMIT $From,$PageNO";
now sample show :
<table border="1" width="100%">
<tr>
<td>linkid</td>
<td>catid</td>
<td>linkdes</td>
<td>price</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td> domain name</td>
<td>100</td>
</tr>
<tr>
<td>2</td>
<td>1</td>
<td> hosting plan one</td>
<td>40</td>
</tr>
<tr>
<td>3</td>
<td>2</td>
<td> domain name</td>
<td>20</td>
</tr>
</table>
How do I merge two or more When there are numbers of cells same on the
Table in this way sample?
<table border="1" width="100%">
<tr>
<td>catid</td>
<td>linkdes</td>
<td>price</td>
</tr>
<tr>
<td>1</td>
<td>linkid(1)- domain namelinkid(2)- hosting plan one</td>
<td>10040</td>
</tr>
<tr>
<td>2</td>
<td> domain name</td>
<td>20</td>
</tr>
</table>
Hi,
This might be an easy one, but I'm not really experienced with sql.
I have a table with two user_id columns, user1 and user2. This table contains some compared values between the two users.
I want to send in an user id, and return all the id's from the other user when the sent user is either user1 or user2.
I guess some sort of if test would do the trick, but I don't know how to do this in SQL.
Cheers
Hi,
I need some help with a query.
i want to select from a table, some values, but the values depend on the value of an other cell. after i select i need to sort them.
Can i use ELECT column FROM table WHERE one=two ORDER BY ...?
thanks,
Sebastian
Hi all
Is it possible, using spring security plugin 0.5.3 with Grails 1.2.1, to authenticate a user using only one field? I mean, for example, making j_username and j_password fields in the authentication form equal previous to the authentication. I read it was possible to define j_username field in Config.groovy with acegi plugin, in older versions of the plugin. Now it uses SecurityConfig.groovy but the possibility of defining the field exists no more.
Any ideas??
Thanks a lot,
Miguel
I'm writing a set of C# composite web server controls for displaying dialog boxes.
I want to have one abstract class which handles the basic layout and things like titles of the control, then have a set of derived ones which render child controls at a specific point.
I forsee three distincts methods: renderOpeningHtml handled by the abstract class, renderCustomControls as done by the derived class, and renderClosingHtml by the abstract class again, except I can't figure the life cycle of a CompositeControl and what methods to use when.
I know that when parsing XML with objective-c most of the time you use NSXMLParser.
But what if you only need to read one element. Using NSXMLParser sounds like an overload to me.
The issue is that flickr API doesn't use JSON as response when uploading an image. So my response now is:
4638598522
I only need to know the photoid and I like to know what the best solution will be for this.
Sorry for the bad title, if you can think of a better one, let me know.
Many-to-many relationship using tables.
Product
ProductCategory
Category
In the ProductCategory table i have boolean column primarycategory
Each product must have a primary category.
I want to find all products in my database which don't have a primarycategory.
I've inherited a web site I'm editing in dotnet and it won't compile because the class in one file (say class1.vb) refers to a class in another file (say class2) (like Dim m_c As class2) , but the compiler says "Type Class2 is not defined".
when I look in the object browswer the classes are listed separately (i.e. not all grouped under the same namespace) and appear as:
Public Class Class1
Inherits System.Object
Member of C:...\mywebsite\
Help!, thanks.
This deletes the document from the Document table and outputs information about the deleted document into the FinishedDocument table.
DELETE
FROM Document
OUTPUT Deleted.DocumentId
, Deleted.DocumentDescription
INTO FinishedDocument
WHERE DocumentId = @DocumentId
I need to delete the document not just from the Document table, but also from the DocumentBackup table. Meanwhile, I need to maintain insertion into FinishedDocument.
Is all of this possible with only one statement? If not, is a second DELETE (against DocumentBackup), with all of it wrapped in a transaction, the way to go?
I use Postgresql + PHP.
Say I have this table:
Books ( id, title, year )
and this array of titles in PHP:
$titles = array ("bible","kafka","Book of Eli");
now I want update all rows where the title is in the $titles array above.
So I need a query like this:
UPDATE books SET year = '2001-11-11' WHERE title is in $titles;
Is is possible with one single query ? Or do I need to use FOR loop ?
I've just setup a Google Analytics for Mobile Apps account and I've implemented the SDK in my iPhone app with no trouble at all. However, I haven't figured out how to manage multiple apps with one account. It seems fairly easy to setup multiple subdomains when dealing with websites and I've noticed the javascript code has a setSubdomain function that doesn't seem to be present in the iPhone SDK.
Is there any way I can have google analytics differentiate my different apps for the same account?
I have a link on a website that says "add object". When I do this, an AJAX call is made and I want to do the following things:
1) if the container in the session does not exist, create one, else use existing
2) add the object to the container
I'm new to RESTful design and am wondering how to best accomplish this in Rails. Step #1 in particular
I asked a similar question to this earlier this week but I'm still not understanding how to get a list of all installed applications and then pick one to run.
I've tried:
Intent intent = new Intent(ACTION_MAIN);
intent.addCategory(CATEGORY_LAUNCHER);
and this only shows application that are preinstalled or can run the ACTION_MAIN Intent type.
I also know I can use PackageManager to get all the installed applications, but how do I use this to run a specific application?
Thanks
I have a User class that hasMany = [friends:User]
Now I am trying to display the friends list - ${user.friends}
However, I'd like to be able to apply parameters like I can with, for example, User.findAllBy(user, [max:10, sort: 'dateCreated', order: 'desc"])
Can someone kindly tell me how to do this on a one-to-many in Grails / Groovy ?
I want to connect one webpage to another using a command button called email. When the user clicks on the email button it should take them to another webpage where the user can select the emails they want to send to. Then they will click the OK button and it will return them to the previous webpage where they can type in their email and write a message and hit submit.
Hi,
I posted a question earlier about stopping all sounds in a swf. Now, to do that I'm using the following code.
var transform1:SoundTransform=new SoundTransform();
transform1.volume=0;
flash.media.SoundMixer.soundTransform=transform1;
Which solves the problem (mutes all sounds) but now there is an issue, I want to stop all sounds but one. Any Ideas?
Hi, Something is wrong with my code. It is only showing the final placemark when I try to show the Street and City on one line. I don't know what I am doing wrong (a beginner problem most likely). I hope someone can help my out.
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{
[self doLog:[placemark.thoroughfare, placemark.locality description]];
if ([geocoder retainCount]) [geocoder release];
}
So if I have a store of parents children and the parent has a one to many relationship to children (parent.children) and they all have first names. Now, on the initial fetch for parents I can specify a sort descriptor to get them back in order of first name but how can I request the children in order? If I do a [parent.children allObjects] it just gives them back in a jumble and I'd have to sort after the fact, every time.
Thanks,
Sam