Sponsored Content
The Lounge What is on Your Mind? Does anyone know what technology this logo belongs to? Post 303042930 by drl on Sunday 12th of January 2020 12:04:16 AM
Old 01-12-2020
Hi.

This is the logo that was designed ... cheers, drl
Image
 

6 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

The unix.com logo - anyone else seeing this?

Hi All I'm not sure if anyone else notices this or not - however when I view the unix.com forums in Windows, the flash logo at the top of the page absolutely kills my performance - CPU usage rockets to 100%! If you open the task manager and monitor performance, and slowly scroll down so that the... (1 Reply)
Discussion started by: saabir
1 Replies

2. Solaris

dtlogin logo

hiho, where are the frisky CDE admins.... ;-) how can i change the welcome logo? i found the /usr/dt/config/C/Xresources and the entry: Dtlogin*logo*bitmapFile: but when i enter my own *.bm or *.xpm file the screen use a black logo.... i think i am using the wrong resolution for my picture...... (3 Replies)
Discussion started by: pressy
3 Replies

3. Shell Programming and Scripting

which file belongs to which directory

let I executed the following command: ls -lrt mdase mvfile test | grep '\.xml' the output is : -rw-r--r-- 1 surjya other 0 Sep 23 16:25 sample.xml -rw-r--r-- 1 surjya other 0 Oct 5 16:11 tst2.xml -rw-r--r-- 1 surjya other 0 Oct 5 16:12 test3.xml... (1 Reply)
Discussion started by: surjyap
1 Replies

4. What is on Your Mind?

Cool new logo

I saw this on another board, and burst out laughing. http://www.brandsoftheworld.com/brands/0011/0070/brand.gif Apparently it's a new logo (may even be a new name) for a clothing line. Check them out: www.A-Style.it (9 Replies)
Discussion started by: Dave Miller
9 Replies

5. Solaris

Daemon belongs to which package..

If i know a daemon and it is running.. How can i know that daemon belongs to which package? (5 Replies)
Discussion started by: younus_syed
5 Replies

6. AIX

/home belongs to a user?

While doing a "little" clean up job, i noticed something weird... A ls -altr of my / showed this: drwxr-xr-x 1549 johcham grands 102400 Jan 28 13:13 home How can a user become the owner / modify the group of my /home??? any thoughts? Can i chown this back to bin:bin (i think that... (2 Replies)
Discussion started by: Stephan
2 Replies
AnyEvent::HTTPD::Request(3pm)				User Contributed Perl Documentation			     AnyEvent::HTTPD::Request(3pm)

NAME
AnyEvent::HTTPD::Request - A web application request handle for AnyEvent::HTTPD DESCRIPTION
This is the request object as generated by AnyEvent::HTTPD and given in the request callbacks. METHODS
url This method returns the URL of the current request as URI object. respond ([$res]) $res can be: o an array reference Then the array reference has these elements: my ($code, $message, $header_hash, $content) = [200, 'ok', { 'Content-Type' => 'text/html' }, '<h1>Test</h1>' }] You can remove most headers added by default (like "Cache-Control", "Expires", and "Content-Length") by setting them to undef, like so: $req->respond([ 200, 'OK', { 'Content-Type' => 'text/html', 'Cache-Control' => 'max-age=3600', 'Expires' => undef, }, 'This data will be cached for one hour.' ]); o a hash reference If it was a hash reference the hash is first searched for the "redirect" key and if that key does not exist for the "content" key. The value for the "redirect" key should contain the URL that you want to redirect the request to. The value for the "content" key should contain an array reference with the first value being the content type and the second the content. Here is an example: $httpd->reg_cb ( '/image/elmex' => sub { my ($httpd, $req) = @_; open IMG, "$ENV{HOME}/media/images/elmex.png" or $req->respond ( [404, 'not found', { 'Content-Type' => 'text/plain' }, 'not found'] ); $req->respond ({ content => ['image/png', do { local $/; <IMG> }] }); } ); How to send large files: For longer responses you can give a callback instead of a string to the response function for the value of the $content. $req->respond ({ content => ['video/x-ms-asf', sub { my ($data_cb) = @_; # start some async retrieve operation, for example use # IO::AIO (with AnyEvent::AIO). Or retrieve chunks of data # to send somehow else. } }); The given callback will receive as first argument either another callback ($data_cb in the above example) or an undefined value, which means that there is no more data required and the transfer has been completed (either by you sending no more data, or by a disconnect of the client). The callback given to "respond" will be called whenever the send queue of the HTTP connection becomes empty (meaning that the data is written out to the kernel). If it is called you have to start delivering the next chunk of data. That doesn't have to be immediately, before the callback returns. This means that you can initiate for instance an IO::AIO request (see also AnyEvent::AIO) and send the data later. That is what the $data_cb callback is for. You have to call it once you got the next chunk of data. Once you sent a chunk of data via $data_cb you can just wait until your callback is called again to deliver the next chunk. If you are done transferring all data call the $data_cb with an empty string or with no argument at all. Please consult the example script "large_response_example" from the "samples/" directory of the AnyEvent::HTTPD distribution for an example of how to use this mechanism. NOTE: You should supply a 'Content-Length' header if you are going to send a larger file. If you don't do that the client will have no chance to know if the transfer was complete. To supply additional header fields the hash argument format will not work. You should use the array argument format for this case. responded Returns true if this request already has been responded to. parm ($key) Returns the first value of the form parameter $key or undef. params Returns list of parameter names. vars Returns a hash of form parameters. The value is either the value of the parameter, and in case there are multiple values present it will contain an array reference of values. method This method returns the method of the current request. content Returns the request content or undef if only parameters for a form were transmitted. headers This method will return a hash reference containing the HTTP headers for this HTTP request. client_host This method returns the host/IP of the HTTP client this request was received from. client_port This method returns the TCP port number of the HTTP client this request was received from. COPYRIGHT &; LICENSE Copyright 2008-2011 Robin Redeker, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-08-04 AnyEvent::HTTPD::Request(3pm)
All times are GMT -4. The time now is 10:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy