w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to install VMware Tools on VMware Workstation 7.1.6 on host machine
vmware tools came up with workstation only, you can right click on VM menu, you can install, Generally it will not automatically install the tools, it will mount an iso like cd rom to the vm, you need to mount it and extract the tar file, then run the vmware-tools-install.pl file

Categories : Linux

Host-Only Network not working on VMware Workstation
Host-only networking in VMware Workstation creates a network between all virtual machines (whose network type is set to host-only as well) and the host computer computer (in your case, your Windows 8 machine). This link provides more information on the topic of host-only networking. If you're looking to provide internet connectivity, you can use either NAT Networking, or Bridged Networking. NAT Networking will provide your GOS (Guest Operating System) with an IP that is NAT'ed from your Host. Bridged networking will allow your GOS to obtain an IP from your physical network (provided there's a DHCP -- usually your wired (or wireless) router serves as the DHCP server in most home networks). Hope that helps!

Categories : Linux

If my screen Size is 480x800 what screen size should i choose in photoshop for android UI design
For this purpose exacly they created this page. The problem here is not only the devices resolutions, but also those here: Supporting Different Screen Sizes Supporting Different Densities You will also have to take a look here and here. Designing an App is not a simple matter if you would like it to look "the same" on different devices, those are devises with different screen sizes and/or densities. EDIT: You may also like to take a look at this like here, which explains, as stated on the title "Understanding Density Independence in Android". Cheers

Categories : Android

How to use media Queries for android devices with android version 2.2.1 and 2.3.5 and their screen size of 240 * 320 and screen size of 480 * 800?
These are few possiblities why your media query is not working. 1.When you used media query css did you remove your normal css? or you kept both ? if you want to have both, then you need to keep them appropriately else normal css will over write the one inside mediaquery. For example if your css is like this ... @media only screen and (max-width: 241px) { .container { width:180px; height:150px; margin-left:10px; margin-right:10px; background-color:#CCCCCC; border-radius:20px; box-shadow: 10px 10px 5px #888888; padding:10px; ; } } .container { width:180px; height:150px; margin-left:10px; margin-right:10px; background-color:#CCCCCC; border-radius:20px; box-shadow: 10px 10px 5px #888888; padding:10px; ; } The .container style which is outside the media query will overw

Categories : Android

QT getting the screen resolution without the extended monitor
You pretty much had it, just give the screen ID of your main monitor to the geometry() call. QDesktopWidget widget; QRect mainScreenSize = widget.availableGeometry(widget.primaryScreen()); // or screenGeometry(), depending on your needs

Categories : Qt

Event for exiting the screen monitor (with WPF)
You could handle the Window's MouseMove event and check the mouse's position. private void Window_MouseMove(object sender, MouseEventArgs e) { //PrimaryScreenWidth - 1 to account for the cursor itself if (e.GetPosition(this).X >= SystemParameters.PrimaryScreenWidth - 1 || e.GetPosition(this).X <= 1) MessageBox.Show("Edge hit"); } If you're running multiple monitors, you could also handle the MouseLeave event to handle the case where the mouse has moved to the second monitor. private void Window_MouseLeave(object sender, MouseEventArgs e) { MessageBox.Show("Edge hit"); }

Categories : C#

How to obtain physical size of monitor with VB(A)
#If Win64 Then Declare PtrSafe Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long #Else Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long #End If Const SM_CXSCREEN As Long = 0 Const SM_CYSCREEN As Long = 1 Sub Get_Screen_Metrics() lx = GetSystemMetrics(SM_CXSCREEN) ly = GetSystemMetrics(SM_CYSCREEN) '-------------------------------------------------------- ' Coded by Shasur for http://vbadud.blogspot.com 'http://vbadud.blogspot.co.uk/2007/05/visual-basic-get-screen-area.html '-------------------------------------------------------- MsgBox "The Screen Area is " & lx & " x " & ly & " pixels" End Sub see this link for available metrics http://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx

Categories : Vba

Is it possible to have a table with a width of 100% but stop at 1920px? Due to monitor size?
You can use max-width: 1920px; to prevent an element from extending beyond that width. There is probably a nicer way to do this with media queries, perhaps establishing if the device width is over 1920px and then setting the table width to 1920 explicitly. EDIT: With media queries you could use this: @media only screen and (min-width : 1920px) { table { width: 1920px; } } It's worth noting that min-width of 1920 resolution may be a little smaller than 1920, probably 1880 or something along those lines.

Categories : HTML

aligning linear layout half the size of screen in exact center of screen horizontally
Your OuterlinLayout LinearLayout should have android:orientation="horizontal" instead of vertical and all its children should have android:layout_width="0dp"

Categories : Android

How do I change the size of a kendo popup edit screen and have all of the items in it resize to the new size?
Can you just use regular CSS? Like: .k-edit-form-container .k-textbox, .k-edit-form-container .k-widget { width: 600px; } You just have to make the selectors be a bit more specific that Kendo's built-in ones.

Categories : Kendo Ui

Changing website layout based on screen size and browser window size in Rails
You need to use CSS to do this, it has nothing to do with Rails. See http://www.1stwebdesigner.com/css/responsive-website-tutorial/

Categories : CSS

asp.net mvc sitemap that adjusts for screen size so menus are not off the screen
The menu template can be edited to get whatever HTML output you want, and then you can use CSS to control the visual aspect. It's no different than modifying any other MVC view. You can edit the template by modifying the /Views/Shared/DisplayTemplates/MenuHelperModel.cshtml file (or MenuHelperModel.aspx if you are not using razor). If you don't have the file in your project, you can get the contents of the Razor and ASPX files and add them to your project manually. Also, it looks like you have a very old version - here is the upgrade documentation to version 4.0.

Categories : Asp Net Mvc

finding screen size and diagonal to adjust the size of objects
I don't know why you want this. I hope it works out: It seems that diagonalInches = Math.sqrt( (widthInInches*widthInInches) + (heightInInches * heightInInches) ) where widthInInches = width/ppi; and heightInInches = height/ppi; Also, why are you getting realppi by dividing 306 by ppi? Is displayMetrics.densityDpi not returning an accurate ppi?! I just tested it and it seems to be working properly for me. I hope you have better fortune soon. Hang in there!

Categories : Android

How to adjust table size to correspond to the media screen size?
There are loads of ways to handle tables on smaller screens. What a lot of sites do is put them in a div and assign the div a width of 100% and overflow:auto; Then they set a minimum width for the table itself so that the integrity of the data is maintained without bastardising the table. All the user does is scroll across when they reach a table that is too big for their screen, but because its contained in a 100% width div with overflow, it won't break the flow of the page. That's just one way of doing it, and is the easiest to markup. Hope that helps.

Categories : HTML

Dialog fills screen size. I can't make it be a fixed size
Ok. Solved it. I've added a parent layout on dialog_users_to_invite.xml Now it is: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ScrollView android:id="@+id/scrollView1" android:layout_width="wrap_content" android:layout_height="100dp" > <LinearLayout android:id="@+id/containerUsersToInvite" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:layout_marginRight="10dp" android:layout_marginLeft="15dp"> </LinearLayout> </ScrollView> Working perfectly. Everything on wrap_content except the ScrollView, which is 100dp.

Categories : Android

How to Increase the bitmap image size according to the phone screen size?
Bitmap _bitmapPreScale = BitmapFactory.decodeStream(buf); int oldWidth = _bitmapPreScale.getWidth(); int oldHeight = _bitmapPreScale.getHeight(); int newWidth = 2592; int newHeight = 1936; float scaleWidth = ((float) newWidth) / oldWidth; float scaleHeight = ((float) newHeight) / oldHeight; This might be a help and you can visit the following post its a good one. Save bitmap to location you will get good idea from here.

Categories : Android

What is changelog.Debian.gz file during debian packaging?
When packing in debian, inside your project directory there's a directory named debian, which is where we keep files regarding instructions of how to pack your software, as well as relations with other packages, etc. We can call it you package control files. Among them, there's one called changelog, which looks like this: mypackage (version-revision) unstable; urgency=low * Changelog messages -- Your Name <your@email.com> Mon, 13 Aug 2012 14:09:01 -0300 (...) This file is used by the packaging software (dpkg-buildpackage) to know the name and version of your package. It also has info like the mantainer, changelogs, etc. After you build the package and install it, this file will be located at /usr/share/doc/mypackage/changelog.Debian.gz compressed in gzip format. You can che

Categories : C++

Adjust drawable size according to screen size
First, get the density scale: DisplayMetrics dm = new DisplayMetrics(); mainContext.getWindowManager().getDefaultDisplay().getMetrics(dm); float densityScale = dm.density; Then scale the required size by the densityScale value before using: float scaledWidth = 35 * densityScale; float scaledHeight = 35 * densityScale; Drawable dr = getResources().getDrawable(R.drawable.image); Bitmap bitmap = ((BitmapDrawable) dr).getBitmap(); Drawable d = new BitmapDrawable(this.getResources(),Bitmap.createScaledBitmap(bitmap, scaledWidth, scaledHeight, true)); textView.setCompoundDrawablesWithIntrinsicBounds(d, null,null,null); This assumes that 35 is the correct size for 160dpi. If not you will need to change the 35 to a value appropriate for 160dpi. See here for more info about supporting multi

Categories : Android

How can I set a div size based on the device screen size?
You can use fixed positionings, plus, instead of specifying the height of #list use top and bottom to make it fit. #container { min-width: 1280px; position: relative; } #header { height: 140px; width: 100%; posiotion:fixed; top:0px; /* Top left corner of the screen */ left:0px; } #title { height: 330px; width: 100%; position: relative; posiotion:fixed; top:140px; /* 140px below the top left corner of the screen */ left:0px; } #list { /*height: 1592px; remove this - the height will be determined by top and bottom */ width: 100%; overflow: auto; -webkit-overflow-scrolling: touch; posiotion:fixed; top:470px; /* start 470px below top left corner */ bottom:140px; /* This is the trick - specify bottom instead of

Categories : HTML

How to know exactly off screen size of the screen in android?
If you want the the display size in pixels you can use getSize: Display display = getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size); int width = size.x; int height = size.y; If you're not in an Activity you can get the default Display via WINDOW_SERVICE: WindowManager wm = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); You can get more information here

Categories : Android

Monitor file size when writing file using a BufferedWriter in Java?
In this case, don't use a BufferedWriter but a simple FileOutputStream (which you have already). Write (and check the size of) your string's .getBytes("UTF-8"). You may have to write additional newlines if needed though, but that's simple enough. This way you can know by advance the size you have to write.

Categories : Java

Using Performance Monitor to monitor pooled connections
You can run this from a SQL query windows to get a count and the details of current connections and session running on your SQL server. select * FROM sys.dm_exec_sessions AS es INNER JOIN sys.dm_exec_connections AS ec ON es.session_id = ec.session_id I've had trouble with pooled connections. They're hard to control. Explicitly closing them never seemed to work since they're under the control of .NET. The biggest reason we've run out of connections is uncommitted transactions. If a transaction is left uncommitted or rolled back for some reason, the connection, instead of being re-used, get's stuck in limbo, forcing .NET to open yet another connection to continue processing.

Categories : Sql Server

Can no longer access TFS from workstation
I use Bitdefender too and for my final hope to solve this problem, I went to Control Panel > Uninstall a program > and Repair the Bitdefender, TFS came back! While Bitdefender was repairing, I was able to access TFS Web site in the same network. Restarted Windows and the problem didn't show up again. Hope this helps!

Categories : Visual Studio 2010

Consuming ASP.Net Web API from developer client workstation
As per Ajay's comment you need to enable CORS. To do this download the following Nuget package (N.B. this is a pre-release/beta but it is from the Microsoft product team). For background information and to read more about how to use this package the manual is here.

Categories : Jquery

Digital Audio Workstation Architecture on iOS
Audio Units is the lowest level iOS audio API, and the API that Audio Queues are built upon. And Audio Units will provide an app with the lowest latency, and thus closest to real-time processing possible. It is a C API though, so an app may have to do some of its own audio memory management. The AVFoundation framework may provide an app with easier access to music library assets. An app can only process sound from other apps that explicitly publish their audio data, which does not include the Music player app, but does include some of the apps using Apple's Inter-App Audio API, and the 3rd party Audiobus API.

Categories : IOS

Android emulator cannot access the network available on my workstation
On my machine I have CNTLM in order to authenticate with the Microsoft proxy server. In the /etc/cntlm.conf, in the section "No proxy" I had not entered the machine addresses to which I wanted to have communication. As a result, all the requests were going through the CNTLM to the proxy server and because of some misconfigurations on the network DNS and proxy server the addresses could not be resolved. As soon as I put the addresses of all the machines to which I wanted to have communication (in the "no proxy" section of the cntlm.conf) emulator could directly connect to the remote machines on my network.

Categories : Android

knife bootstrap windows winrm from Mac OS X workstation fails
It seems to work with knife-windows 0.5.10 [tested with windows server 2008R2] Install it with: gem uninstall knife-windows gem install knife-windows -v 0.5.10 check your gems with: gem list|grep knife-windows And it should show: knife-windows (0.5.10)

Categories : Windows

Copy file from chef client node to workstation
I have found solution for this.Thanks to this SO post which is similar to my need and there i found the usage of sshpass instead of expect. So I altered my script like below and now chef is happy and its copying...:) Modified script using sshpass #!/bin/bash #Copy file from client's source path to workstation's dest path sshpass -p <%= @password%> scp -o StrictHostKeyChecking=no <%= @sourcefile%> <%= @user%>@<%= @ip%>:<%= @destinationpath%> And in default.rb template "/tmp/automatecopy" do source "automatecopy.erb" mode 0777 variables( :user=> "chef-ws", :ip=> "10.232.110.113", :sourcefile=> "/tmp/outfile", :destinationpath => "/home/chef-ws/fileserver", :password=> "pass" ) end

Categories : Ruby On Rails

Monitor.Enter vs Monitor.Wait
According to MSDN: Monitor.Wait Method(Object) SynchronizationLockException: The calling thread does not own the lock for the specified object. In other words: You can only call Monitor.Wait(Object), when you already own the lock, whereas you call Monitor.Enter(Object) in order to acquire the lock. As for why Monitor.Wait is needed: If your thread realizes, that it is lacking information to continue execution (e.g. it's waiting for a signal), you might want to let other threads enter the critical section, because not all threads have the same prerequisites. For the waiting thread to continue execution, you will need to call Monitor.Pulse(Object) or Monitor.PulseAll(Object) before releasing the lock (otherwise, you're going to get the same kind of exception as with Monitor.Wait(Ob

Categories : C#

Spring, Active Directory and workstation : Ldap Error code 351
This should help. 49 531 1329 ERROR_INVALID_WORKSTATION Entry not allowed to log on to this computer. We have some JNDI Samples that work with AD (Assuming you know the proper parameters) You may find it easier to utilize a LDAP Browser and authenticate with that first then you know what parameters will work. We like Apache Studio. -jim

Categories : Spring

100% Screen Size Regardless of Resolution
As an approach, you're going to want to only show on div at a time, so you might want to look at how various JS slider plugins work (one of the most robust and flexible is Flexslider by WooThemes). You'll want to make sure that whatever "slide" is currently visible has a fixed position that occupies the full screen: .slide { position: absolute; top: 0; bottom: 0; left: 0; right: 0; } And then just put your content in there. That said, I do question the usability of an approach like this.

Categories : Javascript

Android: Is there a way to get the screen size?
There is your answer: How to get screen dimensions . This however, may not solve your problems. You should check your animation speeds, because I'm pretty sure, that it is not from the differences in the displays. You should post some code, for better help. Hope this helps.

Categories : Android

Getting screen size return 0
for API 7 you can use the following code, it is deprecated from API 13 Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight();

Categories : Android

Adjusting according to screen size
you can call window resize event $(window).resize(function () { var currentWindowHeight = $(window).height(); var currentWindowWidth = $(window).width(); ... }); then you can adjust css with jquery.

Categories : Jquery

Div is not rendering according to screen size
Try this: #tools { position:absolute; top:0; right:0; width:5%; overflow:hidden; background:red; } html, body { width: 100%; height: 100%; } Fiddle

Categories : Javascript

change the webpage according to the screen size
In your CSS, try p { word-wrap: break-word; width: 100%; }. The magic is word-wrap: break-word; What this does is fill the container by height but keep its width. Also, with this, you don't have to set your font-size with % but you can use px. http://jsfiddle.net/kQEM8/1/ EDIT: Since you revised your question, did you mean something like this? Try running it in jsfiddle and then resize your browser. http://jsfiddle.net/kQEM8/2/ window.onresize = function(event) { document.getElementById('test').style.fontSize = (document.width * 0.1)+'px' }

Categories : HTML

Nexus 7 correct screen size
Configuration.screenHeightDp() returns the dimensions of the available area of the screen. Your calculated value, 1182, is close to the the height in pixels minus the navigation bar and status bar (1173) of the Nexus 7, in other words the resolution available for your app to use. Full screen apps should be able to use the full 1280 resolution.

Categories : Android

resize based on screen size?
You could try this: $("#canvas").css('width', 70 + '%'); $("#canvas").css('height', 100 + '%'); $("#toolbox").css('width', 30 + '%'); $("#toolbox").css('height', 100 + '%'); copy it into the initialize function of your javascript code, if you think it is necessary you can add a 'resize' event handler for the window $(window).resize(function() { $("#canvas").css('width', 70 + '%'); $("#canvas").css('height', 100 + '%'); $("#toolbox").css('width', 30 + '%'); $("#toolbox").css('height', 100 + '%'); }); where '#canvas' and '#toolbox' are the ids of your canvas and toolbox/pane respectively. I hope it helps.

Categories : Javascript

ASP.NET for Windows Mobile Screen Size
Have you tried to set the width and height atributes of the div element? Something like: <div style="width:250px; height: 250px;">Content</div> P.S.: IMO a responsive design would be the best option.

Categories : C#

Handle different screen size for iOS Devices
If I am not wrong you must be developing your front pages using HTML5? If so give height and width of elements in %. Your pages will automatically resize according to screen size. Search for responsive web design you will get a lot of stuff to read. Another solution is to use media queries.

Categories : IOS



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.