This [servlet or jsp] must return an XML document [for future processing by my web-app].
That is not intended for end-users.
What is a better design: write a JSP or an XML ?
We have had an interesting competition once, where everyone would write their implementation of hello world program. One requirement was that is should be less than 20 bytes in compiled form. the winner would be the one whose version is the smallest...
What would be your solution? :)
Platform: 32bit, x86
OS: DOS, Win, GNU/Linux, *BSD
Language: Asm, C, or anything else that compiles into binary executable (i.e. no bash scripts and stuff ;)
Hello,
I'm trying to write a secure client/server program in C with OpenSSL.
I've found a code sample at http://www.rtfm.com/openssl-examples/ but I get this error:
server: SSL read problem
client: Certificate doesn't verify
I think the problem is with the certificate generation, but I cannot find it.
Any idea?
Thanks
I have to write a method on C# that associates a certain key (from the keyboard) to a specific button. For example, if I press A, the button that I created on a form application should appear like it is being pressed.
I have a new blogengine site up and want to set up syntax highlighting. The problem is that I have a few files (javascript and css) that I need to add the the head of the page, but there is no one page or masterpage. Does anyone one know where to write out these references so they will show up on all pages? Thanks
Ryan
I want to write an .xml file using the following code into the App_Data/posts, why is it causing an error:
Stream writer = new FileStream("..'\'App_Data'\'posts'\'" + new Guid(post_ID.ToString()).ToString() + ".xml", FileMode.Create);
I have a binary file to which I'm trying to write however I dont have the file format specification nor have found it using google, I've been looking at the file using a hex editor but so far has only give me a headache, is there a better way to decipher the format of the file so that I can append data to it?
I would write a WordPress plugin to parse all image source and check it's broken link or not.
My idea is :
Select all post&page's images by regex from MySQL
Navigate the image url and get the response header (404 ,403 error etc)
print a report
Since i don't need actual to download the binary file, so in performance ,compare in CURL , fopen , fsocketopen
Which one is worst to use?
And one more question, which method can execute in multi-thread?
For one of my classes I need to write several prolog programs. Can someone suggest a mac friendly prolog compiler? I tried gnu prolog but when it doesn't work for me.
How can I make a list model from a JList in order to be able to insert an item into it.
I want to use this method: addElement(java.lang.Object item)
I found an explanation here, but the problem is that ListModel is an interface
and even if I write an implementation and override its method, I can't use the addElement() method
I'm playing around with the TcpClient and I'm trying to figure out how to make the Connected property say false when a connection is dropped.
I tried doing
NetworkStream ns = client.GetStream();
ns.Write(new byte[1], 0, 0);
But it still will not show me if the TcpClient is disconnected. How would you go about this using a TcpClient?
class Question < ActiveRecord::Base
belongs_to :author
end
class Author < ActiveRecord::Base
has_many :questions
end
When I find some questions, I usually need to get their authors at the same time, so I use:
Question.find(:all, :include=>:authors)
But I don't write the ":include" part everywhere. I hope I can define the "include" somewhere only once, and when I find questions, the author will be automaticly loaded. Is there any way to do this?
I'm looking for a free visual editor for a language that would compile to native windows exe, no runtime.
I'm looking for alternatives to the Delphi suite (so don't give it as an answer), something that would allow me to write Windows GUI applications with ease.
I don't care about the language, as long as it gets the job done, but I would appreciate if your suggestions avoid functional languages. Even better if it abstracts the windowing system with something more simple than the winAPI.
I'm writing a xml schema (a xsd) to describe the format our partners should send us data in.
And I'm havening a hard time find a tool that can validate the xsd file that i have written.
The best way I have found so far is to write an example input xml file and try to validate that with the xsd. But that doesn't feel like a best practice maneuver.
How should I validate a xml schema?
Is there a way to write a query equivalent to
select * from log_table where dt >= 'nov-27-2009' and dt < 'nov-28-2009';
but where you could specify only 1 date and say you want the results for that entire day until the next one.
I'm just making this up, but something of the form:
select * from log_table where dt = 'nov-27-2009':+1;
how to write a statement to accomplish the folowing?
lets say a table has 2 columns (both are nvarchar) with the following data
col1 10000_10000_10001_10002_10002_10002
col2 10____20____10____30____40_____50
I'd like to keep only the following data:
col1 10000_10001_10002
col2 10____10____30
thus removing the duplicates based on the second column values (neither of the columns are primary keys), keeping only those records with the minimal value in the second column.
how to accomplish this?
What's the difference between 'a[,,] and 'a[][][]? They both represent 3-d arrays.
It makes me write array3d.[x].[y].[z] instead of array3d.[x, y, z].
Why I can't do the following?
> let array2d : int[,] = Array2D.zeroCreate 10 10;;
> let array1d = array2d.[0];;
error FS0001: This expression was expected to have type
'a []
but here has type
int [,]
hi
i have this date's & Time's:
date1: 10/04/2010 - Time: 08:09
date2: 11/04/2010 - Time: 08:14
i need to show all the date's between 10/04/2010 time 06:00 and 11/04/2010 time 6:00
i write this: select * from MyTbl where ((Tdate BETWEEN '20100410' AND '20100411') and (Ttime BETWEEN '06:00' and '06:00'))
but i get empty table
thank's in advance
Hi guys,
I would like to know whether is there an option to detect locked tables in mysql or no. I mean locked by LOCK TABLE table WRITE/READ command ?
cheers,
Marcin
Hi,
When I write the following class, I get the following compilation error:
could not resolve property
How can I achive the following:
class Employee{
String Name
String Email
Employee Manager
static hasMany = [desginations:Designation]
static constraints = {
Name(unique:true)
Email(unique:true)
}
Thanks,
Much appreciated.
I have identified the query constructs my users normally use. would it make sense for me to create composite indexes to support those constructs and provide FIRST_ROWS capability? If I migrate from SE to IDS, I will loose the ability to write low-level functions with c-isam calls, but gain FIRST_ROWS along with other goodies like: SET-READS for index scans (onconfig USE_[KO]BATCHEDREAD), optimizer directives, parallel queries, etc?
I wanted to write a Custom Control that would show a family tree... so i looked on FamilyShow....
So their control inherits FrameworkElement but then every thing gets super complex... are there any easy tutorials out there that show how to implement a custom FrameworkElement with children and so on?
Basically what i fail to do is this, Add child controls and show them, and when drawing getting the coordinates of the child controls...
Hi,
I have a string "Word1 Word2" and I want to transform it to a query such as "Like '%Word1%Word2%'".
At the moment I have:
from t in Test
where t.Field.Contains("Word1 Word2")
How to do this in LINQ2SQL? Do I need to create two separate queries for this, can't I write it in the same statement?
Thx in advance
I'm developing a program written in Java ME for Palm OS that creates a DB, read and write on it too, but I need to know somethings:
How can I create PDB files using Java ME?
When I use a RecordSet on Java ME I'm acessing a PDB?
How to access a PDB in Java ME?
Thanks.