Vote count: 0 Quite straight forward: public function demo(){ $this->Cookie->delete('Auth.User'); $this->Cookie->destroy(); if($this->Cookie->check('Auth.User')){ echo "yes"; }else{ echo "no"; } die(); } Getting "yes" all the time. Using CakePHP 2.7.3 asked 8 secs agoAlvaro Let's block ads!...
ادامه مطلبVote count: 0 I am trying to save my registered data to Firebase but get a "Caot convert value of type 'user' to expected argument type 'AnyObject?'" error. I tried many things but I can't seem to figure it out...can someone help me please? how do it save it? import UIKit import Firebase import FirebaseDatabaseUI class EventViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { //outlets for text & image @IBOutlet weak var photoImageView: UIImageView!...
ادامه مطلبVote count: 0 I am trying to remove required attribute from some hidden fields. $('#divQ9, #divQ10, #divQ11, #divQ12, #divQ13, #divQ14, #divQ15').find('input[type=radio]').removeAttr('required'); This above code works in all other browsers expect Chrome with version < 50 Please suggest any work around for the same. asked 1 min agoTejas Patil Let's block ads!...
ادامه مطلبVote count: 0 I followed the tutorial here http://www.tutorialspoint.com/hive/hive_installation.htm to install HIVE but I am getting this error when ruing bin/hive. Hadoop is ruing as I am able to access http://localhost:50070/dfshealth.html#tab-overview hduser@nikhil-Lenovo-IdeaPad-Y500:/usr/local/hive$ bin/hive SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/local/hive/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Fou...
ادامه مطلبVote count: 0 I'm trying to add Coverity to my Travis CI builds, but for some reason, even after following the instructions to enable Coverity, producing this .travis.yml file, the Coverity status seems to be stuck in "pending". Looking at the logs from Travis it appears to have an several errors: Downloading Coverity Scan Analysis Tool... ERROR: The certificate of ‘scan.coverity.com’ is not trusted. ERROR: The certificate of ‘scan.coverity.com’ hasn't got a known issuer. I'm not sure if this is...
ادامه مطلبVote count: 0 I've implemented ngAnimate into a project to help with animations, but I'm getting really odd behaviour with a certain element. To add some background, we have a shop with categories and products inside the categories. I'm doing an ng-repeat with: data-ng-repeat="product in currentProductCategory.Products" and I have data-ng-class="{ 'open': product.ShowDetails == true }" on my root element. My root element also has an id of product-{{product.Id}}-{{currentProductCategory.Id}} and ...
ادامه مطلبVote count: 0 I did this code up trying to hide a select input field until the check box is checked. It works but when the page first loads these are all visible. I need them invisible until the check box is filled in. If I load the page then click the checkbox and then uncheck the check box the object disappears so I know it's working but why does it appear at the begiing and more importantly how do I stop it from doing that? Code: function doruc() { var elem = document.getElementById("secondha...
ادامه مطلبVote count: 0 I am using struts 2 jquery grid version 3.5.1. Problem is frozen column setting not working. when i set frozen=truethen will show only one column in grid. have any idea about this. please see attach image file. asked 59 secs agoPramod Tiwari Let's block ads!...
ادامه مطلبVote count: 0 In one particular scenario I am taking the user to passcode settings page . below is the code used for this - [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=PASSCODE"]]; After upgrading to iOS 10 beta version I am no longer taken to settings passcode page instead it terminates the app . Can anyone please help me with this . Thanks in advance . asked 52 secs agovijeesh Let's block ads!...
ادامه مطلبVote count: 0 I am using Access and have a INSERT INTO statement taking data from a global table (Assets) into a local table (tblTempAssetRequest) on another form. Dim db As Database Set db = CurrentDb db.Execute "INSERT INTO tblTempAssetRequest (Item, Category, Description) SELECT Item, Category, Description FROM Assets WHERE Category = 'Tools'" The code runs, but no records get populated in my local table. Any help would be appreciated. asked 17 secs agoduberry Let's block ads!...
ادامه مطلبVote count: 0 This piece of code works fine in Firefox, Chrome and Edge, but it does not work properly in IE11 because of flex model, apparently. How can I fix it? This is how it looks in Firefox This is how it looks in IE11 body * { box-sizing: border-box; } html { height: 100%; } body { min-height: 100%; display: flex; flex-flow: column; margin: 0; } main { flex: 1; display: flex; } header, footer { background: #7092BF; border: solid; width: 100%; } section { border: solid; background: #9AD9EA...
ادامه مطلبVote count: 0 *This was previously marked as a duplicate in error. As you can see, I've already resolved the issue of validation that at least one checkbox has been checked. Please read to the end, the issue is integration with WordPress (and possibly Divi theme). The code breaks upon insertion into the theme. I've been searching for a way to validate that "at least one checkbox has been checked" for a mailchimp form, with regards to forcing the user to select at least one (but potentially more ...
ادامه مطلبVote count: 0 I am using this https://github.com/krisrak/jquery-cordova-oauth2 jquery plugin for facebook login, on hybrid mobile app .which works fine for Google+, but for Facebook with access token is not retuing email id. Could some please suggest what would be the issue. Thank you asked 2 mins agosachin.g Let's block ads!...
ادامه مطلبVote count: 0 my html code My jQuery Code $(":checkbox").change(function() { $(this).closest('[ng-repeat*="item"]').nextAll('[ng-repeat*="item"]:lt(3)').find('[type="checkbox"]').prop('checked', this.checked); }); so it not working when content is loaded via ajax , any idea how to make it working when content is loaded via ajax on page load and also more checkboxes entries are loaded when user scroll down . working jsfiddle with static checkboxes list :: https://jsfiddle.net/mmzth076/7/ but not ...
ادامه مطلبVote count: 0 I'm trying to webscrape some data from a joual's website (article title, authors, etc.) In particular I wan info from this website http://www.sciencedirect.com/science/joual/03043878/111 Problem is that when I run require(RCurl) appUrl...
ادامه مطلبVote count: 0 I have a phones resource nested within a user one, and each have independent views. I can use link_to to get to the nested resource, phones, but am unable to go back in the opposite direction and link back to user views from within a phone view. I have tried nearly every command I could find on google, such as link_to, url_for, polymorphic_url, all without success. Thanks Wex asked 2 mins agoW. Wuffley Let's block ads!...
ادامه مطلبVote count: 0 I have a form on my website and I am trying to get it to email me whenever someone submits it. Currently, when I click submit, it just redirects me to a blank page. Contact Us Name* First Last Email* Phone* - (###) - ### #### and...
ادامه مطلبVote count: 0 I'm currently working on a game and am fairly new to as3. I'm stuck on the character movement i was following a guide and ended up with this as my code. when i test the game it just plays the character animation and i cant control it. package { import flash.display.Stage; import flash.events.KeyboardEvent; import flash.ui.Keyboard; import flash.utils.Proxy; import flash.utils.flash_proxy; dynamic public class KeyObject extends Proxy { private static var stage:Stage; private static ...
ادامه مطلبVote count: 0 okay so i am new to this htaccess thing, can you please help me out in the below, i have 1 question divided into 4, 1- cleaner urls i am trying to have my urls look like cleaner using the below but its not working i don't know if i should add anything else, this is how it looks now example.com/product.php?product_id=144&product_name=50ml-bottle-with-glasses,-shirt this is how i want them to look example.com/product/144/50ml-bottle-with-glasses,-shirt basically here's what i used Re...
ادامه مطلبVote count: 0 I've got two methods I'm working with, and they aren't playing nicely. The first is a Perlin noise generator, which exports a black-and-white UIImage of random clouds, and it's working perfectly. The second method takes a UIImage and filters out all pixels above or below a given brightness, retuing an image with transparency where the unwanted pixels were, and it's working perfectly with the black-and-white test images I've been using. But when I try to feed an image from the first...
ادامه مطلب