w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
How to change mode from c++98 mode in Dev-C++ to a mode that supports C++0x (range based for)?
Go to Tools -> Compiler Options -> "Compiler" tab Check the checkbox labeled, "Add the following commands when calling the compiler" And add in the text entry box, "-std=c++11" or if that doesn't work "-std=C++0x" Should be something like that anyway, I haven't had Dev C++ installed for many years, so I had to look at some screenshots on Google to remember.

Categories : C++

SCSI Mode Page 8 WCE bit
Never mind, I found it. In the files attached to this link. http://mail-index.netbsd.org/current-users/1997/03/25/0003.html

Categories : Caching

IE renders my page in Quirks mode
The Problem The linebreaks after both of the <?php ?> snippets are counting as characters. If Internet Explorer detects characters (even whitespace) before the doctype declaration, it enters quirks mode. As EricLaw correctly states, you should also consider moving all your meta tags into the head section, and consolidating your php code. The Solution The correct code would look like this: <?php require'core/init.php'; include_once 'include/IE8Etc.php'; ?><!doctype html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <title>Title</title>

Categories : HTML

Rails 400 and 500 error page in development mode
Are you routing them properly? You can do custom error pages by putting in your application.rb: # For error handling config.exceptions_app = self.routes Then in your routes.rb file: ## Routes for Exceptions match '/404', to: "static#not_found", as: "not_found" match '/422', to: "static#rejected", as: "rejected" match '/500', to: "static#something_wrong", as: "something_wrong" Assuming you have a "static" controller (use whatever you want). Then render out the templates as you normally would.

Categories : Ruby On Rails

Forcing a web page into legacy quirks mode for IE10 in ASP.NET
If you want to enable the IE5 quirks document mode in IE10, adding a DOCTYPE tag together with the meta tag you mentioned should be enough. <!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=5" /> You can also move the file to a separate folder and also add the following web.config file in that folder: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <clear /> <add name="X-UA-Compatible" value="IE=5" /> </customHeaders> </httpProtocol> </system.webServer> </configuration>

Categories : Asp Net

page is not rendered in ie8. Renders only in compatibility view mode
<!DOCTYPE HTML should be on the first line of the document in order to swtich to standard (i.e. non-compatibiliy) mode. If you really need compatibiliy mode, you may just add blank line at the beginning of the file, or some comment like <!-- Yes, I like quirksmode --> to make your action explicit.

Categories : CSS

default page issue with 4.0 ASP.NET and MVC mixed mode website
I removed the default route and now the behavior is as needed. public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); //ignore aspx pages (web forms take care of these) routes.IgnoreRoute("{resource}.aspx/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { id = UrlParameter.Optional } ); }

Categories : Asp Net

How can I make my whole site in fullscreen (API) mode, not just the opening page?
I recommend the jQuery FullScreen Plugin, setting an onload event on your body tag for any pages you'd like to automatically go fullscreen. Like so: <body onload="$('body').fullScreen()"> It's not completely cross-browser compatible, but it's the closest thing to it. See caniuse.com/fullscreen for details on where it will and won't work.

Categories : Javascript

Set Browser Mode to IE 8 automatically when html page gets loaded
You need to add a meta tag to your document head specifying IE8 compatibility mode. <meta http-equiv="x-ua-compatible" content="IE=8" >

Categories : Internet Explorer

CK editor destroy the style of the page even in Inline mode.. how to disable?
You're doing it the wrong way. CKEditor is not a website editor, therefore it cannot be used to edit entire website with full spectrum of CSS/HTML/JS used. It should be rather understood as a "documents" editor. So it should be used to edit semantically consistent, more atomic fragments of the web page. Check the CKEditor integrations for popular CMSes like for example for Drupal. Also, make sure that you know about the Advanced Content Filter.

Categories : Javascript

RAXO All-mode PRO instead simple article on home page JOOMLA
To insert any module of Joomla x.x you can use this tag into the content of an article: {loadposition MyModulePosition}. Then in the module you set the position to MyModulePosition and in the menu display option mark the menu item that point to the article. However if the home page menu item point to "all featured article", you can set the article as featured and the module apears in the home page.

Categories : Joomla

Django debug mode False then the page doesn't work
if it's django 1.5 it could be related to allowed host setting https://docs.djangoproject.com/en/1.5/ref/settings/#std%3asetting-ALLOWED_HOSTS

Categories : Python

How to launch a local html page in IE10 in compatibility mode?
Under the Tools Menu bar, click on Compatibility Mode Settings. You can add all the sites where you want to run in compatibility mode there. More info here

Categories : HTML

Processing android mode installation error: could not move mode "Android Mode" to the sketchbook
I needed to download Android mode manually. The steps are given below: Download "Android Mode" zip file from here. Unzip the downloaded "Android Mode" in the directory "C:/ Users/User/My Documents/Processing/modes/". Restart Processing. For more information, visit here.

Categories : Android

Make iBooks turn page (in reflow mode) with Javascript embedded in the displayed EPUB3 ebook
If you are talking about progressing to the next XHTML document, then it should be adequate to simply do location.href="nextpage.xhtml"; If you are talking about moving within the same XHTML document, then the best you can do is to somehow identify the location within that page using an ID'd element, and jump to it: location.href="#id"; There is no way that I am aware of to simply execute/simulate a page turn.

Categories : Javascript

which registers is changed when we move from user mode to kernel mode ?! and what is the reason to move to kernel mode?
From your questions i found that you are very poor in operating system concepts. Ok let me explain,(I am assuming you are using linux not windows). "which registers is changed when we move from user mode to kernel mode ?" For knowing answer for this question you need to learn about process management. But i can simply say, linux uses system call interface for changing from user space to kernel space. system call interface uses some registers (Based on your processor) to pass system call number and arguments for system call.

Categories : C++

Portrait mode and landscape mode views display adjustment with phone size
You simply create 2 different layout files. You should read the developer guides on this subject. Basically you make 2 res/layout folders: res/layout and res/layout-land Then you add a layout for landscape to the land folder and the portrait version to the other.

Categories : Android

How do Emacs diary-mode and calendar-mode read so many date formats? Magic?
Date::Parse handles a good number of a date formats pretty well. It's part of the TimeDate distribution which has a lot of interesting date formatting stuff.

Categories : Perl

