back soft

مطالب مرتبط با «adding» در back soft | نویسنده: استخدام کار

Adding counts based on flags by dates

Vote count: 0 Could you please advise some direction on how to achieve the below format? I am at lost thinking solution for this problem.. date: 6/20/2016 1 0 5 6/20/2016 2 0 6 6/20/2016 3 1 4 6/20/2016 4 1 2 6/20/2016 5 0 4 6/20/2016 6 0 6 6/21/2016 1 0 4 6/21/2016 2 0 3 6/21/2016 3 1 7 6/21/2016 4 1 2 6/21/2016 5 0 5 6/21/2016 6 0 4 6/22/2016 1 0 5 6/22/2016 2 0 5 6/22/2016 3 1 3 6/22/2016 4 1 2 6/22/2016 5 0 8 6/22/2016 6 0 4 Result: 6/20/2016 3 1 15 6/20/2016 4 1 2 6/21/2016 3 1 24 6/21/2016 4 1 2 6/22/2016 3 1 22 6/22/2016 4 1 2 6/22/2016 5 0 8 6/22/2016 6 0 4 asked 33 secs agoNabayan Let's block ads! بخوانید...

ادامه مطلب

PHP openSSL and Padding

Vote count: 0 I have been having difficulties encrypting in PHP and then properly decrypting it in C#. I believe I have gotten to the heart of the issue - some reason the data being encrypted by openssl_encrypt does not seem to add the proper padding. I keep getting an error message in Visual Studio that the input was not a full block. I tried placing some breakpoints and discovered that the size of the cipher text is indeed wrong (I think) - 24 bytes. Both the IV and Key length are correct (16 and 32 respectively), but the input is not (based on the block size, it should have been padded to 32 bytes - right?). I was under the impression that openSSL used PKCS7 padding by default, but that d...

ادامه مطلب

Does adding column to a DataFrame involve copying data?

Vote count: 0 My question is about performance only, not semantics. Does adding a new column to a df cause the data in the existing DataFrame to be physically copied to a new memory location (to ensure that the DataFrame occupies contiguous memory, for example)? # using pandas 0.18.1, python 3.5 import pandas as pd df = pd.DataFrame({'a': range(100)}) b = pd.Series(range(100)) df['b'] = b # is this operation expensive? # equivalently df.loc[:, 'b'] = b I know (from experimentation, couldn't find it in the documentation) that df['b'] = b will semantically create a copy of b, which obviously requires copying of underlying data. But I have no idea if the data in the other columns can stay where...

ادامه مطلب

Adding Parameters to Twitter API Using PHP

Vote count: 0 I created my Twitter App using PHP, but I don't know how to add parameters in Twitter API, my code: $twitter_url = 'https://api.twitter.com/1.1/users/show.json'; // do not change it! $data = array('oauth_consumer_key' => $consumer_key, 'oauth_nonce' => time(), 'oauth_signature_method' => 'HMAC-SHA1', 'oauth_timestamp' => time(), 'oauth_token' => '492687736-xxxxxxxx', 'oauth_version' => '1.0'); $baseString = buildBaseString($twitter_url, $data); $compositeKey = $consumer_secret."&xxxxxxxx"; oauth_signature = base64_encode(hash_hmac('sha1', $baseString, $compositeKey, true)); $data['oauth_signature'] = $oauth_signature; $response = sendRequest($data, $twitter_url); $json = json_d...

ادامه مطلب

Adding video to my website

Vote count: 0 Alright so I'm at a loss right now. Ive got my website doing most of the things I want. uploading pictures and profile pages and what not. I just can't get video to work. So I'm curious if anyone is out there that has used paperclip av/transcoder lately that can help me out. Ive been stuck on this for 6+ months. So I'm just hoping someone can help me out and work with me on this. I know I am asking for a lot just at a dead end. This is my github repository https://github.com/DaGraves/EVC-3.0 asked 1 min agoD.Graves Let's block ads! بخوانید...

ادامه مطلب

Adding input with simple_form to get

Vote count: 0 I am trying to use simple_form to generate an input textfield with collections, equal to asked 6 mins agoKamal G'ool Let's block ads! بخوانید...

ادامه مطلب

