limit

How can I stop sorl thumbnail from breaking with very long filenames?

I've noticed that when working with SORL thumbnail, sometimes a user will upload an image with a very long filename, longer than the varfield in the database can hold. The name gets truncated in the database and the project gives errors whenever the image is requested. Is there a smart and safe way to have django automatically truncate ...

Is Http POST limitless?

I heard that POST has no limit in data size it can be send by it, is that true or is there some really high limit? ...

Mysql limit function doesn't seem to work for me...

Here is my query, select t1.dSyllabus_id,t1.dBatch,t1.dFilePathName, t2.dDegreeName,t3.dDepartmentAbbr from tbl_syllabus as t1 join tbl_degree_master as t2, tbl_department_master as t3 where t2.dDegree_id=t1.dDegree_id and t3.dDepartment_id=t1.dDepartment_id and t1.dCollege_id='1' and t1.dIsDelete='0' and i get applying limit , ...

A maximum character limit on the preg functions?

On my site I use output buffering to grab all the output and then run it through a process function before sending it out to the browser (I don't replace anything, just break it into more manageable pieces). In this particular case, there is a massive amount of output because it is listing out a label for every country in the database (a...

C++: Is there a way to limit access to certain methods to certain classes without exposing other private members?

I have a class with a protected method Zig::punt() and I only want it to be accessible to the class "Avocado". In C++, you'll normally do this using the "friend Avocado" specifier, but this will cause all of the other variables to become accessible to "Avocado" class; I don't want this because this breaks encapsulation. Is what I want i...

MySQL: Return grouped fields where the group is not empty, efficiently

In one statement I'm trying to group rows of one table by joining to another table. I want to only get grouped rows where their grouped result is not empty. Ex. Items and Categories SELECT Category.id FROM Item, Category WHERE Category.id = Item.categoryId GROUP BY Category.id HAVING COUNT(Item.id) > 0 The above query gives me the re...

whois lookup limits - how to work around daily quota/query limits

Hi there, I'm building a website that allows users to check the availability of international domain names, much like http://instantdomainsearch.com/ . My approach was to do a simple whois lookup on each request, but I'm now realizing that there are pretty harsh daily or hourly limits, e.g. http://www.dns.pl/english/whois.html#11 "Allow...

How to limit the wordpress tagcloud by date?

Hello, I've been searching for quite a while now to find a way to limit wordpress tags by date and order them by the amount of times they appeared in the selected timeframe. But I've been rather unsuccesful. What I'm trying to achieve is something like the trending topics on Twitter. But in this case, 'trending tags'. By default the ...

How to increase limit of graph in LINQPad?

Results shown in LINQPad are limited. If objects are deep nested, a red line is shown. I would like to increase a limit, so I can see more nested objects. Do you know how to do it? (I have not find that in options.) ...

Limit TCP requests per IP

Hello! I'm wondering how to limit the TCP requests per client (per specific IP) in Java. For example, I would like to allow a maximum of X requests per Y seconds for each client IP. I thought of using static Timer/TimerTask in combination with a HashSet of temporary restricted IPs. private static final Set<InetAddress> restrictedIPs = ...

Overcome VBA InputBox Character Limit

Hi, The current function I use to collect text InputBox can't accept more than 255 characters apparently, and I need to be able to collect more than that? Is there a parameter or different function I can use to increase this limit? ...

Limit MySQL requests

Context: A Java client-side application needs to access a server-side MySQL database. Need: Limit the possible number of requests to the database for each client (based on the client's IP). Question 1: Is it possible to do this just by changing the MySQL database settings? Question 2: Is it a good idea to allow access to the database ...

[Qt] Limits of the resource system

Hi, My Qt application depends on Oracle DLLs to start. As it's linked statically for the most part (except for these DLLs), I'd like to embed the DLLs and the EXE into a launcher that would behave like a fully static application (one exe, no DLLs to take along). The launcher would extract the included files in a temp directory, launc...

Is there a limit to the scroll length of a web page?

I have a client who is building a business application that will be used with IE8 only. One of the requirements is to display all of the data in a single page. I am anticipating this data table to be somewhere between 3K - 10K pixels in length. In the worst case scenarios, more than 25K pixels. What are the technical considerations whe...

How can you set a time limit for a PowerShell script to run for?

I want to set a time limit on a PowerShell (v2) script so it forcibly exits after that time limit has expired. I see in PHP they have commands like set_time_limit and max_execution_time where you can limit how long the script and even a function can execute for. With my script, a do/while loop that is looking at the time isn't appropri...

How to select random image of specific size using Django / Python?

I've been using this little snippet to select random images. However I would like to change it to select only images of a certain size. I'm running into trouble checking against image size. If I use get_image_dimensions() I need to use a conditional statement, which then requires that I allow exceptions. So, I guess I need some pointe...

XHR FF POST size limit

Hi, My XHR POST REQUEST is cut off. When I try to reload my page information is missing. Firebugs sends following message: ... Firebug request size limit has been reached by Firebug. ... My question is: What are my options? Would it work if I declare the content.length in the header? I added a line to my apache config file and res...

How do I implement rate limiting in an ASP.NET MVC site?

I'm building an ASP.NET MVC site where I want to limit how often authenticated users can use some functions of the site. Although I understand how rate-limiting works fundamentally, I can't visualize how to implement it programatically without creating a major code smell. Can you point me towards a simple yet powerful solution for appr...

PHP/MySQL Pagination

Hey, I am new to php and sql, and i have one tiny question about how to realize sql query , that can: Take for example 5 entries from DB, insert them on 1st page (1-5) Than take next 5 entries from same DB and insert them on another page (5-10) and so on :) Thank you ) ...

FB.api: Error 500, callback function not executed.

FB returns error 500 and says: (got this from the net tab in FireBug) FB.ApiServer._callbacks.f159e9f3f5816a({ "error": { "type": "Exception", "message": "(#341) Feed action request limit reached" }}); 3 questions: Have any one else encountered this ? How do I get the response/callback from the server if it...