w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
qemu: could not load PC BIOS 'bios.bin' in Mountain Lion
I got the same error message on Windows when trying to run the x86 emulator. What worked for me was to find the "bios.bin" and "vgabios-cirrus.bin" files somewhere in C:, and copy them to the folder ....android-sdk-windows ools.

Categories : Android

Send contents to an external application and monitor/make assertions/test against the results of the external app
how do you get a reference to the new activity (from the new application)? You don't. That's in another process. You are welcome to validate the other app through whatever API it exposes, or by examining whatever it stores on external storage.

Categories : Android

How can I Monitor External files in Java
Follow this quick tutorial over running .exe from java. It should be sufficient (4pages) http://www.javaworld.com/jw-12-2000/jw-1229-traps.html?page=1 example import java.util.*; import java.io.*; public class GoodWindowsExec { public static void main(String args[]) { try { Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("cmd.exe /C ping"); // executing ping through commandshell of windows proc.getErrorStream() // errorstream proc.getInputStream() // outputstream int exitVal = proc.waitFor(); // wait till process ends } catch (Throwable t) { t.printStackTrace(); } } }

Categories : Java

How to monitor an external process for events by its PID in C?
If you can run as root, then you can use the netlink interface proc events: http://bewareofgeek.livejournal.com/2945.html I just compiled it cleanly on fedora 17 x86_64 and it gives me this: [root@hip1 yotest]# ./proc set mcast listen ok fork: parent tid=2358 pid=2358 -> child tid=21007 pid=21007 exec: tid=21007 pid=21007 fork: parent tid=21007 pid=21007 -> child tid=21008 pid=21008 fork: parent tid=21007 pid=21007 -> child tid=21009 pid=21009 fork: parent tid=21007 pid=21007 -> child tid=21010 pid=21010 fork: parent tid=21007 pid=21007 -> child tid=21011 pid=21011 exec: tid=21010 pid=21010 exec: tid=21008 pid=21008 exec: tid=21011 pid=21011 exec: tid=21009 pid=21009 exit: tid=21008 pid=21008 exit_code=0 fork: parent tid=21010 pid=21010 -> child tid=21012 pid=21012 exi

Categories : C

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#

Broken user, broken Data.Binary or broken installation?
The Problem Let's review what you think you're doing and what you are doing. You think you are using binary to encode a list of Ints and write that bytestring into a file. Then, you read from the file and decode a list of Ints only to have it fail. What you are actually doing is encoding a list of Ints as a bytestring then encoding that bytestring as a bytestring (so, an extra length field is prepended to the bytes) and writing that bytestring to disk. Your decode then fails because you have on disk encode(encode(list)) instead of encode(list). The solution Just change the line reading: encodeFile worldfile $ encode world to encodeFile worldfile world Reading Hexdump 00000000 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 03 |....... ........| 00000010 00 00 00 00 00 00 00

Categories : Haskell

Broken background-image pattern in other screen size
detect the screen resolution by media query and add background-size by css. for example @media only screen and (min-width: 641px) and (max-width: 1000px) { .header{ background-size: 153% auto; } }

Categories : HTML

Win 8.1 DPI - WPF - How to find independent monitor/display's DPI
I suggest you read Developing a Per-Monitor DPI-Aware WPF Application on MSDN. This article covers pretty most of what you'll need to support High-DPI WPF Windows 8.1 apps. Note, though, that the examples given in the article above are mostly written in C++, but that's less of an issue for WinRT apps since C++ and C# can now interop more easily than before.

Categories : C#

Website monitor display issue
Try wrapping a "Relative" #container around all your "absolute" divs. I've adjusted your code below: <body> <div id="container"> <div id="Links"> <a href="About.html"><img src="Slideshow/About.png" width="140em" /></a> <br /><br /> <a href="Contact.html"><img src="Slideshow/Contact.fw.png" width="140em" /></a> <br /><br /> <a href="Services.html"><img src="Slideshow/Services.fw.png" width="140em" /></a> </div> <div id="mainText"> <h1>Contact</h1> <p>If you want to contact me please call at <b>1.800.SUCCESS</b> or use the form below to sned me an email!</p> </div> <form name="contactform" method="post" action="send_form_email.php">

Categories : HTML