JavaFX - Adding a ScrollPane popup which closes when user clicks out of it

Vote count: 0 My title is badly worded because my problem is very hard to describe, so I drew an image for it: I have an ImageView object which represents a pile of cards (not poker cards but just used them as an example). When this image view is clicked, I need a window to popup that features a ScrollPane and shows them all the card objects that are in the linked list. When the user clicks anywhere outside of the window (and later on, any right mouse button click) to close this informative window. Ways that I have already tried: Scene with APPLICATION_MODAL. Then did Scene.showAndWait(). I didn't like this method because it made another application on the user's taskbar. It also felt clunky...

ادامه مطلب

Overwrite valueChanged pyqt5 adding Qt.QueuedConnection

Vote count: 0 I want to create my own class of QSpinBox and overwriting the valueChanged method to behaviour as I need adding the Qt.QueuedCoection type instead of Qt.AutoCoection here is the code I use : class AbstractSpinBox(QtWidgets.QSpinBox): def __init__(self, parent=None): super(AbstractSpinBox, self).__init__(parent) def valueChanged(self, *args, **kwargs): super(AbstractSpinBox, self).valueChanged(*args, **kwargs) How can I achieve that ? Thank you very much. asked 2 mins agoDarkos Let's block ads! بخوانید...

ادامه مطلب

Adding variables to unix command

Vote count: 0 Pardon me as I am relatively new to this. [ -f /etc/example/txt] && echo "True" || echo "False" I have the above code, I am trying to print out the hostname as well. I have modified it to the following, [ -f /etc/example/txt] && hostname = uname -n &&echo "$hostname:True" || echo "$hostname:False" Unfortunately the above doesn't work. Is there a way to have the hostname printed out along with True or False? asked 1 min agoPark Taecyeon Let's block ads! بخوانید...

ادامه مطلب

Adding a Service Fabric service to System Application

Vote count: 0 Is there a way to add a service to the System application of the SF or is that a no go scenario? What I'd like to do is to have a meta-data services about other applications in the cluster, where the service can be queried. asked 1 min agoSean Feldman Let's block ads! بخوانید...

ادامه مطلب

Adding sound to an iOS app

Vote count: 1 I'm trying to add sound to an iOS app that I am writing. I keep getting the error message "Incorrect argument label in call (have 'contentsOfURL:error:', expected "contentsOfURL:fileTypeHint:')". I have tried tinkering with it in several ways, and I can't get it to build. Here is my code: import UIKit import AVFoundation class ViewController: UIViewController { var Setup = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("DMSetup", ofType: "mp3")!) var audioPlayer = AVAudioPlayer() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. audioPlayer = AVAudioPlayer(contentsOfURL: Setup, error: nil) au...

ادامه مطلب

What is the Pattern for adding Buttons and Drop Down menus for an Eclipse Plugin Perspective

Vote count: 0 What is the patte for adding ButtonsDrop Down menus to the perspective in an Eclipse Plugin? Obviously I can add them to a canvas using SWT. But I feel I am missing a trick by not utilising the full Eclipse Workspace. Can any Eclipse-Plugin developers tell me what would be the best approach for this? asked 3 mins agoRobben_Ford_Fan_boy Let's block ads! بخوانید...

ادامه مطلب

Adding Listeners to EditText in a Custom Array Adapter in Android

Vote count: 1 In an activity I have a CustomListAdapter that contains two EditText fields for each row in the CustomListAdapter. Currently, I have OnFocusChangeListeners that updates the values taken from the EditText, and saves them into a database. However, the last changed value never gets updated. All changed values are saved, but the last one doesn't get saved because the focus was never changed after it was modified. The user changes the last value, clicks "back", and the OnFocusChangeListener never gets called again; therefore, the last value doesn't get saved. So I tried to use an AddOnTextChangedListener ... however, I can only update the first element in the CustomListAdapter. Not ...

ادامه مطلب

ActionScript 3 - Adding child on stage from external class

