w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to customize submenus isn wordpress theme
This is within your css. Since we don't have a link to your website we could only direct you to the most common place for it. (use dev tools to inspect them) SOMETHING like this in your CSS .menu-top-navigation-container {...} // first list item #menu ul li {..} //second list item #menu ul li ul li{...} //second list item linkable text menu ul li ul li a{...} This is all hypothetical. Your theme will most definitely be different but this is where you style them.

Categories : Wordpress

Vaadin 7 - Requested resource not found
Did you make sure that the file styles.css exist in the path /VAADIN/themes/connect/styles.css? If not, you can always compile your themes with mvn vaadin:compile-theme.

Categories : Java

Wordpress admin so slow related to theme
I found the answer (True theme support helped me to find it): There is an "notify updates" option that contacts their server every time you load an admin page. It wastes a lot of time. Now, the page loads in 3 sec.

Categories : Wordpress

Theme.AppCompat.Light.DarkActionBar - No resource found
In "android-support-v7-appcompat" project: Delete “android-support-v7-appcompat” from Package explorer. Import again and check “Copy into workspace” In Properties -> Android -> in Project build target, uncheck Android 2.2 and check Android 4.1.2 In Java build path, uncheck if you have any .jar library, and uncheck the Dependences In other hand, the project that uses “android-support-v7-appcompat”: In Properties -> Android add the library, but uncheck "IsLibrary”. In Android -> Project build tarjet check Android 4.0. In "Java Build Path" -> Order and Export -> Unchecked the .jar library Finally do a “Project -> Clean” both projects

Categories : Java

No resource found that matches the given name 'android:Theme.Holo.Light'
First there is problem in the parent attribute, you have to use parent="android:style/Theme.Holo.Light" Second, Since Holo Theme was introduced in API level 14... so you have to change your android:minSdkVersion="8" to android:minSdkVersion="11", On newer versions it will automatically use Holo theme. You can further read about Holo Theme at On Android Developers Blog on Developers.Android.com However if you want to support previous versions of Android for Holo Themes. You can use Holoeverywhere library.

Categories : Android

magento theme falling back to default theme evenafter theme is changed in admin side
In System > Configuration > GENERAL > Design > Package > Current Package Name, you put the name of the folder that is directly under app/design/frontend/ that you are going to use for your theme. inside this folder is your theme. if the theme you are using is not 'default' you need to put the name of this folder to System > Configuration > GENERAL > Design > Themes > Default. eg: if your package name is mypackage and theme name is mytheme you need to put those in current package name and default themes respectively

Categories : Magento

The requested resource (/StrutsHelloWorld/) is not available. Jboss AS7 Server
Add the following configuration to your "/" package <action name=""> <result>/Login.jsp</result> </action> and remove <welcome-file-list> <welcome-file>Login.jsp</welcome-file> </welcome-file-list>

Categories : Java

No resource found that matches the given name '@style/ Theme.Holo.Light.DarkActionBar'
Do this: "android:style/Theme.Holo.Light.DarkActionBar" You missed the android keyword before style. This denotes that it is an inbuilt style for Android.

Categories : Android

when I tried to open the dashboard of the wordpress multisite network admin (child theme) I am getting 404 error
there is no .htaccess file in the IIS server, I have a web.config file that is generated by wordpress itself at the time on installation of multisite. web.config generated by wordpress <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="WordPress Rule 1" stopProcessing="true"> <match url="^index.php$" ignoreCase="false" /> <action type="None" /> </rule> <rule name="WordPress Rule 2" stopProcessing="true"> <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" /> <action type="Redirect" url="{R:1}wp-admin/" redirec

Categories : Wordpress

No theme files found in LAN in Wordpress
I don't fully understand your question. If you want to browse your localhost site from other computers on same IP, you should use http://yourcomputername/wordpress_site/ "yourcomputername" is where you installed the wamp / xampp Also You should have to change WordPress Address (URL) and Site Address (URL) to http://yourcomputername/wordpress_site/ In wordpress Settings > General http://localhost will only work on the computer where you installed wamp