Swing application won't display in unity when second monitor is on the left
Okay it's a simple as private static void createAndShowGUI() { //Create and set up the window. JFrame frame = new JFrame("HelloWorldSwing"); frame.setLocation (50, 50); ... setLocation copes just fine with the multiple monitors. It's just that the default location (if setLocation is not called) appears to be off screen when monitor 2 is left. 0,0 is at the top left on the left monitor as expected. However if you use setLocation(0,0) the window's close / minimize / maximize buttons are obscured by the unity top bar. I guess some platform-specific stuff is required to integrate with the unity top bar / side bar.

Categories : Java

native calling screen animation stops when dialog activity display on screen
I implemented a solution that works well for me (and does not stop animation), here it is: https://github.com/inez/CustomIncomingCallScreen

Categories : Android

Lua: how do I add display objects required from external functions to display groups?
function scene:createScene(event) local group=self.view local shieldDisplay = shieldDisplay.new() group:insert(shieldDisplay) end Try changing it to function scene:createScene(event) local group=self.view local shieldDisplay = shieldDisplay.new group:insert(shieldDisplay) end

Categories : Lua

Broken image icon displays while trying to display a BLOB
What might solve the problem is the to add header("Content-Type: image/jpeg"); just before you print/echo the image. Also it is strange that base64 example you included would not have worked. When I looked at the example provided, the first line of the Also section the echo opens with double quote(") and end with single quote('). This might cause exception and why you couldn't test base64 properly. It must be: echo "<img src='data:image/jpeg;base64," . base64_encode($row['media']) . '" />"; You can also add a charset: data:image/jpeg;charset=utf-8;base64, Lastly, I would suggest looking at the following example that might help How to Base64 encode your images

Categories : PHP

trying to display:none or display:inline depending on the width of the screen with javasrcript
Do you use, jquery ? Did you linked to your jquery file? If not, you should write: document.getElementById('art1').style.display = 'none'; or maybe try document.getElementById("art1").style.display = 'none';

Categories : Javascript

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

How to display google map in right half of the screen while left half of the screen contain list view
Use linear layout with horizontal orientation and put both your mapview and listview inside it , now give similar weight to them .May be that will work .for example give layout_weight 1 or 0.5 in both mapview and listview .

Categories : Android

.Net : executing external program and get its screen diplay
Yes it is possible. Start the process with the Process class. You'll have to know the name of the window you want to capture. Then use win32 api (pinvoked) FindWindow, GetWindowDC, .. to get a bitmap at regular interval. this approach is explained here: http://www.nullskull.com/q/10087766/capturewindow-in-cnet-20-windows-application.aspx Another approach is to capture a rectangle of the screen, Capture the screen shot using .NET you can get the bounding rectangle of a window using the win32 api GetWindowRect

Categories : C#

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#

bios information in c++
Trying to detect if you are in a virtual OS is done in various ways and depends on the virtualization software being used. There are many different questions about this already on stackoverflow. In no particular order, here are some articles, they cover a variety of the different virtualization pieces used: Detect virtualized OS from an application? detect if application running on virtual box 64-bit windows VMware detection How to identify that you're running under a VM? http://www.codeproject.com/Articles/9823/Detect-if-your-program-is-running-inside-a-Virtual

Categories : C++

VT set in BIOS but not showing vmx CPU flag on OS
If I am reading your question correctly, you have enabled VT-x in the BIOS and VirtualBox is able to utilize it from a Windows host, but it is not presenting VT support through to the guest operating systems? If that is correct: that is because - to my knowledge - VirtualBox does not support virtualizing VT support for guests. See this ticket for some discussion: https://www.virtualbox.org/ticket/4032

Categories : Linux

two "int 0x10" command,one in bios, one in processor
In X86 architecture, interrupt handlers are defined in the Interrupt descriptor table (IDT). In read mode, The IDT consists of 256 four-byte real mode pointers. When system startup, BIOS will initialize this IDT to provide some basic service for real mode programs (for example DOS code / OS boot code). The handlers are all defined in BIOS. Later, the OS boot code may switch the processor into protected mode and load its new IDT. This time the IDT is an array of 8-byte descriptors stored in memory. From this point, OS start to handle interrupts instead of BIOS. So there is no contradictory since the first int 0x10 is used to invoke BIOS service in real mode and then its handling is passed to OS to handle exceptions in protected mode.

Categories : Assembly

Does the ASHWID change if the BIOS is upgraded?
First of all, that value changes with factory reset in Android. Second of all, try checking out EasClientDeviceInformation.Id. It uses a combination of the MachineId (local user group SID), the UserId, and the Package Id, but doesn't give you the whole thing. This is good because Thirdly, giving devs access to use them directly to generate things like crypto keys can lead to other apps getting your apps keys, like has happened on many iOS devices. By limiting what device id's you can use, they're making it so that you must use a system resource that is literally only accessible from inside of a given application with a given Id from inside that user's account. The Windows Store is very strongly sandboxed for exactly this reason. While it can be a pain sometimes, it makes the platform m

Categories : Windows

Getting a string to print via bios interrupt
It's not usually a good idea to: Assume that all registers are preserved across interrupt calls (or any calls, really); or Not set up all the required registers for a given call. On that first note, I would set ah to 0eh immediately before the int 10. Int 10h/0eh requires the bh and bl be set to the page number and foreground color respectively. I would also do that immediately before the int 10 to ensure they're set correctly for the call. As an aside, you need to ensure that the ds segment register is correct, with something like: push cs pop ds since it looks like you're putting the string into your code segment. However, since the lodsb version apparently works, I assume you've got that covered. And, from (admittedly faded) memory, 8086 has an inc si instruction that might

Categories : Assembly

How can I update Azure VM BIOS settings?
You cannot alter the BIOS of the virtual machines. I'm curious why you're being asked to enable hardware-assisted virtualization - I'm guessing it's related to RDS that you mentioned. What is RDS in this case?

Categories : Azure

CL_OUT_OF_RESOURCES - External display
CL_OUT_OF_RESOURCES is a common error to nVIDIA driver. And can be caused by: Real out of resources (rare) Reading an array that was used by a kernel that read/writed out of bounds. (typical) Any other strange error that does not have an appropriate error code. You are provably facing the second one, so, I would check the kernels. EDIT: As you said that it happens until restart. Maybe you can check if you are deleting properly all the OpenCL objects. Events are very tricky and easy to leak some OpenCL memory.

Categories : Osx

Error "Task can be only monitored with a single monitor" when setting my monitor to a task in dll
OnMessage function creates implicit monitor which receives the task message and calls your anonymous function. Same goes for OnTerminated. If you wish to use MonitorWith, you should implement message processing and termination handling as a monitor events, not with OnMessage/OnTerminated functions.

Categories : Delphi

How to display external XML in an HTML file
xml tags are often ignored by browsers on HTML documents, in best cases they will only show the inner text. If you need to show the whole code you will need some XSLT to transform the XML into HTML or event a Javascript program that prints it. Maybe this one http://www.levmuchnik.net/Content/ProgrammingTips/WEB/XMLDisplay/DisplayXMLFileWithJavascript.html

Categories : HTML

asp.net mvc display image external to the mvc deployment
You cannot have links to files like C:something it is because browser cannot access such path. All images must be hosted by your webserver. You should use something like Server.MapPath.

Categories : Asp Net Mvc

Display external pdf in frame with javascript
Of course you can... <iframe id="someFrame" /> <script type="text/javascript"> document.getElementById('someFrame').src = 'http://somesite.com/somefile.pdf'; </script>

Categories : Javascript

Linux module to deny write permissions to BIOS?
Flashing the BIOS is typcially done not by using some driver but by accessing the SPI or I²C controller hardware directly. Some mainboards have hardware write protection switches/jumpers. Neither the kernel nor a rootkit could do anything about that. Some flash chips have a write protection that can only be enabled, but cannot be disabled without a reset, i.e., only the BIOS can do or allow flashing. Neither the kernel nor a rootkit could do anything about that. On most mainboards, the flash hardware has no write protection. There is nothing the kernel can do about that; any rootkit that has the capability to access the hardware is already in complete control and is also able to reverse any software protection measures attempted by the kernel.

Categories : C

intel virtualisation enabled on bios but hyper v not running
The answer was not exactly obvious. After reading everywhere about intel trust execution needing to be disabled, I decided to attempt to disable anything to do wit bitlocer. On my specific hybrid, there was a setting labelled "secure boot mode", there were a few options here but I tried to just disable it. Hey presto that was the sucker. I hope this helps someone else. Edit:: Above answer was actually incorrect. If you change the bios setting on my laptop, then shutdown and start up. nothing happens. if you then restart the computer a whole load of hardware fails, butttt intel VT works finally lol. It must have been dumb luck it worked before. But the shutdown/restart combo works predictably. Unfortunately it totally knocks out some of my other hardware (touchscreen, key lights) renderin

Categories : Visual Studio

Display an external HTML file in a JPanel
All you do is change the following line: java.net.URL helpURL = Launcher.class.getResource("/changelog.html"); to the following: java.net.URL helpURL = new URL("http://www.server.com/changelog.html"); Of course, you have to substitute the actual URL in the URL construtor.

Categories : Java

Display specific data from external website
Its not entirely clear on what you are attempting to do. Remember you can only see html and javascript on someone else's web site. If you want to make a static copy of a web page including the cascading style sheets (CSS) and java scripts, open up the web page of interest on a browser (I'm thinking firefox) then use the browser tools to 'save the page as' and save it to your local hard drive. With that save comes all the scripts and CSS files. You can then look at the static code, look at the div classes and decide for yourself what CSS elements you are hoping to use for your site. Recommend you study up on how css works (selector type element, selector type universal, selector type id declarations, and selector type class declarations) Its highly possible the web site you are loo

