I've developed UI application in blackberry.
On Button Click event I want to display result of adding two number.
How to handle this event in java app of Blackberry?
I just found that my site in the result of bing was broken, casue bing display wrong domain name:
my site domain name: www.mysite.com;
bing list my site domain name : mysite.com
How can i ask bing to change it to the right one?
Another search engines list it correctly.
I recently plan to buy a new laptop to run 64 bit OS, but I friend told me that my current laptop is 64 bit but I am not sure how do I verify if my laptop is ready to load 64 bit OS?
Here is the result from cpuz
edit: come say something at less if you want to vote this down :)
Okay, I am pretty new in CI and I am stuck on pagination. I am performing this pagination on a record set that is result of a query. Now everything seems to be working fine. But there’s some problem probably with the link. I am displaying 10 results per page. Now if the results are less than 10 then it’s fine. Or If I pull up the entire records in the table it works fine. But in case the result is more than 10 rows, then the first 10 is perfectly displayed, and when I click on the pagination link to get to the next page the next page displays the rest of the results from the query as well as, other records in the table. ??? I am confused.. Any help??
Here’s the model code I am using ....
function getTeesLike($field,$param)
{
$this-db-like($field,$param);
$this-db-limit(10, $this-uri-segment(3));
$query=$this-db-get(‘shirt’);
if($query-num_rows()0){
return $query-result_array();
}
}
function getNumTeesfromQ($field,$param)
{
$this-db-like($field,$param);
$query=$this-db-get(‘shirt’);
return $query-num_rows();
}
And here’s the controller code ....
$KW=$this-input-post(‘searchstr’);
$this-load-library(‘pagination’);
$config[‘base_url’]=‘http://localhost/cit/index.php/tees/show/’;
$config[‘total_rows’]=$this-T-getNumTeesfromQ(‘Title’,$KW);
$config[‘per_page’]=‘10’;
$this-pagination-initialize($config);
$data[‘tees’]=$this-T-getTeesLike(‘Title’,$KW);
$data[‘title’]=‘Displaying Tees data’;
$data[‘header’]=‘Tees List’;
$data[‘links’]=$this-pagination-create_links();
$this-load-view(‘tee_res’, $data);
//What am I doing wrong here ???? Pls help ...
I guess the problem is with the $KW=$this-input-post(‘searchstr’); ..
Because if I hard code a value for $KW it works fine. May be I should use POST differently ..but how do I pass the value from the form without POSTING it , its CI so not GET ... ??????
I need a hint on how to write multiple NSData chunks to single file. Downloading a file using NSURLConnection in chunks. Each chunk is downloaded in a separate NSOperation thread. As the chunks finish downloading they need to be written to a file so combined result is the file downloaded.
What would be the best way to manage the NSData that is returned and writing it to a single file?
How could I select all as one string seperated with a ,?
Example table:
Table
Stringtest
Examplestring2
Anotherstring
Otherstring
And the selected result should be Stringtest,Examplestring2,Anotherstring,Otherstring.
Can you show me an example of a very easy implementation in AS2 (action script 2.0) to bring a var from a php file. I have a php script who return a value into the var $result when it is executed, how can i use this var on flash? Thanks
Any one know of a tutorial or library or something that i could use to help me accomplish rendering a X-Y GRAPH for performance data or just data in general.
My goal is to have a final result looking something similar to
This Chart rendered by RRD.
I have a genereated form which handles a m:n relation. The generated form overrides the doSave() method to handle the "list".
If I embed this Form in an other the special doSave() mothod is never called. The result is that everything works fine except that the m:n relation isn't stored.
Do I have to handle the m:n relation manuel?
Thanks
I am trying to enforce a CHECK Constraint in a ORACLE Database on multiple tables
CREATE TABLE RollingStocks (
Id NUMBER,
Name Varchar2(80) NOT NULL,
RollingStockCategoryId NUMBER NOT NULL,
CONSTRAINT Pk_RollingStocks Primary Key (Id),
CONSTRAINT Check_RollingStocks_CategoryId
CHECK ((RollingStockCategoryId IN (SELECT Id FROM FreightWagonTypes))
OR
(RollingStockCategoryId IN (SELECT Id FROM LocomotiveClasses)))
);
...but i get the following error:
*Cause: Subquery is not allowed here in the statement.
*Action: Remove the subquery from the statement.
Can you help me understanding what is the problem or how to achieve the same result?
I know in C like languages logical operators are evaluated one at a time so:
false && really_expensive_function()
is doesn't result in the function being called (I can't remember the CS name for this). Does the same happen in PL/SQL or do I need to break the IF parts out to separate blocks?
I often need to display a list of files to the user, say, as a result of a search query.
Typically I describe my own simple DataTemplate for FileInfo. But I'm lazy to re-implement all the Explorer's functionality: the Views, Sorting, Context Menus and drag&drop.
I feel like the problem is common and someone has already assembled a good library for this purpose.
i'm working for my exam. i didn't resolved this question. does anyone help me?
assume that there are two block, BLOCK1 AND BLOCK2. every block has 50 bytes. write a program to add BLOCK1 with BLOCK2 , and store result to BLOCK2 using LODS, STOS and LOOP etc. assembly commands?
I need to be able to call and arbitrary web service. The user will supply the URI / endpoint information at configuration time, and I need to be able to handle calling that service. As a result, I don't have service contract at compile-time
Hello Experts,
I have a flat text file data which I import into MSSQL table.
It creates and table with specified name along with multiple columns as per data file.
now I need a query which will return the data and its count. e.g.
data file :
BREAD,MILK
BREAD,DIAPER,BEER,EGGS
MILK,DIAPER,BEER,COKE
BREAD,MILK,DIAPER,BEER
BREAD,MILK,DIAPER,COKE
BREAD,ICE,MANGO
JUICE,BURGER
Result should be
BREAD | 5
MILK | 4
DIAPER| 4
and so on.
Hi
I want to execute a query using hibernate where the requirment is like
select * from user where regionname=''
that is select all the users from user where region name is some data
How to write this in hibernate
The below code is giving result appropraitely
Criteria crit= HibernateUtil.getSession().createCriteria(User.class);
crit.add(Restrictions.eq("regionName", regionName));
I have an image path string stored in a database
It goes like: img/uploads/imagename.jpg
I have a controller:
$this->image = new Image($wines->image)
//this is assuming that I have a wines table with the image property
$this->image->resize(60, 250, Image::AUTO)
echo $this->image->render();
//the problem is nothing is rendered
//Is there a better way of doing this? the image path that I am passing at the Image object //instantiation is the result of a query
I am just wondering is there a way to convert nib/xib file to ojbective C code? I just want to find the equivalent code to the nib/xib file (I've tried nib2objc, seems the result is not what I am after).
Actually I want to compile this example
http://developer.apple.com/iphone/library/samplecode/TableSearch/index.html
without nib/xib file (I want it exactly the same with original), any idea about doing this?
Hello,
When I add a comment using the variable below, apostrophes are printed with a backslash in front of them. How can I get rid of the backslashes?
Thanks in advance,
John
Example of printed result:
My roommate\'s brother\'s ex-girlfriend\'s aunt drive a Toyota.
$comment = mysql_real_escape_string($_POST['comment']);
I've a table with working_hours time(0), lunch_hours time(0)
What I have to do is the following:
If lunch_hours is greater that one hour, I have to calculate the offset
Example:
lounch_hour = 01:30:00 = offset = 00:30:00
Once done I've to subtract the offset from the working_hours value
Example:
offset = 00:30:00, working_hours = 07:30:00 = working_hours = 07:00:00
The result must be in time(0) format (hh:mm:ss)
I've tried several solutions but still not working. Used DATEDIFF probably didn't used in correct way.
Thanks for any help
Bye!
I have staically added price range with hyperlinks
$0 - $500
$500 - $1,000
$1,000 - $2,500
$2,500 - $5,000
$5,000 - $10,000
$10,000 - $15,000
$15,000 and up
For exa mple when i click the link $1000-$2500 the url is
http://localhost/magento/index.php/catalogsearch/advanced/result/?price[from]=1000&price[to]=2500&category=9
This is working fine.
I want to display the nuber of prodects for each price range only by checking the price field in the table.
What might be the query
When form A is modal and it displays a second modal form B, and the modal result for B is set and B then closes, A is also closed.
How can this be prevented?
Please Help me in creating a replace function.
Problem:
Their is a alfanumeric value of any lenght (string) and i want to replace its all characters with 'X' except right four characters
Like :
Value : 4111111111111111
Result Should be: XXXXXXXXXXXX1111
I have created a function but got stuck:
public function myfunction(str as string)
str.Replace(str.Substring(0, str.Length - 5), 'X') 'but here i want no of x to be equvals to count of lenght of str - 4
end function
please tell me a better fuction to perform such a operation
Hey, I can't figure out what is wrong with this beans definition. I'm getting this error http://pastebin.com/ecn5SWLa . Especially the 14th log message is interesting. This is my app-context file http://pastebin.com/dreubpRY
httpParams is a singleton which is set up in httpParamBean and then used by tsccManager and httpClient. The various depends-on settings is a result of my effort to figure it out.