bot_bot

1

votes
1

answer
25

views

How to move an AWS subnet into a different availability zone?

I created two subnets without any preference of the availability zone(AZ). So, now I have two subnets in one AZ. I know that I can extend the VPC and create new subnets but I simply want to move a subnet into a different zone. Is there any way I can move a subnet to a different AZ on AWS?
bot
1

votes
1

answer
50

views

Scheduled task (sending an mail) in Laravel 5.6 is not executed

I try to send an email to my users who has unread items, once a day. For that, using Laravel 5.6, I'm scheduling a closure as follow: use DB; use Mail; use App\Mail\UnreadLinks; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extend...
Pierre Le Bot
1

votes
1

answer
63

views

How to do post request with dynamic data in date and time via xml

I wanted to do a post request in the form of XML , but thing is i don't want static data in date and time fields . I wanted to take today's date from system. Behat Test Banner site_banner en Test please ignore success 06/01/2018 07:30:00 06/01/2018 08:30:00 This is the post call i am making , so is...
web-auto-bot
1

votes
1

answer
299

views

How to listen to the data in a specific port?

I wiuld like to create a chatbot from this tutorial, but it seems that the Rasa version is too old and suddenly the commands do not work. I know how to recover and respond to messages through Slack, but I do not know how to do it from a web application that I develop with a chat interface. With Slac...
Chat Bot
1

votes
1

answer
240

views

How to implement nested while loops in Python

I'm on break from school but I want to keep coding over the summer so I am going back to old programs I have made and trying to improve them. atonofsmiles is a very simple Python program to make faces on the screen that I completed in my intro to programming class. Even though it is one of my first...
Joe Bot
1

votes
2

answer
201

views

How to send message in Discord.js event “guildCreate”

I have been wondering how can I send messages when someone invites my bot to their server. Please help me in this area I can't figure it out it's there in Python but I have not used to it. Thank you for your help
discord bot
1

votes
1

answer
426

views

Get emoji informations from a message in discord.js

I want to see if a emoji in a message is animated or not. All I have is just the name and ID of the emoji, obtained from the message.content.
Discord Bot Engineer
1

votes
0

answer
84

views

Permission problem on using CDH6 common-hadoop dependency

I use the dependency in my maven project org.apache.hadoop hadoop-common 3.0.0-cdh6.0.0 , and when i excute mvn clean install, the problem occured: Failed to collect dependencies at org.apache.hadoop:hadoop-common:jar:3.0.0-cdh6.0.0 -> org.apache.hadoop:hadoop-auth:jar:3.0.0-cdh6.0.0 -> com.nimbusd...
BOT-CC
1

votes
1

answer
36

views

Plotting dates in python graphs [duplicate]

