HI all..
i need help of you guys..
Well i am making an application which will display the live video from the IP camera and display it on my screen.
well my friends now the help i required is that many camera also save their videos onto the DVR..
now how can i access the DVR and get the video stored onto that storage medi..
i need some helping material or guide from you all..
since m new in black berry...
Thnks a bunch in advance..
i m waiting for ur +ve responce..
I have a procedure:
var Edit = (from R in Linq.Products
where R.ID == RecordID
select R).Single();
That I would like to make "Linq.Products" Dynamic. Something like:
protected void Page_Load(object sender, EventArgs e)
{
something(Linq.Products);
}
public void something(Object MyObject)
{
System.Data.Linq.Table<Product> Dynamic =
(System.Data.Linq.Table<Product>)MyObject;
var Edit = (from R in Dynamic
where R.ID == RecordID
select R).Single();
My problem is that I my "something" method will not be able to know what table has been sent to it. so the static line:
System.Data.Linq.Table Dynamic = (System.Data.Linq.Table)MyObject;
Would have to reflect somthing like:
System.Data.Linq.Table Dynamic = (System.Data.Linq.Table)MyObject;
With being a dynamic catch all variable so that Linq can just execute the code just like I hand coded it statically. I have been pulling my hair out with this one. Please help.
I had a discussion today regarding an Oracle procedure I wrote some time ago.
I wanted to get 7500 user email addresses from Active Directory using PL/SQL. AD will return a maximum of 1000 rows and the LDAP provider used by Oracle will not support paging.
Therefore, my solution was to filter on the last two characters of the sAMAccountName (*00,*01,*02...etc.). This results in 126 queries (100 for account names ending in digits, 26 for those ending in a letter...this was sufficient for my AD setup).
The person I was speaking to (it was a job interview by the way) said he could have done it a better way, but he would not tell me what that method was.
Could anybody hazard a guess at what this method was?
hi,
i cant get the value of session variable on paypal transaction processing.when transation complete my table is updated, for updation i use a session variable,at that time i can't get the value of the session variable.
is sessions not get in paypal? please help me to find a solution......
Hi. I am new to grails and jasper reports. Please help me with the issue.
I am trying one example on how to save in excel format the data that we display in grails. I am able to save as excel but not able to get anything inside excel sheet after opening it, not even columns. Refer the link http://www.wysmedia.com/2009/05/dance-with-dynamic-jasper-report/ for the example I am trying.
Many thanks.
I'm developing a little news reader that retrieves the info from a website by doing a POST request to a URL. The response is a jSON object with the unread-news.
E.g. the last news on the App has a timeStamp of "2013-03-01". When the user refreshes the table, it POSTS "domain.com/api/api.php?newer-than=2013-03-01". The api.php script goes to the MySQL database and fetches all the news posted after 2013-03-01 and prints them json_encoded. This is
// do something to get the data in an array
echo $array_of_fetched_data;
for example the response would be [{"title": "new app is coming to the market", "text": "lorem ipsum dolor sit amet...", image: XXX}]
the App then gets the response and parses it, obtaining an NSDictionary and adds it to a Core Data db.
NSDictionary* obtainedNews = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&error];
My question is: How can I add an image to the MySQL database, store it, pass it using jSON trough a POST HTTP Request and then interpret it as an UIImage.
It's clear that to store an UIImage in CoreData, they must be transform into/from NSData. How can I pass the NSData back and forth to a MySQL db using php and jSON? How should I upload the image to the db? (Serialized, as a BLOB, etc)
when i run this code, it returns the topic fine...
$query = mysql_query("SELECT topic
FROM question
WHERE id = '$id'");
if(mysql_num_rows($query) > 0) {
$row = mysql_fetch_array($query) or die(mysql_error());
$topic = $row['topic'];
}
but when I change it to this, it doesn't run at all. why is this happening?
$query = mysql_query("SELECT topic, lock
FROM question
WHERE id = '$id'");
if(mysql_num_rows($query) > 0) {
$row = mysql_fetch_array($query) or die(mysql_error());
$topic = $row['topic'];
$lockedThread = $row['lock'];
echo "here: " . $lockedThread;
}
warning: passing argument 1 of 'bsearch' makes pointer from integer without a cast
and the corresponding code is
Parent =bsearch((const size_t)ParentNum, ClauseVector, Size,
sizeof(CLAUSE),pcheck_CompareNumberAndClause);
the compilar is gcc.
here CLAUSE is defined as *CLAUSE.
I want to print the line immediately before the searched string. How can I do that?
Lets say my two lines are
AADRG
SDFJGKDFSDF
and I am searching for SDF. I have found SDFJGKDFSDF, but how can I obtain the previous line AADRG? Does file.readline()-1 work?
I'm trying to build a link that will direct the user to an MVC page when they click it. Currently I have:
HTMLTable.AppendLine("<td class=\"team\"> " + tournament.TournamentRoundMatches[col][effective_match_id].competitorId1 + "<a href=\"<% =Html.BuildUrlFromExpression<CompetitionController>(c => c.Details(83)) %>\">" + " update" + "</a>" + "</td>");
But this just results in a 404 error, with the following link generated:
localhost:52313/Tournament/Details/%3C%%20=Html.BuildUrlFromExpression%3CCompetitionController%3E(c%20=%3E%20c.Details(83))%20%%3E
My controller method looks like this:
[Authorize]
public ActionResult Details(int id)
{
var competition = Competition.getCompetitionById(id);
return View(competition);
}
Does anyone see what I might be doing wrong?
Given a fully qualified class name, and a number of dimensions, i would like to get the Class name for this class. I believe i can do this like such
public Class<?> getArrayClass(String className, int dimensions) throws ClassNotFoundException {
Class<?> elementType = Class.forName(className);
return Array.newInstance(elementType, new int[dimensions]).getClass();
}
However this requires me to create an unneeded instance of the class. Is there a way to do this without creating the instance?
It does not appear that Class.forName("[[[[Ljava/lang/String;") (or a algorithmically generated version) works correctly in all instances from various blog posts i've seen.
I redirect the user of my application to Twitter for oauth style authentication using my app's request_token.
The user is able to enter username and password on Twitter's page BUT then, instead of calling back my application, Twitter displays a page
You've successfully granted access to
MyAppName!
Simply return to MyAppName and enter
the following PIN to complete the
process.
123456
Why is this happening?
I have set the callback url in my app's settings.
Thanks
If a user has signed into their computer and are connected to an intranet, is there a way to grab the users crendtials and authentication them in asp.net? What specific code would do this?
Question:
I have a website where I gather browser statistics.
I have an SQL table (T_Visits), with the following columns:
uniqueidentifier Visit_UID,
uniqueidentifier User_UID,
datetime Visit_DateTime,
float Screen_w,
float Screen_h,
float Resolution = Screen_w * Screen_h
varchar resolutionstring = screen_w + ' x ' + screen_h
Now I want to get the maximum/minimum resolution each user had:
Select User_UID, max(resolution) from T_Visits GROUP BY User_UID
How can I get the corresponding resolution string ?
I mean I can get the max(screen_w) and max(screen_h), but there's no guarantee that the corresponding resolutionstring would be max(screen_w) +' x '+ max(screen_h)
Hi All
I am working with the new version of boost 1.42 and I want to use regex with named sub groups. Below an example.
std::string line("match this here FIELD=VALUE in the middle");
boost::regex rgx("FIELD=(?\\w+)", boost::regex::perl );
boost::smatch thisMatch;
boost::regex_searh( line, thisMatch, rgx );
Do you know how to get the content of the match ?
The traditional way is
std::string result( mtch["VAL"].first, mtch["VAL"].second );
but i don't want to use this way.
I want to use the name of the subgroups as usual in Perl and in regex in general.
I tried this, but it didn't work.
std::string result( mtch["VAL"].first, mtch["VAL"].second );
Do you know how to get the value using the name of the subgroup?
Thanks
AFG
Hello,
I have a shared preference that is being accesed via an EditTextPreference. I am in the process of porting this application to a device that does not have a hardware keyboard for text entry.
When the time comes to modify the EditTextPreference, there is no soft keyboard that becomes available, and I am at a loss as to how to invoke the soft keyboard for text input to edit this preference.
Thanks
This is possibly has a trivial solution, but I am at the end of my tether so I hope somebody can help out.
I use a JTable which has a custom renderer and a custom editor for a set of columns.
The renderer uses a JLabel component and the editor uses a JSpinner component.
Our users want to be able to enter values in a column, and then press TAB or ENTER to move to the next editable cell in the table.
If I understand correctly, this is the default behaviour for a JTable.
However, this doesn't seem to work correctly for me. Until the user clicks on the cell, only the JLabel is displayed.
The JSpinner (i.e. CellEditor) is only displayed when a user double clicks on the cell. So, it looks like the cell is going into "edit" mode only on MouseEvents, but not when it has focus.
How do I get the cell to go into edit mode as soon as it has focus?
Using MySQL query browser, I manually made a table called users and input some date in the fields. I set the primary key to id and set it to auto increment. There are 3 rows, the highest id is 3.
I then made the following class in the method directory to call upon the data in the table etc.
class Application_Model_DbTable_User extends Zend_Db_Table_Abstract
{
protected $_name = 'user';
public function getLatestUserId()
{
$id = $this->getAdapter()->lastInsertId();
return $id;
}
}
In the controller I do the following which gets the value generated by the method and lets the view access it:
$usersDbModel = new Application_Model_DbTable_User();
$lastUserId = $usersDbModel->getLatestUserId();
$this->view->lastUserId = $lastUserId;
In the view I then echo it to display it to the user:
echo $this->lastUserId;
However, even though my last id in the users table is 3. It displays 0.
I have also tried:
public function getLatestUserId()
{
$sql = 'SELECT max(id) FROM user';
$query = $this->query($sql);
$result = $query->fetchAll();
return $result;
}
But this just throws out a server error.
What have I done wrong?
Am I missing something?
Is there another way of doing this?
I have a hash in Perl which has been dumped into from some legacy code the name of the key has now changed from simply reqHdrs to reqHdrs.bla
$rec->{reqHdrs.bla}
My problem is now I cant seem to access this field from the hash any ideas?
The following is my error
Download Script Output: Bareword "reqHdrs" not allowed while "strict subs" in use
Given a model likeso:
from google.appengine.ext import db
class X(db.Model):
p = db.StringProperty(verbose_name="Like p, but more modern.")
How does one access verbose_name from x=X() (an instance of X)?
One might expect that x.p.verbose_name would work, or alternatively x.properties()['p'].verbose_name, but neither seems to work.
Thanks!
EDIT: x.name.verbose_name = x.p.verbose_name
In the scenario below, how can I get references to the variables declared during eval()?
function test() {
eval("var myVariable = 5");
var locals = magic() // TODO What should we do here?
alert(locals["myVariable"]); // returns myVariable
}
Just a note: JavaScript being evaluated comes from a trusted source.
I get this error
All the emails are in a queue
Message 1Nzpy9-0005pH-JI is not frozen
delivering 1Nzpy9-0005pH-JI
LOG: MAIN
== [email protected] R=lookuphost defer (-1): host lookup did not complete