How to update VM Server 2.1.1

Hi,
I am trying to install iscsi-target-0.4.16 in a VM Server (see Metalink doc. 567407.1) (The objective is to create a sharable disk for RAC on an Oracle VM environment). However, the VM Server does not have required packages (such as cc, the C compiler). Since VM Server is not a complete EL-4 or EL-5 (or is it?) and my test system does not have direct link to internet (for up2date to work), is there any way I could update the system so that I get all the needed libraries?
I got stuck in my attempts to install rpms one by one because of the dependency and upgrade issues.
Any help is highly appreciated! Thanks.

Hi,
Thanks for your response. However, I am not sure if I understood. I already have Oracle VM 2.1.1 installed, but it does not have C compiler to run the 'make' command for the installation of iscsi-target. How would I update my Oracle VM server (with 2.1.1. already installed) with needed development environment (such as C compiler and other libraries) so that I can install iscsi-target?
As I mentioned already, trying piece-meal installation of individual RPMs for C compiler and other dependent libraries failed because of inter-dependencies of the packages.
I did visit the e-delivery site, but I could not figure out how to do the above. If you could please clarify a little bit further, I shall be thankful.
Thanks.

Similar Messages

  • How to UPDATE ESX Server 3i, 3.5.0, build 207095 using SSH or VSphere CLI remotely!

    Hello Guys,
    Over the past few hours I have been posting related questions and I have gotten a little closer to updating my server/host.
    I have gone to the ESX Server 3i updates (Embedded and Installer) and I have noticed that the first build for ESX 3i is 207095. Which means that I have not done any updates since the installation. CORRECT!
    Now... I have been using "ESX Server 3 Patch Management guide, which instructs us to use esxupdate, but it appears that some of the command in that document is not supported on my host.
    This post: vihostupdate35 | VMware vSphere Blog - VMware Blogs ..... Tells me that I will have to use "vihostupdate35" from a remote CLI which I installed but cannot see how to connect to the server as I cannot find any document that shows the syntax etc.
    At this point I am confused and frustrated and just need a little more guidance from someone who could point me to a document or copy and past the procedures I need to use to get this update done.
    I have downloaded this file to do the UPDATE: "ESXe350-201302401-O-SG.zip" and I have extracted it on the host on a Datastore and copied it to my "/Tmp/ESXi350" folder.
    I have also extracted it there as well just in case I need to browse to the extracted folder, and run any command.
    Can anyone out there help me with the correct SYNTAX and METHOD to get this update installed?
    I can connect with SSH from a windows machine using puTTy.exe as well as I have VSphere CLI installed on another Windows PC and can browse to the "C:\Program Files (x86)\VMware\VMware vSphere CLI\bin" folder to run "vihostupdate35.pl" I can see it in the folder with a "dir" command:
    12/11/2014  03:50 PM                 0 esxcli.exe.log
    08/13/2014  08:55 AM         1,898,106 esxcli.zip
    08/13/2014  08:55 AM            12,300 EULA
    08/13/2014  08:55 AM            63,778 EULA.rtf
    08/13/2014  08:55 AM           207,212 open_source_licenses.txt
    08/13/2014  08:55 AM         2,131,968 python26.dll
    08/13/2014  08:55 AM            31,348 svmotion.pl
    08/13/2014  08:55 AM                82 vcli.bat
    08/13/2014  08:55 AM             9,994 vicfg-advcfg.pl
    08/13/2014  08:55 AM            12,080 vicfg-authconfig.pl
    08/13/2014  08:55 AM             9,196 vicfg-cfgbackup.pl
    08/13/2014  08:55 AM             9,456 vicfg-dns.pl
    08/13/2014  08:55 AM            13,032 vicfg-dumppart.pl
    08/13/2014  08:55 AM            17,081 vicfg-hostops.pl
    08/13/2014  08:55 AM            27,513 vicfg-ipsec.pl
    08/13/2014  08:55 AM            78,858 vicfg-iscsi.pl
    08/13/2014  08:55 AM             7,129 vicfg-module.pl
    08/13/2014  08:55 AM            20,277 vicfg-mpath.pl
    08/13/2014  08:55 AM            18,477 vicfg-mpath35.pl
    08/13/2014  08:55 AM             8,606 vicfg-nas.pl
    08/13/2014  08:55 AM             9,696 vicfg-nics.pl
    08/13/2014  08:55 AM             7,425 vicfg-ntp.pl
    08/13/2014  08:55 AM             2,989 vicfg-rescan.pl
    08/13/2014  08:55 AM            13,808 vicfg-route.pl
    08/13/2014  08:55 AM            22,439 vicfg-scsidevs.pl
    08/13/2014  08:55 AM            12,716 vicfg-snmp.pl
    08/13/2014  08:55 AM             5,731 vicfg-syslog.pl
    08/13/2014  08:55 AM            37,949 vicfg-user.pl
    08/13/2014  08:55 AM            27,369 vicfg-vmknic.pl
    08/13/2014  08:55 AM            13,313 vicfg-volume.pl
    08/13/2014  08:55 AM            37,164 vicfg-vswitch.pl
    08/13/2014  08:55 AM            17,712 vifs.pl
    08/13/2014  08:55 AM            24,230 vihostupdate.pl
    08/13/2014  08:55 AM            13,787 vihostupdate35.pl
    08/13/2014  08:55 AM            41,721 vmkfstools.pl
    08/13/2014  08:55 AM            60,794 vmware-cmd.pl
    08/13/2014  08:55 AM            49,664 w9xpopen.exe
                  56 File(s)      5,317,017 bytes
                   2 Dir(s)  34,432,933,888 bytes free
    ...So how do I complete this?
    (So Close!)

    Thanks A.P.!
    Your post led me to the answer here:
    VMware KB: ESXi Server 3.5 June 2011 Rollup CD image
    I missed an update and for that reason I have to do a clean install as stated at the link above.
    My version cannot do any upgrade or update anymore!
    *** What you need to know about the Secure Key Update ***
    ESXi Server 3.5 June 2011 Rollup CD image (2000593)
    This Installable CD contains ESX Secure Key Update ESXe350-201012401-I-BG.
    For more information on this patch, see Critical Impact: VMware ESXi 3.5, Patch ESXe350-201012401-I-BG: Apply this patch to continue applying patches on ESXi 3.5 hosts after June 2011 (1030002).
    NOTE: If you have not applied this patch by June 1, 2011, you will not be able to apply any patches from then on. To get your hosts updated with ESX Server 3i version 3.5 is to apply this Installable CD as fresh install. Alternatively, upgrade to ESXi 4.0 Update 1 Installable. 
    Thanks for your suggestions ... at least it led me to the answer.
    One clean install coming up!

  • How to update db server connection for objects in business view

    I had to migrate to a new SQL server for my main user database (sql 2008)
    crystal itself is fine, and I have updated all of the reports to use a different connection string.
    but I had forgotton about the dynamic dropdownlists in business view..
    what is the best way to update the connection for those ??
    I will go through each one manually if I have to.. but was hoping for something a little easier
    thanks for any help !

    Hi
    Open the config.cfg and then change the JdbcPasswordEncoding=Intradoc to JdbcPasswordEncoding=ClearText and then enter the new password in JdcPassword=<new passwd> . Save the file and then restart the CS. It should get going from there.
    Srinath

  • How to update a server from Solaris 10 MU6 to Solaris 10 MU8

    Hi guys,
    I've a problem here that it should be easy to solve for some GURU experts like you :-)
    I've a server with Solaris 10 10/08 (Update 6) and I need to go to Solaris 10 10/09 (Update 8).
    Looking at Release note and other relevant Sun documentation doesn't provide a clear method to upgrade from MU6 to MU8.
    Three things are important here:
    1) I need to preserve data and applications, so this MUST BE an upgrade, not a FRESH INSTALL
    2) we don't have a CD/DVD in the server.
    3) we have LDOMs installed on this server (the Guest Domain and the Logical Domains need to be patched).
    Can anybody tell me if this is possible and if there is any good document describing it?
    P.S. - unless the solution provided into the article "http://blogs.sun.com/patch/entry/solaris_10_10_08_patch" is the only one, I would prefer an update and not a patch.
    Thanks in advance
    Sergio

    My guess is that you have already completed this upgrade, but in the event that you haven't I recommend that you use NFS to either mount a DVD from another server or else copy the OS DVD to a local drive on a server that has a DVD drive and then NFS mount the file system on the server you are trying to upgrade. I use NFS fairly often for upgrades and for patching. I have one server that has a file system that contains the source code from the installation DVD and another file system that contains the most current patch cluster.

  • How to update sql server pack 1 to server pack 3

    Hi,
    i run sql personal edition on winxp , Is that posible for me to update it to server pack 1.
    hope do mind I post this question in here, since I use jdbc too, I just want to make my back bone more security.
    thank you for any help.

    Hi ,
    Thank you for your reply, I did download it before,
    now in order to make everything right.
    Iwould like to make sure the following questions
    1) I go to
    http://www.microsoft.com/sql/downloads/2000/sp3.asp is
    that the right place I should goSeems right to me.
    2) Sql2sp3.exe and sql2desksp3.exe, which one I should use?I don't know - check the docs.

  • How to update a table (CUSTOMER) on a Report Server with the data from the same table (CUSTOMER) from another server Transaction server?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) From another server ex: Transaction server?
    Set up steps so inset, update or delete operation takes place across the servers.
    It would be great if someone please enlighten me in details about this process in MS SQL Server 2008 R2.
    Also please describe would it be different for SQL Server 2012?
    If so, then what are the steps?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) from another server ex: Transaction server?
    Set up steps so that inset, update or delete operation gets done correctly across servers.
    I was not sure about the answer, it would be great if someone please put some light on this and explain in details about this process in MS SQL Server 2008 R2.
    Also it would be very helpful if you please describe would it be different for SQL Server 2012? If so, then what are the steps?

  • I have a problem, i bought lion but when i want to install he said me i need to "download osx lion server" i'm running with the last lion beta. how to update please?

    i have a problem, i bought lion but when i want to install he said me i need to "download osx lion server" i'm running with the last lion beta. how to update please?
    ps: sorry for my english :S

    You apparently are using a version of OS X you did not purchase using your Apple ID. Although you can download Mavericks you cannot install it over your current system. You must repartition your hard drive, then reinstall the version of OS X originally installed when it came new from the factory. That would be on the installer discs that should have come with the computer. If the computer did not come with discs from the factory but OS X was pre-installed (Lion or Mountain Lion) then you can perform an Internet Recovery:
    Install Mavericks, Lion/Mountain Lion Using Internet Recovery
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    1. Select Disk Utility from the main menu and click on the Continue button.
    2. After DU loads select your external hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion. Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • How do you update your server when its not connected to the internet?

    This is actually a Windows Update question.
    My OS is Windows Server 2008 Standard, Service Pack 2.  It is a stand alone system.
    Crazy, I know, but I want to keep my server updated with the latest security patches, Software Patches, etc., even though it will soon not be connected to the internet.  Right now it is and I am making certain it's completely updated prior to removing
    its connection.
    How would I do that?  I realize that I will have to do what "Window's Update" does, but do it manually.
    Please help! I'm new to servers and I will need this to be very much a step by step. Don't be surprised at to what I don't know at this point.  I am learning though!
    Thanks in advance.  Any and all help will be very much appreciated.

    Hi TimothyJohn,
    You either,
    - Setup a disconnected Wsus in the same LAN than your server. See Wsus documentation to see how to do that and how to update a disconnected Wsus.
    - Use a third party tool like "Wsus Offline" :
    http://download.wsusoffline.net/
    David COURTEL
    IT Technician
    Wsus Third-Party Softwares Publishing :
    http://wsuspackagepublisher.codeplex.com

  • How to update content of a file on server using a Java Applet?

    Hi,
    I'm new to Java, and I have a task now to overwrite a text file on a server using an applet. I have written a piece of code which compiles but doesn't work. Can you please take a look at the code or give me another way to do it?
    Thanks.
    Code:
    import java.applet.Applet;
    import java.io.*;
    import java.net.*;
    public class test2 extends Applet{
    public void init() {
    StringBuffer buf = new StringBuffer();
    try {
         String output = "this is some string";
         URL aUrl = new URL (getCodeBase().toString() + "test.txt");
         System.out.println(aUrl);
         URLConnection con = aUrl.openConnection();
         con.setDoOutput(true);
         PrintWriter out = new PrintWriter( new BufferedWriter( new OutputStreamWriter(con.getOutputStream())));
         out.println(output);
         out.close();
    catch (MalformedURLException mue) {
         System.out.println("improper url");
         mue.printStackTrace();
    catch (IOException e) {
         System.out.println("io exception");
         e.printStackTrace();
    }

    Ram.ViSolve wrote:
    869975 wrote:
    Thanks. I knew there would be a security issue, but I do not have sufficient knowledge to get around it. If you have a reference how to configure a server please post it here.You need to create Signed Applet. Because normally applets have some restriction to access the files in the client machine. Signed applets overrides the restriction.
    To know more, Read [url http://192.9.162.55/developer/onlineTraining/Programming/JDCBook/signed.html]Signed Applet
    No. Our OP wants to write to the server, not to the client! And to achieve this from an applet, you don't need it signed, iff the server is the machine from where the applet was downloaded in the first place. You only need to use a mechanism that allows you to write to servers, which HTTP is not. FTP, on the other hand, if setup properly can do it. So instead of trying to write using an HttpURLConnection (OP's attempt), you would use an FTP client library. FTP here is just an example and probably not the best way. Another option is to use some servlet or PHP or ASP on the server side and the applet will sumbmit the changes to that code on the server, which in turn will write to the file. The idea is that you need some 'partner code' on the server, be it the FTP server or the servlet/PHP/ASP code. None of this requires the applet to be signed.

  • Unable to update SQL Server thru XI using JDBC Adapter

    Hi,
    I am trying to update SQL Server. When I run the scenario I get Success status in sxmb_moni, But when I see in SQL server nothing is getting updated. Can anybody let me know where I may be doing wrong?
    Thanks In Advance.
    Yaseen.

    Hi Yaseen,
    Just go through this link, to see how to install the JDBC drivers,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Regards,
    Bhavesh

  • How to update a large (over 4 million item) List(Of Byte) quickly by altering indexes contained in a Dictionary(Of Integer, Byte) where the Dictionaries keys are the indexes in the List(Of Byte) that need to be changed to the values for those indexes?

       I'm having some difficulty with transferring images from a UDP Client to a UDP Server. The issue is receiving the bytes necessary to update an original image sent from the Client to the Server and updating the Servers List(Of Byte) with the
    new bytes replacing bytes in that list. This is a simplex connection where the Sever receives and the Client sends to utilize the least amount of bandwidth for a "Remote Desktop" style application where the Server side needs image updates of whatever
    occurs on the Client desktop.
       So far I can tranfer images with no issue. The images can be be any image type (.Bmp, .Gif, .JPeg, .Png, etc). I was working with sending .JPeg's as they appear to be the smallest size image when a Bitmap is saved to a memory stream as type
    .JPeg. And then I am using GZip to compress that byte array again so it is much smaller. However on a loopback on my NIC the speed for sending a full size screen capture is not very fast as the Server updates fairly slowly unless the Clients screen capture
    Bitmap is reduced in size to about 1/3'd of the original size. Then about 12000 bytes or less are sent for each update.
       Due to .JPeg compression I suppose there is no way to get the difference in bytes between two .JPegs and only send those when something occurs on the desktop that alters the desktop screen capture image. Therefore I went to using .Bmp's as each
    .Bmp contains the same number of bytes in its array regardless of the image alterations on the desktop. So I suppose the difference in bytes from a second screen capture and an inital screen capture are what is different in the second image from the initial
    image.
       What I have done so far is save an initial Bitmap of a screen capture using a memory stream and saving as type .Bmp which takes less than 93 milliseconds for 4196406 bytes. Compressing that takes less than 118 milliseconds to 197325 bytes for
    the current windows on the desktop. When that is done PictureBox1 is updated from nothing to the captured image as the PictureBox's background image with image layout zoom and the PictureBox sized at 1/2 my screens width and 1/2 my screens height.
       Then I save a new Bitmap the same way which now contains different image information as the PictureBox is now displaying an image so its back color is no longer displayed (solid color Aqua) and the cursor has moved to a different location. The
    second Bitmap is also 4196406 in bytes and compressed it was 315473 bytes in size.
       I also just found code from this link Converting a Bitmap to a Byte Array (and Byte Array to Bitmap) which gets a byte array
    directly from a Bitmap and the size of that is 3148800 for whatever is full screen captured on my laptop. So I should be able to work with smaller byte arrays at some point.
       The issue I'm having is that once the Client sends an image of the desktop to the Server I only want to update the server with any differences occuring on the Clients desktop. So what I have done is compare the first screen captures bytes (stored
    in a List(Of Byte)) to the second screen captures bytes (stored in a List(Of Byte)) by using a For/Next for 0 to 4196405 where if a byte in the first screen captures List is not equal to a byte in the second screen captures List I add the index and byte of
    the second screen captures list to a Dictionary(Of Integer, Byte). The Dictionary then only contains the indexes and bytes that are different between the first screen capture and second screen capture. This takes about 125 milliseconds which I think is pretty
    fast for 4196406 byte comparison using a For/Next and adding all the different bytes and indexes for each byte to a Dictionary.
        The difference in Bytes between the inital screen capture and the second screen capture is 242587 as an example which changes of course. For that amount of bytes the Dictionary contains 242587 integers as indexes and 242587 bytes as different
    bytes totaling 485174 bytes for both arrays (keys, values).  Compressed the indexes go from 242587 to 43489 bytes and the values go from 242587 to 34982 bytes. Which means I will have to send 78, 481 bytes from the Client to the Server to update the display
    on the server. Quite smaller than the original 4196406 bytes of the second Bitmap saved to type .Bmp or the compressed size of that array which was 315473 bytes. Plus a few bytes I add as overhead so the server knows when an image array ends and how many packets
    were sent for the array so it can discard complete arrays if necessary since UDP is lossfull although probably not so much in current networks like it may originally have been when the internet started.
        In reality the data from the Client to the Server will mostly be the cursor as it moves and updating the Server image with only a few hundred bytes I would imagine at a time. Or when the cursor selects a Button for example and the Buttons
    color changes causing those differences in the original screen capture.
       But the problem is if I send the Dictionaries Indexes and Bytes to the Server then I need to update the original Bitmap List(Of Byte) on the server by removing the Bytes in the received informations Index locations array from the Servers Bitmap
    List(Of Byte) and replacing those Bytes with the Bytes in the received informations Byte array. This takes so long using a For/Next for however many indexes are in the received informations Index array to update the Bitmap List(Of Byte) on the server using
    "Bmp1Bytes.RemoveAt(Index As Integer)" followed by "Bmp1Bytes.Insert(Index As Integer, Item As Byte)" in the For/Next.
        I've tried various For/Next statements including using a new List(Of Byte) with If statements so If the the integer for the For/Next ='s the Key in a Dictionary(Of Integer, Byte) using a Counter to provide the Dictionaries Key value then
    the Dictionaries byte value will be added to the List(Of Byte) and the counter will increas by one Else the List(Of Byte) adds the original "Bmp1Bytes" byte at that index to the new List(Of Byte). This takes forever also.
       I also tried the same For/Next adding to a new Dictionary(Of Integer, Byte) but that takes forever too.
       I think I could use RemoveRange and AddRange to speed things up. But I don't know how to retrieve a contiguous range of indexes in the received indexes that need to be updated in the servers "Bmp1Bytes" List(Of Byte) from the received
    array of indexes and bytes which are in a Dictionary(Of Integer, Byte).  But I believe this would even be slower than some realistic method for replacing all Bytes in a List(Of Byte) when I have the indexes that need to be replaced and the bytes to replace
    them with.
       Even if I just used AddRange on a new List(Of Byte) to add ranges of bytes from the original "Bmp1Bytes" and the changes from the Dictionary(Of Integer, Byte) I think this would be rather slow. Although I don't know how to do that
    by getting contiguous ranges of indexes from the Dictionaries keys.
       So I was wondering if there is some method perhaps using Linq or IEnumerable which I've been unable to figure anything out which could do this.
       I do have some copy and pasted code which I don't understand how it works that I am using which I would guess could be altered for doing something like this but I can't find information that provides how the code works.  Or even if I did
    maybe I can't understand it. Like the code below which is extremely fast.
       Dim strArray() As String = Array.ConvertAll(Of Integer, String)(BmpComparisonDict.Keys.ToArray, Function(x) x.ToString())
    La vida loca

    Monkeyboy,
    That was quite a bit to read, but still a bit unclear. Could you put a specific list of goals/questions, asked in the smallest possible form?
    It seems like either you're making a program that monitors activity on your computer, or you're writing some kind of remote pc app.
    When you do get your bytes from using lockbits, keep in mind all the files header info would be lost. I think retaining the header info is worth the extra bytes.
    The other, thing: I'm not sure if you're taking 32bpp screen shots, but also keep in mind that the "whole desktop" is the final destination for blended graphics, if that makes sense. What I mean is that there is no need to capture an "alpha"
    channel for a desktop screenshot, as alpha would always be 255, this could save you 1 byte per pixel captured... Theres nothing "behind" the desktop, therefore no alpha, and every window shown above the desktop is already blended. I suggest using
    24Bpp for a full screen capture.
    Your X,Y information for the mouse could be stored as UINT16, this would save you a measly 2 bytes per location update/save.
    When you update your byte arrays, maybe you can turn the array into a stream and write to whatever index, however many bytes, that should prevent a "Shift" of bytes, and instead overwrite any bytes that "get in the way".
    ex
    Dim example As String = "This is an example."
    Dim insertString As String = "was"
    Dim insertBytes As Byte() = System.Text.Encoding.ASCII.GetBytes(insertString)
    Dim bytes As Byte() = System.Text.Encoding.ASCII.GetBytes(example)
    Dim modifiedBytes As Byte() = {}
    Using ms As New System.IO.MemoryStream(bytes)
    ms.Position = 5
    ms.Write(insertBytes, 0, 3)
    modifiedBytes = ms.ToArray
    End Using
    Dim newString As String = System.Text.Encoding.ASCII.GetString(modifiedBytes)
    'Notice how below there isn't the word "is" anymore, and that there isn't a
    'space.
    'This demonstrates that you overwrite existing data, versus shifting everything to
    'the right.
    'Returns: This wasan example.
    MsgBox(newString)
    “If you want something you've never had, you need to do something you've never done.”
    Don't forget to mark
    helpful posts and answers
    ! Answer an interesting question? Write a
    new article
    about it! My Articles
    *This post does not reflect the opinion of Microsoft, or its employees.
    Well it's too much to read. I was really tired when I wrote it. Even the below is too much to read but perhaps gets the point across of what I would like to do which I think
    Joel Engineer may have answered but I'm not sure. As I'm still too tired to understand that yet and research what he said in order to figure it out yet.
    But maybe the code below can provide the concept of the operation with the comments in it. But seeing as how I'm still tired it may be confused.
    Option Strict On
    Imports System.Windows.Forms
    Imports System.IO
    Imports System.IO.Compression
    Imports System.Drawing.Imaging
    Imports System.Runtime.InteropServices
    Public Class Form1
    Dim Bmp1Bytes As New List(Of Byte)
    Dim Bmp1BytesCompressed As New List(Of Byte)
    Dim Bmp2Bytes As New List(Of Byte)
    Dim BmpComparisonDict As New Dictionary(Of Integer, Byte)
    Dim BmpDifferenceIndexesCompressed As New List(Of Byte)
    Dim BmpDifferenceBytesCompressed As New List(Of Byte)
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    SomeSub()
    End Sub
    Private Sub SomeSub()
    ' Pretend this code is in UDP Client app. A screen capture is performed of the desktop. Takes about 90 milliseconds.
    Bmp1Bytes.Clear()
    Using BMP1 As New Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)
    Using g1 As Graphics = Graphics.FromImage(BMP1)
    g1.CopyFromScreen(0, 0, 0, 0, BMP1.Size)
    Cursor.Draw(g1, New Rectangle(Cursor.Position.X, Cursor.Position.Y, Cursor.Size.Width, Cursor.Size.Height))
    Using MS As New MemoryStream
    BMP1.Save(MS, System.Drawing.Imaging.ImageFormat.Bmp)
    Bmp1Bytes.AddRange(MS.ToArray)
    End Using
    End Using
    End Using
    Bmp1BytesCompressed.AddRange(Compress(Bmp1Bytes.ToArray))
    ' UDP Client app sends Bmp1BytesCompressed.ToArray to UDP Server which is the entire image of the desktop that the UDP
    ' Client is on. This image takes awhile to send since compressed it is about 177000 bytes from over 4000000 bytes.
    ' I will be using different code just to get the bytes from the actual Bitmap in the future. That is not important for now.
    ' Pretend the UDP Server has received the bytes, decompressed the array received into a List(Of Byte) and is displaying
    ' the image of the UDP Clients desktop in a PictureBox.
    ' Now the image on the UDP Clients desktop changes due to the mouse cursor moving as an example. Therefore a new Bitmap
    ' is created from a screen capture. This takes about 90 milliseconds.
    Bmp2Bytes.Clear()
    Using BMP2 As New Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)
    Using g1 As Graphics = Graphics.FromImage(BMP2)
    g1.CopyFromScreen(0, 0, 0, 0, BMP2.Size)
    Cursor.Draw(g1, New Rectangle(Cursor.Position.X, Cursor.Position.Y, Cursor.Size.Width, Cursor.Size.Height))
    Using MS As New MemoryStream
    BMP2.Save(MS, System.Drawing.Imaging.ImageFormat.Bmp)
    Bmp2Bytes.AddRange(MS.ToArray)
    End Using
    End Using
    End Using
    ' Now I have the original images bytes in Bmp1Bytes and the new images bytes in Bmp2Bytes on the UDP Client. But I don't
    ' want to send all of the bytes in Bmp2Bytes to the UDP Server. Just the indexes of and the bytes that are different in
    ' Bmp2Bytes from Bmp1Bytes.
    ' This takes less than 100 milliseconds for what I've tested so far where over 500000 bytes in Bmp2Bytes are different
    ' than the bytes in Bmp1Bytes. Usually that amount would be much less. But during testing I was displaying the image
    ' from Bmp1 bytes in a PictureBox so a large amount of data would change between the first screen shot, the PictureBox
    ' then displaying an image on the same PC and then the second screen shot.
    BmpComparisonDict.Clear()
    For i = 0 To Bmp1Bytes.Count - 1
    If Bmp1Bytes(i) <> Bmp2Bytes(i) Then
    BmpComparisonDict.Add(i, Bmp2Bytes(i))
    End If
    Next
    ' So now I have all the difference bytes and their indexes from Bmp2Bytes in the BmpComparisonDict. So I compress
    ' the indexes into on List and the Bytes into another List.
    BmpDifferenceIndexesCompressed.Clear()
    BmpDifferenceBytesCompressed.Clear()
    BmpDifferenceIndexesCompressed.AddRange(Compress(BmpComparisonDict.Keys.SelectMany(Function(d) BitConverter.GetBytes(d)).ToArray()))
    BmpDifferenceBytesCompressed.AddRange(Compress(BmpComparisonDict.Values.ToArray))
    ' Now pretend the UDP Client has sent both those arrays to the UDP Server which has added both decompressed arrays
    ' to a Dictionary(Of Integer, Byte). And the server has the original image decompressed bytes received in a List
    ' called Bmp1Bytes also.
    ' This is where I am stuck. The UDP Server has the Dictionary. That part was fast. However there is no
    ' fast method I have found for creating a new List(Of Byte) where bytes in the originally received List(Of Byte) that
    ' do not have to be altered are placed into a new List(Of Byte) except for the indexes listed in the
    ' Dictionary(Of Integer, Byte) that need to be placed into the appropriate index locations of the new List(Of Byte).
    ' The below example for doing so is exceptionally slow. Pretend UpdateDictionary has all of the decompressed indexes
    ' and bytes received by the UDP Server for the update contained within it.
    Dim UpdateDictionary As New Dictionary(Of Integer, Byte)
    Dim UpdatedBytes As New List(Of Byte)
    Dim Counter As Integer = 0
    For i = 0 To Bmp1Bytes.Count - 1
    If i = UpdateDictionary.Keys(Counter) Then ' Provides the index contained in the Keys for the Dictionary
    UpdatedBytes.Add(UpdateDictionary.Values(Counter))
    Counter += 1
    If Counter > UpdateDictionary.Count - 1 Then Counter = 0
    Else
    UpdatedBytes.Add(Bmp1Bytes(i))
    End If
    Next
    ' So what I'm trying to do is find an extremely fast method for performing something similar to what the
    ' above operation performs.
    End Sub
    Private Function Compress(BytesToCompress() As Byte) As List(Of Byte)
    Dim BytesCompressed As New List(Of Byte)
    Using compressedStream = New MemoryStream()
    Using zipStream = New GZipStream(compressedStream, CompressionMode.Compress)
    zipStream.Write(BytesToCompress, 0, BytesToCompress.Count)
    zipStream.Close()
    BytesCompressed.AddRange(compressedStream.ToArray)
    End Using
    End Using
    Return BytesCompressed
    End Function
    Private Function Decompress(BytesToDecompress() As Byte) As List(Of Byte)
    Dim BytesDecompressed As New List(Of Byte)
    Using DecompressedStream = New MemoryStream()
    Using zipStream = New GZipStream(DecompressedStream, CompressionMode.Decompress)
    zipStream.Write(BytesToDecompress, 0, BytesToDecompress.Count)
    zipStream.Close()
    BytesDecompressed.AddRange(DecompressedStream.ToArray)
    End Using
    End Using
    Return BytesDecompressed
    End Function
    End Class
    La vida loca

  • How to update weblogic.properties in order to support English & Chinese

    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

    If you are using JSP as your mechanism for content display, you should use
    the contentType parameter to specify the character and coding of the JSP
    page any character encoding of the resulting stream. So far, we have not
    done a good job of documenting how to produce localized content in JSP. I
    have filed an issue for the documentation folks to work on it. For now,
    take a look at section 2.7.4 of the JSP specification version 1.1.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    fxy <[email protected]> wrote in message
    news:8ffr11$59d$[email protected]..
    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

  • How to update the data in sqlserver table using procedure in biztalkserver

    Hi,
    Please can any one answer this below question
    how to update the data in sqlserver table using procedure in biztalkserver
    while am using executescalar,typedprocedure getting some warning
    Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
    Please send me asap....
    Thanks...

    Hi Messip,
    A detailed error would have helped us to answer you more appropriately but
    You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
    http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • Error while updating Targets-Server : java.lang.reflect.InvocationTargetException

    Hi,
    I got this error below when i try to deploy my ejb.It's happen when i select the
    targets-server in weblogic console. Can anyone help me please?
    Thank you in advance.
    Sukanya
    java.lang.reflect.InvocationTargetException: javax.management.RuntimeOperationsException:
    RuntimeException thrown by the invoke method of the Dynamic MBean
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy10.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
         at $Proxy76.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.console.utils.SetException: An error occurred while updating
    Targets-Server on Proxy for mydomain:Application=Wallet,Name=wallet-ejb,Type=EJBComponent
    - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [javax.management.RuntimeOperationsException: RuntimeException thrown by the invoke
    method of the Dynamic MBean]]
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:151)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    Hi Sukanya,
    Could you please tell me how u solved this error?
    I am also getting the same error!!!
    Sherry.

  • Auto Update of Server.xml file

    Hi
    i'm running JDev 9i (9.0.2) with oc4j server (also 9.0.2).
    I have one project containg Stateless Session bean (WizDecodeCodes)
    I have also another project that calls this Bean. (From Servlet)
    This works fine when you manually update the Parent attribute in the Server.XML file on OC4J after Every deployment.
    Is there a way to configure Jdev to do dependancy updates like this when deploying?
    Tks
    andre

    HI Curt
    At this stage I have only got 1 JSP calling about 10 Servlets with only 2 of the Servlets calling the Single EJB that I have. Only started of with this.
    Found that without the parent entry in the Server.XML file, the Servlet runs fine with the EJB from JDev but the moment you deploy to the same App Server it fails without the Parent entry.
    I'm now starting on more advanced EJB's and it doesn't look that rosy if I look at this problem.
    The other thing is that JDev always adds the last project deployed to the end of the Server.xml file, even if it was deployed before.
    Thus making the sequence of deployement, update of Server.xml file in the correct sequence, etc a real nightmare when the applications grow.
    Any suggestions on how to keep this up to date is welcome. We haven't got a Deployment guy so we have to do all this ourselves!
    Cheers
    Andre

