Change the maximum upload file size

Change the maximum upload file size

I have a website hosted on a PC I have no access to. I have an upload form allowing people to upload mp3 files up to 30MB big. My server side script is done in PHP.Every time I try and upload a file, I receive an error claiming that the fil

JQuery - $ is not defined

JQuery - $ is not defined

I have a simple jquery click eventand a jquery reference defined in the site.master

How to add Class in  using wp_nav_menu() in Wordpress?

How to add Class in using wp_nav_menu() in Wordpress?

I am using wp_nav_menu($args) and I want add 'my_own_class' in element to get following Result:LinkHow to do that?Thanks 1:You can't add a class directly to the LIs very easily, but is there any reason not to target them in a slightly d

Change PDF title in browser window

Change PDF title in browser window

I have a pdf file that I am putting on a website for a client. It is located here...http://www.optiphysicaltherapy.com/dev/wp-content/uploads/2014/02/OPTI_NewPatientForms.pdfThe title should be OPTI New Patient Forms but if you look at the

Unable to install or run the application: Click Once

Unable to install or run the application: Click Once

I published my .net application using ClickOnce, and all my users get the following error message on trying to open the program:"Unable to install or run the application. The application requires that assembly Telerik.Windows.Data Version 2

Permalinks in Wordpress - Page not found

Permalinks in Wordpress - Page not found

I've been searching for hours but haven't found anything that seems to be able to solves this issue.Here's the scenario:I'm making a wp theme based on the "Twenty Eleven" theme. Everything went fine til I decided to change the urls to perma

Android notifications actions without opening the app

Android notifications actions without opening the app

I want to implement a notification action in JB. But it shouldn't open the app. The behaviour is similar to the Gmail apps delete notification action. How can I do this?Thanks in advance,Shashika 1:After some research I managed to achiev

Wordpress Error: Database Update Required

Wordpress Error: Database Update Required

I'm currently working with a client right now that clicked to update a plugin on WordPress. He's unaware of what plugin it was that he updated because he's clicked update in the past for other plugins and they just updated, so he paid littl

How to integrate Wordpress into Kohana 3

How to integrate Wordpress into Kohana 3

I now need to make a Kohana 3 site have a Wordpress blog.I've seen Kerkness' Kohana For Wordpress, but it seems to be the opposite of what I want.Here are the options I have thought ofStyle a template to look exactly like the Kohana site (t

Is it possible to disable meta refresh in Google Chrome?

Is it possible to disable meta refresh in Google Chrome?

On pages with meta refresh, is there any way to disable meta refresh, within a Google Chrome extension? 1:I was looking for the same kind of extension (Spanish online newspapers abuse of the meta/refresh tag), I found none, and, among ot

Show Attached Image to Post on Wordpress

Show Attached Image to Post on Wordpress

How i can show attached images of my posts on Wordpress? 1:Try this in your single.php template:$args = array('post_type' => 'attachment','post_mime_type' => 'image','post_parent' => $post->ID);$images = get_posts( $args );foreach($image

how to change session expire time in wordpress

how to change session expire time in wordpress

I want expire the session if user (admin) is inactive for 15 minute in wordpress site,can anyone tell me what is the default session expiry time in wordpress? and how to change that default expire time. 1:You need to do it manually. Unfo

WordPress: save `get_template_part()` to variable

WordPress: save `get_template_part()` to variable

In short, all I need is to make my WordPress do this$var = get_template_part( 'loop', 'index' ); but, get_template_part() does not return HTML, it prints it. I need this HTML stored in $var - do you have any ideas how to do it? 1:This i

Is Google Test OK for testing C code?

Is Google Test OK for testing C code?

So I've come to like and enjoy using Google Test for a C++ project I'm involved in. I'm just bringing up a new project that will be straight C (a library) and so far can't see any reason why not to continuing using Google Test, even though

Git Workflow with WordPress - Localhost to Live

Git Workflow with WordPress - Localhost to Live

I have a basic but common WordPress workflow question. Current WorkflowI develop everything locallyFTP files (and database dump) up to the server to show clientMake requested changes locallyFTP files (and database dump) up the server again

APC -> APCu / OPCache, performance poor

APC -> APCu / OPCache, performance poor

I have an m3.xlarge EC2 instance that I updated to PHP 5.5.11 today.With this update, it overwrote php55-pecl-apc with php55-pecl-apcu.After reading and experimenting, my understanding is that APC has been replaced with OPCache, except for

Feature Toggles vs Feature Branches

Feature Toggles vs Feature Branches

What are "Feature Toggles" and "Feature Branches" and what's the difference between them?What are the pros and cons? Why is one better than the other?I found some articles on Google regarding this, and I tend to be in the "Feature Toggles"

UIWebView delegate method shouldStartLoadWithRequest: equivalent in WKWebView?

UIWebView delegate method shouldStartLoadWithRequest: equivalent in WKWebView?

I have a module inside my iOS 7+ app which is a UIWebView. The html page loads a javascript that creates custom-shaped buttons (using the Raphaeljs library). With UIWebView, I set delegate to self. The delegate method webView: shouldStartLo

Database: To delete or not to delete records

Database: To delete or not to delete records

I don't think I am the only person wondering about this. What do you usually practice about database behavior? Do you prefer to delete a record from the database physically? Or is it better to just flag the record with a "deleted" flag or a

Uncaught TypeError: Object # has no method 'addPanel'

Uncaught TypeError: Object # has no method 'addPanel'

I am trying to implement an almost cross-browser bookmark functionality and found this on SO:How do I add an "Add to Favorites" button or link on my website?Now, I am using @PHPst's answer..it works on a plain webpage.. as demonstrated here

Include html in html through javascript

Include html in html through javascript

My question is similar to this oneHow to include an HTML page into another HTML page without frame/iframe?But the answers are not working for me. Objects and iframes create a box with scrollbars, which I don't want, and if I have links to o

Using a Relative Path in Javascript to Set Google Map Icon

Using a Relative Path in Javascript to Set Google Map Icon

I've set the icon image in my Google map using an absolute url as follows: icon: 'http://mysite/wp-content/plugins/my_plugin/images/icon1.png'I set the image in this script: http://mysite/wp-content/plugins/my_plugin/js/myscript.jsIs it po

How can I use is_page() inside a plugin?

How can I use is_page() inside a plugin?

I want my plugin to register a script only in a certain page.For example, inside my plugin file I want to write something like this:if (is_page()) { $pageid_current = get_the_ID(); $page_slug = get_post($pageid_current)->post_name;

jQuery width() incorrect immediately after document ready?

jQuery width() incorrect immediately after document ready?

For some reason $("...").width() is returning the wrong value immediately after document ready.I'm see these values:Immediately after document ready:$(document).ready(function(){ $("li.active a").width() //returns 76 - incorrect});$(docume

How to fix “TypeError: $ is not a function” error in WordPress custom page?

How to fix “TypeError: $ is not a function” error in WordPress custom page?

I created custom WordPress page via plugin where I want to toggle on/off comments using this code I placed it inside the tag. To generate tag I used standard WordPress function wp_head();. When I check the source code of the page I can se