Vote count: 0 I am not having any success, getting the 'display_filter' option working in the PyShark LiveCapture() routine. I am using PyShark ver:0.3.6.1 with Python ver:3.5.1 Eg. import pyshark capture = pyshark.LiveCapture( interface="Embedded3", display_filter="ntp" ) #...
ادامه مطلبVote count: 0 Based on this example: https://bl.ocks.org/jfsiii/7772281 I am trying to fill an SVG shape with a masked patte. I have two boxes. The first takes just the dot patte. This works, but the color of the dots caot be changed in css. I have a second box, which has a fill and is then masked with the same patte. This ought to result in blue dots. But it's not masking properly. Or at least, it's doing so inconsistently. The first box will show in Chrome, but the second one will not, at leas...
ادامه مطلبVote count: 0 I have a background image I'm putting on a div that is not loading to the page even though the path checks out. Here is what the inspector looks like: when I move my mouse over the path to see the image, on hover instead of seeing the image like normal the browser shows the path: localhost:8080/app/public/app/assets/images/backgrounds/person-blur.png does this mean the image is not loading correctly? My page renders fine with no errors in the console, so why wont this image show? a...
ادامه مطلبVote count: 0 I am trying to use authorize.net's php-sdk to charge a customer profile which is working but I can't find the write way to send the poNumber along with the data. In the following link, I am using the part where it says Creating Transactions, but no where do I see how to add poNumber. https://github.com/dragonjet/AuthorizeNet-PHP-SDK/blob/master/doc/CIM.markdown#creating-transactions There are so many different ways to send a transaction through to authorize.net, but the method I am...
ادامه مطلبVote count: 0 I want to lock/unlock a given sheet based on the value of a cell in another sheet. I wrote the following code: Application.ScreenUpdating = False Status = Sheets("form").Range("J2") If Status = "Active" Then Sheets("overview").Unprotect "password" 'MsgBox "The template is now unlocked" Else Sheets("overview").Protect "password" 'MsgBox "The template is locked" End If Application.ScreenUpdating = True However, when Status is other than active I can still change some cells in overvie...
ادامه مطلبVote count: 0 I try to change the default MessagesBubbleImage of JSQMessagesViewController by passing custom image into init method, but it's not working, here is the code outgoingBubbleImageView = JSQMessagesBubbleImageFactory.init(bubbleImage: UIImage(named: "bubbleMine"), capInsets: UIEdgeInsetsZero).outgoingMessagesBubbleImageWithColor(UIColor.grayColor()) asked 37 secs agobikram sapkota This entry passed through the Full-Text RSS service - if this is your content and you're reading it on so...
ادامه مطلبVote count: 0 I have compiled a python program into an executable using py2exe. This execuatbale works well in my laptop, but when I copy this exact same directory into another computer and run the executable it does not work. I would repeat that the files are the same in both computers, could anyone explain where am I making a mistake asked 1 min agoShivanand T This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read...
ادامه مطلبVote count: 0 I have a php script that is coecting to Apple APNS services to send push notifications to specified users. The script works correctly on localhost when I post to it from swift, but when I move the script over to the free web host service (Byet), I am not receiving the notification on my phone. I am also not receiving any errors which is the weird part, also I will mention that when I pass the data directly into the url, the script works correctly, it only does not work when I pass ...
ادامه مطلبVote count: 0 I am trying to customize the slider given here by adding one more image in the HTML. When i add an image in HTML and make respective changes in the CSS the code is breaking and its not working. Here is the HTML code of the slider: Here is the CSS code: @keyframes slidy { 0% { left: 0%; } 20% { left: 0%; } 25% { left: -100%; } 45% { left: -100%; } 50% { left: -200%; } 70% { left: -200%; } 75% { left: -300%; } 95% { left: -300%; } 100% { left: -400%; } } body { margin: 0; } div#slide...
ادامه مطلبVote count: 0 I am trying to achieve page navigation (Next and back button) using Angular UI-route. I am changing the state from controller and it is getting changed on view as well but is not redirecting me to that page. I have achieved it using button click using $state.go('stateName') but I want use Bootstrap page for this . here is my code $stateProvider .state('settings', { url: '/settings', templateUrl: 'templates/settings.html' }) .state('settings.profile', { url: '/profile', templateUrl:...
ادامه مطلبVote count: 0 I can't get the example MDL slider component to work on the Material Design Lite home page on my iPhone 6. When I touch the slider bar, the thumb does not move. It just stays at the center of the slider. Dragging does not work very well either. Is there a setting on the iPhone or something to make this work? MDL Slider Sample asked 18 secs agoLambert Let's block ads!...
ادامه مطلبVote count: 0 I have a api where I want to upload a music. I have a put method for this.. export function put({url, headers, data}={}){ retu (dispatch, getState) => { console.log("checking data in api") console.log(headers) console.log(JSON.stringify(data)) var myParams = {method: 'PUT', headers: headers, body: JSON.stringify(data)} retu fetch(url, myParams) } } Here headers is working good. I am using same for get and post and its working fine but for put its giving me cors error. console.log(J...
ادامه مطلبVote count: 0 Folks, I'm having some begier problem and would love some assistance. This is in ember 2.6 if it makes any difference. Basically, I'm trying to change some text on the screen when the button is pressed inside a component. Here's the handlebars and component js code: Stupid Button FIRE! {{someTextThatShouldChange}} And the component's js code: export default Ember.Component.extend({ someTextThatShouldChange: 'Initial Value', actions: { triggerTheAction: (email, password) => { alert(...
ادامه مطلبVote count: 0 I am setting my TextToSpeech to use a particular language (English - UK), using the locale "en_GB". But it always uses my devices default language. Is there no way to set it programmatically? I have downloaded the files required for the language and when I change my TTS's default language to 'English - UK' it works but when the default is different the programmatic approach does not work. I have scoured the web to my best but am unable to resolve this issue. String ttsEngine = "com...
ادامه مطلبVote count: 0 I was working on a wordpress theme I tried changing a bootstrap.css file Just a small change from dislpay:none to display block The website display the changes when i load the website in new phones or laptops where the website was not opened previously But if i try to open the website in the browser where it was opened before making the changes, it loads the previous file When i inspect element it still shows display:none in previously loaded ones, but changes are visible if its lo...
ادامه مطلبVote count: 0 I have an odd problem with umask in ubuntu 14.04 I have added below line in /etc/pam.d/common-session session optional pam_umask.so I have also edited /etc/login.defs and change the UMASK line to UMASK 022 But while checking in command line is is showing 002 .Can any one tell what went wrong here? asked 26 secs agoRajib Let's block ads!...
ادامه مطلب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...
ادامه مطلب