Maybe you are looking for

  • Can I start a new itunes without losing all the data on my phone and the progress on my apps?

    I want to break off of the family account my iDevices have been attached to since 2005. All of my phone's data is in my own personal iCloud on my email, and I created an itunes account on the same email. I know I'll probably lose all of my songs, but

  • Dynamic af:inputListOfValues causes NullPointerException

    Hi Gurus, We are using JDeveloper 11.1.3. Currently we are building a dynamic LOV (sort of) based on an existing listOfValuesModel in PageDef.xml. The existing af:inputListOfValues was built at design time with the listOfValuesModel. The goal is to s

  • I have a portal home page with a navigation

    I have a portal home page with a navigation bar that is accessible to the public. This site also contains information that can only be accessed by privileged user. Therefore, I have a login/logout icon on the page. The problem that I am currently fac

  • Changing publishing group name in AD

    I need to rename a group in AD. There are packages published for this group. Do I need to unpublish the packages and publish to renamed group. Or APPVMAN will react accordingly. --- When you hit a wrong note its the next note that makes it good or ba

  • CProjects - "Available Capacity" for resources

    Dear Experts, We are on cProjects 4.0, Support Pack 11. We have a requirement by which we use a four-day-per-week calendar. Also, this calendar is required to have some holidays which are specific to our business. And this works good in our calendar.