w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Every activity shows its own icon
In your manifest remove these lines from all Activities except the one you want to open on: <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> (I recommend to remove them from all the activities exept MainActivity).

Categories : Android

iTunes Connect app icon automatically changed
Just make sure you have added same Icon file to both version. And it is the same icon which you have integrated with application. You also have same icon for iTunesartwork in application. May be you have some change in icon at some place. I assume that you have same Icon for both version.

Categories : Iphone

Icon size changed when using BitmapDecoder.Create in WPF
Problem is in IconToStream which creates MemoryStream, copies icon into it, returns reference and then disposes all resources allocated by MemoryStream which effectively makes your stream and therefore Frame empty. If you would change GetSizedSource to something like below that returns BitmapFrame before desposing MemoryStream is should work: private BitmapFrame GetSizedSource(Icon icon, int size) { using (var stream = new MemoryStream()) { icon.Save(stream); stream.Position = 0; return BitmapDecoder.Create(stream, BitmapCreateOptions.DelayCreation, BitmapCacheOption.OnDemand) .Frames .SingleOrDefault(_ => Math.Abs(_.Width - size) < double.Epsilon); } }

Categories : C#

How to refresh dojo gridx after the memory store has changed?
The Loading... message was caused by the way I've declared the Grid. I've specified the columns property, the structure needs to be declared, in first line. The refresh sequence is too short. You need also to re-creade the data store: var storeData = { identifier: 'id', items: response.items }; grid.model.clearCache(); storeData.items = data.result store = new Memory({data: storeData}); grid.model.setStore(store) grid.body.refresh()

Categories : Javascript

refresh vilolations drilldown after violation severity is changed
No you should run a new sonar analysis to use the new profile settings. Keep in mind that once an analysis has been stored in Sonar DB, can't be changed. So in any case you need to run a new one.

Categories : Java

Visual Studio 2012 Web Deploy publish preview shows all files as changed
So far, no. I've noticed the same problem with Team Foundation Server and publishing via file system. The problem stems from the XML files TFS is using to keep track of what was last published for a given profile. These files exist under the ProjectPropertiesPublish Profiles folder. The files are automatically added to the project and are next to impossible to keep out of TFS. When a team member notices that what they publish doesn't necessarily match up with what is on their machine, they delete and recreate a new publishing profile. Completely not a scalable solution, but if you google visual studio publish not working, you'll come across loads of people with the same problem.

Categories : Visual Studio 2012

How can I refresh a DataRow linked to a MS Access record that has been changed by another user in VB.NET?
Your question is a bit broad to be specifically answered, and it also raises a couple red flags (Access and multiple users is typically a recipe for trouble). The software pattern you're applying is called Active Record. I suggest you research it thorough to understand the usual use-cases, benefits, costs, and approaches to things like concurrency, locking, and updates.

Categories : Dotnet

Selecting Radio Button using JQuery only shows change after page refresh
Yeah I do not know why it is not mentioned in more places but I had a similar problem with a drop down not doing what I wanted. I am guessing you are having the same problem based on the link to the methods you were trying. Try this. $('input:radio[name=sex]:nth(0)').attr('checked',true).change(); The only difference being the .change();

Categories : Jquery

While Uploading App in Google Play is shows Upload failed You need to check the icon inside your APK because it is not valid
I have solved the issue. I have renamed the apk file to zip and explore the drawable folder and found there was some images which i have already deleted from project but they are still showing in apk. After deletion of those files the apk uploaded successfully. I do not why the deleted images still in apk's drawable folder.

Categories : Android

how can i using icon-user & icon-lock bootstrap css framwork in a form that in textfield to show the icon
Try it <div class=" container"> <div class="hero-unit clearfix"> <div class="pull-right"> <form class="well"> <label>Username</label> <div class="input-prepend"> <span class="add-on"><i class="icon-user"></i></span> <input type="text" placeholder="Type your username"> </div> <label>Password</label> <div class="input-prepend"> <span class="add-on"><i class="icon-lock"></i></span> <input type="password" placeholder="Type your password"> </div> <label class="checkbox"> <input type="checkbox">Remember me </label> <button type="submit" class="btn

Categories : HTML

Calendar shows on icon as well as inline calendar from input box
In showOn, instead of "button" use "both" $(".dob1").datepicker({ hideIfNoPrevNext : true, yearRange : "-95", showOn: "both", buttonImage : rootPath + "images/callender-icon.png", buttonImageOnly : true, changeMonth : true, changeYear : true, maxDate : '-18Y', dateFormat : "mm/dd/yy", buttonText : "Choose date of birth", inline : true });

Categories : Jquery

