I've been searching for while now and I can't find a simple example of how to capture a webcam stream with FMJ. Are there any tutorials or examples available which could help me?
Hello All,
Attempting to use XStream's JavaBeanConverter and running into an issue. Most likely I'm missng something simple, or not understanding XStream's converter handling well enough.
@XStreamAlias("test")
public class TestObject
{
private String foo;
public String getFoo()
{
return foo;
}
public void setFoo(String foo)
{
this.foo = foo;
}
}
public void test() throws Exception
{
XStream x = new XStream(new XppDriver());
x.autodetectAnnotations(true);
x.processAnnotations(TestObject.class);
x.registerConverter(new JavaBeanConverter(x.getMapper()));
TestObject o = new TestObject();
o.setFoo("bar");
String xml = x.toXML(o);
System.out.println(xml);
/*
Expecting...
<test>
<foo>bar</foo>
</test>
But instead getting...
<test>
<foo/>
</test>
*/
}
I tried adding a trace on the TestObject.getFoo() method and it appears it is being called by XStream, but the data isn't being written to the output stream.
After looking at the source for JavaBeanConverter, it looks like my implementation should work, which leads me to believe I haven't configured something correctly during the XStream setup.
Am I just missing something simple?
Thanks!
Edit
Also, if it helps, I'm using the following Maven deps for this...
<dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.xstream</artifactId>
<version>1.3_3</version>
</dependency>
<dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.xpp3</artifactId>
<version>1.1.4c_3</version>
</dependency>
hai this is naveena
My guide given a simple example to solve in artificial neural network and PSO
If any body help then i m very happy
the example is `A B C
a1 b1 c1
a2 b2 c2
how i have to solve manually i cannot understand plz any help me and send a mail to this id plz [email protected]
Hello,
I have a panel with a bunch of labeles and textboxes inside of it.
The code:
foreach (Control ctrl in this.pnlSolutions.Controls)
Seems to only be finding html table inside the panel and 2 liternals.
But it does not get the textboxes that are in the html table.
Is there a simple way to get all the controls inside of a panel regardless of the nesting?
thanks!
I am using datePicker in android to display images based on user selected dates. I need to limit said dates to certain days for instance Jan 1st 2010 to Dec 31st 2010. Simpleas that i thought but no where can i find the answer on how to limit these dates.
Does anyone know how to limit the dates for Android DatePicker
UIWebView exhibits jerky behavior when scrolling fast through lots of content. Mobile Safari, on the other hand, scrolls quickly and smoothly. It displays a simple checkerboard pattern while scrolling and then renders the page when scrolling is done.
How can we get Mobile Safari's fast, smooth scrolling behavior with a UIWebView?
I am looking for method to disable Browser Cache for entire ASP.Net MVC Website
I found following method,
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.Cache.SetNoStore();
and also meta tag method, ( It wont work for me , since some MVC Actions send partial html/json through ajax, without head,meta tag )
<meta http-equiv="PRAGMA" content="NO-CACHE">
But i am looking for simple method, to disable browser cache for entire website.
I have a simple commenting system here...
http://affbuzz.com/comments/7299a55137def55917a5dc6c4fe0f261af8a4217
...and people can submit hyperlinks inside the plain text field. When I display these records back from the database and into the web page, what RegExp in PHP can I use to convert these links into HTML-type anchor links?
Bonus: For the algorithm to not do this with any other kind of link, just http and https.
I got a simple jquery script workin on all but IE
j('.slide').click(function(){
j('#content').load('/menu.php');
return false;
});
Here's the url http://identitykit.gotdns.org/
it's valid xhtml and all other similar questions don't answer my problem.
menu.php starts with
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
I have got the following very simple code:
function init() {
var articleTabs = $('#articleTabs');
articleTabs.tabs('add',
admin.pageVars.siteRoot + '/articles/themes/' + admin.pageVars.params.id, 'Temas');
articleTabs.tabs({
load : function(event, ui) {
$('.jsonForm').jsonForm();
}
});
}
This successfully adds a new tab panel to an existing tab control. However upon activation, the load function does never fire.
What is my mistake? (There are no javascript exceptions)
Simple Question ....
If I have a StackLayoutPanel on the left, I want to click it have a dynamically loaded
widget in my DockLayoutPanel on right ... similar to the GWt example
http://gwt.google.com/samples/Mail/Mail.html.. where clicking anything under mailboxes
would trigger a different widget on right...
textfield.returnKeyTYpe = UIReturnKeyDone
So the above makes my Return button on the keyboard to say Done. I have seen Apps with Blue color button on the UIKeyBoard. Is that simple enough to do? How do I change the background color of the Return key?
hi, here's the trick. gotta convert 'bout 300 files from xls to csv, wrote some simple macro to do it, here's the code:
Dim wb As Workbook
For Each wb In Application.Workbooks
wb.Activate
Rows("1:1").Select
Selection.Delete Shift:=xlUp
ActiveWorkbook.SaveAs Filename:= _
"C:\samplepath\CBM Cennik " & ActiveWorkbook.Name & " 2010-04-02.csv" _
, FileFormat:=xlCSV, CreateBackup:=False
Next wb
but it doesn't do exactly what i want - saves file "example.xls" as "example.xls 2010-04-02.csv", what i need is "example 2010-04-02.csv"
need support guys ;)
I'm quite new to objective c but have been programming for a while. I started creating a function that would convert from RGB to HSL and back again but I get a feeling it is way too long and headed in the wrong direction. Does anyone know of a simple way to perform this conversion?
Is there a way to use UITabbaritem as a UIButton?
I am trying to make a Tabbar that its items don't change the view. Just want them to do simple actions in the same view controller.
Thanks.
I'm trying to implement my own emoji icon keyboard and have some problems. I'm trying to draw emoji icons at the same size as on native iOS emoji keyboard, but when doing simple drawing (standard unicode characters like "\ue415") icons always appear at original size. When trying to increase the font - emoji icons stay of the same size. When applying CGAffineTransform for scaling - drawn icons are bigger, but pixelated and blurred. How should I go about drawing emoji icons bigger, but sharper?
Forgive me if this is a simple answer.
But how do you get a Date from a DataMapper property. For example:
require 'rubygems'
require 'sinatra'
require 'datamapper'
class Test
include DataMapper::Resource
property :id, Serial
property :created_at, Date
end
get '/:id' do
test = Test.get(1)
test.created_at = ?
end
I have 3.5 application needed to load a string from settings.settings or app.config. I made sure have reference to ConfigurationManager but very simple
call from form load value returns null here is code.
void LoadSettings()
{
// I expect to get from my app.config or settings.settings
// Settings file set to application, public
m_connStr = System.Configuration.ConfigurationManager.AppSettings["somestring"];
// m_connStr is getting Null. I tried .ToString(); That throws a null exception.
}
Hello!
I wrote my own simple Querable provider whick retrieves data from database.
Now I need to bind this data to BindingSource and when new item added to BindingSource some event or method must be called for handling add operation.
I have tried to implement IBingingList on a List class which is returned when query is completed, but AddNew method is not called when item added.
How to implement this scenario?
According to Marcin Ciura's Optimal (best known) sequence of increments for shell sort algorithm.
The best sequence for shellsort is 1, 4, 10, 23, 57, 132, 301, 701...
But how can I generate such a sequence ?
In Marcin Ciura's paper he said :
Both Knuth’s and Hibbard’s sequences
are relatively bad, because they are
defined by simple linear recurrences
but most algorithm books I searched , they all tend to use Knuth’s sequence : k = 3k + 1 ; because it's easy to generate , what's your way of generating shellsort sequence ?
Hi folks,
I need to access a few HTML pages through a Python script, problem is that I need COOKIE functionality, therefore a simple urllib HTTP request won't work.
Any ideas?
Hi all,
I'm trying to generate JAXB classes from the Clickatell wsdl:
You can find the wsdl definition here it quite large:
http://api.clickatell.com/soap/webservice.php?WSDL
When trying to generate java classes from this Wsdl i got the following errors:
[ERROR] undefined simple or complex type 'SOAP-ENC:Array'
[ERROR] undefined attribute 'SOAP-ENC:arrayType'
I hope someone can help me out.
Cheers,
Tim
I am a software developer with devlopment experience in C#, C++ .Net alongwith SQL Server 2005/08, Oracle and mysql. But somehow i dont get jBASE to work at Windows XP SP3 machine.
My goal is setup user accounts, create database on a JBASE ainstallation, authenticate and backup/restore few table via a C++ program. And i dont need to do it with builtin backup/restore tools of jBASE.
I am able to install jBASe 4.1 aling with all its accessories on my WINXPSP3 machine. I was able to run the jSlimserver and TEMENOUS server along with licnesing server. I was able to add the license key as well. But after that what i was supposed to do? i have no idea about it.
The docs and online help doesnt answer a simple question of how to create a database! The google search results from the jbase site all go to the 404 Pages!
Can a jBASE expert guide to the following steps:
Create a jBASE database.
Create users
Authenticate via those users
Connect to database
Create tables and insert data.
Connect via a C++ or C# program to connect to jBASE DB and backup/restore tables.
I know that this is too much too ask but i dont get to get the JBASE system. I cant get it to work on my System somehow. Btw, jdc and jexloree doesnt seem to do anything. I have checked that enironmental variables for jBASE are setup correctly and i have verified them. There are no extra JRE or JDK installations on my system. Besides all that, only licensing client, slim server and temenous server seem to run and listen for connections and no other execuatable ever seems to work.
A simple tutorial to achieve the objective will be highly appreciated. Also if anyone can point out the mistake that i have done or anything i might need to check, then please do so. I will be highly encouraged and obliged.
Thanks
Steve