All Questions

Ask Question
6908359 questions
1

votes
3

answer
2.6k

views

Uncaught TypeError: $(…).code is not a function (Summernote)

I don't know if it's the same error as many got here: jQuery is not a function erreor how to fix : Uncaught TypeError: $(...).summernote is not a function #2087 jquery: Uncaught TypeError: $(…).error is not a function But I'm stuck with it like a gum under my shoe. Here's the actual error on my Ch...
Will Marcouiller
1

votes
1

answer
161

views

knitr kable and “*”

I am trying to produce a table with a '*' as a value in a cell: --- title: 'Untitled' author: 'James Durant' date: 'November 7, 2017' output: pdf_document --- ```{r arthmatic, echo=FALSE} library(knitr) dfx
James Thomas Durant
1

votes
1

answer
572

views

Monitor incoming IP connections in Amazon AWS

I am using Amazon RDS and I want to know which IP addresses are connecting to my database. My security groups are set to none, and my connection is set to public, I CANT SET IT TO PRIVATE AND SPECIFY AN IP, thats not what im looking for. I just want to know if there is a way to see who is connecting...
Mario Landa
1

votes
1

answer
303

views

Scala Class body or primary constructor body

It's a very basic question. Out of curiosity, I wanted to know whether in the below code: class A(str: String) { //body here... } is it Scala Class body or primary constructor body or instance initializer body (like Java)?
boseAbhishek
1

votes
1

answer
825

views

Best practice for updating individual state properties with Redux Saga

So I'm working on implementing an application in React with Redux Saga and I'm kind of baffled at how little information there is out there for my particular use case, as it doesn't seem that strange. Quite possibly I am using the wrong terms or thinking about the problem in the wrong way, as I am r...
rosalindwills
1

votes
2

answer
2.1k

views

Yii2: How add a symbol before and after an input field

How can I add a symbol before and after of an input text? Just like the image attach. My code: SOLUTION I modify my code following ActiveForm documentation and it works! Code modified:
Alexandra
1

votes
1

answer
298

views

How to add a custom column which is not present in table in active admin in rails?

in my rails application, i have installed active admin. in users index page, by default, all columns are getting displayed(User table columns). I want to add a custom column called 'become user' in this users index view (which is not a column in User's table). under this column i want to display use...
John
1

votes
2

answer
3k

views

Spring Boot, static resources and mime type configuration

I'm facing a Spring Boot configuration issue I can't deal with... I'm trying to build an HelloWorld example for HbbTV with Spring Boot, so I need to serve my 'index.html' page with mime-type='application/vnd.hbbtv.xhtml+xml' my index.html will be accessed as a static page, for instance http://myserv...
Cheloute
1

votes
1

answer
1.6k

views

Python- How to make an if statement between x and y? [duplicate]

This question already has an answer here: How do I check whether an int is between the two numbers? 7 answers I've recently been breaching out to Python, as C++ is fun and all, but python seems kinda cool. I want to make Python do something as long as the input is between a certain number range....
Nate Dukes
1

votes
1

answer
338

views

Conditions on django filter backend in django rest framework?

I am using Django filter backend on few fields which is working very good. But i want to filter fields when i get specific condition Like if user_type is basic get filter query otherwise get all objects from model. Mine code for filters is here: http_method_names = ['get'] serializer_class = SearchS...
Salman Ahmed
1

votes
2

answer
820

views

how to do an export for git stash

I want to export one stash (the changes) that I see in my stash list in a .zip/.gz file. I have found the following command: git stash show -p > patch which saves the changes in a file, but I also want to keep .png files, etc... I am looking for a way to compress all of the changes contained in the...
epi4
1

votes
1

answer
1k

views

How to do group_concat in select query in Sequelize?

I want to do GROUP_CONCAT in select query in sequelize here is my requirement what i want SELECT `group_name`, `description`, GROUP_CONCAT(`module_name`) FROM `group_access` GROUP BY `group_name` I want to write this type of query in sequelize. This is what i tried. groupAccess.findAll({ attributes:...
Vinit Singh
1

votes
1

answer
343

views

Multiple Left Joins in MS Access using sub-queries

I'm trying to run a query with multiple left joins. I understand that MS Access has additional parameters requiring () around the joins, otherwise I get a 'Missing Operator' error, however I'm using sub-queries which adds even more complexity. I can't figure out the syntax. Can someone help? Here is...
Brian Michael
1

votes
1

answer
253

views

How fetch_assoc know that you want the next row from the table?

If we would have code like this: $result = $conn->query('SELECT username FROM users'); $row1 = $result->fetch_assoc(); echo $row1['username'], ''; $row2 = $result->fetch_assoc(); echo $row2['username'], ''; Second echo would show username from second row in table, but why? How fetch_assoc() know tha...
Remniscate
1

votes
3

answer
370

views

Where are my Visual Studio Android emulators?

I'm just starting Jesse Liberty's new Pluralsight course, 'Building Your First Mobile Application with Xamarin.Forms and Visual Studio 2017' and I'm running into a problem right out of the gate. In the video, Jesse creates a new Xamarin.Forms project, modifies the XAML a bit, and runs it. Here is...
Scott Baker
1

votes
2

answer
2.2k

views

What does “!Sub |” mean in AWS UserData field with YAML syntax?

In this example from AWS docs we have a UserData field that allows a multiline string, using the following syntax: UserData: Fn::Base64: !Sub | #!/bin/bash -xe yum update -y aws-cfn-bootstrap /opt/aws/bin/cfn-init -v --stack ${AWS::StackName} --resource LaunchConfig --region ${AWS::Region} /opt/aws/...
sashoalm
1

votes
1

answer
785

views

Page Header, Page counter and Page Footer layout not working

I have a main report and a subreport i.e main.jrxml and sub.jrxml with the following problems: On second page the current page number is not incremented On second page and onwards the Title and Page Header are not fully removed On last page the Disclaimer and page number is missing .jasper file is n...
powder366
1

votes
1

answer
1.2k

views

Activiti parallel Service Tasks

I am trying to implement two service tasks in activiti which is supposed to run in parallel. The code writen below works fine randomly ( and interestingly ). What I mean by that is that it occasionally prints only 'first' (or 'second') OR it prints two 'first' one 'second' etc. How can i make these...
Le Chat Noir
1

votes
1

answer
306

views

How to run Bazel container images on OSX?

According to the documentation at bazelbuild/rules_docker, it should be possible to work with these container images on OSX, and it also claims that it's possible to do so without docker. These rules do not require / use Docker for pulling, building, or pushing images. This means: They can be used t...
Yves Junqueira
1

votes
2

answer
3.1k

views

Custom PageControl image - Swift

I am trying to set an image for UIPageControl dots. I need to change the default dots, instead of that I need an image. I used the below code self.pageCtrl.currentPageIndicatorTintColor = UIColor.init(patternImage: UIImage(named: 'Page Indicator_Selected')!) self.pageCtrl.pageIndicatorTintColor = UI...
Vineesh TP
1

votes
3

answer
1.1k

views

react native how to get return from a promise

my problem is i want to get a json from this function but all i get is a only a promise and why i choose this way because in app that i'm working on it works dynamicly but the only place that i see i can put this promise is render() this is my code : var userInfo = (async()=>{ var value = await Asy...
shahabvshahabi
1

votes
1

answer
527

views

filter objects with two nested levels in a query with Realm

I have a model like this: class CalendarEvent: Object, Mappable { dynamic var exId = '' @objc dynamic var title:String = '' @objc dynamic var desc:String = '' dynamic var fullDate = Date() dynamic var date = '' dynamic var time = '' dynamic var location = '' dynamic var subcategory:Subcategory? dyna...
1

votes
1

answer
255

views

division operator with array broadcasting in Julia

I am able to multiple a constant into an array but was unable to do the same for the division operator. Expected? julia> 2 * [1,2,3] 3-element Array{Int64,1}: 2 4 6 julia> 2 / [1,2,3] ERROR: MethodError: no method matching /(::Int64, ::Array{Int64,1}) Closest candidates are: /(::Union{Int128, Int16...
fatdragon
1

votes
1

answer
503

views

Function from other file is not defined

I wrap by $(function) both files for running code when page is ready. But for some reasons calling function from first file in second file gives me error 'ReferenceError: test is not defined'. First file: $(function() { function test() { alert(1); } }); Second file: $(function() { test(); });
DIAMONDMAN
1

votes
2

answer
740

views

setState not updating when set to boolean

I have the following method in a react component: handleCheckBoxClick() { var checkbox = document.getElementById('boldCheckbox').checked; this.setState({ischecked : checkbox}); if(this.state.ischecked) { this.setState({weight:'bold'}); } else { this.setState({weight:'normal'}); } } but if I chang...
DCR
1

votes
1

answer
675

views

how to add protobuf file for topic in gcloud pubsub?

In google cloud's pubsub, I can see that on creating a new topic, I have to create a new message. Can I store a protobuf file there instead of having to write the whole structure of message in key-value pairs? For the protobuf code that shall be written, I mean this. If the protobuf isnt meant to be...
kneelb4darth
1

votes
1

answer
710

views

WebSocket Server (Java) cannot read but send to C# (Unity) Client

For a project in university we should build a multiplayer game. Cause I have quiet a lot experience in Unity I want to use it as Game Engine. We have to use WebSockets for communication and json as protocoll to carry the data. So far so good. C# don´t have a default websocket implementation, so I u...
Snubs
1

votes
1

answer
1.1k

views

What does Znwm and ZdlPv mean in assembly?

I'm new to assembly and I'm trying to figure out how C++ handles dynamic dispatch in assembly. When looking through assembly code, I saw that there were 2 unusual calls: call _Znwm call _ZdlPv These did not have a subroutine that I could trace them to. From examining the code, Znwm seemed to return...
user2999870
1

votes
1

answer
3.1k

views

Error illegal start of simple expression

I am having this error : error: illegal start of simple expression def process_alcs(lines: List[String]) : List[(String, Double)] = for (line
Ruben Lejzerowicz
1

votes
1

answer
2.2k

views

Problems with async code in Jest tests

I am having problem with getting the code into the beforeAll function finish and wait for the promise that resolves the storyLinks. The console log at the end of the snippet returns undefined but I need it to return the hrefs of the stories in my storybook. I cannot wrap this into an async function...
Ruxandra Anghel
1

votes
1

answer
836

views

Use Case : Collection.singletonList Vs Collection.unmodifiableList

As I aware that both Collection methods provides read-only access to returned list and throws Exception on modification. I need to understand Use Cases of both so that when to use singletonList and unmodifiableList. This might help me to grow understanding of both based on their usage.
Oomph Fortuity
1

votes
1

answer
1.6k

views

Jupyter widget does not appear in notebook

I'm running a jupyter notebook but the jupyter widgets does not appear. Instead I receive the folllowing message: Failed to display Jupyter Widget of type Button. If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean that the widgets JavaScript is still loading....
Daniel Zapata
1

votes
4

answer
1.8k

views

Create new branch from specific commit onwards

I want to create a new branch, starting from a certain commit. However, I want all the commits that were commited afterwards to be part of that branch too. Lets assume this is branch-D with all the commits. > branch-D commit-A ---- commit-B ---- commit-C ---- commit-D I want to remove everything fro...
Stophface
1

votes
1

answer
3.5k

views

Webpack: You may need an appropriate loader to handle this file

I am setting up typescript with webpack, using awesome-typescript-loader. However webpack is giving me this error on build: ERROR in ./src/logic/Something.ts Module parse failed: Unexpected token (2:19) You may need an appropriate loader to handle this file type. here is a piece of code from webpac...
Martin Shishkov
1

votes
3

answer
47

views
1

votes
1

answer
265

views

Rails 5 - how to negate a method call on a before_save callback conditional

In my Template model I have this callback: before_save :set_status, if: :is_template? private def is_template? return self.template_type == 'template' end How can I change it so that it only fires when the template_type is NOT 'template'? I tried these: 1 before_save :set_status, if: !:is_template?...
rmcsharry
1

votes
2

answer
741

views

Loading Wikipedia Dump into Elasticsearch

I want to load a XML Wikipedia dump like: http://ftp.acc.umu.se/mirror/wikimedia.org/dumps/enwiki/20171001/enwiki-20171001-pages-articles.xml.bz2 into Elasticsearch (5.6.4). However, all tools and tutorials I found are outdated and not compatible with my Elasticsearch version. Can anyone explain wha...
Schroder22
1

votes
1

answer
798

views

stopping duplicate entry in dynamodb

I have a table called followProduct in Dynamodb and it has following strucure id - item id email - user email product - product id Whenever a user follows a product I am making an entry in the table. I am trying to stop duplicate entry and using the following code let params = { TableName: 'followPr...
Rishabh Jain
1

votes
3

answer
255

views

Can I use Azure AD/Azure AD B2B/Azure AD B2C in this scenario?

We have several asp.net applications, each has its own users tables and databases. Each application does is own login/reset password etc. Our users are from different companies, so a user is an employee from that company. Now we want to use a central identity provider and let it do all the authenti...
martial
1

votes
1

answer
736

views

react native xcode library not found for -lBranch-SDK

I have react native v0.49. After installing react-native-branch with this link link to react-native-branch, I try to run with xcode and I get the error ld: library not found for -lBranch-SDK in addition,when I run react-native-link I get react-native-branch ERR! Failed to add file to project
Adir Zoari

View more questions