This question already has an answer here: Get date column from numpy loadtxt() 2 answers I have an array of dates in the format ('yyyy-mm-dd') and another array of integers numbers, each corresponding to a value in the date array. But, when I tried to plot the graph using: matplotlib.pyplot.plot(da...
Bot
1

votes
1

answer
35

views

Broken route in Laravel depending on where it's defined in the file

I have those routes defined in my routes/web.php : Route::get('references/', '[email protected]') Route::get('references/{reference}', '[email protected]') Route::get('references/create', '[email protected]') Like that, the references/create route goes to a 404 page. If I put...
Pierre Le Bot
1

votes
1

answer
284

views

Why is container exiting immediately after executing docker run command?

I am running docker for the first time and my container is exiting immediately after docker run command. The docker ps is showing me an empty list. When I run docker ps -a I am getting the results of all the containers I pushed in Exited state. I have tried using -ti command but the container is go...
bot
1

votes
1

answer
31

views

Converting a submodule to a folder within a GitHub repo

I'm new to using GitHub and I read up a few of the solutions on stack overflow but I couldn't understand them. I pushed a folder in one of my repository and it shows up as a gray submodule. I need it to be a regular directory inside my repo. Can someone simplify what I need to do or show steps beca...
I am not a bot
1

votes
0

answer
211

views

Why I am getting error 'Server rejected the 1 private key' error on setting up ssh-slave docker image

I am running both jenkins master and slave as docker containers by using jenkins/jenkins:lts and jenkins/ssh-slave image on Ubuntu. Following are the steps: Ran ssh-keygen inside the jenkins-master container(docker exec -it container_id bash) to generate the ssh keys Added the generated public key t...
bot
1

votes
0

answer
50

views

How to return an array from functions?

How do I get the HTML array back in .then(function(document){}), all code: const phantom = require('phantom'); (async function() { const instance = await phantom.create(); const page = await instance.createPage(); const status = await page.open('https://lasgsfgdf.com/').then(function (status) { if(s...
Battle Bot
1

votes
1

answer
32

views

How to get the value of the key in the serializer in manytomanyfield in Django Rest Framework?

I'm having a problem with displaying the data during serialization. This is my model: from django.db import models class Paradigmn(models.Model): name = models.CharField(max_length=50) def __str__(self): return self.name class Language(models.Model): name = models.CharField(max_length=50) paradigm =...
Ershin Bot
1

votes
0

answer
29

views

Unable to register ECS task from boto3

I am trying to create a basic cloud infrastructure which can run through any AWS account. I am using python boto3 module to create a cluster,task definition and a service, which are created successfully from my code. However the task in not running from my service, when I checked the Events I can se...
bot
1

votes
0

answer
22

views

Running pytest test giving error for pluggy, is there something wrong with setup?

I am trying to run the pytest test.py file which contains tests for the project I am working on. Earlier the test was running fine but suddenly they stopped running with an error for pluggy package. I have tried finding the issue but could not resolve, is there something related to virtualenv setup...
web-auto-bot
1

votes
2

answer
188

views

On changing an image source to the source of another image with jquery

Should the following code not work? $('.elastica').click(function(){ document.getElementById('bigimage').attr('src')= $(this).attr('src'); }); It doesn't change a thing on the site. I've also tried this outputting the image location trough the the other image's id, but it comes up empty (literally '...
serv-bot 22
1

votes
1

answer
84

views

CakePHP multirule validation

I am trying to get multiple rules to run during an upload validation. One validation is built in and one is custom. The custom one works fine however the built in one is not working. The custom one extension was working on another field earlier just fine. Do I have this setup correct? var $valid...
Bot
1

votes
2

answer
2.8k

views

Create custom CakePHP Pagination Route

I am trying to use Ajax pagination in CakePHP and have read you can pass the variables along in the URL however I cannot seem to set the route. When I click on next I get an error about the category not existing (because of a custom validation method I created) because the route isn't being followe...
Bot
1

votes
1

answer
622

views

iOS: scrollsToTop doesn't work when I switch views

I'm switching controllers via my navigation controller. When my app first loads the Appointment screen will scrollsToTop just fine. Once I switch controllers to Customers with CustomerViewController *customers = [self.storyboard instantiateViewControllerWithIdentifier:@'CustomerViewController']; [se...
Bot
1

votes
2

answer
1.2k

views

Objective-C: Add JSON response to SQLite DB

I am getting a JSON response and would like to add it to an SQLite db. The results come back as an array and in each array there will be about 30 keys with values. What would be the most efficient approach to adding all those to my table? The keys coming from the JSON would be the columns in the sql...
Bot
1

votes
2

answer
773

views

iOS: Calendar Day View transition

How does Apple do the iPhone calendar day view transition between dates? When you swipe your finger on the day view it looks a bit like a carousel and when the day view is half way across the screen the date at the top changes. I have recreated the day view myself but need to figure out how to do th...
Bot
1

votes
2

answer
413

views

Show empty UITableView row from core data

I am trying to mimic the iPhone calendar list view and show my appointments in a list. Regardless if I have appointments for 'Today' I would like to have a section with today's date. With my below fetchController how would I check and then if no appointments exist for today, add an empty section and...
Bot
1

votes
2

answer
783

views

How to download search results of index page using axlsx?

First, I am really sorry if this question is too trivial. I am new with rails and couldn't figure out where i am doing it wrong. I have a model named Costing and in it's index page i have a search form. I am trying to use 'axlsx' gem to download only the search results but I always get all the rows....
Bot
1

votes
1

answer
369

views

Django checkout model

What is the best way to create a checkout system with Django that keeps track of the checkout / checkin history? My models for inventory/models.py from django.db import models class Groups(models.Model): name = models.CharField(max_length=200) def __unicode__(self): return self.name class Inventory(...
Bot
1

votes
1

answer
965

views

Core Data & NSTableView Bindings

I am trying to bind my core data to a NSTableView. I am getting information from an API then wanting to add it to NSTableView. It looks like it is setup correctly because each time I have it call the API and get information back, a blank line is added to the NSTableView data. Why is it adding a blan...
Bot
1

votes
2

answer
79

views

Cocoa library for popup with different title from value

I am looking for the best approach to this issue. I have a PopUp Button with 4 entries in it. I would like the user to be able to change them, however when the popup button changes and I access the selected value, it will be my predefined value and not what they customized it to be. Example |Value1|...
Bot
1

votes
1

answer
226

views

Making some primitive cardboard waves move with canvas

I've written a script that draws a very cartoony, primitive wave; var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); context.beginPath(); context.moveTo(0, 12); var waux=120; for(i=0;i
serv-bot 22
1

votes
2

answer
1.9k

views

Exception from HRESULT: 0xFFFFFFF8

I keep getting this error in my controller during verification of fingerprint. And I can't seem to understand why. I'm using digitalPersona SDK Fingerprint reader, asp.netc#. I already tried googling but with no success. T_T This is my codes in my controller void verificationControl_OnComplete(objec...
bot
1

votes
1

answer
1.4k

views

how to find work item that are assigned by me?

In TFS 2010 I want to see how many work items I have assigned. There is no 'Assigned by' filters. How can I achieve this? I have tried history but that is too vague.
Bot
1

votes
1

answer
1.4k

views

Unable to import Modules upon Django deployment

I am trying to deploy a Django project on my server, I am deploying Django with virtualenv activated. heres the error that I get from apache2 logs [Wed Aug 07 04:25:19 2013] [error] __import__(name) [Wed Aug 07 04:25:19 2013] [error] File '/var/www/projects/openstack-horizon/openstack_dashboar...
Django Bot
1

votes
1

answer
149

views

Remove query strings from HTTP response status code 301 url redirections

My .htaccess file contains Rewrite URLs and HTTP response status code 301 url redirections. When I test the redirections, it adds the query string values from the old url to the end of the redirected url. How can I stop this? My htaccess looks like this. Options +FollowSymlinks Redirect 301 /old-sit...
Bot Ninja
1

votes
1

answer
127

views

Sum multiple time difference on a particular day

I have this query SELECT Date_Format(te.entry_datetime, '%Y-%m-%d') as Date, te2.entry_datetime as Time_in, te3.entry_datetime as Time_out, TIMEDIFF(te7.entry_datetime, te6.entry_datetime) as Total_break FROM time_entries te JOIN time_entries te2 ON te.employee_index = te2.employee_index AND te...
bot
1

votes
1

answer
2.1k

views

Unable to import Django models in python script

My code is here. I have tried different approach from stackoverflow and non of them worked. import os import sys from django.conf import settings sys.path.append('/var/www/iaas/horizon') sys.path.append('/var/www/iaas/horizon/openstack_dashboard') os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_da...
Django Bot
1

votes
2

answer
1k

views

Scope for an optional has_one association with itself

I have a model Indent. On which I am using STI. An indent can be of two types Sale and Purchase. In purchase class I am using an optional has_one association. class Purchase < Indent has_one :sale , :class_name => 'Sale', :foreign_key => 'linked_indent_id' # Make it work. scope :unsold, lambda {...
Bot
1

votes
2

answer
929

views

Segmentation fault / glibc detected when creating shared library

EDITS----------------I tried with gcc-4.8.1 and still the same error.-------------I am trying to implement a simple matrix multiplication example using pthreads via a shared library. But I get this error when I try to create a shared library: g++ -shared -o libMatmul.so matmul.o collect2: ld termin...
adventure_bot
1

votes
1

answer
714

views

Error : INTERNAL_SERVICE_ERROR in Paypal Android SDK

I am integrating android Paypal SDK in my Android app, here I have got my client id and using in my code, When I start transaction with paypal 'Pay with Card' and using 4111 1111 1111 1111 and 5555 5555 5555 4444 but I always getting error message. I could not trace the reason for this, Any suggesti...
Bot
1

votes
1

answer
1k

views

Error - VALIDATION_ERROR : This field required when payment_method is 'paypal'

I am integrating android Paypal SDK in my Android app, here I have got my client id and using in my code, When I start transaction with 'Pay with Paypal' then I get error message 'Payment information is invalid, please correct and submit again'; Any suggestion ?? Logs : 03-30 16:58:50.106 1491-17...
Bot
1

votes
1

answer
1.8k

views

Print Socket Messages to Console in java

I am beginner to java and learning Socket Programming.I am using the basic chat server socket communication. I am having difficulty to print the server and client messages to the console window. I would also implement this concept when i design my chat Server window UI and will update the char serv...
Memory bot

View additional