port

Making a Ruby server work on port 80

Hi, I'm creating a simple web server in Ruby, which display's the text LOLZ in the browser. I have this now: #!/usr/bin/ruby require 'socket' server = TCPServer.open(2000) loop do client = server.accept client.puts "HTTP/1.1 200 OK\r\n" client.puts "Content-type: text/plain\r\n" client.puts "\r\n" client.puts "LOLZ" client.close end...

R Ports For Mobile Devices

I'm learning R and like the language very much because of its flexibility, but I want to know: Are there any ports of R for mobile devices? Where can I get them? ...

Yahoo OAuth callback URL

I am trying to connect with Yahoo OAuth. When I specify the callback URL to be example.com/YahooOauth.aspx everything works fine. But when I specify example.com:2358/YahooOauth.aspx, that is, add a port it does not work. My Yahoo application URL is example.com:2358. What can the problem be? ...

Finding device base address to communicate via inb() and outb()

I am trying to communicate with a disk drive using inb(), inw(), outb() and outw() commands so I can find specific information about the drive. However, to use these commands, I need the correct I/O ports for the device. When I have the correct I/O ports, I can find the information I am looking for very easily, however, I do not know a...

how do you fix the clients outgoing port number using php?

Hi there, I'm using php (the sockets extension) to handle sending and receiving xml files. I'd like to be able to fix the outgoing clients port number as the server has a set amount of incoming connections. I find that each time the php script is run it creates a new port number. The client side script I have so far is this:- send_me...

port pipes all requests to a php file

how can I setup httpd.conf so that I can pipe all requests to that port go to a php file? I am trying to make a socket connection from action script to localhost in flash. ...

C# Specify Client Port

greetings, i have the following code regarding asynchronous sockets programming: public void ServerBeginAceept(ushort ServerPort) { try { ServerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint ipEndPoint = new IPEndPoint(IPAddress.Any, Serve...

Encryption Algorithm from PHP to Ruby (Vignere variant)

Hey all, I am a bit stuck with this. I have to interface with an api that uses a version of an encryption algorithm that they seem to have ripped from Typo3 written by Ari Kuorikoski. I need to create a ruby lib to interface with their api, so have to port their algorithm into ruby, and I am a bit out of my depth when it comes to encry...

How do you port a Cocoa/Mac application to Windows?

How do you port a Cocoa/Mac application to Windows? I mean how would you go about it? Assume the app was written with Objective-C and Cocoa, there's nothing fancy going on, no "engine" that could be factored out, etc. Rewrite from scratch? I don't think there will be huge overlaps between the Mac and Windows codebases, right? ...

VGA 15 pin port data read and write using Matlab

I am using compaq presario cq40 laptop with windows seven ultimate(32-bit OS). I would like to access the 15 pin VGA port using Matlab (preferrably using the Data Acquisition Toolbox). Do I require extra drivers or should download anything from Mathworks.com ?? I have already developed a program for sending digital signal through parall...

How to implement such a function in PHP?

It should test if a specific port is open on localhost,if not,reboot. It's run in windows. ...

I cannot change sql server's default port (1433)

I want to add another port to default 1433 port of sql server. So I opened the configuration manager, selected Protocols for MSSQLSERVER and then double clicked on TCP/IP to see its properties. Then I selected the IP Addresses tab and scrolled down right to the IPAll section. and then I change 1433 to 1433,1450 so that I could also conne...

Is there an OS X equivalent of FreeBSD's make_dev() function?

I'm trying to port some code from FreeBSD to OS X. The code is fairly low-level and it creates a number of special device files using make_dev() and controls functionality using functions like ioctl(). Ideally I'd like to keep my code as close to the original as possible so I can more easily merge upstream changes in the future: my q...

Application path and listening port

I'd like to know which application that is listening on a port on a linux machine. There are multiple servers, apache and what not on a single machine and I'd like to know which server is listening on which port without having to dig through the configuration files of each server. Is there a command that lists the path to the executab...

Localhost 's subdomain with port numbers, how to?

We know that to add a subdomain for localhost, we open and edit the host file by adding lines such as: 127.0.0.1 localhost 127.0.0.1 abc.localhost 127.0.0.1 xyz.localhost My problem is that: if I browse abc.localhost:88 I get the below error: Bad Request - Invalid Hostname HTTP Error 400. The request hostname is invalid. Why d...

Port numbers and URL's

our application requests a URL from a user however the URL might include information after the .com or .com.uk (any country designation) address ending. for example the user may provide us with an address; www.example.com/sample/userbin?form=sl&t= Of course the above URL is made up and won't work but it illustrates my point. Our appl...

Need to use COMM port 2 to get information from a device. .Net doesnt support it though

I am writing a vb.net app that has a piece which needs to send a small command to comm port 2 and get the return result. The problem is .net doesnt have any support for serial communication seems like. Please help. I just need to send the command "headtype" and get the result. ...

Port of Statpress to CodeIgniter

I was wondering if anyone has ported the wordpress plugin Statpress into a CI library. If they hadn't, would this be worthwhile doing? ...

iphone sdk/mac - problem with sockets

Hi guys My program consists of 2 parts - A server socket running on a different thread, and a client to test the server. I'm 99.9% sure that the server is correctly written (because I have tested it with a client socket), and all it does is returns "hello world" as a response. The server sits on port 3490. Now what I tried to do is t...

ATMEGA16 output port

Do you know what's efficent of current in output port? Or does it depends only on your feeder? ...