wordpress if statement if logged in then show different button
Vote count: 0 i have homepage with 2 buttons that show up How it works Sign up here is the php code i have and i beleive html code <?php $PricerrTheme_enable_how_it_works = get_option('PricerrTheme_enable_how_it_works'); if($PricerrTheme_enable_how_it_works != "no"): $hthing = get_bloginfo('url'). '...
Can Firebase generate static files?
Vote count: 0 As the title says, can I use firebase to generate static files? EG: Could I have some kind of markdown stored in the DB, and have a static html file generated every time it is updated? Or is it only a deployment task to update the static files? asked 37 secs agoJNAB Let's block ads! (W...
How to get current context in Microsoft Bot framework
Vote count: 0 I am building a form using "FormDialog" to which I am passing a "BuildFormDelegate" parameter (a static method). In this method, I need the context to acquire user data(user data is stored as part of context written using an extension public static async Task GetAccessToken(this IBotCo...
ASP.net MVC fire controller event when view load
Vote count: 0 I'm using ASP.net MVC and angular js to create a web. I used angular ng-route to render a View when click a link. A the moment when render the View, i want fire the Controller event in order to bind the data and display it. (Similar with ASP.net web form, when page load then can call t...
How to iterate formgroup with array in Angular2
Vote count: 0 I'm working on a model driven form and I can't get it to add items to a list being displayed with ngFor. I'm currently getting an error when trying to iterate my list. Error: Error: Ca ot find control with path: 'locations -> i' at new BaseException (exceptions.ts:21) at _throwError (s...
Xamarin custom attribute of reference type does not work
Vote count: 0 I'm trying to create a custom attribute for my control. Here's my attrs.xml: <?xml version="1.0" encoding="utf-8" ?> <resources> <declare-styleable name="ImageView"> <attr name="testcustom" format="reference"/> </declare-styleable> </resources> In my test app at root, I add this namesp...
Magento show shipping cost ex and inc tax on invoice
Vote count: 0 On the invoices of my webshop I want to show the shipping cost ex tax and inc tax. The shipping costs are calculated with tablerates.csv. Now it shows it like this: with the same price for excl tax(BTW) and incl tax(BTW) same tax prices This are my TAX settings: tax settings I dont kno...
FCM for electron APP
Vote count: 0 I have been using FCM/GCM to send notifications to Chrome App, Chrome Extension, Android APP. But, may I know how can I send notifications to an electron APP from FCM/GCM. I browsed through a lot of websites but did not find anything related to it. PS: I don't worry about how the notif...
Ansible loop over list var
Vote count: 0 I am trying to add users belongs to group abc into group xyz. to do this in ansible I am doing following - name: Get the list of user belongs to abc group command: lid -g -n abc register: abc_users - name: Add user belongs to abc group to xyz group user: name={{ items }} groups=xyz app...
How to use Signal after a Save is called
Vote count: 0 from django.db.models.signals import post_save from django.dispatch import receiver class Co ector(models.Model): co ector_id = models.AutoField(primary_key = True) name = models.CharField(max_length=255, null=False,unique=True) description = models.TextField(null=True) class Co ectorA...
How to "uncast" a Javascript enum to a string?
Vote count: 0 I'm using Google Apps Script, whose Drive library has the following function: setSharing(accessType, permissionType) accessType: Access (enum) permissionType: Permission (enum) To allow for a good user experience, I have the following objects to match enum values to nice Strings, and v...
Merging or concating two mp4 Files using java
Vote count: 0 I am trying to merge two mp4 files which are having different frame rates using following code: public class MergeMP4 { public static void main(String[] args) throws IOException { String[] videoUris = new String[]{ "D:/m2.mp4", "D:/m1.mp4"}; List<Movie> inMovies = new ArrayList<Movie>(...
Applet Menu automation in Selenium
Vote count: -1 How can I automate Applet Menu by using selenium Web driver I'm trying to automate applet menu in IE8 using selenium, i tried many ways. I can't find any way to click on menu. Am i missing some thing regarding this how to do ? Need assistance. asked 3 mins agoadla praveen Let's block ...
Android Update PHP MySQL table
Vote count: 0 I am working on an Android App. I need to update a register, I dint have issues with entries. But when I try to update the table, Doesnt work this my PHP <?php require_once 'include/userupdate.php'; $use ame = ""; $name = ""; $movil=""; $email = ""; $password = ""; $fnac = ""; $calle_n...
Uncaight Error: undefined vairable google maps api
Vote count: 0 I am working on something and i ran into a small problem because a variable is not defined and I cant figure out why.The vairalbe that is pointItem which is in the first like of the marker function towards the very end initialLocation = { center:{ lat: 34.04129, lng: -118.263667 }, zoo...
How to filter result in mongoose by using lodash
Vote count: 0 I would like to show only partners that a user is assigned to, I have a list of partners as below: { "_id" : ObjectId("57c1cfa16c9cdc9007b26f8a"), "__t" : "Partner", "createdAt" : ISODate("2016-08-27T17:36:33.648+0000"), "updatedAt" : ISODate("2016-08-27T17:36:33.648+0000"), "user" : O...
How can I change the colors of TabHost?
Vote count: 0 I want to change the Colors of the Tabs (Activated Tabs and Inactivated Tabs). I know, how I can change the background images, but not, how I can change the colors of the tabs :-( My Java Code: public class Inventar extends TabActivity { @Override public void onCreate(Bundle savedInsta...
Open Source License information for ColorPicker
Vote count: 0 I'm trying to find license information to use the open source code ColorPicker in my app. However, I can't seem to find any license file for the project. Does anyone know what kind of license they use or how to find them? Thanks. https://android.googlesource.com/platform/frameworks/opt...