list.getchildAt(i) return null pointer ,only shows visible views not shows more
I guess you should think fo a better approach than iterating over the EditTexts with getChildAt() to collect all the value. I take it that the user can change the values in the EditTexts, you can have an Array of size 30 of Values and everytime the user enters / changes a value you change the according value in the Array. Use a listener that changes the values in your Array like this.

Categories : Android

My horizontal navigation menu shows as 1 line in chrome, others shows 2 lines
you are aware that in: .mainnav ul li a:link,.mainnav ul li a:visited there are double padding decalarations? padding:4px; padding: 0 0.73em; You can combine those: padding: 4px 0.73em; Seems that the issue with the navigation list is that there is too much spacing in between them in combination with the amount of items. I there are too much items, the normal behavior is the wrapping, you could decrease spacing, font-size to fix this.

Categories : HTML

My hibernate application shows message in console and shows session closed error on browser
At first look it seems like a possibility of 2 issues ContactManager object which you are trying to save is null Your variable name 'Contact' is incorrect, it should be 'contact' (some hibernate thingy) Where is your hbm.xml file ? There may be a reference of 'Contact' the class in that file still around somewhere Edit Solutions Put a if (developer != null) before your 'save(developer)' Rename Contact to contact Put the hbm file contents on the question, without that cant review the mapping Hope it clear now. Edit 2 : Do a clean build. Its possible your build is not updated.

Categories : Hibernate

TotalResults count changed when page index changed FullTextQuery in sharepoint search
the problem is caused by the paging web part. If you modify it to show all the pages, the statistic total results number will be always the same. For example, from the paging web part properties, change the number of pages before and after current page to 1000, then you will see that your problem will not exist anymore!! This is a bit ugly if you have many pages!!! Check out this: http://kamilmka.wordpress.com/2012/04/14/customize-sharepoint-search-results-paging/

Categories : Sharepoint

post create test for user count failing. Should be changed by 1, but was changed by 0
Your test involves creating a second user with FactoryGirl, but the creation of the second user is failing because the email is the same as the first and you have a uniqueness validation on that attribute. You can either not create the first user at all or you'll need to make the emails different (e.g. by passing in an email parameter to your FactoryGirl call or changing the Factory to make each email address unique).

Categories : Ruby On Rails

Making sure elements changed by javascript remain changed when user returns to page without refreshing
Unfortunately, there's no real good answer to this one. The back button generally returns to a version of the page cached on the users browser, and interacts poorly with many forms of dynamic content. You might consider trying to convince your users not to use the back button (made easier by a robust navigation bar or equivalent that they can use instead) or putting in a helpful note. There are also various meta-tages you can put in to tell the browser not to cache the page (thus causing them to load it fully every time), but this can slow things down, and may not be followed by all browsers.

Categories : Javascript

String variable shows as empty but length shows it to not be
.NET uses BStrings, which are length-prefixed and null-terminated. So if the first character in RecievedString is the null character (''), then it will not be printed, since strings end at their first null character.

Categories : Vb.Net

jQuery Mobile data-icon=bars displaying as plus icon when using Doctype
This is just a typo. Replace data-icon="Bars" with data-icon="bars" And your'e good to go. You have to follow the exact case when it comes to images. The full set can be found here : http://api.jquerymobile.com/icons/ Here's a demo : http://jsfiddle.net/hungerpain/cpRh2/1/

Categories : Jquery

Change application taskbar icon at run time(ignore shortcut icon)
Shortcuts have nothing to do with how the application icon appears on the taskbar, a shortcut only points to the actual executable that has the icon embedded as a resource. Your problem could be the Windows Icon Cache. This is a common scenario where the Icon Cache isn't updated properly. You should rebuild/refresh your icon cache, then you should see the currently loaded application icon appear on the taskbar, and you can then use the Application.Icon.Load... to swap the icons between modes. It could also be just due to your taskbar options. If you have your taskbar set to combine both Icon + Label then the icon does not change. Make sure that the option is set to don't combine or combine only if taskbar is full.

Categories : Delphi

Adding a icon on the first item on listview: scrolling it, the icon moves randomly
OK, we need to see your full code to get an idea of what's wrong here. Can you show us the actual Java / XML files? First of all, what's the default value for the visibility on your list items? Make sure that the plus button is set to View.GONE by default, and that the list items are set to View.VISIBLE. Secondly, are you duplicating the same view for each list item? Does that mean that all imgicons have the same ID? Maybe you should programmatically insert the imgicon into the first list element, and ONLY the first list element.

Categories : Android