How to change UINavigationBar background image when iPad goes from portrait mode to landscape mode?
You must use: - (void)viewDidLoad { [super viewDidLoad]; [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationChanged:) name:@"UIDeviceOrientationDidChangeNotification" object:nil]; } - (void) orientationChanged:(id)object { UIInterfaceOrientation interfaceOrientation = [[object object] orientation]; if(orientation == UIInterfaceOrientationPortrait) { NSLog(@"orientation is UIInterfaceOrientationPortrait"); // Assuming "self" is a view controller pushed on to a UINavigationController stack [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"portrait_

Categories : Objective C

UIImagePickerController in portrait mode inside UIPopoverController when view is locked for landscape mode
you can do this with Subclassing UIImagePickerController @interface UAImagePickerController : UIImagePickerController { } @end @implementation UAImagePickerController - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { return UIDeviceOrientationIsPortrait(toInterfaceOrientation); } @end

Categories : IOS

What is difference in debugging in debug mode and release mode with disabled optimization?
There's very little magic to it. Debug and Release are simply names assigned to a set of compiler options. The most relevant option for the Debug configuration is the /Od option, it disables the optimizer so your code is easier to debug. Clearly you can always change the Release configuration options to resemble the Debug configuration options. Like disabling the optimizer. Now there's no relevant difference anymore between them and the Release configuration behaves a lot like the Debug configuration in the debugger. Other options normally used in the Debug configuration that affects your code: the _DEBUG macro is defined, asserts will fire function inlining is turned off the /RTC option is turned on, very good at catching bugs in your code the _HAS_ITERATOR_DEBUGGING macro is defi

Categories : Visual Studio

How to access kernel mode memory in user mode application in WinCe7
I'm not sure if this will help considering you're on Win CE 7, but in Windows 7, I have a driver that maps a kernel mode address to a user mode address before returning the resulting user-mode address to my application. void *userSpaceAddr; // Allocate the MDL describing our kernel memory pmdl = IoAllocateMdl((PVOID)&my_heap_var, (ULONG)size_of_my_heap_var, FALSE, FALSE, NULL); if(!pmdl) { DbgPrintEx(DPFLTR_IHVVIDEO_ID, DPFLTR_INFO_LEVEL, "Error on IoAllocateMdl. Returning from driver early. "); return STATUS_INSUFFICIENT_RESOURCES; } MmBuildMdlForNonPagedPool(pmdl); userSpaceAddr = (void *)MmMapLockedPagesSpecifyCache(pmdl, UserMode, MmWriteCombined, NULL, FALSE, LowPagePriority); userSpa

Categories : Windows

Qt Application shows build error in Debug mode, OK in release mode
When you installed qt, did you configure it to install static debug libraries also. If not then try reconfiguring and reinstalling it. In windows, I think you installed from a preconfigured, precompiled binary that may not have static debug support. Try downloading the source and then configure and compile it according to your needs

Categories : Qt

Renaming a file on HDFS works in local mode but not in cluster mode
Just curious, but how can you rename a file that officially doesn't exist (because you're still writing at that point)? The fix is to rename after the file has been completed. That is, when you invoked the close method. So your code should look like this: public void close() { String newPath = String.format("%s_dir/%s_file", date, timestamp); try { writer.close(); fileSystem.rename(new Path(hdfs_path+path), new Path(hdfs_path+newPath)); } catch (IOException e) { e.printStackTrace(); } }

Categories : Java

Acces Query runs smoothly in "select" mode, fails in "make table" mode
After some more research and trial and error, I was convinced this is a memory issue. So if anyone is having the same problem, and does not have the time or resources to upgrade to 64 bit access or create and sql server, here is a pretty simple workaround. Since the query runs in select mode, use vba to export the query result into a delimited .txt file, that you can read back into the original database, or a new database, as a table. for anyone looking, the vba code to do that is very simple: Sub exportQuery2Text() DoCmd.TransferText acExportDelim, "", "mapProducts2Bills",_ "[filepath].txt", True End Sub I hope this is helpful Cheers

Categories : SQL

Email composer show in landscape mode when restrict application in portrait mode (android +phonegap )
Actually you restricted particularly an Activity to be in a portrait mode, it will be apply only your SplashScreenActivity. For other Activity it will remain as default. If you want this for other activity also you have to write android:screenOrientation="portrait" in all activity, Try This android:screenOrientation="portrait" android:configChanges="orientation"

Categories : Android

emacs evil-mode simple bindings for command mode
Binding a key to a command The command that gets executed when you hit : is evil-ex, as you can find out by running: :describe-key<CR> : (i.e. run Emacs' describe-key command, then hit the key you want info on). So you can just bind ; to also run evil-ex. (define-key evil-normal-state-map (kbd ";") 'evil-ex) (define-key evil-visual-state-map (kbd ";") 'evil-ex) (define-key evil-motion-state-map (kbd ";") 'evil-ex) Binding one key sequence to another In Emacs, just generally, you can define keyboard macros, which are basically the same as how Vim handles mappings: (global-set-key (kbd ";") (kbd ":")) In evil-mode, you need to add them to the relevant keymap for the state: (define-key evil-normal-state-map (kbd ";") (kbd ":")) (define-key evil-visual-state-map (kbd ";") (k

Categories : Emacs

How to load a UIViewController in landscape mode if its parent is in Portrait mode?
In your child UIViewController set these two methods: - (BOOL)shouldAutorotate { return NO; } - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscapeLeft; } In parent UIViewController do: [self.navigationController presentViewController:controller animated:YES completion:nil]; instead of: [self.navigationController pushViewController:controller animated:YES]; If you want to present navigation bar in child: DetailViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"DetailViewController"]; controller.title = @"Child"; You'll have to subclass UINavigationController with the two methods mentioned above instead in the child view controller. MyNavigationController *nav = [[MyNavigationController alloc] ini

Categories : Iphone

toggle phone's state from ringing mode to vibration mode
Maybe an hint here : AudioManager To get mode : myAudioManager.getRingerMode(); and then (to change mode ) myAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE); Mode list here

Categories : Android

ViewController from .xib file is loading in portrait mode and not in landscape mode in iOS
You may need to use the below methods in the NextLandscapeViewController -(BOOL)shouldAutorotate { return YES; } -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape; } If the control doesn't reach these methods in View Controller, then you need to subclass the Navigation Controller.

Categories : IOS

Release mode Vs DEbug mode in MS Visual Studio Windows
when the shared library/dll is built in Release mode and my application is also built in Debug mode Result: Application is getting crashed without loading any symbols from call stack. That's because this is not a supported configuration. By default, the Debug and Release targets link to different versions of the CRT, which (among other things) use different strategies for allocating memory and are not compatible with one another. This is just an extension of the more general rule that you aren't supposed to mix libraries that link to different versions of the CRT. All of the projects need to match. And as you've already seen, when they do, everything works correctly. There are workarounds for this, but they're a lot of work to get right. Essentially, you make sure that all memory al

Categories : C++