Categories : Wordpress

Spring MVC with Jackson 2.2: "HttpMediaTypeNotAcceptableException: Could not find acceptable representation"
Alright, I figured this out. First, as suspected, Spring MVC wasn't calling Jackson to serialize the entities. As I found here, I needed to modify mvc:annotation-driven to <mvc:annotation-driven> <mvc:message-converters register-defaults="false"> <bean id="jacksonMessageConverter" class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"/> </mvc:message-converters> </mvc:annotation-driven> After that was done, I was back to Direct self-reference exception... So after I looked that up for a good hour, I finally found I 'simply' needed to add an annotation to some classes. @JsonIdentityInfo(generator=ObjectIdGenerators.IntSequenceGenerator.class, property="@id") This annotation means that if some object is repeat

Categories : Json

How to overcome from the error " The requested URL was not found on this server "in AVfoundation
you problem here is, you are first deleting the file and trying to use it with export session. You should not delete the file while export is in progress, and I recommend you to save exported file to temporary directory, after export is done, just delete your old file and move the exported one to the original file URL. Good Luck!

Categories : Iphone

Kohana : Kohana_HTTP_Exception [ 404 ]: The requested URL calendar was not found on this server
Kohana's naming conventions tell you how you should name and locate your classes. In this case Kohana is looking for a class named Controller_Calendars_Calendar in location application/classes/Controller/Calendars/Calendar.php. It finds the file but not the class. You should name your class Controller_Calendars_Calendar or move the file to application/classes/Controller/Calendar.php

Categories : PHP

ASP.NET MVC3 The requested name is valid, but no data of the requested type was found
I got the same error due to my connection string. It included a port number, but the correct connection string has to be like this: <add name="myConnectionString" connectionString="Server=localhost;Database=mydatabase;Uid=root;Pwd=password;Allow Zero Datetime=true" providerName="MySql.Data.MySqlClient"/>

Categories : C#

How to migrate only wordpress theme from localhost to live server
OK these are the steps that i do for putting site from local to live. First move full wordpress site including all wp-admin,wp-content,wp-includes and files to you live server then export you local server database and this is the trick, open the .sql in a text editor like dreamweaver then replace all links like http://localhost/site to http://www.livesite.com and now move or import this db to live server and apply settings in wp-config.php. it always works for me.

Categories : Wordpress

server error in '/' application. resource not found (when modified)
try this: clean solution and rebuild solution restart visual studio get specific version with latest and overwrite everything (be sure nothing is checked out)

Categories : Asp Net Mvc

How to customize "not enough columns given to draw the requested chart" message?
There is a bunch of events, methods and tools google charts / visualization offers for customizing error handling, error messages and so on. For example, see https://developers.google.com/chart/interactive/docs/reference#errordisplay or https://developers.google.com/chart/interactive/docs/examples#querywrapper According to what you are asking for, the easiest way would be to simply attach an errorhandler and in that handler, remove the error through google.visualization.errors. Like this : function errorHandler(errorMessage) { //curisosity, check out the error in the console console.log(errorMessage); //simply remove the error, the user never see it google.visualization.errors.removeError(errorMessage.id); } function drawChart(json) { var data = new google.visual

Categories : Javascript

How to redirect user to 404 page not found error when non admin try to access wp-admin or wp-login.php
I assume that you're trying to protect yourself from brute-force attacks? Why not just limit the frequency of allowed login attempts? There is a pretty solid plugin called "Limit Login Attempts" which will track per IP and the use of cookies. Check it out here: http://wordpress.org/plugins/limit-login-attempts/ Trying to mask the login page is an interesting idea, though. You could just create your own login page somewhere and have it interact with a custom login script that you write. This would allow you 301 redirect the login pages to a 404 page without messing with any core functionality. You could have a form at something like https://yourwpsite.com/supersecretlogin and then have it POST to a custom handler that uses the wp_signon method. Here's an example of how to log someone in