Combinging "icon" and "apple-touch-icon" link types
This solution is very promising. Unfortunately, it does not work. I have just tried with an iPad Mini, running iOS 7.0.4 and Safari with the following code: <link rel="icon apple-touch-icon" type="image/png" sizes="57x57" href="/apple-touch-icon-57.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="114x114" href="/apple-touch-icon-114.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="72x72" href="/apple-touch-icon-72.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="144x144" href="/apple-touch-icon-144.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="60x60" href="/apple-touch-icon-60.png"> <link rel="icon apple-touch-icon" type="image/png" sizes="120x120" href="/apple-touch-icon-120.png"> <lin

Categories : IOS

'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format'
After Apple launched iOS 8, iPhone 6 and 6 Plus, the app icon sizes and launch image sizes changed; please visit my post for new sizes: Image resolution for new iPhone 6 and 6+, @3x support added? Yes, you need to add a 120x120 high resolution icon. Now, if you want to target only iOS 7, you just need 76 x 76, 120 x 120 and 152 x 152 icon sizes. If you also want to target iOS 6, you’ll need 57 x 57, 72 x 72, 76 x 76, 114 x 114, 120 x 120, 144 x 144 and 152 x 152 icon sizes. Without counting Spotlight and Settings icon if you don’t want the OS to interpolate them! As per the blog post New Metrics for iOS 7 App Icons. UPDATE: As per Apple Guideline App-icon OR Icon and Image Sizes: Icon dimensions (iOS 7 and later) Icon dimensions (iOS 6.1 and earlier) Create differ

Categories : Iphone

Source File Changed But Page is not Changed
Did you try clearing browser cache yet? Here is how to clear cache. For development purpose, you can disable caching in chrome as shown here.

Categories : Misc

How to make my jlabel with icon look like desktop icon?
This is how you can do it, JLabel l=new JLabel("My Documents"); l.setIcon(new ImageIcon("mydocuments.png")); l.setHorizontalTextPosition(SwingConstants.CENTER); l.setVerticalTextPosition(SwingConstants.BOTTOM); l.addMouseListener(new MouseAdapter(){ public void mouseClicked(MouseEvent me) { if(me.getClickCount()==2) { try { Desktop.getDesktop().open(new File(System.getProperty("user.home")+"\My Documents")); }catch(Exception e){} } } });

Categories : Java

How to reload a webpage after a specific time without refresh the page(address bar will not be refresh) by jquery/ajax
if you want to reload the page , the whole url will be reloaded, you can't do anything about that but if you want to reload some specific location of the webpage which is getting data form database then you can by just calling jquery ajax which will get updated data from database. this technique is used by many websites to update the time of post or comment

Categories : PHP

