size

Batch file that returns folder size

喜夏-厌秋 提交于 2019-12-03 13:29:29
I'm having space issues on my Vista machine and need to figure out what's taking up so much space. I would like to write a simple batch file that returns all folders under C: and the size of each folder. The dir command doesn't appear to return folder size. Unfortunately we don't have admin rights and can't install a third party application and we have other users in our group that also need this information. Mark Mayo I'd have a look at this thread for some clues as to how to achieve the directory size: Batch File To Display Directory Size Otherwise: dirsize: @echo off setLocal

Resizing a button

隐身守侯 提交于 2019-12-03 13:09:57
I have a "button" that I wish to use all throughout my site, but depending on where in the site the button is, I want it to display at different sizes. In my HTML I have tried (but its not working): <div class="button" width="60" height="100">This is a button</div> And the matching CSS: .button { background-color: #000000; color: #FFFFFF; float: right; padding: 10px; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; } I assumed that if each time I call this class I can just pass in a size and hey-presto!....but not.... By adding the width and height as I call the

Minimize python distribution size

ε祈祈猫儿з 提交于 2019-12-03 13:08:37
The hindrance we have to ship python is the large size of the standard library. Is there a minimal python distribution or an easy way to pick and choose what we want from the standard library? The platform is linux. If all you want is to get the minimum subset you need (rather than build an exe which would constrain you to Windows systems), use the standard library module modulefinder to list all modules your program requires (you'll get all dependencies, direct and indirect). Then you can zip all the relevant .pyo or .pyc files (depending on whether you run Python with or without the -O flag)

Get DIV width and height in javascript

a 夏天 提交于 2019-12-03 12:30:08
问题 I'm trying to get the div width and height as the user changes it and submit that number to another page. I can't seem to figure out how to get the width and height though. <script> $(function() { $( "#set div" ).draggable({ stack: "#set div", preventCollision: true, containment: $('#main_content'), stop: function(event, ui) { var mydiv = document.getElementById("set"); var pos_x = ui.offset.left; var pos_y = ui.offset.top; var width = mydiv.style.width; ----THIS DOESN'T WORK var height =

How to get correct rendering size when printing html elements

天大地大妈咪最大 提交于 2019-12-03 12:24:26
I have trouble understanding how to render html elements with correct size when printing them to A4 size paper. To illustrate my purpose, I simplified my code to a html page with a single red bordered table that should be 210mmx297mm (A4 paper size): <!DOCTYPE html> <html> <head> <style> @page { size: 210mm 297mm portrait; /* Set paper size to A4 (portrait) */ } html, body { width: 210mm; padding:0; margin: 0 auto; /* Left, right are auto for body to appear as centered on screen */ } html { background: rgb(204,204,204); /* gray client window for screen (so as to emphase the body as looking as

Oracle NUMBER(p) storage size?

佐手、 提交于 2019-12-03 12:08:06
问题 I've searched for it but i can't find a conclusive answer to my question... I need to know what is the storage size of a number(p) field in Oracle. Examples: NUMBER(1), NUMBER(3), NUMBER(8), NUMBER(10) etc... 回答1: The storage used depends on the actual numeric value, as well as the column precision and scale of the column. The Oracle 11gR2 concepts guide says: Oracle Database stores numeric data in variable-length format. Each value is stored in scientific notation, with 1 byte used to store

Is there any comparable alternative to Qt?

笑着哭i 提交于 2019-12-03 12:04:06
I love the idea of Qt, however I use it not only for open source but closed source development. This isn't a real problem because I just license under the LGPL and distribute the DLLs needed. I've run into a problem though unfortunately. The compiled statically linked executable is 4.36 MB. Not too shabby. The compiled dynamically linked executable is 250 KB, however I also must include almost 35 MB in DLL files with the installation. This is REALLY tacky and no matter how I look at it I cannot justify the size-use ratio. This, and I simply cannot afford a commercial license. Talk about price

App Icon on Device is too small

流过昼夜 提交于 2019-12-03 12:02:54
My problem is that the App Icon on my device looks way too small in comparison to the other apps. I read some solution on other questions, like this one Android App Icon size too small but this doesn't seems to be my problem. In the Android Studio you can make a right click on "res" where you can find new --> image asset where you can create such a icon. it creates icons for all the different sizes like mdpi, hdpi and so on. So i thougt that i might display the app icon correctly but it doesn't. can anybody help me? Try to use this . Its very useful, fast and free. And thats what I use. If

Unexpected complexity of common methods (size) in Java Collections Framework?

妖精的绣舞 提交于 2019-12-03 11:41:37
Recently, I've been surprised by the fact that some Java collections don't have constant time operation of method size(). While I learned that concurrent implementations of collections made some compromises as a tradeoff for gain in concurrency (size being O(n) in ConcurrentLinkedQueue, ConcurrentSkipListSet, LinkedTransferQueue, etc.) good news is that this is properly documented in API documentation. What concerned me is the performance of method size on views returned by some collections' methods. For example, TreeSet.tailSet returns a view of the portion of backing set whose elements are

When to use different integer types?

南笙酒味 提交于 2019-12-03 11:36:24
Programming languages (e.g. c, c++, and java) usually have several types for integer arithmetic: signed and unsigned types types of different size: short , int , long , long long types of guaranteed and non guaranteed (i.e.implementation dependent) size: e.g. int32_t vs int (and I know that int32_t is not part of the language) How would you summarize when one should use each of them? The default integral type ( int ) gets a "first among equals" preferential treatment in pretty much all languages. So we can use that as a default, if no reasons to prefer another type exist. Such reasons might be