I have blocks on page with background images, when I refer (click link) to the same page-images blink. How can I set chache or something else to extract this problem?
I have a bunch of 200X120 thumbnails and a bunch of high quality images, Apparently when I just resize the thumbnails with img size the quality suffers, so we are loading two images from the server the image thumbnail and the actual, I am just trying to optimize my site for speed a little saw someone mention embedding thumbs in the image, does anyone know a program that does that? Is this the best way to achieve my goal of high quality thumbnails?
I'd like to generate completely random piece of html source, possibly from a grammar. I want to do this in python but I'm not sure how to proceed -- is there a library that takes a grammar and just randomly follows its rules, printing the path?
Ideas?
I need a query to return this result:
+---------+-----+-------+
| ref_nid | nid | delta |
+---------+-----+-------+
| AA | 97 | 1 |
| BB | 97 | 2 |
| CC | 97 | 3 |
| DD | 98 | 1 |
| EE | 98 | 2 |
| FF | 98 | 3 |
+---------+-----+-------+
However, I do not have the delta column. I need to generate it for each nid group.
In other words, I need an auto incremented number for each group of the result.
How can we generate email failure notice in java if the email is not delivered due to issues like email address does not exists or delivery failure etc.... something like yahoomail notifications
Thanks
If relatedProductsArea contains NO images then HIDE the div.
<div id="RelatedProductsArea" style="border-radius: 7px 7px 7px 7px;"><br clear="all"><div style="clear:both;"></div>
</div>
Finding NO images means there are no related products.
What i have tried:
$('#RelatedProductsArea').has('img').css('border', 'none');
Heres an example: http://jsfiddle.net/K2Cp6/
Hi, I am working on a project to capture images via webcam in a predefined time interval, and continuously compare the images to a template (good image) and give an error if the difference is tolerance set.
I working out using OpenCV. Would like to have advice how should I do it, e.g. best method, etc.
Appreciate if any one can help me on this. Thanks.
I have a LinearLayout with fixed view. I dynamically inject images in it (ImageViews) but I dunno in advance how many of them will be inserted. I'd like to have a layout where images wrap and go to a new line authomatically when they exceed the available width of the father (LinearLayout)
how do you recommend I should move?
thanks a lot
I had to restore may database to 1 day erlier, so My database is missing data from a day before, and this databse has been used by users since the restoration.
How do I generate script/stored procedure to copy just the missing data from the backup database into my current database.
There are PK and FK relationships that need to be considering.
I'm using SQL server 2005
Thanks for your help.
Aein
I am looking for some easy jquery solution for hover images.
Like if i define a class. them jquery should get the current image like
abc.png then chnage that to abc_on.png
and then put that to on hover image
How can i do that.
i don't want to add function for every button.
Just one function and it do all.
My Images all usually imagename.png or imagename_on.png
Hey
When i use PNG images in my AdvancedList they are shown in very bad quality in the designer and when i deloy the project in the emulator the transparency disappears completely.
Is Resco not cabable of showing png images or what is the problem here?
Hello
I wonder if you could automatically generate header header class functions automatically for a given package (make a batch processing) ..?
Thank you.
I need a query to return this result:
+---------+-----+-------+
| ref_nid | nid | delta |
+---------+-----+-------+
| AA | 97 | 1 |
| BB | 97 | 2 |
| CC | 97 | 3 |
| DD | 98 | 1 |
| EE | 98 | 2 |
| FF | 98 | 3 |
+---------+-----+-------+
However, I do not have the delta column. I need to generate it for each nid group.
In other words, I need an auto incremented number for each group of the result.
I have a gridview which displays data for all employees and their images.
The images take more time to render completely when i click sort or paging or reload.
I'm using httphandler to display image as stream.
Is there a way i can speed up this image loading?
I am placing 20 images in hdpi folder, 20 images in mdpi folder and 20 images in ldpi folder, all are same images but different resolutions . I am placing my app in android market. One user install my app in his normal android device through market, My question is total 60 images download the device or only 20 images(mdpi) download the device at the time of install the app.Thanks for reading my question.
Is there a more efficient way than using numpy.asarray() to generate an array from output in the form of a list?
This appears to be copying everything in memory, which doesn't seem like it would be that efficient with very large arrays.
(Updated) Example:
import numpy as np
a1 = np.array([1,2,3,4,5,6,7,8,9,10]) # pretend this has thousands of elements
a2 = np.array([3,7,8])
results = np.asarray([np.amax(np.where(a1 > element)) for element in a2])
Hello All,
How to Store Large size Images into iPhone Application?
Images are taken from UIImagePickerController but saving into Database and retrieving from
Database crash the application.
I want to create App which can generate sound and change pitch.
My problem is I don't know what libray can make what i want?
Anyone can help me?
Thank you.
Hey guys currently I am thinking of serving images using an image handler script. I have two sources of images. One is from my web images folder where images that are used to construct my site interface are served. The other is in each users images folder where they can store their own images. I was thinking of giving each user image a unique id and then searching that id with the image handler script and serving the image, and changing the file name. The problem is that my site images folder does not have any information in the database and thus has no ids, should I just serve directly? Also this way of serving user images does not seem like the most efficient. If anyone has any suggestions I would really appreciate it.
$sql="SELECT username,file_name FROM images WHERE id=?";
$stmt=$conn->prepare($sql);
$result=$stmt->execute(array($ID));
while($row = $stmt->fetch(PDO::FETCH_ASSOC)){
$image_name = $row['file_name'];
$username = $row['username'];
}
$path="$username/images/$image_name";
header("Expires: -1");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
readfile($path);
I need to create a table with the following structure:
Applicant | Test 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 |
1 | A | C | D | E | F | B |
2 | C | B | A | E | D | F |
3 | C | A | F | G | B | D |
.... | | | | | | |
Basically, test 1 - 6 can be any letter between A and F. I want a Macro (or some other method) by which I can generate this table, with 200 applicants, where the tests are completely randomised. Anyone know how to do this?
Is it possible to generate (highly probable) unique Integer from GUIDs?
int i = Guid.NewGuid().GetHashCode();
int j = BitConverter.ToInt32(Guid.NewGuid().ToByteArray(), 0);
Which one is better?
Histogram
--------------------------------------------------------
1 ****(4)
2 ******(6)
3 ***********(11)
4 *****************(17)
5 **************************(26)
6 *************************(25)
7 *******(7)
8 ***(3)
9 (0)
10 *(1)
--------------------------------------------------------
basically above is what my prgram needs to do.. im missing something somewhere any help would be great :)
import java.util.Random;
public class Histogram
{
/*This is a program to generate random number histogram between
1 and 100 and generate a table */
public static void main(String args[])
{
int [] randarray = new int [80];
Random random = new Random();
System.out.println("Histogram");
System.out.println("---------");
int i ;
for ( i = 0; i<randarray.length;i++)
{
int temp = random.nextInt(100); //random numbers up to number value 100
randarray[i] = temp;
}
int [] histo = new int [10];
for ( i = 0; i<10; i++)
{
/* %03d\t, this generates the random numbers to
three decimal places so the numbers are generated
with a full number or number with 00's or one 0*/
if (randarray[i] <= 10) {
histo[i] = histo[i] + 1;
//System.out.println("*");
}
else if ( randarray[i] <= 20){
histo[i] = histo[i] + 1;
}
else if (randarray[i] <= 30){
histo[i] = histo[i] + 1;
}
else if ( randarray[i] <= 40){
histo[i] = histo[i] + 1;
}
else if (randarray[i] <= 50){
histo[i] = histo[i] + 1;
}
else if ( randarray[i] <=60){
histo[i] = histo[i] + 1;
}
else if ( randarray[i] <=70){
histo[i] = histo[i] + 1;
}
else if ( randarray[i] <=80){
histo[i] = histo[i] + 1;
}
else if ( randarray[i] <=90){
histo[i] = histo[i] + 1;
}
else if ( randarray[i] <=100){
histo[i] = histo[i] + 1;
}
switch (randarray[i])
{
case 1: System.out.print("0-10 | "); break;
case 2: System.out.print("11-20 | "); break;
case 3: System.out.print("21-30 | "); break;
case 4: System.out.print("31-40 | "); break;
case 5: System.out.print("41-50 | "); break;
case 6: System.out.print("51-60 | "); break;
case 7: System.out.print("61-70 | "); break;
case 8: System.out.print("71-80 | "); break;
case 9: System.out.print("81-90 | "); break;
case 10: System.out.print("91-100 | ");
}
for (int i = 0; i < 80; i++)
{
randomNumber = random.nextInt(100)
index = (randomNumber - 1) / 2;
histo[index]++;
}
}
}
}