Categories : Wordpress

The requested resource (/WelcomeServlet) is not available
The following servlet worked for me (Tomcat 7.0.40, java version "1.6.0_45"). Note that: The leading '/' was required in web.xml for the <url-pattern>--I tested it. And my Head First Servlets book says the leading slash is required(2004, p.586). The leading slash also seems to be required for the new syntax: @WebServlet("/WelcomeServlet"). Without the leading slash, my project threw all kinds of exceptions. A leading slash is not required in the form's action attribute. The browser has rules for assembling urls from relative paths(i.e. ones that don't start with a slash), to produce the final url. So for the form's action attribute, you can use either an absolute path(leading slash) or a relative path(no leading slash) as long as the relative path resolves to the same path as t

Categories : Java

AngularJS $resource not sending X-Requested-With
It used to but was changed. (see here) "X-Requested-With header is rarely used in practice and by using it all the time we are triggering preflight checks for crossdomain requests." From Thomas Pons' answer here.

Categories : Angularjs

login.xhtml: The requested resource is not available
The webapp's runtime classpath is a mess. The webapp's /WEB-INF/lib seems to contain JSF and JPA libraries which are already provided by TomEE itself as being a Java EE web profile compliant container. Tomcat is a barebones JSP/Servlet container and does therefore not ship with e.g. JSF, JPA, EJB, etc. That's exactly why you need to provide and configure JSF, JPA, EJB, etc manually along with the webapp for Tomcat. But for TomEE (and Glassfish, JBoss AS, etc) that's thus absolutely not necessary and would only end up in classloading conflicts because of duplicate different versioned libaries in the runtime classpath. Get rid of libraries in /WEB-INF/lib which are already provided by the target container itself.

Categories : JSF

Adding hypermedia for resource JSON representation using Jackson
You might want to take a look at jersey-linking. It basically uses annotations to generate URIs for you.

Categories : Java

REST - Different representation and resource access based on user
Should an application user see a different representation of the User (author) resource when following the link based on who they are? Yes. You definitely don't want every user able to see every other users' preferences. In either case, what part of REST tells the client that they have permissions to CRUD a resource? REST doesn't really handle authorization. You'll need to track that in your application.

Categories : Api

The requested resource does not support http method 'GET' ASP MVC
You declared your controller action as static which is obviously not supported. Controller actions are instance methods. So make sure you declared your action as an instance method: public class ADUsersController : ApiController { [HttpGet] public List<Models.Users> GetADUsers() { return AD.GetUsers( System.Configuration.ConfigurationManager.AppSettings["NETBios"], System.Configuration.ConfigurationManager.AppSettings["Container"], System.Configuration.ConfigurationManager.AppSettings["ADServerUN"], System.Configuration.ConfigurationManager.AppSettings["ADServerPW"] ); } }

Categories : Ajax

Getting 404 requested resource not available in spring restful web services
I beleive you need to put the RequestMapping for your method with a /. Something like this: @RequestMapping(value = "/", method = RequestMethod.GET) public String getHello() { return "hello world"; }

Categories : Java

Wordpress wp-admin login facing with HTTP Error 500 (Internal Server Error) issue
After having this problem recently, I tried all the solutions mentioned all over the internet and I got nothing. You might want to try deactivating your plugins as mentioned Here amongst many other solutions. Try renaming your theme directory to deactivate it (can be done via FTP) Try increasing your PHP MEMORY LIMIT Try fixing your .htaccess file All these solutions (detailed here) did not work for me. I checked the server error log and I found that the problem was simply that the directory "wp-admin" was writable by group! So simply changing the permission of that directory from 777 to 755 solved the problem for me! Hope this helps someone

Categories : PHP