Vote count: 0 I have another action script 3 class which is linked back to main. I'm trying to addChild to stage but i'm getting an error: Call to possibly undefined method to child. If I paste the same script in my main.as then it adds the movie clip perfectly fine? I'm getting the hello message back so its definitely linked ? This is my code. //Importing movieclip. import MainBackground; //We need to refer to the main background. var mainbackground:MainBackground = new MainBackground(); //We then need to posistion this. mainbackground.x = 32; mainbackground.y = 85; addChild(mainbackground); trace("Hello"); asked 3 mins agoR H Let's block ads! بخوانید...

ادامه مطلب

Adding subview in UIWebFormAccessory is approved by appstore?

Vote count: 0 about the case about virtual keyboard iOs. i want to keep done button but remove the previous and next button in UIWebFormAccessory, so i adding some button to cover the next and previous button in UIWebFormAccessory. is this ok in AppStore approval? asked 56 secs agoRoushi Let's block ads! بخوانید...

ادامه مطلب

Adding a UIView based on a template in swift?

Vote count: 0 I've used UITableView before and like the way that the user can add a practically unlimited number of cells by entering information and the program uses a template. I'm wondering if there is a way to do this, but instead of using a table, using regular views or even buttons. For example, the user would tap a button, enter information, and retu to the first ViewController and it would have a new view with the information in place of parts of a template that I designed. Sorry if this is unclear. Basically I'm wondering if there is a way to make a table that is not as restrictive as a table, but uses several individual views in place of cells. asked 2 mins agoMike Keegan Let's blo...

ادامه مطلب

Adding like button to fb: Webview, or FB SDK

Vote count: 0 I want to add a FB like button to my Android app. I noticed there are 2 ways. The official way by adding FB sdk, registering the app on fb and going through the whole process. OR Opening a webview for the user to like a page ( I beleive this is what this library is doing http://blog.shamanland.com/p/facebook-like-button.html) I honestly prefer the second option since it is quicker. Is there any reason why I should go for one or another (or maybe another way I am not aware of). I only need to add like button for my fb page and that's it Thank you very much asked 2 mins agoSnake Let's block ads! بخوانید...

ادامه مطلب

multi-part identifier can't be bound error when adding "Order By" clause in Access 2010

Vote count: 0 I'm building a form with 2 subforms in Access 2010 ADP to SQL Server 2008. I've got the fields and everything showing like I want them to and hooking into the controls okay. However, when I try to sort the Record Source, I get the "multipart identifier can't be bound" error. If I run the SQL in the Query builder in access, it retus records fine. It's just when the form loads that it throws the error. If I remove the Order By out of the SQL, the form loads just fine. Record Source of subform: SELECT tblTaskTracker.EmployeeID, tblTaskTracker.ProjectID, tblTaskTracker.ReleaseID, tblTaskTracker.TaskStatusID, tblTaskTracker.TaskPriorityID, tblTaskTracker.DueDate, tblTaskTracker.Note...

ادامه مطلب

ColdFusion 11 doesnot restart after creating a instance and adding it in Cluster

Vote count: 0 ColdFusion 11 doesnot restart after creating a instance and adding it in Cluster. CF 11 on Windows 2012r2 The description for Event ID 4 from source ColdFusion 11 Application Server caot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. asked 1 min agouser6291861 Let's block ads! بخوانید...

ادامه مطلب

termios flag settings - extra junk characters are adding while writing and reading from the serial port

Vote count: 0 Can anyone tell me what are the flags need to be set to avoid the junk characters in the serial port. I am using the ttyS1 termios with default setting. Speed = B230400, code shown below tty_fd = open(DEVICE, O_RDWR | O_NDELAY); if(tty_fd < 0) { perror(DEVICE); exit(-1); } printf("Init 1 complete.n"); tcflush(tty_fd, TCIOFLUSH); struct termios newtio; retval = tcgetattr(tty_fd, &newtio); if(retval != 0) { perror(DEVICE); exit(-1); } printf("get attributes.n"); cfsetospeed(&newtio, SPEED); cfsetispeed(&newtio, SPEED); newtio.c_cflag = (newtio.c_cflag & ~CSIZE) | CS8; newtio.c_cflag |= CLOCAL | CREAD; newtio.c_cflag &= ~(PARENB | PARODD); newtio.c_cflag &= ~CRTSCTS; newtio.c_cfla...

ادامه مطلب