Programming :: Httpmethod Of Httpclient Support Downloading More Than 8192 Bytes?
Apr 15, 2010Can httpmethod of httpclient support downloading more than 8192 bytes?
If not, any other ways?
Can httpmethod of httpclient support downloading more than 8192 bytes?
If not, any other ways?
I'm going to replace damaged HDDs in my server with new drives, which have sector size of 4096 bytes instead of 512. Does CentOS natively support such drives? If yes, since which version? If no, what actions should I take to correctly prepare such a drive to work. How to check that such a drive is correctly recognized by OS?
View 3 Replies View RelatedI recently had to move to a new machine, everything went well except for one thing. I did fresh installation of LAMP server all with default configs. Every time I'm using PHP script to that invokes include, require or require_once I get the following error:
Code: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7680 bytes) in /var/www/index.php on line 2 index.php file: PHP Code:
<?php include "index.php";?>
icukapi.php file:
PHP Code:
<?php echo "test";?>
My memory_limit in php.ini is set to 20M. I tried to increase that however it didn't quite work. PHP seems to allocate all possible space and return that message every time i try. If somebody has an idea of how to fix it I would be more than grateful. I spend quite a long time searching for an answer however the all things i found suggested increating memory_limit which in this case doesn't work.
How do i fill a file with <n> bytes at a given value ,for example 3?
View 3 Replies View RelatedI am trying to write some code that interfaces with an AVR over a serial port. Basically I send a command then read the output which is 6 bytes. I need to receive all 6 bytes before the program continues. Is there a way to do this? If I use read() it returns -1 unless I add a delay before reading the port. Is there a way to get it to read the 6 bytes as soon as they arrive?In python you simply say how many bytes you want and the max time you are willing to wait which seems a whole lot easier than read
View 1 Replies View RelatedI have a vector of octets that needs to be converted to a std string. I'm currently doing it this way:
Code:
stringstream ss;
for (unsigned int i=0; i < data.size(); i++
{
ss << data[i];
}
string s_data = ss.str();
This works, but is there any better way to do it?
I am trying to resume an aborted download. I have to use the curl_easy_setopt(hnd, CURLOPT_RESUME_FROM_LARGE,(curl_off_t)no. of bytes to be skipped) to set from where to start resuming download. But in run time, how would i put the no. of bytes to be skipped? Its not possible always to see how much is the size of file downloaded already. So is there any way so that prograjm will automatically know from where to start??
View 5 Replies View RelatedWe have a program that catalogs to 40 different mount points. The program is fine as long as thier is free space on at least one of the 40 mount points. My boss wants me to come up with a script that will email us daily to know how much overall free space is left. I know I can do a df but I don't know how to combine the 40 mount points into a single disk used/disk free report.
The 40 mount points are /dev/mapper/areaxx, xx being 01 to 40.
create a large buffer in my program so that I can send, and then receive on another pc, more than 4096 bytes (this seems to be the default for the serial port). I thought this might work:
[code]...
I have a usb wireless stick that uses Realtek 8192 driver.
Bus 001 Device 006: ID 0bda:8192 Realtek Semiconductor Corp.
I installed 2 different firmware drivers into /lib/firmware/RTL8192SU/rtl8192sfw.bin but both fail to load:
[ 20.363476] usb 1-1.4.4: firmware: requesting RTL8192SU/rtl8192sfw.bin
[ 20.374663] rtl819xU:signature:8192, version:7031, size:30, imemsize:8408, sram size:a448
[ 20.374667]
[ 20.374737] rtl819xU:--->FirmwareDownloadCode()
[ 20.374739]
[ 20.374804] rtl819xU:--->FirmwareCheckReady(): LoadStaus(1),
[ 20.660196] rtl819xU:FW_STATUS_LOAD_IMEM FAIL CPU, Status=44
[ 20.660201]
[ 20.660205] rtl819xU:FirmwareDownloadCode() fail !
[ 20.660208]
[ 20.660438] rtl819xU:Firmware Download Fail!!4544
[ 20.660440]
[ 20.677958] rtl819xU: --->FirmwareDownload92S()
[ 20.677964]
[ 20.677970] rtl819xU:--->FirmwareDownloadCode()
[ 20.677972]
[ 20.678055] rtl819xU:--->FirmwareCheckReady(): LoadStaus(1),
[ 20.936831] rtl819xU:FW_STATUS_LOAD_IMEM FAIL CPU, Status=44
[ 20.936835]
[ 20.936840] rtl819xU:FirmwareDownloadCode() fail !
Have I tried wrong drivers if so where can I find the correct one?
I'm trying to install a wireless USB adapter to a machine so I can get it internet access, unfortunately when I try to run the provided install script I'm getting an error 2, and I've never encountered that before. In fact I'm getting another error which makes me concerned that they just failed at coding this driver...
Code:
/tmp/driver/Linux/driver/rtl8192CU_linux_v2.0.1170.20101112/core/rtw_pwrctrl.c:
In function 'LeaveAllPowerSaveMode':
/tmp/driver/Linux/driver/rtl8192CU_linux_v2.0.1170.20101112/core/rtw_pwrctrl.c:712: error 'HAL_DATA_TYPE has no member named 'autosuspend_disabled'
make[2]: *** [/tmp/driver/Linux/driver/rtl8192CU_linux_v2.0.1170.20101112/core/rtw_pwrctrl.o] Error 1
make[1]: *** [_module_/tmp/driver/Linux/driver/trl8192CU_linux_v2.0.1170.20101112] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-2.6.32-28-generic'
make: *** [modules] Error 2
Compile make driver error: 2, Please check error Mesg
Something is clearly broken but I am not sure what, I'm awfully new to this, and wireless didn't really exist the last time I used Linux...though this doesn't appear to be specifically related to the wireless function of the driver, it's a make compile problem, it's just mysterious.
I've just installed Ubuntu 10.04 on my samsung n150. It has the 8192 device in it. Have installed ndiswrapper, however cannot get the drivers for it. How to fix/where to get the driver from so I can get my wireless card working again.
On lspci:
00:00.0 Host bridge: Intel Corporation N10 Family DMI Bridge
00:02.0 VGA compatible controller: Intel Corporation N10 Family Integrated Graphics Controller
00:02.1 Display controller: Intel Corporation N10 Family Integrated Graphics Controller
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02) .....
I think the driver may be there, however I just can't 'enable' it. On my laptop there is a blue light saying that wifi is enabled however who knows.
I'm having trouble with my Samsung Netbook N220 and its Realtek 8192 wireless card and could use some help with diagnostics. I would like to use the netbook as a server and after a day or so the system stops responding. What I'd like to know:
- What do the "========>ieee80211_parse_info_param(): athros AP is exist" spam messages actually say? Does anyone else have this and stability problems?
- Why is the realtek driver package not working?
I'm running Ubuntu Netbook 10.04/Kernel 2.6.32-24-generic. Initially the card was unable to connect, so I installed the Realtek driver rtl8192se_linux_2.6.0017.0507.2010 which adds a kernel module r8192se_pci.ko. At first my system was hanging during bootup. I then restored /lib/modules/2.6.32-24-generic and now the card is connecting but the system is unstable. The 2.6.32-23-generic kernel, modules listed below, still has modules as installed by the realtek driver and is not working. Below the drivers supplied by ubuntu
./2.6.32-24-generic/kernel/ubuntu/rtl8192se/r8192se_pci.ko
./2.6.32-24-generic/kernel/drivers/staging/rtl8192su
./2.6.32-24-generic/kernel/drivers/staging/rtl8192su/r8192s_usb.ko
[code].....
I want users of my website to be able to download files from it.
When they request a download, I would like them to see a window with the following attributes: ability to choose where downloaded file goes; progress of the download, and estimate of remaining time; a button to cancel the download.
There are hundreds of sites out there that do this, so obviously it's possible, but can it be done from a php script on the server? If not, does anyone know of a script in java(/script)?
I would also like to monitor when a download failed and succeeded, and if the failure was not because the cancel button was pressed, pickup whatever system information is available about the failure cause.
A simple TCP based chat server could allow users to use any TCP client (telnet, for example) to communicate with each other. For this question you should consider a single process, single thread server that can support exactly 2 clients at once, the server simply forwards whatever is sent from one client to the other (in both directions). Your server must not insist on any specific ordering of messages as soon as something is sent from one client it is immediately forwarded to the other client. As soon as either client terminates the connection the server can exit
View 4 Replies View RelatedI have a Samsung N130 with a Realtek 8192 wifi card (possibly 8192e, I'm not sure) and I am trying to run Fedora 12 on it. I used to run Ubuntu until trying their latest beta and realizing it's not very good, so I looked for something else. Ubuntu was at least easy to get the wifi working with just a few quick commands that were written out, word for word, in order, on the Ubuntu forums. I tried openSUSE on here and it didn't have wifi working out of the box either but people on their forums refused to give me actual instructions and just kept bumping me from thread to thread with people giving vague advice or else just telling me I was looking in the wrong place. I'm hoping that someone can give me clear and detailed instructions on how to get this wifi card working. Keep in mind that I am coming from Ubuntu and so I'm not super comfortable in CLI, if I need to do some CL stuff I will need clear and detailed instructions on how to do that.
View 4 Replies View RelatedI got errors during make of the following programs
lar/lar.h:219: error: 'virtual void LARRouteRequestTimer::expire(Event*)' is protected
lar/lar.h:316: error: within this context
lar/lar.cc:2717: error: 'struct hdr_cmn' has no member named 'ref_count'
I am trying to get this script to work. The purpose is to download a list of modules from the slax.org the list consist of a list of module numbers. What I am trying to do is Download the file or the file name corresponding to the number in the list.the list is comma delimited. this is what I have done so far and I am a stand still.
#!/bin/sh
# Wget script to retrieve modules from slax.org modules
#
# ----Begin of user defined values -----
# Path to wget
[code].....
I did see another topic on this forum regarding VSTs in LMMS, but it didn't solve my problem. I am running using the 64-bit testing branch of debian, which may be causing some of my problems. I tried compiling LMMS myself, but I ran into an issue with wine when it tried to compile RemoteVstPlugin.
It seems as though wine didn't install winegcc or any other tools like that. After a while, I did manage to find winegcc and some of the other tools in /usr/lib/x86_64-linux-gnu/wine/bin. I decided to add some symlinks in /usr/local/bin to point to winegcc, wineg++, winecpp, and winebuild. After that, it seemed to give a different error message, but still failed to compile. It now gives me the following error:
Code: Select all[ 83%] Generating RemoteVstPlugin
/usr/bin/ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/x86_64-linux-gnu/wine/wine/libwinecrt0.a(exe_entry.o)) to format elf32-i386 (RemoteVstPlugin.Azfbf1.o) is not supported
winebuild: /usr/bin/ld failed with status 1
[Code] ....
I may be missing some dependencies because I couldn't run build-dep without removing skype but I don't think that's the problem. I thought the above problem may have something to do with wine, so I was going to try compiling wine to. I ran into problems with that, and ditched that idea. I really don't know what to do anymore. I can't just disable VST support, because that's why I tried to compile LMMS by myself to begin with!
I pretty much code by hand, but I like Quanta Plus and Kate for scripts HTML and simple programming tasks.Quanta (and other editors nvu, bluefish etc) are geared for html 3 and 4 - help files, tag libraries, templates etc. how far Quanta and other IDEs are into HTML5 support?
View 2 Replies View RelatedI'm unable to configure the apache2 with python support. I have done the configuration in the following method, but unable to start the python cgi support: I have installed the libapache2-mod-python it has installed python.load in the mods-available directory. In the apache2/sites-available/default file, I have added the following lines.
[code]...
when I request for a python script in the py folder. I get a 404 Not found error.
In linux terminal; how can we get the number of rows ad columns from linux kernel? I tried from environment variables(LINES,COLUMNS) but, I could not retrieve them as my editor program is a child process to linux terminal process.
View 7 Replies View RelatedFor some reason, mport support has been removed from iptables 1.3.8 (was there in 1.3.7). However, multiport support is there. Does anyone here know why and what's the difference between the two in terms of operation? I have written firewall rules using mport. Can it directly be replaced 1:1 with multiport?
View 1 Replies View RelatedI am a brand new member
here is my question :
in a RedHat configuration :
i need to be sure that a partition has been formatted with those parameters code...
It's good that GCC support intel inline disassembly syntax, but it cannot even simply address local variables/parameters properly, making itself stupid and essentially useless, look at the following:
int myfunc(float f){
int x;
float fa[8];
asm(".intel_syntax noprefix
"
"mov eax, [x]
[Code]...
I'm wondering how python's thread & fork support is compared to perl? Which one is best option among Perl and Python
View 1 Replies View RelatedI need to know the header file used at 'c' to support openoffice writter at REDHAT4. I plan to write a c++ program for something like spellbee game. so instead of giving a txtfile which has a list of words as a source for the game I decided to use some header file. My assumptions are: Since the redhat4 is written through the "C" language and as well as the openoffice writter which is a supporting package at this os too might have the linker right. At openoffice writter we have the spellcheck feature which might had a source from where it checks the words whenever we type something at openoffice writer. So is it possible to use those header file or linkage source at my c++ spellbee game program instead off creating the list about few bunch of words.
View 1 Replies View RelatedI have just created a usb boot disk so that I can install Fedora 14.I used the following which was successfully. However, I am left wondering what does the bs parameter actually does. I know it mean bytes and copies these at a time. But how do I know what to set it to?dd if=F14-Live-i686.iso of=/dev/sdb bs=8MIn the above example it is set to 8MB. However could I set this to any value that I want?
View 1 Replies View RelatedHow do fix my Swap Partition? Last night I added unused space to the main Ubuntu partition. Now I noticed the Swap Partition is always at 0 bytes. I'm using a Sony Laptop, and have enclosed two screenshots. One of the Disk Utility and a system monitor.
View 9 Replies View RelatedI need to get usage's bytes of a specific (src/dst)IP adress;can i use this
#iptables -L -n -v -x
with the other options that get only byte of the specific IP address?