WordPress: How to add some of tags automatically during installation of WordPress theme?
Put a register_taxonomy() in theme's function.php. I'm copy pasting from WP Codex // Add new taxonomy, NOT hierarchical (like tags) $labels = array( 'name' => _x( 'Writers', 'taxonomy general name' ), 'singular_name' => _x( 'Writer', 'taxonomy singular name' ), 'search_items' => __( 'Search Writers' ), 'popular_items' => __( 'Popular Writers' ), 'all_items' => __( 'All Writers' ), 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit Writer' ), 'update_item' => __( 'Update Writer' ), 'add_new_item' => __( 'Add New Writer' ), 'new_item_name'

Categories : Wordpress

Android resource not found exception. Specify a resource by string
You normally don't use a string, you access them by id. R.raw.camaro_obj will be an int and you can get an input stream to it by calling getResources().openRawResources(R.raw.camaro_obj); Edit: I did some googling, this http://androidbook.blogspot.com/2009/08/referring-to-android-resources-using.html may help

Categories : Android

Customize ckeditor in django admin form
The best way of overriding field attributes I've found is to use a custom ModelForm thus: class XAdminForm(forms.ModelForm): name = forms.CharField(label='Name', max_length=100, widget=forms.TextInput(attrs={'size': '100'})) something = forms.CharField(label='Something', max_length=SOME_MAX_LENGTH, widget=forms.Textarea(attrs={'rows': '10', 'cols': '100'})) note = forms.CharField(label='Note', max_length=NOTE_MAX_LENGTH, widget=forms.Textarea(attrs={'class': 'ckeditor'})) class Meta: model = x class XAdmin(admin.ModelAdmin): model = X form = XAdminForm class Media: js = ('/static/js/ckeditor/ckeditor.js',) admin.site.register(X, XAdmin) You can inject additional attributes or

Categories : Django

Can i customize the magento back end for admin users?
Yes, it is possible. You can develope a simple module or a simple php one-file-script and add products easily using Magento API. You can set default values to some attributes inline. I found a blog post, I don't recommend to use that code because it looks messy, but it will give you a hint; http://magentocoder.jigneshpatel.co.in/automated-quick-simple-product-creation-in-magento/ Also, there's a non-free module in magento connect named "Quick Product Add". It looks like what you need but I didn't test it and this is not a recommendation. You can find it here; http://www.magentocommerce.com/magento-connect/quick-product-creation.html

Categories : PHP

Is it possible to use a regular wordpress theme without wordpress functionality
Since a wordpress theme is just a bunch of html/css/js/php files, yes, it is possible. Depending on what language/framework will used backend side, the easiest way would be to extract the html/css/js parts of the theme and than add your own "content-placeholders" which will be used by your own backend. But: Think twice about doing this. First, there could be a conflict with the license of the theme (depending on what type of license is used by the author of the theme). And more important, second, you should think twice about building your own backend. For the case this isn't an experiment and you're building a productive website, building you're own backend is a lot of work. Unless you need some special functionalities (or you would like to keep it very slim and basic), I would suggest

Categories : Wordpress

Sonata User - Customize admin query with security
You have to inject the security context service in your UserAdmin service. In order to do that, you have to update the services.yml of your bundle: services: # ... sonata.admin.user: class: MyProjectBundleAdminUserAdmin tags: - {name: sonata.admin, manager_type: orm, group: users, label: users} arguments: - null - ApplicationSonataUserBundleEntityUser - SonataAdminBundle:CRUD - @security.context #forth argument calls: - [setTranslationDomain, [MyProjectBundle]]           - [setUserManager, [@fos_user.user_manager]] In you UserAdmin class, override the constructor: namespace MyProjectBundleAdmin; class UserAdmin extends Admin { private $secutiryContext = null;

Categories : Security

Can I customize multiple table insertion from django admin
Yes sir that's possible. On your admin.py file: class Employee_wage_detailsInline: model = Employee_wage_details class Employee_masterAdmin(admin.ModelAdmin): inlines = [Employee_wage_detailsInline] admin.site.register(Employee_master, Employee_masterAdmin) I recommend camelcase for the model name like: EmployeeWageDetails