jQuery DataTables serverside refresh issue when less rows are received on refresh compared to initial load
There are API function in DataTables and of these, fnDisplayStart() (http://datatables.net/plug-ins/api#fnDisplayStart) will solve this problem. After the initialization, I just have to make a call to oTable.fnDisplayStart(0) and the table will point to 1st page.

Categories : Jquery

refresh the table in view controller by using refresh bar button
try this . [self.tableView beginUpdates]; [tableView reloadRowsAtIndexPaths:[tableView indexPathsForVisibleRows] withRowAnimation:UITableViewRowAnimationNone]; [self.tableView endUpdates];

Categories : Iphone

Auto Refresh Portlet Liferay 6.0(Periodically refresh)
If you want update your portlet at regular interval, you can make use of serveResource method. Make an ajax call to serveResource method and you can set setTimeout on this ajax call. Following is the sample code snippet - function <portlet:namespace />get_updated_data() { var f = jQuery.ajax({ type: "POST", url: '<<resourceUrl>>', data: {"name" : "val"}, dataType: 'json', async: false, }).success(function(data){ // success code here }).complete(function(){ setTimeout(function(){<portlet:namespace />get_updated_data();}, 5000); }); }

Categories : Java

Why when i close my application from the icon tray sometimes the icon is left on even after the application is closed?
You can either set notifyIcon1.Visible = false; or notifyIcon.Icon = null; in the form closing event. (from NotifyIcon remains in Tray even after application closing but disappears on Mouse Hover )

Categories : C#

How to change filter icon color or filter icon when column is filtered
This is supported out-of-the-box. Take a closer look at the demos when you filter change the theme if needed. Or modify the CSS of a particular theme to make it more clearly visible.

Categories : Kendo Ui

The session has been invalidated because the user has changed the password -> no Password was changed
Actually there's nothing wrong in your flow. It actually throws that error when the token is expired. We've experience this kind of error before and what we did was we regularly check that the accessToken is still valid if it is not then we generate and save a new one. However, when we set the accessToken that will be used we also extend the life of the token prior to saving it in the local database. See extendedAccessToken Here's a sample update (This is just a rough code): // Set the access token and extend it $facebookClient = new FacebookClient(); $facebookClient->setAccessToken($accessToken); $facebookClient->setExtendedAccessToken(); // Query your user that will have the updated access token and update it. $user = User::get($userId); $user->accessToken = $facebookClient

Categories : Facebook

jQuery if valid show icon else show invalid icon
JS if ($('input').hasClass('woocommerce-invalid')) { $('#someDiv').addClass('red-cross'); } else { $('#someDiv').addClass('green-tick'); } CSS .red-cross{ background-image: url('red-cross.png'); } .green-tick{ background-image: url('green-tick.png'); }

Categories : Jquery

Show loading icon whenever the browser loading icon is active
Buffering Case your PHP scripts are causing a slow load you must put' em in buffer. So, when the load is finished you can free this buffer. This isn't so hard to implement. See the PHP output buffering control documentation for this: PHP Output Buffering Control Finished the loading of the buffer You can make like this: http://jsfiddle.net/S9uR9/ $(window).load(function () { //hideLoading(); }); hideLoading = function() { $('.loading').fadeOut(2000, function() { $(".content").fadeIn(1000); }); }; hideLoading(); In your page, try to remove the commented line in $(window).load() function and comment the last line hideLoading();. Detecting browser’s activity I've noticed that some browsers show a loading icon

Categories : PHP

How to implement Pull down to Refresh and pull up to refresh in Expandable List View
This library supports ExpandableListView with PullToRefresh. https://github.com/chrisbanes/Android-PullToRefresh Replace your <ExpandableListView> with <com.handmark.pulltorefresh.library. PullToRefreshExpandableListView>.

Categories : Android

WinDbg shows some variables but not others, shows some variables in same location
<> Nowadays Compiler has been enhanced a lot to get better optimized binary with optimized performance and other metrics. Hence compiler store few variables as locals(visible via 'dv /v' command) and store other variables in their registers. That's the reason you didn't see variable int myInt in dv command. We can get to know which registers are being used for the variables, by disassembling the function using 'uf binary!functionname' or by viewing disassembled code in Windbg View-> Disassembly. Note that the driver may behave little differently with and without optimization of the compiler in the aspects of performance, memory usage, etc. So its always recommended to debug the one generated from the default optimized compiler, as this is the one used in realtime user scenario.

Categories : Windows

How to change a resource icon in a imageview with another resource icon
Try this: ledicon.setImageDrawable(getResources().getDrawable(android.R.drawable.presence_busy)); (When accessing system resouces you have to look them um in android.R not your own.)

Categories : Android

Testing JavaScript With Firefox - refresh does not seem to always refresh JavaScript
This particular problem is caused by caching. It is both useful and sometimes pain. JavaScript Library like jQuery uses a simple technique when we add script to the DOM. It appends a random key at the end of file, thus faking the HTTP request as new. Normally, you would not require the script to change when viewed by the user, but when you are developing it becomes a real pain. So during those time, just add some random text at the end of every file during load or if you are too lazy to do that, send a header saying to clear the cache. In PHP something like at the top will do it: header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1990 05:00:00 GMT");

Categories : Javascript

Rails command working , rails -v shows Rails 4.0.0 , gem list rails shows 3.2.13
I don't know why you want remove rails 4, if you are already using rvm you should easily switch between ruby/rails versions without any problem, if you don't know rvm i recommend you to read why-you-should-use-rvm if you should remove obligatory rails 4.0.0 try this command : gem uninstall rails --version 4.0.0 if this can't solve your problem please add more details in your question

Categories : Ruby On Rails

what has changed in the set before and after
You could store each list in bags then find the change in occurencies of each item type in the bags. Here's some Python: >>> # Original data ... l1, l2 = [3,3,5,8,1], [5,3,2,4] >>> # Pythons Counter class in also known as a bag ... from collections import Counter >>> c1, c2 = Counter(l1), Counter(l2) >>> # Quick calculation ... diffs = {item:(c2[item] - c1[item]) for item in set(c1) | set(c2)} >>> diffs {1: -1, 2: 1, 3: -1, 4: 1, 5: 0, 8: -1} >>> # Or if you want it wordy ... for item in sorted(set(c1) | set(c2)): ... print('Item %i changed its occurences by %2i' ... % (item, c2[item] - c1[item])) ... Item 1 changed its occurences by -1 Item 2 changed its occurences by 1 Item 3 changed its occurences by -1 Item 4 chang

Categories : Algorithm



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