In C, I would like tolimit the string to the first 8 characters. For example, I have:
char out = printf("%c", str);
How can I make it so it only returns the first 8 characters?
Can the length limit of Oracle's column identifier be lifted to beyond 30 characters? If so, how do I accomplish that? If not, is there any other workaround that allows me to use a column identifier that has more than 30 characters?
Thanks in advance.
I Need a regular expression which accepts all types of characters (alphabets, numbers and all special characters), and miniumum number of characters should be 15 and no limit for maximum characters.
Hey Guys, I was wondering if there is a "maximum" of data a javascript application can store. I guess this is handled by the browser and that each one has it's limitation? Am I guessing right? Wrong? If there isn't a limit, will a page file be created (wouldn't be very secure I guess).
Why I can't construct large tuples in Haskell? Why there's a tuple size limit?
Prelude> (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
<interactive>:1:0:
No instance for (Show
(t,
t1,
t2,
...
t23))
arising from a use of `print' at <interactive>:1:0-48
Possible fix:
add an instance declaration for
(Show
(t,
t1,
t2,
...
t23))
In a stmt of a 'do' expression: print it
In a simple CakePHP model where User hasMany Item (and Item belongsTo User)-
Suppose 50 users, have each 10 items.
How can I find() only 5 users, each with the latest 5 items he has?
When I impose a limit in the find, it only limits the number of users, not the number of associated Items.
Thanks!
I created a Java LinkedBlockingQueue like new LinkedBlockingQueue(1) tolimit the size of the queue to 1. However, in my testing, this seems to be ignored and there is often several things in the queue at any given time. Why is this?
I know that each recipient counts toward the Recipients Emailed (billable) quota and I can't send to more than is my daily quota.
But is there a limit how many recipients can a single email have?
For example can a single email created and sent through App engine Mail api have 8000 recipients?
I'm getting an error saying, "Limit exceeded" when I am submitting my sitemap to Yahoo.
Can anyone explain what the error means?
Possible problems:
1. Too many submissions: we certainly don't send the sitemap 5000 times in a day.
2. The sitemap is too big: Our sitemap is a mere 40k file and gzipped.
Thanks.
Hi
We are currently using DataSet for loading and saving our data to an xml file using Dataset and there is a good possibility that the size of the xml file could get very huge.
Either way we are wondering if there is any limit on the size for an xml file so the Dataset would not run into any issues in the future due to the size of it. Please advise.
Thanks
N
I need to run a background PHP script on the server, but it clogs the pipe and chokes and server. How do I limit its resources and allow other tasks to run smoothly along with it.
Will incorporating usleep into the script help?
I ordered a new computer with 8GB RAM with the plan to run Windows 7, 64Bit. Turns out now, that I need to run a 32Bit OS (XP or 7) due to some software which does not run on 64Bit yet (not even with any of the available compatibility settings / modes).
Is there anything I can do with the memory above 4GB in this scenario? I'm willing to consider creative solutions like running a hypervisor under XP that offers the memory as a RAM-Disk for swapping etc. ?
The software that does not run on 64Bit is CISCO VPN (there seems to be a half-working solution for that) and CISCO IP phone / webcam integration "CISCO Unified Video Advantage" (there is apparently no solution for that).
Possible Duplicate:
Windows XP and RAM 3.5GB+
Installed RAM : 4 GB but 2.96GB Usable......why?
I have a Macbook Pro with 4GB of installed RAM. I have installed Windows 7 on it which shows the usable memory as 2.74GB. Why is this? Don't tell me the 32 bit story; I program for a living. The maximum addressible memory on a 32 bit system is 4 GB not 3 GB.
Need proof? MSDN: Memory Limits for Windows Releases
Hello,
We are having some issues with changing the maximum message size in zimbra
We followed the instructions given on the zimbra wiki
zimbra@ZIM1:~$ zmprov modifyConfig zimbraMtaMaxMessageSize 2048000
zimbra@ZIM1:~$ postfix reload
postfix/postfix-script: refreshing the Postfix mail system
zimbra@ZIM1:~$ postconf | grep message_size_limit
message_size_limit = 10240000
Strange thing:
The setting displayed in the admin page does change but not to the corresponding size (2000kb)
It would be much appreciated if someone can help us.
Grtz, Thomas
I have a Toshiba A100, which I upgraded to 4G of RAM. The hardware startup indeed shows 4G of RAM, and I recently installed Windows 7, just to see how it behaves on it. So far so good, it displays 4G of RAM. Not that I tried to use it all, but it displays it. Previously under XP, I also would see 4G of RAM.
But under Ubuntu 9.10 (32 or 64 bits), it only displays 2.9 G of RAM. And my kernel is the "pae" compiled one, which is supposed to do the trick to work around the 32-bit CPU limitation.
How can I get Ubuntu to fully use my 4G of RAM ?
Doing copy/paste in Visual Studio 2010 RTM on Windows 7, 3GB ram machine, I was unable to copy text because of an error:
Task Manager shows that devenv.exe is using a little more than 500MB. However I still have almost 1GB of free RAM available.
Is that somekind of memory cap? If so, is there a way to increase it? It may be a bug, but maybe there is a workaround?
So it's a well known fact that the PowerMacs manufactured before 2002 cannot take a harddrive larger than 128GB. I have an old B&W that was running 10.4, and upon putting a 250GB drive inside, it told me that I had inserted a 128GB. That was expected. However, I recently decided to turn that machine into a Debian home file server. I shoved the 250GB drive inside, did some formatting, and now it tells me that it is a 250GB drive. Is this safe to use? Will all my data go corrupt after I've added more than 128GB of stuff?
In case the specs are helpful to have, it's a 400MHz B&W, 1GB RAM, Rev. B.
Firefox has a few different settings that automatically get tuned based on the system ram. This is all great if you're running nothing besides Firefox, but when you're running half a dozen apps at the same time and they all assume that they can take a decent chunk of mem it just kills the box.
Example settings:
http://kb.mozillazine.org/Browser.sessionhistory.max_total_viewers
http://kb.mozillazine.org/Browser.cache.memory.capacity
How can I make Firefox automatically configure all these settings with the assumption that I only have 512MB of memory instead of 4GB (or whatever number, but you get the idea).
I am running Ubuntu 12.04 with Firefox 14
Current workarounds:
Running a Windows XP virtual machine with 512MB of ram.
It actually runs smooth and takes less memory (including Windows) to run than having Firefox (or Chrome for that matter) run standalone.
Install the 32 bit version of Firefox
By installing the 32 bit version of firefox (apt-get install firefox:i386) the base memory usage is only about 50% of what it is with the 64 bit.
I'm using FastCGI via IIS7 to host a PHP application. For whatever reason downloads that are streamed via PHP (i.e. a script that outputs a file/bytes as a response) download perfectly fine on high-speed connections but on anything slower (even on DSL) quits at EXACTLY 4128760 bytes (~3.9MB) - which makes me think it's a configuration issue... We only started having this problem when we switched from Apache to IIS - this also points to a configuration problem, I think.
But if it's a configuration issue, why would it only affect slower connections? Does anyone know where (or how) I could possibly change a setting like this? I've tried changing the idleTimeout, executionTimeout, and activityTimeout values in my web.config but this hasn't helped at all. Any help or direction would be greatly appreciated. Thanks in advance.
Doing copy/paste in Visual Studio 2010 RTM on Windows 7, 3GB ram machine, I was unable to copy text because of an error:
Task Manager shows that devenv.exe is using a little more than 500MB. However I still have almost 1GB of free RAM available.
Is that somekind of memory cap? If so, is there a way to increase it? It may be a bug, but maybe there is a workaround?
Hi there,
I did add a new slow transport to my Postfix configuration but this doesn't looks to work Messages passes correctly in the slow transport but they aren't rate limited.
Currently, I'v been setting this up in my master.cf:
slow unix - - n - 1 smtp
-o default_destination_concurrency_limit=1
-o initial_destination_concurrency=1
-o smtp_destination_concurrency_limit=1
-o in_flow_delay=2s
-o syslog_name=slow
Any idea why my messages aren't rate limited?
Regards,
I often use ImageMagick's convert for *-PNG conversion, but when PDF has more than 50 pages — convert eats more that 3 Gib (!!!) of memory. I guess it first loads everything.
That's unacceptable. It should read PDF page by page, why the heck all of them at once!
Maybe there's a way to tune it somehow? Or any good alternatives?
I've achieved a lot on blocking attacks on GameServers but I'm stuck on something. I've blocked major requests of game-server which it aceepts in the form "\xff\xff\xff\xff" which can be followed by the actual queries like get status or get info to make something like "\xff\xff\xff\xff getstatus " but I see other queries if sent to the game-server will cause it to reply with a "disconnect" packet with the same rate as input so if the input rate is high then the high output of "disconnect" might give lag to the server. Hence I want to block all queries except the ones actual clients use which I suppose are in the form "\xff\xff\xff\xff" or .... so,
I tried using this rule :
-A INPUT -p udp -m udp -m u32 ! --u32 0x1c=0xffffffff -j ACCEPT
-A INPUT -p udp -m udp -m recent --set --name Total --rsource
-A INPUT -p udp -m udp -m recent --update --seconds 1 --hitcount 20 --name Total --rsource -j DROP
Now where the rule does accept the clients but it only blocks requests in the form "\xff\xff\xff\xff getstatus " ( by which GameServer replies with status ) and not just "getstatus " ( by which GameServer replies with disconnect packet ). So I suppose the accept rule is accepting the simple "string" as well. I actually want it to also block the non-(\xff) queries. So how do I modify the rule?
How to tell for sure if PAE (Physical Address Extensions) is enabled or not?
There is a SPECIFIC command I can use? I can read a registry value or something?
(Windows 7 32 bits)
I have found this on Internet but it doesn't answer my question:
If your server has hot-add memory ability (ability to add more memory
without shutting down the server !!) or data execution prevention
(DEP) is enabled then PAE will be enabled automatically !!
It only reformulate the question as "does my Qosmio x505 laptop support hot-add memory?"
I'm using Ubuntu 9.04 and the kernel 2.6 build-in NETEM tool to delay traffic.
After I apply:
tc qdisc add dev eth0 root netem delay 100ms
The upload bandwidth can't go further than 330KB/s and I have a 100Mbit connection.
How can I fix this so that my upload bandwidth is still full.
Thanks!