I am trying to increase the size of the image by 20. So I am using ScaleTransform as shown below.. but the following code doesn't do any scale Tranform.. Any help would be appreciated...
i want to put a newline into a txt file, i tried with many alternative with so many help from this forum but i am getting always unknown character always. Please help
for(int i=0;i<fileDet.size();i++)
{
qDebug()<<"Name directory"<
hello, i want to output some text in an label
<input type="text" size="20" maxlength="20" name="pizza1" value="Margherita">
is there a parameter that the text (value=Margherita) can't be changed, so the text is just displayed.
is input type= "text" the best way to output text? (later on the text is dynamic created)
thanks
Hi,
How to go through a list or fetch element from a list in scheme?
How can I name each element (like we do for variables in java) in a list?
Thanks in advance.
I want to compare every point in a list to another point. So, as we do in java or python-
for(int i;i<list.size();i++){
if (list[i]> k){
//do something
}
}
How can I do similar thing in scheme?
Edit: Thanks all for the help, rod.
Hi All,
$('#button1').click(function(){
window.location = "/Home/GetCustomers?" + $('#myForm').serialize();
});
Is using window.location subject to querystring size limitation? For instance, if my form has many parameters to serialize?
Thanks,
rodchar
I'm using the TTThumbsViewController section of the three20 framework, and I have the status bar hidden throughout my application.
When the user views the full size image, taps the screen(hiding the controls), when they tap again the controls reappear but the status bar is there too.
I've searched through the whole library and been unable to isolate the section where this is happening. I'd love it if someone could point me in the right direction.
Thanks,
BB
Hey,
I have a directory full of images that I would like to resize to around 60% of their original size.
How would I go about doing this? Can be in either Python or Perl
Cheers
Eef
I have some JPEG images that I need scale down to about 80% of original size. Original image dimension are about 700px × 1000px. Images contain some computer generated text and possibly some graphics (similar to what you would find in corporate word documents).
How to scale image so that the text is as legible as possible? Currently we are scaling the imaeg down using bicubic interpolation, but that makes the text blurry and foggy.
how can i create a pre-allocated file on android? something like a sparse file ?
i need to make an applicaton that will download a large file , and i want to avoid having an out-of-space error while the download is commencing . my solution needs to support resuming and writing to both internal and external storage.
i've tried what is written here:
Create file with given size in Java
but none of the solutions there didn't work for some reason.
Hi:
I am new to JQuery library. I am currently trying to create a Draggable by mouse. Say, when I press the mouse it start to draw and then I drag the mouse to change the size and then I release the mouse to finalize the drawing.
Is it possible to do this with JQuery? Thank you in advance.
Joe
We are designing an online application (college admission form) which mandates the user to upload a scanned copy of his photo along with his signature, so that this information can be used to cross verify the applicant when he appears for a exam + personal interview at a later point in time. This entire process requires a scanner for the applicant to scan his photo / signature into an appropriate size. Is there a better way to capture user identity for such purposes as usage of scanner for capturing signature, photo is a painful process.
I have a .NET app (webforms - .NET 3.5) that is running on a 64-bit server as 32-bit (I checked the IntPtr.Size result). The compilation is set to AnyCPU so I would expect that on a 64-bit machine, the app would be run at 64-bit. There are many Third-party programs incorporated into the app, could they be causing a problem? How do I figure out why 64-bit compilation is not being done?
I am calling a java function from JSP page which returns file name after creationg a XML file. In some cases where size of file is large(Java function execution takes much time due to large data) it is returning blank where as XML file is genertaed after some time. Can any one help me to get the file name in this case so that user can know the generated file name.
I have a problem with implementing touch events on GLSurfaceView. Views size is 1280x696, because of android (tablet) status bar at bottom with soft keys, time etc.., (screen resolution is 1280x800), but OnTouchListener is receiving touch events with coords [646.0,739.0], and thus my gluunproject method fails to return correct values
is there any way to return events that respect these boundaries? or how should I recalculate the position?
Ok I wrote my own version of SALT I call it salty lol don't make fun of me.. Anyway the registration part of my script as follows is working 100% correctly.
//generate SALTY my own version of SALT and I likes me salt.. lol
function rand_string( $length ) {
$chars = "ABCDEFGHIJKLMNOPQRSTUWXYZabcdefghijklmnopqrstuwxyz1234567890";
$size = strlen( $chars );
for( $i = 0; $i < $length; $i++ ) {
$str .= $chars[ rand( 0, $size - 1 ) ];
}
return $str;
}
$salty = rand_string( 256 );
//generate my extra salty pw
$password = crypt('password');
$hash = $password . $salty;
$newpass = $hash;
//insert the data in the database
include ('../../scripts/dbconnect.php');
//Update db record with my salty pw ;)
// TESTED WITH AND WITHOUT SALTY
//HENCE $password and $newpass
mysql_query("UPDATE `Register` SET `Password` = '$password' WHERE `emailinput` = '$email'");
mysql_close($connect);
However my LOGIN script is failing. I have it setup to TEST and echo if its login or not. It always returns FAILED. I entered the DB and changed the crypted salty pw to "TEST" and I got a SUCCESS. So my problem is somewhere in this LOGIN script I assume. Now I am not sure how to implement my $Salty in this. But also be advised that even without SALTY (just using crypt to store my pass) - I was still unable to perform a login successfully. And if you're gonna suggest i use blowfish - note that my webhost doesn't have it supported and i don't know how to install it.
here's my login script:
if (isset($_POST['formsubmitted']))
{
include ('../../scripts/dbconnect.php');
$username = mysql_real_escape_string($_POST['username']);
$password = crypt(mysql_real_escape_string($_POST['password']));
$qry = "SELECT ID FROM Register WHERE emailinput='$username' AND Password='$password'";
$result = mysql_query($qry);
if(mysql_num_rows($result) > 0)
{
echo 'SUCCESS';
//START SESSION
}
else
{
echo 'FAILED';
//YOU ARE NOT LOGGED IN
}
}
So what's wrong with this login? Why isn't it working just using the crypt/storing only crypt?
How can i make it work storing both the crypt and randomly generated SALTY :) ?
Ty advance
Hi everyone,
I am working using richfaces 3.3.3 , tomcat 6. when i try to access my application using IE6 and the windows language is set to arabic, i get the following exception:
IllegalArgumentException: Parameter "size" for convert from HTML to java can not be decoded: [1px], reason: Unparseable number: "1px".
when i change the windows language back to english, restart the server and try to log in again everything works fine..
Can anybody please help me with this issue
I want to create the following situation:
+--------------------------------------+-----------------------+
| 1| |
| IMAGE IMAGE IMAGE IMAGE IMAGE IMAGE | TEXT TEXT TEXT |
|2 | |
+--------------------------------------+-----------------------+
Everything is included in a div called "caption"
The text is in a div called "textarea"
The image is in a div called "imagearea"
The text area has a fixed width
the image size can change. It should be aligned to the top right (1) and should overflow from the bottom left (2)
How can I do this with CSS?
Many are saying that Apple has restricted it for better performance. It should increase the size of RAM to support multitasking. So, they Apple is not allowing it.
But some say that Cocoa Touch applications can't be multitasking as iPhone has only one window and views on it. But I could not understand what is the correct reason for this ?
Please clarify me.
This is what I have so far, but I need to set margins:
def send_fax
22 contact = Contact.find_by_id(self.contact_id)
23
24 pdf = Prawn::Document.new
25 pdf.font "Times-Roman"
26 pdf.move_down(20)
27 pdf.text "ATTN: #{contact.first_name} #{contact.last_name}", :size => 24, :style => :bold
28 pdf.text "RE: #{self.subject}"
29 pdf.move_down(20)
30
31 pdf.text "#{self.body}"
32
33 OutboundMailer.deliver_fax_email(contact, self, pdf)
34
35 end
i need to choose a cms for my next project, i have searched and come up with these 2 : radiant and refinery, which one is better for building middle size websites ?
are there any other options out there for rails cms ?
one important factor is that client can easily update their website without much knowledge
thnx for helping
I need a media information extraction library (pure Java or JNI wrapper) that can handle common media formats. I primarily use it for video files and I need at least these information:
Video length (Runtime)
Video bitrate
Video framerate
Video format and codec
Video size (width X height)
Audio channels
Audio format
Audio bitrate and sampling rate
There are several libraries and tools around but I couldn't find for Java.
Hi,
If I have an image of which I know the height and the width, how can I fit it in a rectangle with the biggest possible size without stretching the image.
Pseudo code is enough (but I'm going to use this in Java).
Thanks.
Hi,
Im trying to limit the number of returned results manually in a copy of the list.phtml template, but its turning out to be alot harder than I anticipated.
Ive tried manually setting the collection size, but ya once again nothing working. Can someone show me how to do this? Would be nmuch appreciated!
Hi, I have 2 domain classes
class A {
....
static hasMany = [bs:B]
}
class B {
int code
....
}
How can I list the number of ocurrences of all codes in B in all the A table?
Something like
b.each { thisb ->
int ocurrences = A.bs.findAll{it == thisb}.size()
...
}
Thanks
The thing is that I have hundreds of nodes each with 4 to 12 images all of them around the same size in an imagefield but I want to order that so it looks at the end in a grid or something like that.
I know that panels and views are the answer but I think I've seen all of the tutorials available but nothing.
If anyone know where can I find something like I need, I'll be very gratefull.