How to using Virtual fibre channel feature in IC 3.5?
Hi ,guys ,i have noticed that microsoft released IC 3.5 to support virtual fibre channel in redhat and centos linux.
the links are:
http://technet.microsoft.com/en-us/library/dn531026.aspx
http://blogs.technet.com/b/virtualization/archive/2014/01/02/linux-integration-services-3-5-announcement.aspx
in these links above ,notes 2 says:
While using virtual fibre channel devices, ensure that logical unit number 0 (LUN 0) has been populated. If LUN 0 has not been populated, a Linux virtual machine might not be able to mount fibre channel devices natively.
but I do not understand how to ensure logical unit number 0 has been populated ,anyone who have tested such new features please share your expirence , thank you very much.
yoke88
IM:[email protected]
The same issues as yours,no HBA card can be seen
I have tried the command here to list hyper-v virutal fiber channel card in oracle linux 6.5 ,but no luck,and EMC powerpath does not support UEK r3 which was installed default on OL 6.5 X64,I will try Oracle linux 6.3 with IC 3.5
http://mikent.wordpress.com/2012/02/07/how-to-find-wwn-of-hba-on-redhat-6-x/
[root@computer01 ~]# uname -a
Linux computer01.localdomain 3.8.13-26.1.1.el6uek.x86_64 #2 SMP Thu Feb 13 19:42:43 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@computer01 ~]# lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (AGP disabled) [8086:7192] (rev 03)
00:07.0 ISA bridge [0601]: Intel Corporation 82371AB/EB/MB PIIX4 ISA [8086:7110] (rev 01)
00:07.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE [8086:7111] (rev 01)
00:07.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 02)
00:08.0 VGA compatible controller [0300]: Microsoft Corporation Hyper-V virtual VGA [1414:5353]
[root@computer01 ~]# fdisk -l
Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000896c0
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 6528 51915776 8e Linux LVM
Disk /dev/mapper/vg_computer01-lv_root: 49.0 GB, 48964304896 bytes
255 heads, 63 sectors/track, 5952 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_computer01-lv_swap: 4194 MB, 4194304000 bytes
255 heads, 63 sectors/track, 509 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
[root@computer01 ~]# lsmod |grep hv
hv_netvsc 21641 0
hv_utils 7440 0
hv_balloon 9843 0
hv_storvsc 10236 2
hv_vmbus 92011 5 hid_hyperv,hv_netvsc,hv_utils,hv_balloon,hv_storvsc
[root@computer01 ~]# modinfo hv_vmbus
filename: /lib/modules/3.8.13-26.1.1.el6uek.x86_64/kernel/drivers/hv/hv_vmbus.ko
version: 3.1
license: GPL
srcversion: 8BAC864516830DFFF7DC2B1
alias: acpi*:VMBus:*
alias: acpi*:VMBUS:*
depends:
intree: Y
vermagic: 3.8.13-26.1.1.el6uek.x86_64 SMP mod_unload modversions
using microsoft virutal fibre chanel trouble shooting guide ,i see the event logs indicate the VHBA card was successfully added to the vm.
yoke88
IM:[email protected]
Similar Messages
-
Live Migration : virtual Fibre Channel vSAN
I can do live migration, from one node to another. No error. Problem / Question that I have is, is live migration really lie migration.
When I do live migration from cluster or SCVMM it save and start virtual machine. Which fro me is not live migration.
I have describe in more details : http://social.technet.microsoft.com/Forums/en-US/a52ac102-4ea3-491c-a8c5-4cf4dd14768d/synthetic-fibre-channel-hba-live-migration-savestopstart?forum=winserverhyperv
BlatniSI can do live migration, from one node to another. No error. Problem / Question that I have is, is live migration really lie migration.
When I do live migration from cluster or SCVMM it save and start virtual machine. Which fro me is not live migration.
I have describe in more details : http://social.technet.microsoft.com/Forums/en-US/a52ac102-4ea3-491c-a8c5-4cf4dd14768d/synthetic-fibre-channel-hba-live-migration-savestopstart?forum=winserverhyperv
Virtual Fibre Channel had sense in pre-R2 times when there was no shared VHDX and you had to somehow provide fault tolerant shared storage to guest VM cluster (spawning iSCSI target on top of FC was slow and ugly). Now there\s no point in putting one into
production so if you have issues just use shared VHDX. See:
Deploy a Guest Cluster Using a Shared Virtual Hard Disk
http://technet.microsoft.com/en-us/library/dn265980.aspx
Shared VHDX
http://blogs.technet.com/b/storageserver/archive/2013/11/25/shared-vhdx-files-my-favorite-new-feature-in-windows-server-2012-r2.aspx
Shared VHDX is much more flexible and has better performance.
Good luck!
StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts. -
How to use virtual keyboard in flex application
hi..
i am using flash builder 4,
how to use virtual keyboard in flex?
if any one aware of this pls reply me.......
saran rhi,
how to code for these buttons "control,alt,delete,insert and spacebar".
can u help me how to program?
i have attached the mxml code with this,
virtualkeypad1.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
creationComplete="application1_creationCompleteHandler(event)" viewSourceURL="srcview/index.html">
<fx:Script>
<![CDATA[
import flash.utils.getQualifiedSuperclassName;
import mx.events.FlexEvent;
private var inpText:String = 'inp1';
private var shiftState:Boolean = false;
private var capsState:Boolean = false;
protected function keyboard_clickHandler(event:MouseEvent):void
this[inpText].text = this[inpText].text+(event.currentTarget as Button).label;
if (shiftState == true) shift_clickHandler(null);
protected function caps_clickHandler(event:MouseEvent):void
capsState = !capsState;
if (capsState == true)
currentState = "SHIFTED" else currentState = "PRIMARY";
protected function tab_clickHandler(event:MouseEvent):void
this[inpText].text = this[inpText].text+" ";
protected function shift_clickHandler(event:MouseEvent):void
shiftState = !shiftState;
if (shiftState == true)
currentState = "SHIFTED" else currentState = "PRIMARY";
protected function enter_clickHandler(event:MouseEvent):void
this[inpText].text = this[inpText].text+"\n";
protected function backspace_clickHandler(event:MouseEvent):void
var tmpStr:String = this[inpText].text;
this[inpText].text = tmpStr.substr(0,tmpStr.length-1);
protected function application1_creationCompleteHandler(event:FlexEvent):void
inp1.setFocus();
protected function focus_enterHandler(event:MouseEvent):void
inpText = event.currentTarget.id;
]]>
</fx:Script>
<s:states>
<s:State name="PRIMARY"/>
<s:State name="SHIFTED"/>
</s:states>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:TextInput id="inp1" y="36" width="151" horizontalCenter="0" click="focus_enterHandler(event)" y.PRIMARY="239" horizontalCenter.PRIMARY="42" width.PRIMARY="199" height.PRIMARY="31"/>
<s:Group id="keyboard" width="661" height="184" horizontalCenter="0" y="300" focusEnabled="false">
<s:Button x="5" y="5" label="~" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="`"/>
<s:Button x="49" y="5" label="!" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="1"/>
<s:Button x="93" y="5" label="@" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="2"/>
<s:Button x="137" y="5" label="#" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="3"/>
<s:Button x="181" y="5" label="$" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="4"/>
<s:Button x="225" y="5" label="%" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="5"/>
<s:Button x="269" y="5" label="^" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="6"/>
<s:Button x="313" y="5" label="&" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="7"/>
<s:Button x="357" y="5" label="*" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="8"/>
<s:Button x="401" y="5" label="(" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="9"/>
<s:Button x="445" y="5" label=")" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="0"/>
<s:Button x="489" y="5" label="_" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="-"/>
<s:Button x="533" y="5" label="+" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="="/>
<s:Button x="577" y="5" label="Backspace" height="43" width="80" fontSize="11" fontWeight="bold" click="backspace_clickHandler(event)"/>
<s:Button x="5" y="48" label="Tab" height="43" width="67" fontSize="12" fontWeight="bold" click="tab_clickHandler(event)"/>
<s:Button x="72" y="48" label="Q" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="q"/>
<s:Button x="116" y="48" label="W" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="w"/>
<s:Button x="160" y="48" label="E" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="e"/>
<s:Button x="204" y="48" label="R" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="r"/>
<s:Button x="248" y="48" label="T" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="t"/>
<s:Button x="292" y="48" label="Y" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="y"/>
<s:Button x="336" y="48" label="U" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="u"/>
<s:Button x="380" y="48" label="I" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="i"/>
<s:Button x="424" y="48" label="O" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="o"/>
<s:Button x="468" y="48" label="P" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="p"/>
<s:Button x="512" y="48" label="{" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="["/>
<s:Button x="556" y="48" label="}" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="]"/>
<s:Button x="600" y="48" label="|" height="43" width="57" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="\"/>
<s:Button x="5" y="91" label="CapsLock" height="43" width="80" fontSize="12" fontWeight="bold" click="caps_clickHandler(event)"/>
<s:Button x="85" y="91" label="A" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="a"/>
<s:Button x="129" y="91" label="S" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="s"/>
<s:Button x="173" y="91" label="D" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="d"/>
<s:Button x="217" y="91" label="F" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="f"/>
<s:Button x="261" y="91" label="G" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="g"/>
<s:Button x="305" y="91" label="H" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="h"/>
<s:Button x="349" y="91" label="J" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="j"/>
<s:Button x="393" y="91" label="K" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="k"/>
<s:Button x="437" y="91" label="L" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="l"/>
<s:Button x="481" y="91" label=":" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=";"/>
<s:Button x="525" y="91" label=""" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="'"/>
<s:Button x="569" y="91" label="Enter" height="43" width="88" fontSize="24" fontWeight="bold" click="enter_clickHandler(event)"/>
<s:Button x="5" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
<s:Button x="111" y="134" label="Z" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="z"/>
<s:Button x="155" y="134" label="X" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="x"/>
<s:Button x="199" y="134" label="C" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="c"/>
<s:Button x="243" y="134" label="V" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="v"/>
<s:Button x="287" y="134" label="B" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="b"/>
<s:Button x="331" y="134" label="N" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="n"/>
<s:Button x="375" y="134" label="M" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="m"/>
<s:Button x="419" y="134" label="<" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY=","/>
<s:Button x="463" y="134" label=">" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="."/>
<s:Button x="507" y="134" label="?" height="43" width="44" fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)" label.PRIMARY="/"/>
<s:Button x="551" y="134" label="Shift" height="43" width="106" fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
</s:Group>
</s:Application>
thanks in advance,
saran r -
Documentation How to use Virtual Key fig.
Hi all ,
Can u please send me Documentation How to use Virtual Key fig. to [email protected]
Nice weekend.check this doc to get a headsup on Virtual objects - though the doc talks abt the virtual char, the procedure is pretty much similar to KF too.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%20use%20variable%20time%20references%20in%20currency%20conversion
How to implement Virtual Characteristics or Virtual key figures -
HYPER-V 2012 R2 - EVA 4400 - Guest Centos 7 Virtual Fibre Channel
Dear colleagues,
We can't connect EVA4400 LUN's to virtual Guest Machine Centos 7 through virtual Fibre Channel. On the same configuration Guest Machine with Windows 2012 R2 works normally.
[root@lstst log]# lsmod | grep hv_
hv_utils 18357 0
hv_netvsc 31253 0
hv_storvsc 21881 2
hv_vmbus 183547 6 hyperv_keyboard,hv_netvsc,hid_hyperv,hv_utils,hyperv_fb,hv_storvsc
[root@lstst log]# lsscsi -ll
[2:0:0:0] disk Msft Virtual Disk 1.0 /dev/sda
state=running queue_depth=200 scsi_level=5 type=0 device_blocked=0 timeout=180
iocounterbits=32 iodone_cnt=0x1405 ioerr_cnt=0x0 iorequest_cnt=0x1405
queue_type=simple
[3:0:0:0] disk /dev/sdb
state=running queue_depth=200 scsi_level=0 type=0 device_blocked=0 timeout=180
iocounterbits=32 iodone_cnt=0x2a ioerr_cnt=0x0 iorequest_cnt=0x2a
queue_type=simple
[3:0:0:1] disk /dev/sdc
state=running queue_depth=200 scsi_level=0 type=0 device_blocked=0 timeout=180
iocounterbits=32 iodone_cnt=0x29 ioerr_cnt=0x0 iorequest_cnt=0x29
queue_type=simple
[4:0:0:0] disk /dev/sdd
state=running queue_depth=200 scsi_level=0 type=0 device_blocked=0 timeout=180
iocounterbits=32 iodone_cnt=0x28 ioerr_cnt=0x0 iorequest_cnt=0x28
queue_type=simple
[4:0:0:1] disk /dev/sde
state=running queue_depth=200 scsi_level=0 type=0 device_blocked=0 timeout=180
iocounterbits=32 iodone_cnt=0x28 ioerr_cnt=0x0 iorequest_cnt=0x28
queue_type=simple
[root@lstst log]# cat /proc/scsi/scsi
Attached devices:
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: Msft Model: Virtual Disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 04
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: Model: Rev:
Type: Direct-Access ANSI SCSI revision: 00
Host: scsi3 Channel: 00 Id: 00 Lun: 01
Vendor: Model: Rev:
Type: Direct-Access ANSI SCSI revision: 00
Host: scsi4 Channel: 00 Id: 00 Lun: 00
Vendor: Model: Rev:
Type: Direct-Access ANSI SCSI revision: 00
Host: scsi4 Channel: 00 Id: 00 Lun: 01
Vendor: Model: Rev:
Type: Direct-Access ANSI SCSI revision: 00
dmesg
[ 205.580687] hv_storvsc vmbus_0_6: cmd 0x28 scsi status 0x0 srb status 0x22
[ 205.585931] hv_storvsc vmbus_0_6: cmd 0x28 scsi status 0x0 srb status 0x22
[ 205.591237] hv_storvsc vmbus_0_5: cmd 0x28 scsi status 0x0 srb status 0x22
[ 205.591733] hv_storvsc vmbus_0_5: cmd 0x28 scsi status 0x0 srb status 0x22[root@lstst ~]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0000e8e7
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 83886079 41430016 8e Linux LVM
Disk /dev/sdb: 0 MB, 512 bytes, 1 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdc: 0 MB, 512 bytes, 1 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sde: 0 MB, 512 bytes, 1 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdd: 0 MB, 512 bytes, 1 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-swap: 4177 MB, 4177526784 bytes, 8159232 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-root: 38.2 GB, 38243663872 bytes, 74694656 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes -
How to use the same channel to send a file and messages to the server
I'm trying to develop a simple program that will send and receive files from the server and in the same time I need to communicate with the server through the messages
I'm using TCP Socket
my problem is
I have only one channel
so, I have no option, either I can use it for sending the file itself or sending the message .. but not both !
my question is : How can I use the same channel for sending and receiving (file & message)
I would appreciate for any clue or hint
bestkajbj wrote:
kmarwani wrote:
Thanks for reply
yes, that what I'm thinking to do
but, in case of sending binary file, if I attached a flag on its header, will it corrupt the file ?
bestThe other end would of course need to decode the messages that you get, and only write the "data" part to the file.Thanks
I'm gonna try to hard-code what you suggest and i will post what happen with me here
even though I'm not sure how can I add header to a binary file and remove it from the file at other end. (coz I read it as stream and send as array without touching its contents)
this how I'm sending the file
ConnSocket = CSocket.accept();
ToClient = new DataOutputStream(ConnSocket.getOutputStream());
File myFile = new File("abc.jpg");
FileInputStream myFileInStream = new FileInputStream(myFile);
BufferedInputStream mybuffInStream = new BufferedInputStream(myFileInStream);
myBytArray = new byte[(int) myFile.length()];
mybuffInStream.read(myBytArray, 0, myBytArray.length);
ToClient.write(myBytArray, 0, myBytArray.length);
ToClient.flush();
myFileInStream.close();best -
Where Can I Go To Find Out How To Use New iOS 4 Features?
I have just updated my ipod touch to ios 4. I have the wallpaper feature so I am presuming the rest of the features should work. How to I find out how to use the other features such as App folder options, Multitasking etc as I can't seem to be able to ??
Thanks in advance to anyone who may be able to helpStart Here. Search Google.
You must have a 3G or later model to use multi-tasking and some other features.
Message was edited by: Kappy -
How to use "restart in safari" feature in os x Lion ?
How do you use "restart in safari" feature in os x Lion ?
Hi!
How to start only Safari Webbrowser in OS X Lion.
1. Restart computer
2. While re-boot - press "cmd + R"
3. You get now a few options. Choose the Safari icon and text "read about.."
4. You can now surf freely online and only work within the safari browser.
5. Dont forget to like this comment!
6. a bonus advice. Go into settings and parent control. Choose the features you want have active in a guestaccount. Its better.. -
How to use virtual camera in Flash cs4
I watched some videos on youtube, they are good but not in depth. Are there any good, easy to understand resources that can help me to learn how to use the virtual camera? Thanks x
http://www.adobe.com/devnet/flash/articles/augmented_reality.html
-
How to use JDK5.0 new feature code in tomcat 5.5.9, jsp files
Hi Everyone:
I am trying to use JDK5.0 new feature code -- for loop in jsp file , but got compile error , i try the same code in the java file which is working fine. i am wondering is it tomcat jsp compiler problem ?
following is my code and error msg
/* jdk 5.0 new feature, but cannot use in this jsp file, tomcat version? or setting problem ?
for (Thumbnail thumbnail : thumbnailList){
System.out.println(thumbnail.getAbsolutePath());
// following is working fine in jsp
Iterator iter = thumbnailList.iterator();
while(iter.hasNext()){
Thumbnail thumbnail = (Thumbnail) iter.next();
out.print(thumbnail.getAbsolutePath()+"<BR>");
%>
the error msg is :
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 16 in the jsp file: /test/testImageGallery.jsp
Generated servlet error:
Syntax error on token(s), misplaced construct(s)
An error occurred at line: 16 in the jsp file: /test/testImageGallery.jsp
Generated servlet error:
Syntax error on token ")", : expected
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
I am using fedora core 4 x64bit , tomcat 5.5.9,
java -version
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05, mixed mode)
tomcat settings
tomcat5/bin/catalina.sh run
Using CATALINA_BASE: /home/normal/tomcat5
Using CATALINA_HOME: /home/normal/tomcat5
Using CATALINA_TMPDIR: /home/normal/tomcat5/temp
Using JRE_HOME: /home/normal/jdk1.5.0_04The JDT compiler that Tomcat installs by default is only 1.4 compliant.
You can use ant instead:
remove the common/lib/jasper-compiler-jdt.jar file
place ant.jar file from the latest Ant distribution in the common/lib folder.
If you do this, you also need to use the "javac" argument to catalina.sh.
Documentation reference: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html -
How to use all oracle text features under ifs?
i'd like to know that is possible to use a oracle text features like a Theme Capabilities to do a classification when documents its incoming.....
You will probably need to use dynamic SQL.
See the discussion at:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:53140567326263
(while the question deals with SQLX, the answer is the same - Pro*C can't parse all SQL, but dynamic SQL is not parsed by Pro*C) -
How to use the Commission Payable feature?
Hi all,
I need to use the commissions payable feature under products to allocate a % commission to suppliers. the features description looks great, but I can't work out if this feature is actually working. Going by a post from last year it might not be working at all (http://forums.adobe.com/message/4371219#4371219)?
Does anyone know if it works or if there's a work around that would achieve the same result (a report that lists commissions per product)?
Much appreciated!
Jerunnothing is a basic question here. we are all at different levels of technological ability.
did you set up your wi-fi? i ask this because you need to know if it is encrypted or not. if it is, you will need the password which was set up at the time to allow access to your network.
IF it isn't encrypted, your network is accessible to anyone within range. go into your ipod, settings, wifi, turn it on. it should find your network. if there is a padlock there it is encrypted.
you may also need to know if the mac filtering is enabled, (you should be able to find out this by going into your router's settings). if it is, you will need to add your ipod's mac address to the router. you can find the mac address on your ipod - just go to settings, general, about. at the bottom is a 'wi-fi' address.
hope that helps you get somewhere, shout up if you have any problems. -
I am using the video editing software "Magix Video deluxe 2008 Pro". Is it correct that after buying Quicktime Pro I can use all features from the Pro version via the export window of my video editing software (which is already offering me Quicktime export with the free QT-version)?
I have a movie made with greenscreen and in my video editing software I have already seperated the person in front from the greenscreen. Now, how do I tell Quicktime, which parts should be transparent, so that Quicktime "knows" what information to write in the alpha channel?
Thanks a lot!
NilsI don't know about the software you used. If it made the "alpha" channel then you can enable it in QuickTime Pro by following these steps:
Open the file and then open the Movie Properties window.
Highlight the "Video" track and click the Visual Settings tab.
In the lower left corner is a pull down menu for "Transparency". Set it to Straight Alpha and use Save As to make a new file leaving your original untouched for further editing. -
How to use Oracle 10G SQL features in OWB?
We are using OWB repository 10.2.0.1.0 and OWB client 10.2.0.1.31. The Oracle version is 10 G (10.2.0.3.0). OWB is installed on Linux.
Oracle 10G SQL offers
1) Inserting Into a Table with Error Logging
2) conditional_insert_clause, Specify the conditional_insert_clause to perform a conditional multitable insert.
Did anyone use above features in OWB10G mapping?
How do we use them?
Thanks in advance.
RIHi,
Just a thought on the multi-table insert. OWB generates multitable insert when one source is mapped to multiple targets only on the condition that after the splitter there should not be any OWB operator that can change the cardinality of the row-set coming out of the splitter (like joiners, filters, aggregators etc.)..
Regarding the link, I was wondering where I could find a decent documentation of the shadow table and the DML Error Logging through OWB .. Thanks for the link.
OWB error messages are basically Oracle Error Messages when you consider the code that gets deployed. Other than that VLD errors are sometimes mysterious and hard to debug.. Hope someone can give us more details on how to handle such VLD errors :)
HTH
-AP -
How to use the read out feature to read Korean or Arabic
I am now using Acrobat 11.And I want to use the read out loud feature to read the Korean charactors or Arabic.
But only the English words can be read in my computer.
Could some please tell me how to read other country languages besides English?
Thanks.
Have a good day.Hello Gerd.
I have posted this question at Francois site. No answer yet.
Anyone familiar with the LAF project might be aware of what i'm talking about.
I don't believe questions about this project are not to be answered on this forum. Indeed i've found and posted some questions myself about it and get answered before.
Regards, Luis ...!
Maybe you are looking for
-
I am in a bit of a dilemma and need some help from the community. I have a Mac Mini running 16GB Ram 2.3 I7 and 1 TB Fusion Drive at my office, it is in Parrallels Coherence mode 100% of the time. I have to run certain Windows apps from home. I
-
How to get the current FILE PATH?
I want to get the File Path on my Java Programming, which class / method can get a File Path on the windows? thanks!
-
Ref cursors in Database adapter
Hi, Is the database adapter capable of handling ref cursors as the datatype of the output parameters of a pl/sql procedure? For instance if I have the following in my package-spec: TYPE SomeRecordType IS RECORD ( record_pk mut_table.record_pk%TYPE ,
-
ALV Output need to send to Printer
Hi Folks, I need to send the ALV output to the printer. I built the ALV in OOps. The printer button is enabled in the scrren and when I give print it is goint to dump Below I have pasted the dump. Help me to solve this. Points will be rewarded. Regar
-
Can't see speech bubbles!
ok, I know this is very stupid, BUT when I open a chat session and the box with my buddy is displayed I can't see the chat speech bubble where my messages are usually displayed, nor can I see the "..." when i'm typing. This also happens with my buddi