[SOLVED (maybe)] Dynamic SquashFS image
Is a SquashFS Image with dynamic capacity/allocation possible (similar to the virtual disks in vms being dynamically allocated)
Here's my situation and why I want what I do:
I have a file server with 12TB of total storage, roughly halfway filled. I keep backups of customer files on this server, in addition to my personal files - I like to keep my customer's files in a luks encrypted image - for their security, and mine. Some of my personal files are stored in this encrypted image, as well as directly available on the server. The server is starting to get filled up so I want to try and save a little space. As the customer files are usually either text files (around 200gb of them right now) or disk images of degrading disks etc.. I could potentially save a large amount of data using compression - unfortunately I need to be able to access the files directly, on the fly, and edit them as required, so tossing them in archives isn't really an option.
Can I create a Squash image that has an initial size of ~10mb or so, and have it expand to contain any and all data I toss at it? So that the on disk size is as small as required? This way I can mount the squash image, and then mount the contained Luks encrypted image. The Luks encrypted image is currently 1TB, with roughly 50% of it free space, not including the free space contained in the raw image files. This makes it 1TB on disk, when it could be probably around 150gb or lower.
EDIT:
Totally spaced sparse files... since the native filesystem supports them I should be able to create a sparse file 1TB in "size", do a "quick" format to squashfs and copy data to it with it expanding up to (but not exceeding) the total desired size.
Last edited by Xaero252 (2013-07-22 03:56:50)
Hi Venkat
I have a question.
I need to include a html file to the masthead. Is it possible to include a html file in masthead.
The other question in your answer you have said that you have removed the headerIview, how abt the function links.. In my masthead I have to retain the functionhelp.
Thanks
Regards
Senthil
Similar Messages
-
How to dynamically call image in PDF for Acrobat ver 8.1 onwards?
Hi Experts,
I am using Web Dynpro Java. My requirement is to call the images dynamically on a PDF form. There are no of company code. I have to call different logos for different company codes/
We are now using Acrobat 8.1.1. Please refer following thread.
http://kb2.adobe.com/cps/405/kb405270.html
From Acrobat 8.*, we have to use some different method for dynamically calling the images. Earlier we were using the concept mentioned below to dynamically call images.
However this method is not applicable for Acrobat Reader 8.* onwards due to security reasons.
Click on the Layout tab and choose None for the Caption position.
u2022 Click on the Object, then the Binding tab and choose None for Default Binding.
u2022 Click on the Field tab, enter $record.SapOnlineShopUrl for the URL entry, and select Use Image Size for the Sizing field.
u2022 Click on the script editor and enter the following FormCalc script statement, which enables the dynamic integration of the image. Show: initialize Script: this.value.image.href = xfa.resolveNode(this.value.image.href).value; Language: FormCalc Run At: Client
write following code in wddoinit
try { String url = WDURLGenerator.getAbsoluteWebResourceURL( wdComponentAPI.getDeployableObjectPart(), "sap_online_shop.jpg"); wdContext.currentDataSourceElement().setSapOnlineShopUrl(url); } catch(Exception e) { throw new WDRuntimeException(e); }
Please let me know what is the alternate method for Adope ver 8.1.1
Regards,
GaryHi Gary,
First you upload the image in SAP through se78.then write the below code in your adobe form interface.
data : v_object type TDOBJECTGR value 'GRAPHICS',
v_id type TDIDGR value 'BMAP',
v_btype type TDBTYPE value 'BCOL',
V_FIELD TYPE XSTRING.
V_NAME = 'ZW_DEVMAN_LOGO'.
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = v_object " 'GRAPHICS'
p_name = v_name " Name of the logo as in se78
p_id = v_id " 'BMAP'
p_btype = v_btype " 'BCOL' ( whether the image is in color or black and white )
RECEIVING
p_bmp = v_field
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
g_logo = v_field.
Declare g_logo as xstring in global data.
In context of the form make one graphic element with field g_logo and mime type BMP.It will work.
Regards,
Simi A M
Edited by: amsimi on Jan 26, 2011 5:30 AM -
Displaying dynamically changing image: a problem with JLabel.
Hello! I use NetBeans 5.5 and I develop my GUI with Matisse. I'm rather a beginner in developing GUIs with this editor...
I'd like to display a dynamically changing image. The idea is: GUI shows the image, that is modified as some computations run in a different thread. App will be run on a single machine.
I'm trying to display the image as a label's icon. The problem is that my app's frame can be resized - and when it is, the label also resizes. When the label is resized, the image should also be resized - the image should always be of the same size as the label. The problem? I noticed, that it works only when I make my app's bigger. When I try to lower its dimensions, the label's dimensions remain the same. Why the label don't make its size smaller?
My code works as follows: when app's main frame is resize, the panel (the one, that the label is placed in) is also resized. And, since the label is in the panel, it (should) also be resized. So I wrote all the resize-events handlers (therefore I know that the resize event is sent when my app's frame is resized, and when the panel is resized - but the label is resized only when it grows bigger). In this methods I modify the image displayed in the label (I resize the image).
Or, perhaps, there is some other way to show a (dynamically changing) image with Swing... I chose JLabel, because I didn't want to write my own JComponent. JLabel can display image and that is all I need. The problem is: when the label grows bigger, I create a new, bigger image (icon). Why my label don't get smaller (the resize event isn't even sent)?There is no component that dynamically resizes an image. You need to create your own. Something like this:
JComponent component = new JComponent()
protected void paintComponent(Graphics g)
// Scale image to size of component
g.drawImage(yourImage, 0, 0, getWidth(), getHeight(), null);
}; -
Handling dynamically generated Images
Hello,
I have a WDJ application that generates Images dynamically based on certain criterion. The dynamically generated images are put to the server using the code
BufferedImage image = <rendered image ...>
File outFile = new File( "Output.jpg") ;
ImageIO.write( image, "jpg", outFile);
/** Resource path is not set during the file creation
* as ImageIO throws IllegalArgumentException
It gets saved to the folder <i><drive>\usr\sap\<SID>\JC<InstNo>\j2ee\cluster\server0\output.jpg </i> by default.
Now, how to show up this dynamically generated image in a Image UI element? I have tried setting the output file name to the attribute that is bound to the "Source" property of the Image UI element but it doosn't show up as WD runtime is doing a look-up in the folder <i>../../../resources/com.test/<projectName>/Components/com.test.<componentName>/</i>
Any pointers in this regard are highly appreciated.
BalaHi
Try this
Create the alias for the folder (C:\usr\sap\P13\JC00\j2ee\cluster\server0.)
1.Goto Visual Administrator->Http Provider->Aliases in the Runtime Tab.
2.Give the Alias Name and Path for the Folder.
3.The Image sorce like http://<Server>:<Port>/<Alias>/<image>.<ext>
Kind Regards
Mukesh -
Creating dynamically a image.. with background
Hi, i'm working on displaying dynamically an image file who shows some text and a rectangular. I want to enhance this method by passing an existing image file, so that this file can used as a background upon creating the gif.
Example: text = hello, rect = blue line and background = 'back.gif'
Result : an image file who consist out of the background, the text and the rectangular.
Is this possible, and could you get me started?
thxI'm not sure how this question relates to the J2EE SDK. Perhaps you can look at tools that can be used to construct GIFs dynamically. In the past I have used a tool called GIFs on the fly to create dynamic GIFs.
-
How to display servlet dynamically generated image ?
Hi,
How to display servlet dynamically generated image ?
I have a servlet generating a buffered image in the doGet. I want to display the image in a jsp page with other information. I'm not able to get it properly displayed.
**Try n# 1 **************************************************************
This displays my image but nothing elle :
ServletOutputStream sos = pResponse.getOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
encoder.encode(img);
**Try n# 2 ****************************************************************
I tried also :
In the servlet :
request.setAttribute("renderedImage", img);
and in the jsp page :
BufferedImage image = (BufferedImage) request.getAttribute("renderedImage");
<img src="<%=ImageIO.write(image,"jpeg",response.getOutputStream())%>" width="300" height="280"/>
This last try draws big crap in the jsp page, thank you in advance.
NelsonCall another servlet from the IMG tag. Have the servlet stream out the image using ImageIO (instead of writing HTML).
-
Hi,
we need to dynamically import images to use them in smartforms. The images are stored on a file server (DMS) so we tried to use BAPI_DOCUMENT_CHECKOUTVIEWX to get the file from DMS and then use IMPORT_BITMAPS_DBS (to do what SE78 does) but this does not work. We realised that the file was not being transfered by the BAPI and that IMPORT only works with local files, so when we are printing (background), it does not work. Does anyone know of a way to import images as GRAPHICS as SE78 does but from a DMS server and in background mode.
TIAhi,
can you please elaborate your answer, i could not understand it completely.
Thanks,
Hasan -
Dynamically loading images: UI Loader issue
I posted this last week, but did not show good examples to get help. Admittedly, I am new to flash, so this may be a bit elementary, so my apologies in advance. I am trying to dynamically load images through the UI Loader component. Attached are the errors I get, and although I think that the coding is close to correct, when I publish, it just flashes up then restarts the movie... any ideas? Thanks in advance.
there's a problem attaching things to this forum. so, nothing is attached.
can you copy and paste your error messages to this forum? -
How to dynamically load images into Flash
I have a movie clip on the stage that I want to dynamically
load images into (that constantly change), how would I go about
doing this? Thanks.Use the Loader class to load in images.
Then use addChild to add the Loader class into your MovieClip
on the stage.
As far as &quot;constantly change&quot; what
do you mean by that? You could use setInterval, ther enterFrame
event, or any other means to trigger a new image to be loaded into
the Loader instance.
Finally, you can use the Tween class to create some nice
effects for the images (fade it, blur in, photo blend, masks,
etc) -
Dynamic Data - Images, Pricing, Copy
I am new to the print world and we just hired a new graphic designer and she uses In-Design for creating our new print catalog. My question (I am a developer) is - is there a way that In-Design can pull in dynamic data (images, pricing, etc) from some type of datasource (excel, XML, SQL Database, etc). So when the datasource is updated, the data on the InDesign page would be updated as well too.
We are going to be printing a low quantity of catalogs at a time and want to make sure we are doing this the most efficient. I would love to hear feedback on what experiences you have had.smolinitek1 wrote:
I am new to the print world and we just hired a new graphic designer and she uses In-Design for creating our new print catalog. My question (I am a developer) is - is there a way that In-Design can pull in dynamic data (images, pricing, etc) from some type of datasource (excel, XML, SQL Database, etc). So when the datasource is updated, the data on the InDesign page would be updated as well too.
We are going to be printing a low quantity of catalogs at a time and want to make sure we are doing this the most efficient. I would love to hear feedback on what experiences you have had.
Search Google for terms like "InDesign XML database publishing tutorial," and "InDesign database publishing tutorial XML," without quotes for lots of resources on this topic, including some from within this forum.
Search Amazon.com for "maivald InDesign XML" without quotes for Jim Maivald's book on XML and InDesign together.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices -
Dynamically loaded images cached?
We have an xml feed that is refreshed every hour. According
to the xml file, we dynamically load an image into an html text
field each time someone hits our page. All of the images have been
recently updated, but the old ones are still appearing? We use the
swf?nocache=randomnumber convention to make sure the swf file
itself isn't cached, but is there anything we can do to clear out
the cache of dynamically loaded images? If there isn't anything we
can do, will these all eventually refresh themselves? This is how
the html is generated where "twcImage[0]" is the image in question.
Thanks!Do the same random number for the images.
twcImage[0] + randomnumber
Dan Smith > adobe community expert
Flash Helps >
http://www.smithmediafusion.com/blog/?cat=11
http://www.dsmith.tv
"Wolli World" <[email protected]> wrote in
message
news:fvvcrc$k9o$[email protected]..
> We have an xml feed that is refreshed every hour.
According to the xml
> file,
> we dynamically load an image into an html text field
each time someone
> hits our
> page. All of the images have been recently updated, but
the old ones are
> still
> appearing? We use the swf?nocache=randomnumber
convention to make sure
> the swf
> file itself isn't cached, but is there anything we can
do to clear out the
> cache of dynamically loaded images? If there isn't
anything we can do,
> will
> these all eventually refresh themselves? This is how the
html is
> generated
> where "twcImage[0]" is the image in question. Thanks!
>
> twcTarget.text = "<img align='left' hspace='5'
vspace='0' src='
http://" +
> _root.server + "/rss/weather/images/" +
> twcImage[0] + "'>" + "<condition>" + ... and so
on
> -
Get width and height of a dynamically loaded image once it's done loading?!
hello : :
well... i'm taking my first shots at flex after programming
in flash for a year now. it's been fun and i've been picking up on
things pretty well (or so i think), but i come across something
today that i used to be able to do in my as2 programming and don't
know how to do in as3...
in flex, i'm loading an image into an image control (by using
"myImgControl.load(urlString)"). i have a "complete" parameter on
the image control that calls a function just fine after the image
is loaded, but if i try and check the hight and width of the loaded
image once it loads, it comes back as zero. how can i get the
height and width of the image after it's loaded?!
in flash/as2 i used to do this little trick/work-around i
found in a forum (kirupa.com, i think) to find out the width and
height once the loaded image listener checked the loading process
and came back "complete"... in the code below, "imgLoader" is the
movieClip the image was loaded using
imgLoaderListener.loadClip(urlString, imgLoader).
quote:
iTot = imgLoader.getBytesTotal();
iLoad = imgLoader.getBytesLoaded();
if (iLoad == iTot && iTot > 4) {
imgH = imgLoader._height;
imgW = imgLoader._width;
that all make sense?!
basically, it's as simple as this: i need to find something
similar to the above for as3 that will tell me the width and height
of a dynamically loaded image after it's done loading...
so there ya have it. i appreciate any help any of you can
throw my way! thank you so much for even reading this!
: : michaelI assume you have probably already figured this out, but just
in case, there should be an event to listen for after which you can
get the height and width information successfully. I can't remember
the exact name, however. Experiment and see which one works
time-wise. -
Any way for one VI to dynamically update images shown in another VI's Image Display control?
I've just discovered (in LV v7.0) that, while I can wire to it, I cannot write image data to a "value" input terminal of a property node associated with an Image Display. When the VI runs I get this error:
"IMAQ Vision: (Hex 0xBFF6051A) The Image Display control does not support writing this property node."
(I must admit that I have to wonder why we are allowed to wire to it, if all it does is generate this error)
Is there any way for one VI to dynamically update images shown in another VI's Image Display control?
I am not interested in using IMAQWindDraw windows.OK, I have found one way to simultaneously access one VI's image data within another VI without the use of globals. I don't know if it makes use of a known feature of image data that will be with us forever or if it is a bug that will disappear sometime in the future...
It seems that if I create an image data stream in one VI using IMAQ CREATE and name the data stream "ABC" and then create an image data stream in another VI using IMAQ CREATE and also name that data stream "ABC" then in fact they are both the same data streams and they can be read or written by either VI.
Using this feature I can write the common data stream in one VI and using a shared occurrence or semaphore let the other VI know when it is OK to display the data from the common stream.
This method requires that the displaying VI needs to have a while loop around the image display which is not nearly as simple as a display that is updated automagically by another VI writing to a VALUE input that is referenced back to the Image Display. I'd still like to know if there is some way to make that work.
One corollary to this is that if you have several image data streams in use in a system (they can be in totally separate VI's, running independently) and you don't want them tromping on each other's image data then you need to make sure that they (the image data streams) get created with different names. An example of a place where this might bite you (and where I discovered this "feature") is to have multiple copies of the same VI with different names to do image acquisition and display from multiple cameras. Being copies of the same VI, they all had the same image data stream names, defined as constants, within them. When they were run simultaneously, the image data from all of the multiple cameras randomly appeared in all of the image displays. I don't know if this feature would hold up if the separate VI's were turned into separate executables and then run. Do any of you know if this sharing of image data streams with common names works across executables running on the same machine? -
Dynamically Create Image: RDataMatrix
Hello All,
Anyone know of any samples or tutorials showing how to dynamically create images on a web page using RDataMatrix? The library can be found at java4less.com. Any input would be greatly appreciated.
Thanks,
TimHi,
I am not aware of this. However, we have examples posted in blogs and referenced here that use a servlet URL reference from the image objec in JSF to access streamed image contents
Frank -
Hi,
I have been trying to load dynamically an image using WLS 6.0, but I
failed. To simplify the case, following is just a simply scenario.
All images are stored under the directory doc_root/images. When the WLS
server is on, I enter the URL: http://localhost:8080/images/image.gif.
If this image file exists, it is printed in the browser, it is correct.
But when I copy a new image file (I mean at the moment when the server
is launched, the file is not under the directory /images) say test.gif
from other place, and then I input the
URL:http://localhost:8080/images/test.gif. No image is printed, but for
the moment this file is saved under the /images directory. Only when I
shut down the server and relaunch it and type the previous URL, this
image can be printed. I did the same test using Tomcat3.2, it worked. So
I guess it is a bug of WLS6.0
Our project needs to load images dynamically, we cannot shut down the
server whenever a new image is uploaded, but we need new images can be
printed in real time.
Did anybody meet the same problem and is there any work around? Thanks
in advance
[att1.html]
Sonia,
On our development evironment (where we use open directory
deployment) it works for me.
We are using wls6.0sp1.
Thanks,
Kumar.
Sonia WEN wrote:
> Hi,
> I have been trying to load dynamically an image using WLS 6.0, but I
> failed. To simplify the case, following is just a simply scenario.
>
> All images are stored under the directory doc_root/images. When the
> WLS server is on, I enter the URL:
> http://localhost:8080/images/image.gif. If this image file exists, it
> is printed in the browser, it is correct. But when I copy a new image
> file (I mean at the moment when the server is launched, the file is
> not under the directory /images) say test.gif from other place, and
> then I input the URL:http://localhost:8080/images/test.gif. No image
> is printed, but for the moment this file is saved under the /images
> directory. Only when I shut down the server and relaunch it and type
> the previous URL, this image can be printed. I did the same test using
> Tomcat3.2, it worked. So I guess it is a bug of WLS6.0
>
> Our project needs to load images dynamically, we cannot shut down the
> server whenever a new image is uploaded, but we need new images can
> be printed in real time.
>
> Did anybody meet the same problem and is there any work around? Thanks
> in advance
[att1.html]
Maybe you are looking for
-
Technical Reference question: Relationship between WIP Tables & INV Tables
Hi Community, Due to my profile is more closer to the Financials Area than the Manufacturing and Work In Process Area, I want to leave the following question in the community, in order to see if anybody can give me an answer. We want to modify a view
-
When I print a photo wirelessly from the test it prints correctly. However, when I choose to print a photo outside of the setup it prints on paper instead of the photo paper. I check 4 x 6 print on HP Premium Paper. What am I doing wrong?
-
How to update Business Object, rather than doing a final commit?
Hello experts, I have the following <u>java web dynpro</u> code: What I am trying to do is to access a business object through my code. The business object has got a root node and a child node called 'version'. And the association is 1:n. I want to c
-
Using KM and Collaboration API in portal component and web dynpro
Hi, I have to develop portal components and Web Dynpros (JAVA) which have to use the following functions: - copy, delete KM documents - sending E-Mails Can anyone give me some actual documentation links for the KM and Collaboration APIs ? Which refe
-
HT4623 cannot activate the phone after updating
cannot activate phone after updating