Foreign key column disabled in edit mode but editable in add mode
The Id attribute will only be applied to the column element (td), not the actual input of the dropdown. Try the code below for your grid edit function function gridEdit(e) { if (!e.model.isNew()) { var input = $("input[name='RightTypeId_input']"); input.prop('disabled', true); input.addClass("readonly"); // add custom css class to make it looks 'disabled' // avoid clicking on Kendo spans input.next('span.k-select').unbind("click"); } } css input.readonly { -webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; -o-user-select:none; background-color:#E6E6E6 !important; }

Categories : Kendo Ui

Navigation menu disappears in landscape mode if the user clicks the toggle button in portrait mode in my responsive website
The problem is jQuery's .slideToggle() method dynamically adds a style: none to the element you are toggling, straight into the tag. So, it takes precedence over your media query rules set in your CSS. To overcome this issue, in your media query targeting devices with screen widths above 960px, add an !important to the display rule for the #main-nav. ul#main-nav { line-height:1; list-style:none; display:block !important; overflow:visible; } Another thing I noticed was your determining factor for adding a listener to the click event on your navigation toggle. If it's dependent on the #main-nav's float attribute, then when the page is first loaded in landscape then switched to portrait the slide toggle will not work, because no listener has been attached to the #nav-collap

Categories : Javascript

I failed in switching the cpu from real-mode to protected-mode
In your gdt_descriptor, you've got the limit and the address. Unlike most other addresses, this is NOT a segment:offset address. It needs to be a linear address. As an MBR, you've probably moved it from where it was originally loaded at 0x7C00. The address in your gdt_descriptor (often called gdtr) needs to be the linear address of where you are now. You don't show quite enough code to be sure, but I suspect your problem is right in there.

Categories : Assembly

Hight mode is 0 or ViewSwitcher can only be used in EXACTLY mode in realViewSwitcher in android
Just hard code the height. Replace with this, <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="45dp" android:layout_marginTop="54dp" > <com.test.RealViewSwitcher android:id="@+id/horizontal_pager" android:layout_width="fill_parent" android:layout_height="550dp" android:orientation="vertical" android:layout_weight="1" > </com.test.RealViewSwitcher> </ScrollView>

Categories : Android

How can I ensure that code works the same way in strict mode and lax mode?
All the strict mode features are summarized in the Annex C of the the ECMAScript specification. In most cases, strict mode will throw errors when you try to use disallowed features (new reserved words, octal literals and escape sequences, multiple definition of the same property in an object literal, etc.). I understand your question is about the cases that won't throw any errors, so here they are: Arguments objects for strict mode functions do not dynamically share their array indexed property values with the corresponding formal parameter bindings of their functions. (10.6). For strict mode functions, if an arguments object is created the binding of the local identifier arguments to the arguments object is immutable and hence may not be the target of an assignment expression. (

Categories : Javascript

How to insert CSS code into a page if I can't insert it into head tag? Only inline mode?
You can use the style element everywhere, not just inside the head. Additionally, you can make it scoped in some browsers to limit the range of its effects (see relevant specification).

Categories : HTML

What is the difference of tex-mode and latex-mode and LaTeX-mode in emacs
The modes provided by AUCTeX are listed at https://www.gnu.org/software/auctex/manual/auctex.html#Modes-and-Hooks and they are plain-TeX-mode LaTeX-mode ams-TeX-mode ConTeXt-mode Texinfo-mode docTeX-mode Instead, tex-mode plain-tex-mode latex-mode slitex-mode doctex-mode (note the different capitalization) are the major modes provided by the TeX mode package shipped with Emacs. If you want to open all *.tex files with AUCTeX LaTeX mode add this to your .emacs: (add-to-list 'auto-mode-alist '("\.tex$" . LaTeX-mode)) Actually, this shouldn't be necessary, because AUCTeX defines the tex-mode.el mode names as alias of its own modes.

Categories : Emacs

Android USB Host Mode and Accessory Mode
That's because when you connect an accessory to Device B, your accessory which is acting as US B host must implement the Android Open Accessory Protocol (AOAP). See Connecting over USB. Since Device A (host), does not implement the AOAP, Device B will refuse to communicate with Device A beyond a handshake attemp.

Categories : Android

Floating point operations 32 bit mode vs 64 bit mode
Extended is equal to Double in X64. X32 mode is using the FPU floating point unit, while X64 is using the SSE registers for floating point execution. There is also the compiler directive Floating point precision control (Delphi for x64), which by default is on and keeps intermediate single floats as doubles.

Categories : Delphi



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