Programming :: Images Visualization And CGI Scripts
Apr 11, 2010I'm writing a website with Perl/CGI. Why into my static html pages appear images and in my pages created by cgi script images don't appear?
View 1 RepliesI'm writing a website with Perl/CGI. Why into my static html pages appear images and in my pages created by cgi script images don't appear?
View 1 RepliesWhile using winamp in windows, you are able to set the visualization to "desktop mode" in which the visualization takes up your icons and covers your desktop while playing music. Is this possible to do in linux?
View 2 Replies View RelatedHere is the latest in my saga of me vs. Suspend in Utuntu.
Dell Studio XPS 8000 desktop
i7-860 CPU
8 GB RAM
swap area set to 9 GB (because I was experimenting with hibernate)
nVIdia GeForce GT220 1 GB
Ubuntu 10.04 64 bit, all patches, nVidia-current 195.36.24
So I was poking around in BIOS and looking at CPU Features. I have also a problem with my VMWare machines sucking up a core or 2 at 100% after suspending and waking the host. Just for the halibut I Disabled CPU Visualization. My VMWare XP guest now starts up a lot faster! (?) and I have discovered. If I do a suspend of the host BEFORE starting and LOGGING IN to a VM it seems to work great. I can wake the host and am presented with the locked screen dialog asking for my password. I have done about 20 suspend/wakes with no problems. So far, so good.
Upon further testing I find that I can start a VMWare or Virtualbox XP guest machine and still suspend/wake - at least so far with a limited number of tries. Most importantly, if I log into the guest (VMWare or Virtualbox) I find that suspend/wake fails 100% of the time. By fail I mean that the host suspends but when I attempt to wake it I find that I am logged out of the host and all programs which were running at suspend time are no longer running. Firefox restores the previous session indicating that it was shut down incorrectly or unexpectedly.
I am Student of RHCE. I have only one machine at my home. to do practice I want Server - Client environment. So Can i use visualization concept? If yes How?
View 3 Replies View RelatedI need to install a program called Visit [URL] which is a visualization program. The install can be onerous to say the least so they have created a script to help. [URL]
1. In the Fedora Linux scheme of things where should it be installed?
2. How do I run the script?
Fedora 15 uses scidavis (Scientific Data Analysis and Visualization) taken from Fedora 14. If you try to build the native rpm package, an error occurs in building the documentation. A 1-line sed in the spec file solves the problem:
Code:
#fix spurious-executable-perm
find . -type f -exec chmod 0644 {} ;
#fix docbook to adapt different versions of fedora
sed -i "s/VER-REL/`rpm -q docbook-dtds|sed "s/^[^0-9]*//;s/.noarch//;
s/./\./g"`/" manual/docbook-en/index.docbook
#
# ---> sed line to fix Fedora15 building:
sed -i -e 's/xsl-stylesheets-1.75.2/xsl-stylesheets-1.76.1/' manual/scidavis_html.xsl
#
#fix default path for fitPlugins
sed -i "s/usr/lib/%{name}/plugins\%{_libdir}/%{name}/pluginsg"
%{name}/src/ApplicationWindow.cpp
sed -i -e 's/Qt;Science;Physics;Math;Graphics;/Education;Science;DataVisualization;Qt/' %{name}/%{name}.desktop
I don't see music visualization anymore(libvisual)? I liked the Suse 11.0 version WAY BETTER. What are they doing? going backwards?
View 9 Replies View RelatedCheck out the frontpage of mail.com - how do I do the scrolling images in Javascript, like it's doing?
View 4 Replies View RelatedI have an image (a photo) in a variable (obtained from a MySQL database), eg. $ary[4]. I wish to display it in my Perl CGI script. My question is, th normal image tag ie. <IMG> takes a SRC parameter of a *file*, whereas I just want to PRINT the image in the variable.
View 3 Replies View RelatedI am looking for a beat visualizer (for lack of a better word) to use full screen when playing music on my computer. What do I mean by that? I know there are a lot of visualizers out there that create colored swirls and spectrum analyzers and stuff based on the waveform of the music being played (e.g. Goom). But they do not really visualize the music to any great extent. If you play Mozart or if you play Chemical Brothers it does not do all that much of a difference visually.
What I want is a visualizer that reflects the music to some degree, and in particular the main beat. If there is a strong thumping beat I want that to be reflected on the screen at the same time as the beat plays through the speaker. Here is a simple example illustrating what I mean (forward to 1:00): [URL]
Please note that it is not the simplicity in the video I am looking for, it was just that this video did well in illustrating the main principle. If possible I would like to have swirls and smooth animations also (like Goom) but the most important thing is that it should reflect the music in a more direct way and be perfectly synchronized with the beat.
Well, the title says it all. I have a form like this in my document:
<form enctype="multipart/form-data" name="profile" method="post" action="?">
<input type="hidden" name="MAX_FILE_SIZE" value="250000">
Select image:<input type="file" name="image" />
<br />
[code]...
I even printed the $_FILES array and it looks like this:
Array ( [image] => Array ( [name] => bojan.jpg [type] => image/jpeg [tmp_name] => /var/upload/phpjarPwZ [error] => 0 [size] => 10096 ) )
But the problem is that this file never gets saved to /var/upload directory (I changed php.ini file, so that uploaded files should be saved into /var/upload. I tried /var/tmp as well, but it's the same). Here are also the permissions of this dir:
drwxr-xr-x 2 apache apache 48 2010-02-17 00:30 upload
BTW, I use Mandriva 2010 64 bit distribution. I spent last two days searching for solution on internet forums, asking people and made absolutely no progress. is it possible to debug what is happening with the supposedly uploaded file? I mean any logs, where I could find trace, what's going wrong? I tried to check /var/log/httpd and files in there, but no success either...
I have inherited a wordpress theme with a folder of images that I think are no longer being used. I wanted to find the orphaned images using grep, so I wrote this script:
Code:
#!/bin/bash
echo $PWD
for i in *.*; do
cd ..
[Code].....
Its seems like I got some false positives out of it, but it worked pretty ok. I guess. :| Of course, it is not checking for images in the content of the database.
Orphan finding has to be a wheel that is already invented.
I am building a pipeline for image processing. I would like to be able to take the png images in a folder and pass them to clusterImage.pl once that is done I would like to then pass the outputted file to seperateObjects.pl the outputted file is of the same name but has kmeansOutput.all.matrix attached to the end. Below is what I have so far, but it is not working.
#!/bin/bash
#This script will take in an image and a matrix file.
#The output will be an image and a matrix file.
list=`ls *.png`
for i in $list
[Code].....
I was wondering if I can show an image on our php site if we store the path to it. For example if we get the result form my sql as:
images/example1.png and the handle the result as common html.
< img src="databaseresult" width="173" height="188" border="1" / >
is this possible? do you think theres a better way to do it?
we need to store the images locally we cant use a blob space on the table.
I have a render script that uses several Blender 3D instances on several machines to co-render one still image. The image is split into squares of 64 x 64 pixels. In the end, I have like 200 image files, each one with a puzzle piece of the whole.
Now I would like to assembe these pieces into whole with PIL and Python, but so far cannot figure out how. I am new to PIL, but in imagemagick, a convert image1.png image2.png image3.png +append finalimage.png works a charme. But convert chokes on so many image files, so I need something automatic and scalable. I think that pictures are RGBA, so black should be the alpha channel and transparent.
I think I have to mention that the pieces are in the right position and that every piece has the original dimensions of the full picture, so it is not a problem figuring out where each piece should be. Just putting all the pictures on top of eachother and ignoring anything that is black would do the trick nicely.
How can I reach this with PIL? Which functions do I need for that? PIL does a lot of stuff, so finding my simple function is daunting.
I'm looking for an app for Linux that creates bootable images. Back when I used windows, I used Imgburn. Now, I need an app like that for Linux. Wherever I looked online, I saw either one (or both) of these ideas.
1. Run Imgburn under wine
2. Get k3b
I don't like using wine because the programs run very slow. I'm not sure exactly how to get k3b to produce a bootable image. So that's where I'm stuck.
So I'm teaching myself some scripting to try and create a fairly simple photobooth type affair... I've got gphoto2 playing fairly nicely with my canon, and imagemagick taking that output and rearranging it to a vertical format...
EDIT:
*smacks forehead*
Fairly simple to do what I needed initially: Code: feh -FZ -D 1 --cycle-once $COUNTDOWN & sleep 2 &
feh -FZ -D 20 --cycle-once $SMILE This shows a countdown from 5 to 1 in images and $SMILE is big that says 'smile'
So my question is thus... (fairly basic but I can't get my head round the use of & and sleep in this context) what's the best way to call my gphoto instructions (or a script with them in) mid way through the above code?!
'feh code'
sleep 5
'gphoto code'
this kind of thing seems like the way, but the'sleep 5' and 'gphoto code' doesn't start until feh is finished in this case?
I am having some issues with downloading images to my website from my suppliers!
I have a text file (extracted from product their product lists) which has all of the image URLs!
I have tried to use php using the below script which was started via a cron job, however exec is blocked and my hoster has told me to use curl..... Is there something that can be written in or with curl to do the same thing?
What is the efficient way to display jpeg images in browsers using c programming. Any links or any sample code.
View 6 Replies View RelatedI retooled my other script (thanks to those who helped) to work for resizing images for a netbook with 1024x600. Thanks to the ImageMagick website for help with the syntax. Here's what worked for me:
Code:
#!/bin/bash
for SRCFILE in /home/robert/Pictures/*/*/*/*/*/*/*
do
RELPATH=`echo $SRCFILE | sed -e 's//home/robert/Pictures//'`
DESTDIR="/home/robert/tmp/portable/${RELPATH%/*}"
[code]....
I figure anyone with a netbook is going to put a lower size/quality on their netbook and then keep the originals (music and pictures) on a different machine or an external hard drive.
I am running Linux from a DVD, not installed. I am not good with installing software, but since the DVD cannot be corrupted, I am content to operate this way. Lately, I have been having problems that previously did not occur. When I try to click on the checkbox to get rid of emails, it doesn't register in most cases, or when it does, I am clicking multiple times so it registers twice, meaning it is unchecked again. Even more frustrating is some issues that are affecting my ability to update my business. I am trying to modify spreadsheets (text not calculations).
Whenever I try to click & drag to select something to change, it keeps jumping around to select only some of what I want, something else or some combination of the 2. When I try to copy and paste several fields from 1 column to another, everything from the several fields in the source column ends up together in the last field in the target column. I am also trying to download some images from a website. There is a single column of links to the images. I have to click on the link to get to the image in order to copy it, then back out to continue looking for more links to do the same.
My computer keeps jumping back 2 steps, then forward 2 steps, and sometimes I lose my place in that list. I could deal with it if it were a small number of links, but this is a list of probably close to 20,000 links. Again, i am operating off of a live DVD so this should not be corruptible, but this has just started happening, and has been an issue the last several sessions.
I have a requirement to print images (two to be precise) from the command line of a given size and without losing too much quality.
So, I may have two images, a.jpg and b.jpg which may be 4x4" and 6x4" respectively (the sizes may vary). I need to be able to print both these on a single sheet of paper (one under the other) at a given size for each - so a may be 2x2" and b may be 3x2" - the aspect ratio will always be maintained (or as near as possible!)
I am currently doing this a very messy way (because I don't know any other way!!) - basically I am converting the picture to a given size using a set density using convert and then concatenating the two using montage.
Here is part of my script:
Code:
Don't worry too much about the case statement at the end - that is just to be able to select to print either A, B or A and B.
The issue with this is that is doesn't work great if the aspect ratio is not maintained perfectly and also, it loses quite a lot of quality on the print.
I have a very old windows app which I wrote years back in VB (o dear! ) which does the same thing and the quality is fine (I am running it through wine). I want it to be command line though because I want to run it as part of other scripts etc.
I am making a simple snake game and have problem when loading the images (apple, snakes head, snakes body). When running this code, I just see the JPanel with black background which I have created. where is my mistake?
I highlighted my code with image and paint method.
Code:
using the update maneger to update on ubuntu new linux images available 2.6.31-17 generic and after the download is complete both images exist in the grub menu should i remove them ? or just remove them from the boot menu ? and if so how could i do each.
View 6 Replies View RelatedI need to implement operating system level visualization to isolate a application on RHEL 5.5. Which one tool in following for implementation Linux-VServer, lxc, OpenVZ or anyone else.
View 2 Replies View RelatedI know that ImageMagick's convert program can be used as follows to convert a collection of images -- say, in PNG format -- to a PDF file:
convert *png output.pdf
The problem with this is that each image is then stretched to fit on one page, whereas I would like to keep the original dimensions of the images and put as many as possible on one page in the PDF file before moving on to another page.
I am just spent half an hour hunting for a thing that should be totally available already:USB install images of Ubuntu, knoppix and all the others.And, the only good way are so far complicated tutorials where you extract the stuff from an CD image. Why??Hasn't everybody notices that CDs/DVDs are vanishing big time? That more and more systems don't have the readers anymore? Instead of following a 10 point instruction list, it would be nice to just be able to download a Ubuntu 8.10 or whatever USB image and be able to beam that DIRECTLY to a USB stick with a dd command.
Or am a missing something here? Does this exist?It should by no means be mariginal, considering how important USB stick in specific and flash memory in general have become.
I have this function that is supposed to print draw the first image from a function then hide the rest of the images using 'display: none' however for some reason the boolean test does not seem to work on one of my servers however it works on another, is there some php.ini setting I am missing or can you see any issues with the following code:
[Code]....
I'm looking for a way to convert .wav/.cue file pairs to their respective tracks in flac format, with ID3 tags from the .cue file. Preferably I would like to be able to do this in such a way that the new tracks would be copied to the appropriate %Artist%/%Album%/%trackno% %title%.flac location. Back in the days when I would go out of the car and back in when it didn't work, I would mount the .cue/wav file pair with Alcohol52, and use Windows Media Player to do the rest of the ripping for me. I'd like to be able to do something similar in Fedora.
I've looked around, but most threads talk about cuebreakpoints and shnsplit. Surely, I could do the job with those, but then I'd need to rename the files manually, copy them to the correct location manually, and input the ID3 data manually. This is very time consuming, and I'm trying at all costs to avoid this. I've already called Google several times, but his phone is turned off. How could I do the conversion in an automated way, preferably without going to Mr. terminal's office?
every time a new linux_image_generic install, my grub boot menu gets longer, any way to delete old images?
View 7 Replies View Related