How to enqueue a PIP from InterConnect to B2B IP_OUT_QUEUE??
Hi all,
i'm trying to enqueue an 3A4 PIP to B2B IP_OUT_QUEUE using InterConnect AQAdapter.
the scenario is like this:
our own developed application will enqueue an xml into PO_QUEUE and then do an simple transformation in InterConnect then only enqueue the PIP into B2B IP_OUT_QUEUE
can anyone show me the how can it do it??
anyone knows how to do it??
Similar Messages
-
How to list IP address from client on the Server (TCP/IP CLIENT SERVER COMMUNICATION)
Excuse me,
In this project I want to ask how to add list IP from client that connect to server.
I have edited slightly the project.
'SERVER
Imports System.Net
Imports System.Net.Sockets
Imports System.Threading
Imports System.Threading.Tasks
Imports System.Reflection
Public Class ServerForm
Private _Listener As TcpListener
Private _Connections As New List(Of ConnectionInfo)
Private _ConnectionMonitor As Task
Private Sub Button_Checked(sender As System.Object, e As System.EventArgs) Handles StartStopButton.CheckedChanged
If StartStopButton.Checked Then
StartStopButton.Text = "Stop"
StartStopButton.Image = My.Resources.StopServer
_Listener = New TcpListener(IPAddress.Any, CInt(PortTextBox.Text))
_Listener.Start()
Dim monitor As New MonitorInfo(_Listener, _Connections)
ListenForClient(monitor)
_ConnectionMonitor = Task.Factory.StartNew(AddressOf DoMonitorConnections, monitor, TaskContinuationOptions.LongRunning)
Else
StartStopButton.Text = "Start:"
StartStopButton.Image = My.Resources.StartServer
CType(_ConnectionMonitor.AsyncState, MonitorInfo).Cancel = True
_Listener.Stop()
_Listener = Nothing
End If
End Sub
Private Sub PortTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles PortTextBox.Validating
Dim deltaPort As Integer
If Not Integer.TryParse(PortTextBox.Text, deltaPort) OrElse deltaPort < 1 OrElse deltaPort > 65535 Then
MessageBox.Show("Port number between 1 and 65535", "Invalid Port Number", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
PortTextBox.SelectAll()
e.Cancel = True
End If
End Sub
Private Sub ListenForClient(monitor As MonitorInfo)
Dim info As New ConnectionInfo(monitor)
_Listener.BeginAcceptTcpClient(AddressOf DoAcceptClient, info)
End Sub
Private Sub DoAcceptClient(result As IAsyncResult)
Dim monitorinfo As MonitorInfo = CType(_ConnectionMonitor.AsyncState, MonitorInfo)
If monitorinfo.Listener IsNot Nothing AndAlso Not monitorinfo.Cancel Then
Dim info As ConnectionInfo = CType(result.AsyncState, ConnectionInfo)
monitorinfo.Connections.Add(info)
info.AcceptClient(result)
ListenForClient(monitorinfo)
info.AwaitData()
Dim doUpdateConnectionCountLabel As New Action(AddressOf UpdateConnectionCountLabel)
Invoke(doUpdateConnectionCountLabel)
End If
End Sub
Private Sub DoMonitorConnections()
Dim doAppendOutput As New Action(Of String)(AddressOf AppendOutput)
Dim doUpdateConnectionCountLabel As New Action(AddressOf UpdateConnectionCountLabel)
Dim monitorInfo As MonitorInfo = CType(_ConnectionMonitor.AsyncState, MonitorInfo)
Me.Invoke(doAppendOutput, "Server Started")
Do
Dim lostCount As Integer = 0
For index As Integer = monitorInfo.Connections.Count - 1 To 0 Step -1
Dim info As ConnectionInfo = monitorInfo.Connections(index)
If info.Client.Connected Then
If info.DataQueue.Count > 0 Then
Dim messageBytes As New List(Of Byte)
While info.DataQueue.Count > 0
Dim value As Byte
If info.DataQueue.TryDequeue(value) Then
messageBytes.Add(value)
End If
End While
Me.Invoke(doAppendOutput, "Message from IP: " + System.Text.Encoding.ASCII.GetString(messageBytes.ToArray))
End If
Else
monitorInfo.Connections.Remove(info)
lostCount += 1
End If
Next
If lostCount > 0 Then
Invoke(doUpdateConnectionCountLabel)
End If
_ConnectionMonitor.Wait(1)
Loop While Not monitorInfo.Cancel
For Each info As ConnectionInfo In monitorInfo.Connections
info.Client.Close()
Next
monitorInfo.Connections.Clear()
Invoke(doUpdateConnectionCountLabel)
Me.Invoke(doAppendOutput, "Server Stoped")
End Sub
Private Sub UpdateConnectionCountLabel()
ConnectionCountLabel.Text = String.Format("{0} Connections", _Connections.Count)
End Sub
Private Sub AppendOutput(message As String)
If RichTextBox1.TextLength > 0 Then
RichTextBox1.AppendText(ControlChars.NewLine)
End If
RichTextBox1.AppendText(message)
RichTextBox1.ScrollToCaret()
End Sub
Private Sub ClearButton_Checked(sender As Object, e As EventArgs) Handles ClearButton.CheckedChanged
If ClearButton.Checked Then
RichTextBox1.Clear()
End If
End Sub
End Class
Public Class MonitorInfo
Private _listener As TcpListener
Public ReadOnly Property Listener As TcpListener
Get
Return _listener
End Get
End Property
Private _connections As List(Of ConnectionInfo)
Public ReadOnly Property Connections As List(Of ConnectionInfo)
Get
Return _connections
End Get
End Property
Public Property Cancel As Boolean
Public Sub New(tcpListener As TcpListener, connectionInfoList As List(Of ConnectionInfo))
_listener = tcpListener
_connections = connectionInfoList
End Sub
End Class
Public Class ConnectionInfo
Private _monitor As MonitorInfo
Public ReadOnly Property Monitor As MonitorInfo
Get
Return _monitor
End Get
End Property
Private _Client As TcpClient
Public ReadOnly Property Client As TcpClient
Get
Return _Client
End Get
End Property
Private _DataQueue As System.Collections.Concurrent.ConcurrentQueue(Of Byte)
Public ReadOnly Property DataQueue As System.Collections.Concurrent.ConcurrentQueue(Of Byte)
Get
Return _DataQueue
End Get
End Property
Private _Stream As NetworkStream
Public ReadOnly Property Stream As NetworkStream
Get
Return _Stream
End Get
End Property
Public Sub New(monitor As MonitorInfo)
_monitor = monitor
_DataQueue = New System.Collections.Concurrent.ConcurrentQueue(Of Byte)
End Sub
Private _LastReadLength As Integer
Public ReadOnly Property LastReadLength As Integer
Get
Return _LastReadLength
End Get
End Property
Private _Buffer(63) As Byte
Public Sub AcceptClient(result As IAsyncResult)
_Client = _monitor.Listener.EndAcceptTcpClient(result)
If _Client IsNot Nothing AndAlso _Client.Connected Then
_Stream = _Client.GetStream
End If
End Sub
Public Sub AwaitData()
_Stream.BeginRead(_Buffer, 0, _Buffer.Length, AddressOf DoReadData, Me)
End Sub
Private Sub DoReadData(result As IAsyncResult)
Dim info As ConnectionInfo = CType(result.AsyncState, ConnectionInfo)
Try
If info.Stream IsNot Nothing AndAlso info.Stream.CanRead Then
info._LastReadLength = info.Stream.EndRead(result)
For Index As Integer = 0 To _LastReadLength - 1
info._DataQueue.Enqueue(info._Buffer(Index))
Next
'info.SendMessage("Data Diterima " & info._LastReadLength & " Bytes")
info.SendMessage("reply form server: " & info._LastReadLength & " Bytes")
For Each otherInfo As ConnectionInfo In info.Monitor.Connections
If Not otherInfo Is info Then
otherInfo.SendMessage(System.Text.Encoding.ASCII.GetString(info._Buffer))
End If
Next
info.AwaitData()
Else
info.Client.Close()
End If
Catch ex As Exception
info._LastReadLength = -1
End Try
End Sub
Private Sub SendMessage(message As String)
If _Stream IsNot Nothing Then
Dim messageData() As Byte = System.Text.Encoding.ASCII.GetBytes(message)
Stream.Write(messageData, 0, messageData.Length)
End If
End Sub
End Class
'CLIENT
Imports System.Net
Imports System.Net.Sockets
Public Class ClientForm
Private _Connection As ConnectionInfo
Private _ServerAddress As IPAddress
Private Sub ClientForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
ValidateChildren()
End Sub
Private Sub ConnectButton_Checked(sender As Object, e As System.EventArgs) Handles ConnectButton.CheckedChanged
If ConnectButton.Checked Then
If _ServerAddress IsNot Nothing Then
ConnectButton.Text = "Disconnect"
ConnectButton.Image = My.Resources.StopServer
Try
_Connection = New ConnectionInfo(_ServerAddress, CInt(PortTextBox.Text), AddressOf InvokeAppendOutput)
_Connection.AwaitData()
Catch ex As Exception
MessageBox.Show(ex.Message, "Error Connecting to Server", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
ConnectButton.Checked = False
End Try
Else
MessageBox.Show("Invlid IP Server", "Cannt Connect to Server", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
ConnectButton.Checked = False
End If
Else
ConnectButton.Text = "Connect"
ConnectButton.Image = My.Resources.StartServer
If _Connection IsNot Nothing Then _Connection.Close()
_Connection = Nothing
End If
End Sub
Private Sub SendButton_Click(sender As System.Object, e As System.EventArgs) Handles SendButton.Click
If _Connection IsNot Nothing AndAlso _Connection.Client.Connected AndAlso _Connection.Stream IsNot Nothing Then
Dim buffer() As Byte = System.Text.Encoding.ASCII.GetBytes(InputTextBox.Text)
_Connection.Stream.Write(buffer, 0, buffer.Length)
End If
End Sub
Private Sub ServerTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles IPTextBox.Validating
_ServerAddress = Nothing
Dim remoteHost As IPHostEntry = Dns.GetHostEntry(IPTextBox.Text)
If remoteHost IsNot Nothing AndAlso remoteHost.AddressList.Length > 0 Then
For Each deltaAddress As IPAddress In remoteHost.AddressList
If deltaAddress.AddressFamily = AddressFamily.InterNetwork Then
_ServerAddress = deltaAddress
Exit For
End If
Next
End If
If _ServerAddress Is Nothing Then
MessageBox.Show("Cannot resolve Server Address", "invalid Server", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
IPTextBox.SelectAll()
e.Cancel = True
End If
End Sub
Private Sub PortTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles PortTextBox.Validating
Dim deltaPort As Integer
If Not Integer.TryParse(PortTextBox.Text, deltaPort) OrElse deltaPort < 1 OrElse deltaPort > 65535 Then
MessageBox.Show("Port number between 1 and 65535", "invalid Port number", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
PortTextBox.SelectAll()
e.Cancel = True
End If
End Sub
Private Sub InvokeAppendOutput(message As String)
Dim doAppendOutput As New Action(Of String)(AddressOf AppendOutput)
Me.Invoke(doAppendOutput, message)
End Sub
Private Sub AppendOutput(message As String)
If RichTextBox1.TextLength > 0 Then
RichTextBox1.AppendText(ControlChars.NewLine)
End If
RichTextBox1.AppendText(message)
RichTextBox1.ScrollToCaret()
End Sub
Private Sub ButtonClear_Click(sender As Object, e As EventArgs) Handles ButtonClear.Click
RichTextBox1.Clear()
InputTextBox.Clear()
End Sub
End Class
Public Class ConnectionInfo
Private _AppendMethod As Action(Of String)
Public ReadOnly Property AppendMethod As Action(Of String)
Get
Return _AppendMethod
End Get
End Property
Private _Client As TcpClient
Public ReadOnly Property Client As TcpClient
Get
Return _Client
End Get
End Property
Private _Stream As NetworkStream
Public ReadOnly Property Stream As NetworkStream
Get
Return _Stream
End Get
End Property
Private _LastReadLength As Integer
Public ReadOnly Property LastReadLength As Integer
Get
Return _LastReadLength
End Get
End Property
Private _Buffer(63) As Byte
Public Sub New(address As IPAddress, port As Integer, append As Action(Of String))
_AppendMethod = append
_Client = New TcpClient
_Client.Connect(address, port)
_Stream = _Client.GetStream
End Sub
Public Sub AwaitData()
_Stream.BeginRead(_Buffer, 0, _Buffer.Length, AddressOf DoreadData, Me)
End Sub
Public Sub Close()
If _Client IsNot Nothing Then _Client.Close()
_Client = Nothing
_Stream = Nothing
End Sub
Private Sub DoreadData(result As IAsyncResult)
Dim info As ConnectionInfo = CType(result.AsyncState, ConnectionInfo)
Try
If info._Stream IsNot Nothing AndAlso info._Stream.CanRead Then
info._LastReadLength = info._Stream.EndRead(result)
If info._LastReadLength > 0 Then
Dim message As String = System.Text.Encoding.ASCII.GetString(info._Buffer)
info._AppendMethod(message)
End If
info.AwaitData()
End If
Catch ex As Exception
info._LastReadLength = -1
info._AppendMethod(ex.Message)
End Try
End Sub
End Class
//ScreenShot server
http://prntscr[dot]com/5t1ol3
//Screenshot client
http://prntscr[dot]com/5t1odj
source: code[dot]msdn[dot]microsoft[dot]com/windowsdesktop/Simple-Multi-User-TCPIP-43cc3b44I have a similar chat application. When the user attempts to connect, instead of sending a simple string, the client sends a serialized object(xml string) with all relevant login and session information, this includes the user's IP address. Once the server
receives said information, depending on the type of TCP broadcast (a custom enumerated type) information from one user may be passed to a single user, or distributed to many users.
If it helps, here is the TCPBroadcast object I use. But in order for your server to understand it, you kind of have to build your server and client somewhat around it.
Option Strict On
Option Explicit On
Option Infer Off
Namespace TCPChat
Public Class TCPBroadcast
Public Property Message As String
Public Property BroadCastTime As DateTime
Public Property DestUser As String
Public Property OriginUser As String
Public Property PasswordHash As String
Public Property BroadcastSourceIP As String
Public Property BroadCastType As TCPBroadcastType
Public Property LoginUserName As String
Public Property FailureReason As String
Public Function XmlEncoding() As String
Dim serializer As New Xml.Serialization.XmlSerializer(GetType(TCPBroadcast))
Dim XML As String = String.Empty
Using memStream As New IO.MemoryStream
Using xmlWriter As New Xml.XmlTextWriter(memStream, System.Text.Encoding.UTF8) With _
{.Indentation = 4, .Formatting = System.Xml.Formatting.Indented}
serializer.Serialize(xmlWriter, Me)
End Using
XML = System.Text.Encoding.UTF8.GetString(memStream.ToArray)
End Using
Return XML
End Function
Public Function ToBinary() As Byte()
Return System.Text.Encoding.UTF8.GetBytes(Me.XmlEncoding)
End Function
Public Shared Function FromBinary(binary As Byte()) As DeserializationResult
Dim xml As String = System.Text.Encoding.UTF8.GetString(binary)
Return FromXML(xml)
End Function
Public Shared Function FromXML(xml As String) As DeserializationResult
Dim DeserializationResult As New DeserializationResult
DeserializationResult.Error = False
Try
Dim deserializer As New Xml.Serialization.XmlSerializer(GetType(TCPBroadcast))
Dim buffer As Byte() = System.Text.Encoding.UTF8.GetBytes(xml)
Using memStream As New IO.MemoryStream(buffer)
DeserializationResult.tcpBroadCast = CType(deserializer.Deserialize(memStream), TCPBroadcast)
End Using
Catch ex As Exception
DeserializationResult.Error = True
DeserializationResult.ErrorMessage = ex.ToString
DeserializationResult.AttemptedXML = xml
End Try
Return DeserializationResult
End Function
Public Class DeserializationResult
Public [Error] As Boolean
Public ErrorMessage As String
Public tcpBroadCast As TCPBroadcast
Public AttemptedXML As String
Sub New()
End Sub
End Class
Public Enum TCPBroadcastType
AdministrativeMessage
AuthenticationFailure
AuthenticationSuccess
ChatBroadcast
CredentialsRequest
Credentials
DisconnectedByServer
KeepAlive
PrivateMessage
ServerMessage
SystemMessage
UnableToProcessRequest
End Enum
End Class
End Namespace
“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. -
How to include the Pipe symbol ("|") in the column heading.
Hi ,
Can somebody advice how to include the Pipe symbol ("|") in the column heading.
Regards,
YagneAre you looking for this ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Elapsed: 00:00:00.00
satyaki>
satyaki>
satyaki>set colsep '|'
satyaki>
satyaki>select * from emp;
EMPNO|ENAME |JOB | MGR|HIREDATE | SAL| COMM| DEPTNO|JOB1 |DOB
----------|----------|---------|----------|---------|----------|----------|----------|---------|----
7499|ALLEN |SALESMAN | 7698|20-FEB-81| 211.2| 300| 30|SALESMAN |
7521|WARD |SALESMAN | 7698|22-FEB-81| 1650| 500| 30|SALESMAN |
7654|MARTIN |SALESMAN | 7698|28-SEP-81| 1650| 1400| 30|SALESMAN |
7788|SCOTT |ANALYST | 7566|19-APR-87| 4356| | 20|ANALYST |
7839|KING |PRESIDENT| |17-NOV-81| 6600| | 10|PRESIDENT|
7844|TURNER |SALESMAN | 7698|08-SEP-81| 1980| 0| 30|SALESMAN |
7876|ADAMS |CLERK | 7788|23-MAY-87| 145.2| | 20|CLERK |
7900|JAMES |CLERK | 7698|03-DEC-81| 1254| | 30|CLERK |
7902|FORD |ANALYST | 7566|03-DEC-81| 4791.6| | 20|ANALYST |
7934|MILLER |CLERK | 7782|23-JAN-82| 1716| | 10|CLERK |
7566|Smith |Manager | 7839|23-JAN-82| 1680| 0| 10|Manager |23-JAN-89
EMPNO|ENAME |JOB | MGR|HIREDATE | SAL| COMM| DEPTNO|JOB1 |DOB
----------|----------|---------|----------|---------|----------|----------|----------|---------|----
7698|Glen |Manager | 7839|23-JAN-82| 1680| 0| 10|Manager |23-JAN-89
1111|Selen |SALESMAN | 7499|20-FEB-81| 1920| 0| 20|SALESMAN |23-JAN-89
1111|Selen |SALESMAN | 7499|19-OCT-08| 3000| 0| 10| |
7499|ALLEN |SALESMAN | 7499|19-OCT-08| 3000| 0| 30| |
1|boock | | | | | | | |
16 rows selected.
Elapsed: 00:00:01.03
satyaki>Regards.
Satyaki De. -
How to enqueue custom AWT event?
hi,
in my applet I need to use custom AWT events. I subclass them from java.awt.AWTEvent and set their id to higher as AWTEvent.RESERVED_ID_MAX - as recomended in documentation.
But how to enqueue such event? A tried to use following approach:
getToolkit().getSystemEventQueue().postEvent( myEvent );
and it works fine - but only in browsers usings Sun's VM implementation. In browsers using Microsoft's VM I'm getting following exception:
com.ms.security.SecurityExceptionEx[matlu/client/ClientConnection.enQueue]: Event queue access denied.
So the question is: is there any other way to enqueue custom event, which will keep Microsoft's security manager happy?
thak you very much
Lubo MateckaI know it must be visible... (But it doesnt have to be bigger than 1 pixel...)
The code I posted is just to illustrate the idea.
If you need to post multiple events you just replace the AWTEvent member with a LinkedList (or some similar FIFO).
Then in postEvent you do theLinkedList.addFirst(yourEvent)
And in paint() you do AWTEvent ev = (AWTEvent)theLinkedList.removeLast();
process ev.
if(theLinkedList.size() > 0)
repaint();Yes. I have run into the same problem, and I did not use the repaint- trick...
My applet communicates with the server in a separate thread. When a response receives the communication thread should post an event to the AWT- thread to get the response processed.
My solution here is to process the thread in the communicator- thread. This is a bad solution because it might create multithreading bugs.... but it has proven to work ok in practice.
Another example is like this. The use presses the mouse at Component B so that:
1 Component A gets a focusLost event.
2 Component B gets a mousePressed.
3 I want to do something in component A that should be done after component B has processed the mousePressed event. This can be solved without using events. You just have to write some more code (You are already in the right thread). -
How to prevent a file from stripping?
I'm building vacation for Arch64 but should be the same for 32bit. PKGBUILD looks like this:
# $Id: PKGBUILD,v 1.1 2004/01/21 15:43:15 dale Exp $
# Maintainer: dale <[email protected]>
pkgname=vacation
pkgver=1.2.6.1
pkgrel=1
pkgdesc="an automatic mail-answering program"
depends=(gdbm)
url="http://www.tosn.org/projects/vacation/"
source=(http://www.tosn.org/projects/vacation/files/$pkgname-$pkgver.tar.gz vacation.patch)
build() {
cd $startdir/src/$pkgname
mkdir -p $startdir/pkg/usr/{bin,man/man1}
# keeps binary from building
rm -rf vacation
# fixing the Makefile - not only for arch64
sed -i -e 's: -m486::; s:CFLAGS.*= (.*):CFLAGS += 1:' $startdir/src/$pkgname/Makefile
sed -i -e "s:/usr/bin:$startdir/pkg/usr/bin:g" $startdir/src/$pkgname/Makefile
mv vacation.man vacation.1
make install
These file have been created:
[andyrtr@workstation64 vacation]$ ls -lRA pkg/
pkg/:
insgesamt 0
drwxr-xr-x 4 andyrtr users 96 2006-01-28 09:32 usr
pkg/usr:
insgesamt 0
drwxr-xr-x 2 andyrtr users 96 2006-01-28 09:32 bin
drwxr-xr-x 3 andyrtr users 72 2006-01-28 09:32 man
pkg/usr/bin:
insgesamt 24
-rwxr-xr-x 1 andyrtr users 16864 2006-01-28 09:32 vacation
-rw------- 1 andyrtr users 470 2006-01-28 09:32 vaclook
pkg/usr/man:
insgesamt 0
drwxr-xr-x 2 andyrtr users 48 2006-01-28 09:32 man1
pkg/usr/man/man1:
insgesamt 0
[andyrtr@workstation64 vacation]$
I get this error:
==> Starting build()...
gcc -march=x86-64 -O2 -pipe -Wall -Xlinker -warn-common -D_PATH_VACATION="/var/abs/extra/system/vacation/pkg/usr/bin/vacation" -o vacation vacation.c -lgdbm
install -s -m 755 vacation /var/abs/extra/system/vacation/pkg/usr/bin/vacation
install -s -m 755 vaclook /var/abs/extra/system/vacation/pkg/usr/bin/vaclook
strip: /var/abs/extra/system/vacation/pkg/usr/bin/vaclook: File format not recognized
install: strip fehlgeschlagen
make: *** [install] Fehler 1
==> ERROR: Build Failed. Aborting...
Krusader detects it as a Perl program. Any idea?
AndyRTRPosted: Sat Jan 28, 2006 8:45 am Post subject: How to prevent a file from stripping?
I'm building vacation for Arch64 but should be the same for 32bit. PKGBUILD looks like this:
Code:
# $Id: PKGBUILD,v 1.1 2004/01/21 15:43:15 dale Exp $
# Maintainer: dale <[email protected]>
pkgname=vacation
pkgver=1.2.6.1
pkgrel=1
pkgdesc="an automatic mail-answering program"
depends=(gdbm)
url="http://www.tosn.org/projects/vacation/"
source=(http://www.tosn.org/projects/vacation/files/$pkgname-$pkgver.tar.gz vacation.patch)
build() {
cd $startdir/src/$pkgname
mkdir -p $startdir/pkg/usr/{bin,man/man1}
# keeps binary from building
rm -rf vacation
# fixing the Makefile - not only for arch64
sed -i -e 's: -m486::; s:CFLAGS.*= (.*):CFLAGS += 1:' $startdir/src/$pkgname/Makefile
sed -i -e "s:/usr/bin:$startdir/pkg/usr/bin:g" $startdir/src/$pkgname/Makefile
mv vacation.man vacation.1
make install
These file have been created:
Code:
[andyrtr@workstation64 vacation]$ ls -lRA pkg/
pkg/:
insgesamt 0
drwxr-xr-x 4 andyrtr users 96 2006-01-28 09:32 usr
pkg/usr:
insgesamt 0
drwxr-xr-x 2 andyrtr users 96 2006-01-28 09:32 bin
drwxr-xr-x 3 andyrtr users 72 2006-01-28 09:32 man
pkg/usr/bin:
insgesamt 24
-rwxr-xr-x 1 andyrtr users 16864 2006-01-28 09:32 vacation
-rw------- 1 andyrtr users 470 2006-01-28 09:32 vaclook
pkg/usr/man:
insgesamt 0
drwxr-xr-x 2 andyrtr users 48 2006-01-28 09:32 man1
pkg/usr/man/man1:
insgesamt 0
[andyrtr@workstation64 vacation]$
I get this error:
==> Starting build()...
gcc -march=x86-64 -O2 -pipe -Wall -Xlinker -warn-common -D_PATH_VACATION="/var/abs/extra/system/vacation/pkg/usr/bin/vacation" -o vacation vacation.c -lgdbm
install -s -m 755 vacation /var/abs/extra/system/vacation/pkg/usr/bin/vacation
install -s -m 755 vaclook /var/abs/extra/system/vacation/pkg/usr/bin/vaclook
strip: /var/abs/extra/system/vacation/pkg/usr/bin/vaclook: File format not recognized
install: strip fehlgeschlagen
make: *** [install] Fehler 1
==> ERROR: Build Failed. Aborting...
Looks like its tring to install to /var/abs/extra/system/vacation/pkg/usr/bin....... ????
try make DESTDIR=$startdir/pkg/usr install -
How do I install windows from USB on Macbook pro 3,1
How do I install windows from USB on Macbook pro 3,1 ?
My Superdrive is far from super anymore, So I managed to make an extern drive with both Snow Leopard Partition, Lion Partition (Since I thought Boot Camp 4,1 would bypass my problem), and Time Machine partition, Since I got 1. USB drive that works.
- My general issue is that Boot camp Refuse to see the USB drive - (Many "how to"´s though show how they install windows perfectly through the USB port, but they use airbooks!, and somehow the Macbook will not ?)
I fix that issue with >> rEFIt <<, that suddenly makes it possible for the Mac to see the USB drive, and partitions.
Which was very strange since I could use an extern HD with the whole installation to start up wipe the whole disk, and then use my extern drive with partitions to install Snow Leopard and get everything as before with timemachine. Very smart with timemachine, but very lucky that I have a extern drive that runs the whole system and that I made the partitionsdrive before. DVD-drives are the past!
Point: So the original system could see the Snow Leopard installation USB disk, but boot camp cannot find the USB drive ?????????
After rEFIt I booted and then I got this error:
Starting bootmgr.efi
Error: Unsupported while loading bootmgr.efi
I read it could be a problem with the Windows software, so I purchased an extern DVD drive, Used Disk Utility to make an image (.DMG), then used another program to convert the .dmg to .ISO.
Then downloaded a trialversion of vmWare fusion, and installed windows from the iso. Everything worked brilliant, except and that is why I want to use boot camp, Running windows in another program while running the mac system is a little hacky and slow.
Point: Nothing is wrong with the windows software, and windows runs fine.
I then downloaded the Windows DVD / USB Tool, reformatted a USB drive as Master Boot Partition, MS-Dos Fat partition, then after lots of struggling got Vmware, windows to recognise the USB drive. And installed the windows software on the USB drive, as all the walkthroughs recommend.
Then I tried for "fun"! to just install windows form the extern USB drive, and with rEFIt it will see the drive and start to do something, but then when it starts to boot, the screen just turns into black and nothing happens, and you can see the drive does NOTHING. (I think it is because I only have 1 USB drive and the Extern DVD drive does not get enough power, but again the mac refuse to see the USB drive unless it is a Snow Leopard installation USB-drive!
Well trying to install Windows Ultimate 64 Bit, which worked great in vmware, because that program installed from the .ISO file that I had on the desktop, but trying with Boot Camp did not get anywhere, what kind of **** program is this boot camp anyway!?, but then I try the new USB disk with windows made from windows, thorugh rEFIt, it sees the disk and then starts and then I get this ERROR:
rEFIt - Booting Legacy OS
Starting legacy loader
Using load option ´USB´
Error: Not found returned from legacy loader
Error: Not found from LocateDevicePath
(x 9 times)
Error: Load Error while (re)opening our installation volume
The firmware refused to boot from the selected volume. Note that external hard drives are not well-supported by Apple´s firmware for legacy OS booting
(Hey Apple please send out a updated firmware that fix this issue?!)
So how do I do it ? - or is the only option to fix the partition running the system from the extern disk. Format the whole drive in 2 from the "bottom" and install windows and then afterwards install Mac on the other partition ? Or just run windows on the mac and forget about mac software ? What a stupid solution...There are strings in the pliist file to add other Macs so that you can use some USB-DVD drives.
This is 5 page thread, so a little more 'meat' to it:
https://discussions.apple.com/thread/3410900?start=60&tstart=0
And on PC booting Windows from a USB DVD to do the install is usually a piece of cake, sometimes you just need to specify that USB in the BIOS boot order and sometimes select via F12 (or another Fkey) and that is it.
What you have here seems to be everything and everyone is excluded unless there is a mac-model device ID string that specifies yes. An unnecessary hurdle. -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
In alv report , how to reserve 20 lines from beginning of page
hi experts
in alv report , how to reserve 20 lines from beginning of page.
regards
subhasis.If by reserve you mean should not move on scrolling then make them KEY from fieldcatalog.
But I think maximum of 10-12 can be handled by that.
Regards,
Amit
Reward all helpful replies. -
How can i move icons from one screen to the other?
How do i move icons from one page to another?
Tap and hold any icon for a couple of seconds. They'll all start to wobble. Tap and drag the one you want to move to the side of the screen and the next screen will appear; drop the icon on whatever screen you want it on.
You can also do it quicker in iTunes - connect the phone and click the Apps tab in the main window. You'll see a picture of your phone with the apps laid out. Just click and drag -
How can I move apps from one computer to the other?
How can I move apps from one computer to the other?
(preferably without iCloud)Backup your iTunes library to an external drive and onto the other computer
http://support.apple.com/kb/ht1751 -
How can I transfer work from one computer to another?
How can I transfer work from one computer to another?
Welcome to the forum.
I can think of three basic ways to accomplish what you wish to do:
Use the Project Archiver to archive your Project (and check the box to gather the media files), to an external HDD. Probably the easiest way to do it.
Copy the Project and ALL media files to an external HDD, but be prepared to relink the media files to the Project, as the drive letter (part of the Absolute Path) will have changed.
Edit loosely, and Share to an AV file, which will be Imported into a New Project on that second computer. Or, edit VERY tightly, and do the same. I like the first, as removing, replacing Transitions, etc., can be much more difficult, unless that "tight edit" is 100% done.
Good luck,
Hunt
Message was edited by: Bill Hunt to correct formatting -
How can I transfer information from one ipad to another?
how can I transfer information from one ipad to another ?
What kind of information? You can sync things like Contacts and Calendars by using iCloud. You can backup one iPad to iTunes on a computer and then sync the backup to the other iPad. You can configure your iTunes content and sync the same content to both iPads.
It is based on what you want to do. Or are you looking for a way to send files from one iPad to another wirelessly? There are apps to do things like that, as well as cloud services, such as DropBox. -
How can I transfer songs from one computer to another
How can I transfer songs from one computer to another
Type "move itunes library" or similar into the Google search bar.
-
Home computer crashed. How can I move stuff from iPod Touch to a new computer?
Our home computer crashed. How can I move stuff from iPod touch to a new computer?
- Transfer iTunes purchased by:
iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
- Transfer other stuff via the third-party programs discusses in this prevous discussion:
Best iPod to PC -
How can I transfer contacts from one iPad to a new iPad with different iCloud addresses?
how can I transfer contacts from one iPad to a new iPad with different iCloud addresses?
One way would be to e-mail them from yourself to yourself. That would totally avoid the different ID issue.
Maybe you are looking for
-
Why is iTunesHelper only showing up in 1 of my 3 accounts?
Hello, This question pertains to the "iTunesHelper" application. It is a mysterious application that apparently runs in the background to enable the connection of ipods. This is from some info I obtained from google and on this apple discussion forum
-
Hi, I am fairly new to OS X, recently making the jump from Windows. And I haven't looked back and don't think I will! I have come across quite a few problems during the transition when it comes to hardware, but usually it came down to my error with c
-
Oracle and MySql via ODBC - Field with special characters
Hi, I recentely installed and configured DG4ODBC 11.2 in my environment, with Oracle 10g as Database. I have a working ODBC and I can successfully select from tables@mysql. I have a problem with some fields in the mysql table though: various fields a
-
Script for auto recovery of standby node - Simple dataguard
Hi. I have set up several solutions with Oracle SE and simple dataguard on linux. On physical standby, I have created a script which performs the recovery every 15 minuts: source /u01/app/oracle/sb_scripts/.profile_websb /u01/app/oracle/product/10.2.
-
Late 2012 Mac Desktop running Yosemite is going beyond slow...any advice?
Problem description: MAC Desk top running Yosimite Running super super slow. minutes to do anything. late 2012 mac desk top 1 tBite harddrive EtreCheck version: 2.1.5 (108) Report generated 24 December 2014 9:51:14 am NZDT Click the [Support] links f