Categories : Python

How to customize the list data view in Django admin interface?
You have to build your own view and add it to admin. Maybe the admin list_view is a good starting point. If this sounds too much of work, I could imagine three work arounds: Make a new column for each task and each deadline and add the tasks and dealines there like "task_taskname" etc. Of course, this will be too much information if you are haveing mor then two or three tasks in each project. Reverse your logic! Don't make a list_view for projects, but for tasks! You can still add the project name to this list. In fact, this is your current TaskAdmin. Generate the entrys for Task Name and Deadline using model functions. Additionally, give a short description like get_all_tasks.short_description = 'Task Name'. That should do the trick! Funny enough, your question might have triggerd s

Categories : Django

Azure Table Storage SaveChanges returns "The requested operation is not implemented on the specified resource."
The problem is that float point storage is not implemented for Azure Storage Tables. Changing the amount type to a double will fix the problem. public class MyEntity : TableServiceEntity { public string Title { get; set; } public string Description { get; set; } public double Amount { get; set; } // <-- Note change here!!! public DateTime CreatedAt { get; set; } public DateTime UpdatedAt { get; set; } }

Categories : C#

I am getting "Requested URL not found..." error with cURL. Any ideas?
So you're looking to retrieve the 301/302 redirect target, but not actually follow it? Set CURLOPT_RETURNTRANSFER to true, and parse the Location: header out of the response. To see what I mean change your code to this: curl_setopt($resURL,CURLOPT_RETURNTRANSFER); $response = curl_exec($resURL); echo $repsonse IIRC CURLINFO_EFFECTIVE_URL won't change if you don't set curl to follow redirects.

Categories : PHP

CodeIgniter "The page you requested was not found." error?
This doesn't sound like a Codeigniter error. It could be your webserver configuration. Do you have a webserver and php server setup and configured on your machine? Have you configured an .htaccess file to replace "index.php"?

Categories : PHP

Symfony 2.3 Composer Requested Package Not Found
Strange, I copy & pasted your composer.json and did a "composer install" and it completed with no issues. My recommendation would be to make sure that composer is up-to-date (run "composer self-update") and then maybe try to clear the composer repository cache. There used to be an issue with cached repositories reporting that branches do not exist but supposedly it was fixed.. To clear the composer cache (adapted from the comment below): on a *nix box and have composer installed locally then it should in ".composer/cache" in your home directory. On a *Nix system with a Local composer: remove the ~/.composer/cache directory.

Categories : PHP

PHP redirect when URL is not requested through ajax (when on a wordpress page)
I was able to check how my pages were loaded using the condition below. if(strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') It allowed me to check if it was through Ajax or not. The value of $_SERVER['HTTP_X_REQUESTED_WITH'] is xmlhttprequest when the request was an ajax request. For my case, this is how I used it: if(strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') { header("Location: http://". $_SERVER['HTTP_HOST']."/"); } Which would check if the request was done through ajax, and redirect to the hompage of the website if not. I got the idea after reading this post Note: Usage of HTTP_X_REQUESTED_WITH depends on the JavaScript framework you are using, if it sets that header. I am using jQuery and it does it for you. Also $_SERVER is no

Categories : PHP

WPF Dynamically change resource file and theme
There are a few things to consider here. First, anything defined with StaticResource will not get updated on a change. If you want a control to support changing the theme at runtime, you need to use DynamicResource so it knows to look for changes. Your overall approach to changing the theme is correct. The easiest way to accomplish this is using Application-scoped resource dictionaries, making sure your ResourceDictionary is defined in your App.xaml. For adding a new resource, I've used snippets similar to the following: ResourceDictionary dict = new ResourceDictionary(); dict.Source = new Uri("MyResourceDictionary.xaml", UriKind.Relative); Application.Current.Resources.MergedDictionaries.Add(dict); The part you may be confusing yourself over is when using resources within base class

Categories : Wpf



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