Categories : PHP

Chrome: Display Image from external url in Rich notifications
There's a typo in your CSP: image-src should be img-src. Second, you should remove the wildcard in the URL. Your CSP should therefore read: "content_security_policy": "img-src 'self' http://example.com/; object-src 'self'; script-src 'self'" Alternatively, you could use the workaround described in chrome.experimental.notification (Rich notifications) and external URLs: var options = { type: "basic", title: title + ' - ' + timestamp, message: lineItem } var xhr = new XMLHttpRequest(); xhr.open("GET", "http://example.com/asgsdg.png"); xhr.responseType = "blob"; xhr.onload = function(){ var blob = this.response; options.iconUrl = window.URL.createObjectURL(blob); chrome.notifications.create((id++).toString(), options, function() {}); }; xhr.send(null); You c

Categories : Google Chrome

Why mmap fails when trying to map Upper BIOS memory to virtual address space
Per your comment that size is 36: size must be a multiple of the system page size. See C - why I cannot mmap a small (256UL or smaller) size of memory?

Categories : C

Display a loading screen using anything
You can try creating the view to load the barebones of the page, and then issue an AJAX request to load the page data. This will enable you to show a loading wheel, or alternatively let you render the page in grey, with the main data overwriting that grey page when it comes back. This is how we do it in our application, however there is probably a better way out there... if not I'll post some code! EDIT: Here's the code we use: Controller Action Method: [HttpGet] public ActionResult Details() { ViewBag.Title = "Cash Details"; return View(); } [HttpGet] public async Task<PartialViewResult> _GetCashDetails() { CashClient srv = new CashClient(); var response = await srv.GetCashDetails(); return PartialView("_GetCashDetails", response); } Details Vi

Categories : C#

Android screen display
There are many different layouts you can produce from ldpi all the way to xxhdpi, landscape and portrait, aspect ratios and many others. The Android documentation covers this in great length and would be a good place to start. http://developer.android.com/guide/practices/screens_support.html

Categories : Android

Display an App correctly on 3.5" and 4" screen
It wouldn't because the screen's coordinate system is in points, not pixels. Try it like this: CGRect screenBound = [[UIScreen mainScreen] bounds]; CGSize screenSize = screenBound.size; NSLog(@"%@",NSStringFromCGSize(screenSize)); if (screenSize.height == 568.0f) { NSLog(@"iphone 5"); }else if(screenSize.height == 480.0f){ NSLog(@"iphone 4 retina"); }else{ NSLog(@"iphone 4 non retina"); } You should also consider using UIDevice's userInterfaceIdiom to check whether the device is iPhone/iPad, and UIScreen's scale to determine whether the device is retina or not.

Categories : Iphone

Display web console on screen?
You can write your own logging framework or use an available one like for example log4javascript, but I don't think that any of them are able to redirect output from the console, you would have to use try..catch to catch the errors or a global error listener (which is not very reliable across browser) and then log them via the framework's methods.

Categories : Javascript



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