Is it possible to generate and build some c# code based on the code from the same project. I tried with T4 and Reflection, but there are some assembly locking issues. Is there any other way?
Hi all,
I having trouble with passing http get parameters to jsf 2.0 backing bean.
User will invoke URl with some params containing id of some entity, which is later used to persist some other entity in db.
whole process can be summarized by fallowing:
1. user open page http://www.somhost.com/JsfApp/step-one.xhtml?sid=1
2. user fills some data…
I am trying to use your modified lighttpd server-status.
server-status mod is enabled and running, I am geting lighttpd status but I can not use yours
becouse I can not use port 80 again
($SERVER["socket"] == "192.168......:80" {
status.status-url = "/server-status"
server.document-root = "/var/www/status"
mimetype.assign = ( ".html" =…
I'm doing an application, which uses Swing JTable. I used drag and drop in NetBeans, to add the JTable. When I add the JTable, JScrollPane is added automaticly.
All the look is done with drag and drop. By pressing the first button, I set the number of rows in the table. This is the code to set my DataModel
int size = 50;
String[]…
Hi,
I have a problem with my site in internet explorer. It works fine in firefox, opera etc.
Sometimes internet explorer won't show my flash banner. For example when I'm on home page it works fine, but when i press services it doesn't show. Also, when opnend in older versions in IE the page get's completely mixed up. The banner…
Is it possible to tell JUnit 3 to use additional method name prefix when looking up test method names?
The goal is to have additional tests running locally that should not be run on continuous integration server. CI server doesn't use test suites, it look up for all classes which name ends with "Test" and execute all methods…
I found a SQL deadlock scenario in my application during concurrency. I belive that the two statements that cause the deadlock are (note - I'm using LINQ2SQL and DataContext.ExecuteCommand(), that's where this.studioId.ToString() comes into play):
exec sp_executesql N'INSERT INTO HQ.dbo.SynchronizingRows ([StudioId],…
I'm interested to find out which ORM has best support for Postgres SQL database? Does any mapper have, both, LINQ support and ability to generate model from database?
If I visit 1 website www.abc.com that has a reference to say jQuery hosted at Google Code, and then I visit a 2nd website www.xyz.com that has the same reference - will the file be cached across both websites? i.e. will it re-download it on the 2nd website, or just use it from cache?
Hi,
I'm trying to create a looping animation that starts on onmousedown and stops on onmouseout. The effect is a simple scroll that will continue looping until you release the mouse.
I've created a function which performs the .animate method and it passes itself as a callback but the code only runs once.
Here's the…
I have an activity (called Sender) with the most basic UI, only a button that sends a message when clicked. In the onClickListener I only call this method:
private void sendSMS(String msg)
{
PendingIntent pi = PendingIntent.getActivity(this, 0,
new Intent(this, Sender.class), 0);
PendingIntent pi…
I have the following setup.
Class, say, Car that has a CarPart (belongsTo=[car:Car]).
When I'm creating a Car I also want to create som default CarParts, so I do
def car = new Car(bla bla bla)
def part = new CarPart(car:car)
Now, when I do car.validate() or part.validate() it seems fine.
But when I do if(car.save…
How to use in C# function from Win32 DLL file made in Delphi. When function parameters are custom delphi objects?
Function definition in Delphi:
function GetAttrbControls( Code : PChar;
InputList: TItemList;
var Values : TValArray): Boolean;…
I have a set of N positive numbers, and a rectangle of dimensions X and Y that I need to partition it in N smaller rectangles such that:
the surface area of each smaller rectangle is proportional to it's corresponding number in given set
all space of big rectangle is occupied and there is no leftover space…
I'm creating a datalogger which logs the gps data and the sensor data of the phone. I've just a strange problem. If the phone is not touched for few minutes it goes into standby mode (screen goes black), and that causes the logger to stop working. Actually the firewriting in the logger stops working. The GPS…
E.g. what "Use Core Data for storage" checkbox option means when creating new Window or Navigation based project?
How to add Core Data for Tab Bar Application?
How to initialize managedObjectModel, managedObjectContext, persistentStoreCoordinator?
I want to read from database where I've stored a image in binary field and display a image.
while (reader.Read())
{
byte[] imgarr = (byte[])reader["file"];
Stream s = new MemoryStream(imgarr);
System.Drawing.Image image = System.Drawing.Image.FromStream(s);
Graphics g =…
Hi,
Im using jsf 2.0 to develop app where user has to select (using radio button) a date from the list of possible choices. List of dates is a managed bean property of type List< java.util.Date. Im using facelets
<h:selectOneRadio value="#{banner_backing.selectedInterval}" border="1"…
SSLMatic certificates are very cheap. They sell RapidSSL certificates for $20. On RapidSSL website same certificate costs $80. How is that possible? Is it legal?
I try to delete a post in NHibernate but nothing happens. Updating, selecting and inserting new items works fine but when I try to delete nothing happens.
IQuery query = session.CreateQuery("from Color where name like '%" + TextBox2.Text.Trim() + "%'");
Color color =…
I would like to test Objective-C but I haven't a Mac. Is it possible to program Objcetive-C on Windows. Another possibility is to do it in Linux. Anyone who knows?
I m trying to start an IntentService from the main activity of y application and it won't start. I have the service in the manifest file. Here's the code:
MainActivity
public class Home extends Activity {
private LinearLayout kontejner;
IntentFilter intentFilter;
…