size

How to control Excel column size in Javascript?

爷,独闯天下 提交于 2020-01-06 21:41:12
问题 I have a function in Javascript that Exports data to a new Excel file. I'm using ActiveXObejct("Excel.Application") to work with Excel. After The Export of the data is done and I see the result, the data overflows the width of the columns. This is causing some of the data look cut in the table. For example if I have the data '1234567890' in a cell I would see '123456' or '######' in the cell. So how can I control the width of the columns to fit the data they contain? This is a code example of

Android: Change size of canvas / drawable in custom drawable

℡╲_俬逩灬. 提交于 2020-01-06 20:35:32
问题 I'm trying to implement a custom drawable which should have the shape of a speechbubble. Therefore I use two paths, one draws the rect and the other should draw the triangle for the bubble. My class looks like the following: public class SpeechBubbleView extends Drawable { private Paint mBubblePaint; private Paint mBubblePaint2; private Path mRectPath; private Path mBubblePath; public SpeechBubbleView() { } public void initPaint() { mBubblePaint = new Paint(Paint.ANTI_ALIAS_FLAG);

Android: Change size of canvas / drawable in custom drawable

荒凉一梦 提交于 2020-01-06 20:35:21
问题 I'm trying to implement a custom drawable which should have the shape of a speechbubble. Therefore I use two paths, one draws the rect and the other should draw the triangle for the bubble. My class looks like the following: public class SpeechBubbleView extends Drawable { private Paint mBubblePaint; private Paint mBubblePaint2; private Path mRectPath; private Path mBubblePath; public SpeechBubbleView() { } public void initPaint() { mBubblePaint = new Paint(Paint.ANTI_ALIAS_FLAG);

How to keep buttons, text and images relative to a screens/browsers size?

 ̄綄美尐妖づ 提交于 2020-01-06 16:18:30
问题 I'm making a small website and I'm very new to CSS but whenever I change the size of the webpage I'm working on nothing stays relative to the size of the screen it's being displayed on. For example, I have text on the right, if I increase my browser size by maximising the text on the right stays in place and is now in the centre of the browser. One of my images is moving with the webpage size being increased and decreased by dragging the corner of the browser. I use the same CSS code for that

How to keep buttons, text and images relative to a screens/browsers size?

你。 提交于 2020-01-06 16:17:05
问题 I'm making a small website and I'm very new to CSS but whenever I change the size of the webpage I'm working on nothing stays relative to the size of the screen it's being displayed on. For example, I have text on the right, if I increase my browser size by maximising the text on the right stays in place and is now in the centre of the browser. One of my images is moving with the webpage size being increased and decreased by dragging the corner of the browser. I use the same CSS code for that

Query Folder tree for Size and export to a log on a server

浪子不回头ぞ 提交于 2020-01-06 15:58:27
问题 Im looking to query the my documents folder for size, but also list the subfolders for size and export to a directory. I found some of this online and am trying to tweak to my needs but having issues with the export part, any help is GREATLY appreciated! : $startFolder = "C:\Users" $colItems = (Get-ChildItem $startFolder | Measure-Object -property length -sum) "$startFolder -- " + "{0:N2}" -f ($colItems.sum / 1MB) + " MB" add-content \\server\logs$\DirSize\log.log "$(gc env:computername)"

vhdl :: creating a type with a size parameter

时间秒杀一切 提交于 2020-01-06 06:13:08
问题 I was wondering is there was a way to defined a type with a size parameter in VHDL. e.g. type count_vector(size: Natural) is unsigned (size-1 downto 0); and then later on do something like variable int : count_vector(32) := (others => '0'); variable nibble : count_vector(4) := (others => '0'); Essentially, is there a way to defined an "array-like" type, or is that not allowed by syntax? I am currently trying to use generics for re-usability, but I would like to be able to take maximal

setPreviewSize does not work on Nexus 5 kitkat

一笑奈何 提交于 2020-01-05 13:12:37
问题 In my app i need to set the camera preview size at 640x480. I tried my code on different devices and different android versions (for example 2.3.6 on samsung galaxy S2, 4.0.3 on asus tf101g, 4.3 on galaxy nexus), and at the last on the new Nexus 5 with android kitkat(4.4). My code works perfectly in all devices, but doesn't work on Nexus 5. Why? In fact after this steps: int PREVIEW_WIDTH = 640; int PREVIEW_HEIGHT = 480; if(isSupportedSize(PREVIEW_WIDTH,PREVIEW_HEIGHT,mCamera)){ /

javascript change body ID (with css) dynamically with respect to browser window size

做~自己de王妃 提交于 2020-01-05 07:50:28
问题 Here is what I have, but it is not working: if(window.width() < 1000) document.getElementsByTagName('body')[0].id="be" else document.getElementsByTagName('body')[0].id="bd" ; Please tell me what I am writing wrong. Please don't tell other solutions, please just fix this code. Basically, I want to give a different ID to the BODY tag of a website if the browser window size is less than 1000px. 回答1: Here you go: document.body.id = window.innerWidth < 1000 ? 'be' : 'bd'; Place this code at the

Adjusting a function to show a specific size of image

与世无争的帅哥 提交于 2020-01-05 06:03:38
问题 With the code below now working can anyone suggest how I pull out the image from the collection at a larger size, this is only working for thumbnails at the moment. <?php if(!hook("EditorsPick")): /* ------------ Collections promoted to the home page ------------------- */ $home_collectionsx=get_home_page_promoted_collectionsx(16); foreach ($home_collectionsx as $home_collectionx) { ?> <div class="EditorsPick"> <div class="HomePanel"><div class="HomePanelINtopEditors"> <div class=