FAQ Database Discussion Community


Auto width for nav li tags

html,css,size,width,nav
I am trying to make my nav menu li items width to auto size with the page. This means, if there a 4 li tags, the 4 tags should divide themselves to the screen width, and be equal. I tried using auto and 100% but nothing was working :( <div...

Spritekit SKNode size as a percentage

ios,swift,sprite-kit,size,sprite
I'm trying to add a touch zone to a scene in SpriteKit. It's transparent but needs to match a certain size depending on the size of the device (iPhone 5, 6 , 6+). I've found that if I want to make sure the touchable zone stays the same position and...

Make QMenu have equal to parent (QPushButton)

c++,qt,widget,size,width
I have a QMenu which is assigned to a QPushButton and pops up when the button is pressed. It looks like this: However, I'd like to have the width of the menu to be equal the width of the button because as it is now it looks ugly and it's...

getting the size of a window or panel in MFC C++

c++,visual-studio,mfc,size
How can I get the size of a "window" or a "panel" in MFC C++? is there a function or something?

Objective C - bold and change string text size for drawing text onto pdf

objective-c,xcode,pdf,size,bold
I've created a .xib file with a uiview solely for the pdf document that I have created. I've primarily followed this tutorial for code: http://www.raywenderlich.com/6818/how-to-create-a-pdf-with-quartz-2d-in-ios-5-tutorial-part-2 From the above, I can't edit labels (plain or attributed) from the interface builder as even after changing size, it doesn't apply when the app...

Use size in Python

python,function,numpy,methods,size
I created a ndarray array in python temp = np.array([1, 2, 3, 4]) To measure the length of this array, I can use temp.size or np.size(temp) both return 4. But I'm wondering what's the difference between the two expressions? Also, to get the lena image, I need to write >>>...

Swift, Xcode - Increasing the size of a UISwitch

xcode,swift,size,uiswitch
I am making my app 'universal' (used on iPhone and iPad) and I have found ways of increasing the size of everything except for UISwitches. Is there a way of doing so? Any help is greatly appreciated....

postman - how to check picture size

image,size,postman
I am trying to write some tests in Postman (I am running the Postman Jetpacks packaged app, if it does matter) and I am facing some inconsistencies. The scope of my test is to verify the size (width and height) of a set of images against some predefined values. The...

android admob size on dimensions error: A 'type' attribute is required for

android,styles,size,admob,dimensions
I have a layout and the attribute: ads:adSize="LARGE_BANNER" I want to put it with ads:adSize="@dim... dim name" but it gives me error for example: FULL_BANNER it says something like full banner doesn't exist and it doesn't compile. I tried it now on styles but it doesn't work too: <item name="ads:adSize">LEADERBOARD</item>...

Theare aren't different drawable folders on Android Studio

android,image,size,drawable
I m trying to integrate different image size in my app but the problem is that in Android Studio there are not the drawable-Idpi,mdpi,hdpi,xhdpi folders. I ve checked already other threads and the answers were that I just need to skip into the Project view instead of the Android one....

How to create an array whose size is equal to size of a file?

java,arrays,file,size
How do I create an array whose size is equal to the size of a file? The file name is passed as argument to main. public static void main(String[] args){ File text = new File(args[0]); //file input Scanner input = null; try { input = new Scanner(text); } catch (FileNotFoundException...

How to set a max height for UIImageView regardless of final Image size

ios,swift,uiimageview,size
I have an issue where I have a UIImageView with mode as "Aspect Fill". I have set dimensions for my UIImageView, but I've noticed at runtime, the height of the UIImageView tends to change based on the final image rendered after it's been filled. Is there a way to set...

How many bytes are typically loaded into memory when using file.seek() in python?

python,file,hash,size,seek
I'm currently using a 4 Giga-byte sized file as Open-addressing Hash table. In order to read each offset I'm using file.seek() function for a 1-byte (char) data. I want to optimize the size of the file using buckets (saving up space on offsets that have no data), for the optimization...

FBO lwjgl bigger than Screen Size - What I'm doing wrong?

size,lwjgl,fbo
I need your help again. I wanna use Frame Buffer Object bigger than the Screen size. When I do it as below FBO size 1024 x 1024 is cut off from the top in resolution 1024 x 768. I couldn't find the solution on my own - that's why I'm...

shorter notation for size_type in std::vectors

c++,c++11,size
When iterating over a std::vector, I've always declared the index variable to be of size_type as in std::vector<someReallyLengthy<TypeWith,SubTypes>> a(5); for (std::vector<someReallyLengthy<TypeWith,SubTypes>>::size_type k = 0; k < a.size(); k++) { // do something with a[k] } I'm wondering if in C++11 (or later) there's a shorthand-notation for the size_type here. (auto...

Sort files in a folder and its subfolders by type and size

bash,file,size,aggregate,file-extension
I have to count a huge number of files in a directory and subdirectories recursively by extension and get the total size for each extension. I do not want to see individual files with their type and size next to them. For example, this would be one potential output: JPEG...

Swift IOS Spritekit Scaling Sprite Size Based on Device Size

ios,xcode,swift,size,scaling
For the past couple of weeks I have been dabbling with SpriteKit, Xcode, and Swift and despite doing a lot of research I have yet to find out the best way to manage sprite size between devices. In my game I have found a somewhat round-about way of handling sprite...

1MiB = 1024KiB = 2^10. Nonetheless, why not use just 1000 byte instead 1024 to calculate size? [closed]

memory,binary,size,cpu
1024 = 2 to the power 10. Computers use binary system where the base is 2 (0 and 1). Humans use decimal system where the base is 10. So if I have 1 byte which contains 8 bit in modern computers I can represent up to 256 different states, possibilities,...

microsoft azure sql v12 in-memory table max size

size,sql-azure,in-memory
What is the maximum table size of in-memory tables on microsoft azure sql (v12) databases? For the different service tiers?

Android ImageView Image too big

android,image,size,android-imageview
this is my Situation: FrameLayout with/height 160dp (The View of a Toast) ImageView in the FrameLayout that should show an image on 140dp So i thought the FrameLayout with 160dp is 1 inch (2,54 cm). Correct? My image in Illustrator is 0.87 inch (2,2 cm) and i exported it with...

CSS transitions - rotateX is just changing the size of my element

css,rotation,size,2d,transitions
I have a problem with CSS transitions. I have two buttons on my website (here) which are supposed to be pushed back on the bottom of it when the mouse is holding down on it just like on the Windows 8 start menu. Instead, what's happening is is that it...

UICollectionViewCell has a not the same size on iOS7 and iOS 8

ios,iphone,uicollectionview,size,uicollectionviewcell
I'm building a UICollectionView where each cell has size of 159x159. When the app runs on ios8 it gives (whatever the simulator i choose : iPhone 4S, 5, 5S, 6, 6 Plus) : But it has not the same size on iOS7 : WTF ? Note that even my SearchBar...

“Not enough clusters for a 16 bit FAT”, but I'm above minimum size. Why?

linux,size,fat16
I'm trying to make a FAT16 filesystem on my Ubuntu. So, I first create the file with dd if=/dev/zero of=Fat16.bin bs=1024 count=8192. This will create a 8MB file full of zeros. Then, I format this file to be a FAT16 filesystem by issuing the following command: mkfs.vfat -f2 -n FAT16...

Which parameter can determine the object size in RADOS of Ceph

object,size,ceph
When storing files, Ceph will cut files into several objects while most of which have the same size except the last one(the file size may not be a multiple of the object size). I know from the official website of Ceph that the object size is not fixed but can...

How to get the correct Image height and width

c#,image,height,size,width
I am trying to calculate the size of a Rectangle using the Height and Width of an image in my project. The image (icon) is 20px W and 16px H. When I load it in from a ImageList and look at the image size, it shows that it is 16px...

Powershell scrip to list Zip files in a Directory with their Size

list,powershell,directory,zip,size
I have came across a way to list Zip content in a Directory - I would like to include the file size information. [Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') foreach($sourceFile in (Get-ChildItem -filter '*.zip')) { [IO.Compression.ZipFile]::OpenRead($sourceFile.FullName).Entries.FullName | %{ "$sourcefile`:$_" } } Could someone help me to add size information - current display format is: zipName:zipContentName...

Questuion about size after compiling

cmake,size
I have a set of files. Compiled with gcc49 under FreeBSD. The default makefile, created by me. Well, that's not the problem. Ok, I decided to compile with CMake. When compiling with default makefiles(gcc49) output target size is : 5 MB When compiling with cmake(gcc49, same flags as in makefile...

Font size in Jtextpane looks smaller then in other appliactions

java,fonts,size,jtextpane,jtextcomponent
I have JTextPane and if i write something into it with e.g. font size 12 then it looks smaller than text in e.g. MS Word with same size and same font family. I've searched on the internet and I found that this is not just my specific problem. But I...

Detecting size of element before inserting it into DOM

javascript,dom,size,web-frontend
I'm writing (using pure JavaScript = no JQuery) a custom control which is a container that collapses it's contents when they span multiple lines and show only the first one. When you click a button in the control (down arrow), the container expands all of it's content. If content spans...

About choose buffer size in HttpWebRequest GetResponseStream

c#,httpwebrequest,size,buffer
var h = (HttpWebRequest)WebRequest.Create(url); using (var hr = (HttpWebResponse)(await h.GetResponseAsync())) { using (var s = hr.GetResponseStream()) { using (var f = new FileStream(saveTo, FileMode.Create, FileAccess.Write, FileShare.None)) { int bytesCount = 0; byte[] buf = new byte[2048]; //<------------------------------ while ((bytesCount = await s.ReadAsync(buf, 0, buf.Length)) > 0) { await f.WriteAsync(buf, 0,...

Bootstrap Column Sizes

css,twitter-bootstrap,size
I need to use 1170px for content however i'm worried about column sizes and gutter widths. I Have three big columns with 300px and one small 150px column. Gutter width is 40px. I'm creating this on PSD and wanted to learn if it is okay for Bootstrap.

JTextPane last line with smaller font size

java,size,line,font-size,jtextpane
I have issue with JTextPane. If I write something to JTextPane on last line, the last line has another size than other previous lines. After pressing ENTER row moves a little up. I figured out, that this behavior is just in case when font size is smaller then 12. Last...

can't clear cache Symfony

symfony2,caching,delete,size
My project symfony some to be more than 240 Mb (because of the cache). When I try to delete them, they show to me this message in console: [Symfony\Component\Filesystem\Exception\IOException] Failed to remove directory "C:\wamp\www\FirstProject\Symfony\app\cache\dev_ old\profiler\82". cache:clear [--no-warmup] [--no-optional-warmers] ...

OpenModelica: the file “_info.xml” created after simulation is too big. How reduce it?

xml,size,openmodelica
I created a tool using ".xml" and ".exe" files generated by OpenModelica after a simulation (_init.xml, _info.xml and .exe). This tool has an userfriendly Excel interface to manage this model already compiled. My problem is the size of the files generated, especially the "_info.xml" which is too big (120 Mo)....

How if I set hdfs blocksize to 1 GB?

hadoop,size,containers,block,hdfs
I want to ask. How if I set the hdfs blocksize to 1 GB, and I'll upload file with size almost 1 GB. Would it become faster to process mapreduce? I think that with larger block size, the container request to resource manager (map task) will fewer than the default....

Whit is the stack size on Cygwin/Windows 64bit?

c,stack,size
i tried to search on the net but i didn't find anything about it. Only how to increase stack size and similar. I want to know the stack size on cygwin 64 bit for windows. I'm programming with C on netbeans and i tried to make a stack overflow to...

Android: Can't make small fontsize on programmatic textviews

android,textview,size
I'm using the following method which programatically creates a linearlayout and populates it with two textviews, adds text and then turns it into a drawable that I later use a layer above a shape. However, I've noticed that I can't create a small fontsize - it seems stuck at a...

Increase the maximum size of char array

c,arrays,char,size,max
I have written some code in C by taking the maximum size of char array as 100. It worked well. But when I increase the maximum size of char array to 10000 it gives me segmentation fault(as it has exceeded its limit). Can someone tell me how can I increase...

C++ Increase int size limit

c++,int,size,max
Is there a way in C++ to increase the limit on integers? I want to work with a 13 digit number e.g. 4823423658586. The complier does not allow this.

Strange results while checking the memory layout of a c program using size command in linux

c,linux,size
When i check the memory layout of following c program, using command size program_name in linux, i get data = 552, bss = 8. #include <stdio.h> int main() { return 0; } Now, after adding a uninitialized variable, i still get the same result, data = 552, bss = 8....

Why is my data and bss segment memory usage zero?

c,size,ram,msp430,object-files
I have this code which I compiled for MSP430 platform using msp430-gcc. #include<stdio.h> #include<stdint.h> // Preprocessor definitions #define ROR(x,r) ((x>>r) | (x << (64-r))) #define ROL(x,r) ((x << r) | (x >> (64-r))) #define R(x,y,k) (x = ROR(x,8), x+=y, x^=k, y = ROL(y,3), y^=x) void encrypt(uint64_t* , uint64_t*, uint64_t*); void...

Array size not passing to function [duplicate]

c++,arrays,size
This question already has an answer here: How do I find the length of an array? 13 answers When passing an array to a function and using sizeof() in the fuction, it just returns the size of a single element (4). Is there a way to fix this? And...

#{bean.list.size} causes java.lang.NumberFormatException: For input string: “size”

list,jsf,size,el
Here is my xhtml , i have problem with rendered attribute. I get an error about "size" of my list. I want to render the datatable only if some data found.Couldnt find how to fix it.Thank you for your time. <ui:composition template="/pages/admin/admin.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"> <ui:define name="center"> <h:form...

Java Arraylist size

java,arraylist,size
I'm having an issue understanding the output of size() for a "nested" ArrayList: ArrayList<ArrayList<ArrayList<ArrayList<String>>>> myEmpls = new ArrayList<>(); ArrayList<ArrayList<ArrayList<String>>> dummy2 = new ArrayList<>(); ArrayList<ArrayList<String>> dummy = new ArrayList<>(); for (int x = 0; x < 4; x++) { myEmpls.add(dummy2); } System.out.println(myEmpls.size()); // returns 4 as expected System.out.println(myEmpls.get(0).size());...

Random double free or invalid next_size

c,malloc,size,free
So I'm having a problem right now with my program (well, more with the shared library I've written). I'm trying to implement a TCP/IP stack, and am currently trying to implement ARP. ARP works, both resolution and replies, however my ARP Server will randomly crash (sometimes running for 10-20min, being...

Altering the size of an existing array with a method

java,arrays,methods,size
If a method is passed a reference to an array, is there any way to alter the size of that array so that the array reference that was passed in will refer to the new, larger array? I don't entirely understand the question. I think it means that I will...

Exact size of Application is size or sizeHint

qt,size,qwidget,sizehint
I have set the, setGeometry(0,0,1280,760); setMaximumSize(1280,760); setMinimumSize(1280,760); Now when I am printing size and sizeHint, I am getting size : QSize(1280, 760) sizeHint : QSize(970, 752) Which is exact size of my application, How can I change the size and size exactly to 1280X760 ?...

Dont know why I have this error Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0

java,arrays,eclipse,size
This is my code import java.util.Scanner; public class Input { static class General_Inputs{ static int Num_Of_Ppes; static int Num_Of_States; static int Num_Of_Analysis_Years; static int Number_Decision_Variables; static int Num_objectives; static int Num_Constraints; static int[] Num_Alt_Decision_variable=new int[Number_Decision_Variables]; } public static double[][] Get_Inputs(){ Scanner State_Vector=new Scanner(System.in); System.out.println("Enter the number of Decision_Variables");...

Calculate size of object such that it include size of all its children and (grand children chain)

.net,size,windbg,sos,sosex
Let's say class A contains instances of B and C. B contains D, E and F whereas C contains instances of G, H and I. So when calculating the size of A, I would like to include size of all of its and its child items. When I use !dumpheap...

How to change height of JComboBox?

java,swing,combobox,size,jcombobox
I have a class extends JFrame and want to add JComboBox on a panel. When I added this, the JComboBox size is very large, I want to change size, but don't know how to do this. .setSize() and .setPrefferedSize() not worked. JFrame layout must be GridLayout. public CountryController() { setLayout(new...

How to set the component's size inside a GridBagLayout

java,size,gridbaglayout
As I've read, it's really hard to treat to resize components inside GridLayout and GrigBagLayout. In my case, I have a GridBagLayout with 2 columns and 2 rows. In the first row there are 2 labels and in the second row there are 2 components (type Tablero) which extend JTable....

Libgdx sprite size matching screen size

java,libgdx,size,screen,scaling
So i have a created a background which is 1920 x 1080 in size. And i have a window that is 1280 x 720 (will not always be this size) Now when i render the sprite using this code: @Override public void render(float delta) { Gdx.gl20.glClearColor(0.2F, 0.5F, 1F, 1F);...

strange behaviour while iterating through c++ map

c++,loops,dictionary,size
I have the following program which finds the frequency of the numbers. map<int,int> mp; vector<int> x(4); x[0] = x[2] = x[3] = 6; x[1] = 8; for(int i=0;i<x.size();++i) mp[x[i]]++; cout<<"size:"<<mp.size()<<endl; //Prints 2 as expected for(int i=0;i<mp.size();++i) //iterates from 0->8 inclusive cout<<i<<":"<<mp[i]<<endl; The output is as follows: size:2 0:0 1:0 2:0...

How properly overload size() method/operator in Matlab

matlab,size,overloading,operator-keyword
I have some class with the property val classdef SomeClass < handle properties val; end methods function sz = size(this,varargin) sz = builtin('size',this.val,varargin{:}); end; end end supposedly it should be the proper way to overload this method to get the proper sizes of object of class SomeClass if it is...

Way too many images, app size too big

ios,xcode,image,memory,size
I've already checked out this question (App size is too big because of too many images) I used tinypng.com like it suggested for my images, and yet my files are still way too big, and with so many of them, my app is looking at possible gigs in size. Essentially...

How do i construct string from byte array in D

string,size,d,zero-copy
I have array of bytes wich is defined as pointer + size: size_t size; // size in bytes void *data; // NOT zero-terminated string How do I construct, preferrably zero-copy, 'string' from it? ...

Force QMainWindow to fit exact size of shown Text

qt,size,qwidget,qmainwindow
I try to build a frameless window with a single text label with changing text depending on chosen language and a boarder around it. This window should always have the smallest possible size. Here's the simple code without any configurations I tried so far. QMainWindow* clientIDDisplay = new QMainWindow(0, Qt::Window...

SKPhysicsBody “Extra argument 'size' in call”

swift,size,skphysicsbody
What I'm trying to achieve is to make a shape of the object(physical body) exactly as a texture, so that only the texture (and not the transparent layer) would be clickable in the future. let fireLayer = SKSpriteNode(imageNamed: fireImage) fireLayer.anchorPoint = CGPointMake(1, 0) fireLayer.position = CGPointMake(size.width, 0) fireLayer.zPosition = Layer.Z4st...

using pcolor to plot 2d array with different cell size in matlab

matlab,multidimensional-array,plot,size,cell
i have a domain of interest and this domain will be converted onto finite difference grid with cells (rows,columns) a 2-D array (cond) contains the conductivity values assigned to each cell in the desired domain when i use the pcolor command in matlab pcolor(cond); shading flat the output figure consider...

How to retrieve specific dimensions using size() function in Matlab

matlab,multidimensional-array,indexing,size
Here is an example matrix A of Dimensions 6x3x8x5 Now if i use size(A), i get all the dimensions as a row vector ans = [6 3 8 5] If i want to get specific dimension(singular), i could use something like size(A,1) or size(A,3) etc.. What if i want specified...

Angular : get Dimension from Base64 Image

angularjs,image,size,base64,ionic
I'm developping an mobile application with cordova and ionic and I would like to get the size of the image contained in a string without showing it (no img element in html). I have 2 problem, I've found a solution but with onload event and I don't use jQuery. Is...

different html view by browser size(for mobile and for large display)

html,mobile,size
I want different templates in one html categorized by browser size. not the same contents but with some additional or omitted information. (like mobile-only browser) ex) computer: no, category, title, user, date, hits; // mobile: title, user, hits; so I think @media in css is not the answer in this...

how to change size(out) = [m n] in matlab

matlab,size,labels
This is a continuation of my previous problem, so now i want to know how to change array size and how to use size(out) = [m n]. so basically if you have 10x10 array and you want to plot column 9 vs. column 10 in scatter plot, and you want...

How to automatically adjust the TextView height according to the size of the String?

android,textview,size
I want to know how to automatically adjust the size of the TextView according to the length of the String. I am getting some data from another Intent as a String and storing it in a TextView. If I leave it small, the whole text won't fit and only half...

size of a table, size() returns 0

java,selenium,size
Hi I'm trying to get the number of rows of a table in this way: int rows = findElements(By.xpath("//div[@class='communications-table ohim-table dataTable']/tbody/tr")).size(); But it returns 0 rows. I do have rows in my table, any idea? Thanks. HTML: <div class="box-content detailsBoxBody"> <div id="trademarksCommunicationsTable"> <div id="DataTables_Table_5_wrapper" class="dataTables_wrapper" role="grid"> <div class="datatables-top full-width"> <div...

Is possible to set hadoop blocksize 24 MB?

hadoop,size,hdfs,block,megabyte
I just want to ask your opinion about HDFS block size. So I set HDFS block size to 24 MB and it's can run normally. I remember that 24 MB is not an exponential number (multiplication of 2) for the usual size on computer. So I want to ask all...

Specifing the maximum string length to scanf dynamically in C (like “%*s” in printf)

c,io,size,buffer,scanf
I can specify the maximum amount of characters for scanf to read to a buffer using this technique: char buffer[64]; /* Read one line of text to buffer. */ scanf("%63[^\n]", buffer); But what if we do not know the buffer length when we write the code? What if it is...

python BaseHTTPServer file upload with maxfile-size

python,file,size,max,basehttpserver
If the file is to big i dont want to download it to my server and then delete it, I just want to tell the user that the file is to big. this code almost accomplish this. if the file is smaller than 10 mb it get upload and the...

size of inner elements of cells

matlab,size,cell-array
I'm reading some data with their attribute (say A in which first row is ids and second row is their attribute value) . I'd like to place such data in a cell where the first column are the unique ids and second row their attribute. whenever there's duplicate values for...

Determine addresses and page table size

operating-system,size,memory-address,virtual-address-space,page-tables
I know that this question has been asked many times but I still feel I struggle with it. Given: physical memory: 2^20 32-bit system page size: 2^10 I need to determine what a physical and virtual addresses would look like as well as calculate the page table size. I am...

Swift - Checking size of UIImageView

ios,swift,uiimageview,size
I am trying to print a line to the debugger/console to show the dimensions of the UIImageView object I have. I was trying to use the following code but get an error saying UIImageView doesn't have a member named 'size'. This was my code: @IBOutlet var Image: UIImageView! override func...

Get dircetory size ssh2 php

php,size,ssh2-exec
This may be a very stupid question and i am learning so bare with me. I need to work out how i can get a directory size of a folder. Code that does work is taken from php.net $SSH_CONNECTION= ssh2_connect('xx.xxx.xx.xx', xx); ssh2_auth_password($SSH_CONNECTION, 'xxxxxxx', 'xxxxxxxxxxxxx'); function scanFilesystem($dir) { $tempArray = array();...

How to find integer array size in java

java,arrays,printing,size,range
below is my code which is throwing error: Cannot invoke size() on the array type int[] Code: public class Example{ int[] array={1,99,10000,84849,111,212,314,21,442,455,244,554,22,22,211}; public void Printrange(){ for (int i=0;i<array.size();i++){ if(array[i]>100 && array[i]<500) { System.out.println("numbers with in range ":+array[i]); } } Even i tried with array.length() it also throwing the same error....

How would I fix everything on my webpage to appear the same size on diffrerent sized screens? [closed]

html,css,html5,position,size
I'm trying to create a webpage in HTML5 using Notepad++. When I open the page on my laptop it all fits the page well, I have thin red bars as images going across the page, which all fit the screen perfect. However when I open the image on my computer...

Why BSS segment is “16” by default?

c,linux,size,storage-class-specifier
As per my knowledge, segmentation for c program is: High address |---------------------------| |env/cmd line args vars | |---------------------------| | stack segment |--> uninitialized auto vars |---------------------------| |---------------------------| |---------------------------| | heap segment |--> dynamic allocated memory |---------------------------| | BSS segment |--> uninitialized static/global vars |---------------------------| | data segment |--> initialized static/global...

How to stop element moving when its border-radius changes?

html,css,position,size,border
So I've just got this small extract of code which I want to go ahead and add some more effects too. At the moment though, the problem I'm having is that when the border-radius changes (from 0 to 5px), then the image jumps down and to the right, so not...

jQuery length property: Which element's length will be returned if there are more than one matched elements?

jquery,size,parent,children,content-length
In the statement var length = $(this).parent().parent().parent().children('tr').length; where $(this).parent().parent().parent() part gives us a <tbody> element, which happens to have more than one tr children. 1. So which tr among those children of tbody returned by $(this).parent().parent().parent() is this particular tr whose length is going to be returned by the .length...

prolog need to compute the tree size

prolog,size,nodes
I need to get the size of a tree using: size(Tree,Size) What I have so far is wrong, please advise! size(empty, Size). size(tree(L, _, R), Size) :- size(L, Left_Size), size(R, Right_Size), Size is Left_Size + Right_Size + 1. Output should produce: ?- size(node(1,2),X). X = 2. ?- size(node(1,[2,3,4]),X). X =...

Full width header won't work

html,css,background,header,size
I am trying to make a full width (100%) header in black on the top of my page, the problem is that there is a border around it, which isn't blackwhat am I doing wrong? This is my code (html): <head> <link rel="stylesheet" type="text/css" href="mainColorTest.css" /> <title>Home Color Test</title> <div...

Define size of vector of vector of vector at the time of declaration

c++,vector,initialization,size
Recently i had a chance to use vector<vector<vector<Some_Struct>>> threeFoldVec, We had to push this into a list. The size threeFoldVec is known at the time of initialization. I am aware of how to define size of 2_fold vector at the time of declaration. std::vector<std::vector<SomeStruct>> Layer_1(10, std::vector<SomeStruct>(5)); But when it comes...

Reading size of a gui element before it is drawn to the screen in Android

android,user-interface,size
I am developing for android and I need to read the final width and height of a gui element before it is drawn to the screen. Is there a function for that?

WEB increasing the space between letters

javascript,html,css,size
I may be barking up the wrong tree here but im looking for a solution to increase the width in a space for example the space bar on your keyboard or in html terms " ". I have tried a few ideas I had like adding 2 " " as well as...

File Size Limit reached in PhpMyAdmin with 34KB file

php,mysql,file,phpmyadmin,size
I looked for people with a similar error but I didn't find anyone. Basically, I want to import data from my database into a database on a test server, both fully running with PhpMyAdmin. I have exported my data from the full database and then tried importing it on the...

Size of data type Geography(Point, 4326) in PostGIS?

size,postgis,point,geography
Its constructor takes a POINT and a SRID. Since POINT is two doubles (8 bytes each), SRID is an integer (4 bytes), can one assume that the full structure takes 8*2+4=20 bytes of storage space?