Create name-value pair data frame from input with delimiters
-
تاریخ: 1395/5/19 ساعت: 4:26
Vote count: 0 I have a data frame which can be created with this code: input <- data.frame( 'ID'=c(1:3), Destination=c("A B", "C", "D E F"), Topic=c("W", "X", "Y Z") ) It looks like this: ID Destination Topic 1 1 A B W 2 2 C X 3 3 D E F Y Z I would like to create an output data frame that looks like...
define keystone_user from openstack/puppet-keystone via hiera?
-
تاریخ: 1395/5/19 ساعت: 4:26
Vote count: 0 I am using https://github.com/openstack/puppet-keystone to set up an OpenStack management/controller node. I need to add the 'glance' user to keystone. I want to try and do as much as I can in my hiera data so my manifest will be simple. Here is my manifest: class kilo2_keystone { incl...
Facebook: Can't publish on user feed in test mode
-
تاریخ: 1395/5/19 ساعت: 4:26
Vote count: 0 I have developed a Facebook app in test mod and I want to publish on the test user's wall. this is the link where the user register and accept the permissions: https://www.facebook.com/dialog/oauth?type=user_agent&client_id=MY_APP_ID&display=popup&redirect_uri=THE_URL&scope=email%2Cpub...
Changing time format in template is raising exception
-
تاریخ: 1395/5/19 ساعت: 3:24
Vote count: 0 I can't figure out why Django retu s Exception when I try to set time format in template. This is a column in Django-tables2 table. time_arrival = tables.TemplateColumn('{{record.time_arrival|time: "H:i"}}',verbose_name=u'Čas príchodu') The time_arrival is an attribute of Reservation m...
Using Realm for Xamarin Forms with a preexisting SQL database?
-
تاریخ: 1395/5/19 ساعت: 3:24
Vote count: 0 We have a preexisting SQL database that holds our data and will be updated from time to time. I've just stumbled across Realm and don't quite understand how it works at the moment. From the examples I've seen it looks as if Realm creates the database locally on the mobile device (pleas...
Convert a weekly serie in time serie in R
-
تاریخ: 1395/5/19 ساعت: 3:24
Vote count: 0 I have a serie in this way: year week sale_amount 2016 16 85501 2016 12 74286 2016 14 87499 How can I convert it in ts so I can use forecast in R? asked 1 min agoErika Let's block ads! (Why?)
How to exclude an item when using foreach in Laravel?
-
تاریخ: 1395/5/19 ساعت: 1:32
Vote count: 0 I am using Laravel 5.3, My question is:How to exclude an item when using foreach in Laravel ? For example,a user has some artiles,in article detail page: <p>Article detail:</p> <h2>{{$article->title}}</h2> <p>{{$article->content}}</p> <h4>The other articles of this user:</h4> @foreach ...
Where is the error in my SQL query regarding Invaid Column Name?
-
تاریخ: 1395/5/19 ساعت: 1:32
Vote count: 0 CODE SELECT [ADO NET Destination].Vendor_ID, [ADO NET Destination].Vendor, [ADO NET Destination].Address1, [ADO NET Destination].Address2, [ADO NET Destination].City,[ADO NET Destination].Zip FROM [ADO NET Destination] WHERE ((([ADO NET Destination].Parish) In ("Caddo","Bossier","DeSot...
Identify and sort multiple circles on 2d plane using python
-
تاریخ: 1395/5/19 ساعت: 1:32
Vote count: 0 I have multiple points forming many circles in a 2d plane and need to identify and sort them for further calculation. I have the [x, y] co-ordinates of each point and a number representing each point. All point numbers in one circle should be sorted in a list. and then point numbers of...
Email Addresses as Table Names, How to Use Prepared / "Safe" Statements?
-
تاریخ: 1395/5/19 ساعت: 0:24
Vote count: 0 (Insert usual "I don't have a lot of hands on SQL experience" here.) I've got a system that's responsible for sending out a fair amount of emails, and I'm adding functionality to save records of each email, segregated by the recipient. Right now I'm setting it up so that these email lo...
How to dynamically generate JSon in Gatling?
-
تاریخ: 1395/5/19 ساعت: 0:24
Vote count: 0 I have the following two methods: def randomStartMethod() : Long = { var range = 1000L var r = ThreadLocalRandom.current().nextLong(10L*range) var randomStart = 1396024675000L + r retu randomStart } def randomStopMethod() : Long = { var range = 1000L val r = ThreadLocalRandom.current()...
Maui: Limit processor-seconds, weighted by memory
-
تاریخ: 1395/5/19 ساعت: 0:24
Vote count: 0 I am aware of MAXPS to limit processor seconds, weighted by number of cores. Is there a similar way to do this, but for memory usage? I am also aware of MAXPE, but this is does not depends on walltime. My goal is to enable users to utilize a high percentage of available memory, but onl...
Python - Pass a range of float (without step) as an argument of a function
-
تاریخ: 1395/5/18 ساعت: 23:18
Vote count: 0 I created a function and I would like to be able to call it with a set of keyworded-parameters that I called '**criterias': def actionBasedOnParameters(**criterias): # my code Inside this set of parameters one of them will be called 'SumInc' and I would like to pass on a range to it. A...
Swift -- "alias" an instance of an object
-
تاریخ: 1395/5/18 ساعت: 23:18
Vote count: 0 Working on a simple card game to lea Swift and IOS programming. For this function, the following code will work: func dealCards() { for _ in 0...9 { player1.cardDealt(deck.getNextCard()) player2.cardDealt(deck.getNextCard()) } } However, I would like to rotate the dealer. I know that I...
How to temporarly go back to previous versions of your code but preserve the latest changes in Git
-
تاریخ: 1395/5/18 ساعت: 23:18
Vote count: 0 I have a Git repository with 2 tags, named version-1 and version-2. I'm currently working on what would be version-3 of my app, the code has changed a LOT since version-2 and I still have a lot of work to do to release version-3 but there are some changes/fixes that I would like to do ...
i am getting an error while calling getAllTransactionssecond(int idd) from the Transaction_Detail.java
-
تاریخ: 1395/5/18 ساعت: 22:17
Vote count: 0 [I'm trying to create an activity where i can select a particular row from the ListView which is being retrived from the database so that i can manipulate it but when I'm selecting that row my application unfortunately stops.] [Here I am getting a Null point Exception][1] [While trying...
Type Error | datatables jumpToData current date or later
-
تاریخ: 1395/5/18 ساعت: 22:17
Vote count: 0 I am trying to show the datatables on the right page (pagination) with the current date or later with the help of the jumpToData() function, e.g. today is the 2016-08-08. The page of the datatables should automatically (when finished loading) be set on this date (column 0). If the date...
Microsoft Flight Simulator SDK Set Data issue
-
تاریخ: 1395/5/18 ساعت: 22:17
Vote count: 0 I am attempting to set some data on AI aircraft in Microsoft Flight Simulator X - and I can! But only exactly one time! My program needs to set this data in a loop as it is continuously changing. Here is the method I am calling to update the locations, and my print statements are print...
FFmpeg: Live streaming using RSTP C++
-
تاریخ: 1395/5/18 ساعت: 21:05
Vote count: 0 I want to receive video stream from camera, process it using openCV (for tests - draw red rectangle) and live stream result. I already can read camera frames, convert to openCV Mat and change them back to AVFrame. From console im starting rtsp server using: ffplay -rtsp_flags listen -i...
Twitter Bootstrap nav collapse Hide on click
-
تاریخ: 1395/5/18 ساعت: 21:05
Vote count: 0 When I click on a menu item , the menu does not close , already checked the imports of JS and CSS and seemingly everything OK , there is something else I need to do to run the menu? <!-- Fixed navbar --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container-fluid">...