Simran kaur

1

votes
1

answer
75

views

get request in perl and Use of uninitialized value

my $url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=journal+of+medical+virology[journal]+AND+2014[Date+-+Publication]:3000[Date+-+Publication]&usehistory=y'; print '\n before url \n'; print $url; #post the esearch URL my $output = get($url); print $output; I have not...
Simran kaur
1

votes
0

answer
702

views

curl request with authorization header in R

curl --include \ --header 'Authorization: Basic NGEwMGZmMjItY2NkNy0xMWUzLTk5ZDUtMDAwYzI5NDBlNjJj' \ 'https://onesignal.com/api/v1/notifications?app_id={appId}' I am looking at RCurl package but fail to understand a way to include the header above in api call. I would like to know how to include this...
Simran kaur
1

votes
0

answer
153

views

Error in rownames replacement has length zero

I am importing data from an API that returns JSON: substringNotificationData
Simran kaur
1

votes
0

answer
18

views

enabling ssl in apache with cloudfare

I have enabled use HTTPS always in Cloudflare and that's working. Now, coming to Apache, I am on AWS AMI and this is what httpd.conf looks like: NameVirtualHost *:80 NameVirtualHost *:443 ServerName *.aonesalons.com DocumentRoot /var/www/dist/ # Don't rewrite files or directories RewriteEngine on...
Simran kaur
1

votes
1

answer
24

views

Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: table is not AccountSettings

I am getting following error: Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: AccountSettings is not mapped at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:169) at org.hibernate.hql.internal.ast.tree.FromElementFactory.addFr...
Simran kaur
1

votes
1

answer
268

views

Call stack has exceeded maximum of depth of 100 ,Lua

function findWord(s,i) -- find first word in given text local j = i+1 while not _isWhite(s:byte(j)) and j < #s do -- getting error here j = j + 1 end return s:sub(i,j), j end function splitText(s,maxLen) -- split text into chunks of maxLen length rs ={} local function _g(s,i,c,rs) -- recursively...
Simran kaur
1

votes
1

answer
173

views

Updated position Unity3d

I have a bullet that has to hit a constantly moving enemy. So, in BulletScript, I have declared a Transform public Transform enemy; //and assigned enemy object to it that is continuously moving and changing its position Now, when I try to use enemy.position in bullet script so as to hi...
Simran kaur
1

votes
1

answer
58

views

Amount of distance to travel when a key is pressed

In code below, I want to manage the amount of distance to travel when a left arrow key is pressed depending upon if it's half way down or not. The object moves all the way to left on very first press instead of movement to be divided in 3 or 4 parts depending on the above mentioned condition, where...
Simran kaur
1

votes
2

answer
816

views

ng-show hide based on return value by a function

$scope.checkbit = undefined; $scope.showHide = function(permissionrequired){ for(var i=0; i< userpermissions.length; i++){ console.log(userpermissions[i].name); if(userpermissions[i]=== permissionrequired) $scope.checkbit = 1; } return $scope.checkbit; }} $scope.userpermissions is an array of assign...
Simran Kaur
1

votes
1

answer
1.3k

views

Defining different abstract layout for different tabs in ionic

Can I have 2 states with abstract:true i.e base layout for different tabs? Forexample, for tab-1, tab-2 and tab-3, I need to have tabs.html as abstract:true in state provider and for tab-4, I need to have menu.html as abstract:true in state provder so that subsequent states inherit from it. Somethi...
Simran Kaur
1

votes
1

answer
2k

views

Changing height of ion item to fit them in screen without scroll

My html looks like this: I have static ion items and number of items in list do not change. I want to be able to set the size of ion item according to the phone height so that the user does not have to scroll for this small list of items. I have tried setting scroll='false' in ion content the list...
Simran Kaur
1

votes
1

answer
112

views

flex stops working when used inside of ion-slide-box

Here is the demo [flex inside ion-slide-box][1] If I uncomment ion slide box, flexbox stops working but works otherwise. How do I fix this? Edit: This is how it looks now: [![enter image description here][2]][2] However, I was hoping to get this: [![enter image description here][3]][3]
Simran Kaur
1

votes
1

answer
268

views

pull down to change slides in ionic

I have been seeing pull down to refresh in ionic. However, I wanted to implement something like changing slides with a slide up or slide down effect using pull down gesture. Is it possible to customize ion refresher that way or is it strictly meant to refresh? Can I call a function that would set a...
Simran Kaur
1

votes
1

answer
631

views

angular animation on ng-click

I am using angular and I need to add an animation that will increase the size of the image. demo: http://play.ionic.io/app/933b5926b6da I want to add same animation/transition to first and third image when the user clicks on it and should be removed when user clicks on the other one i.e if I click o...
Simran Kaur
1

votes
1

answer
49

views

angular.copy reflects changes in assigned variable

var democart= angular.copy($rootScope.cart); var cartCopy = democart; Somewhere in my code, I am updating the value of $rootScope.cart. That leads to change in value of cartCopy as well which I believe should not be the case. How do I avoid changes in $rootScope.cart to be reflected in cartCopy? No...
Simran Kaur
1

votes
1

answer
1.5k

views

layout and flex order in angular material

I have a container that is a row if screen size is greater than 'sm' in angular material When it turns to a column, I need my div2 stacked onto top of div1 but as the natural order is, divs on the left are stacked over divs on right. How can I change this and have the div on right on the top of div1...
Simran kaur
1

votes
1

answer
410

views

Facebook insights API always gives no data available in this timerange

I use this link: https://www.facebookmarketingdevelopers.com/samples/adsreporting to get results from insights api. We have continuously running ads but I keep getting no data in this timerange no matter what date I select. What could be the issue?
Simran kaur
1

votes
1

answer
34

views

Point a url in magento app to a different app

I have a magneto application running on Apache.I want home page of this application to point to a completely different app: so for example, if localhost:80/ was accessed, redirect it to localhost:3000/ . I want this since we are changing magento app to react app page by page and we have our react a...
Simran kaur
1

votes
1

answer
1.1k

views

window, document and local Storage in React server side rendering

In my React application, I am using window object , document object and localStorage. To avoid errors, I have set it up like: var jsdom = require('jsdom'); var doc = jsdom.jsdom(''); if (typeof localStorage === 'undefined' || localStorage === null) { var LocalStorage = require('node-localstorage').L...
Simran kaur
1

votes
1

answer
208

views

curl request in R

curl req: curl -i -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{'username':'emailId','password':'passwrd'}' -X POST https://central.vizury.com/-/api/login res: HTTP/1.1 200 OK Cache-Control: no-cache, no-store, must-revalidate Content-Type: application/json; charset=utf-8 Da...
Simran kaur
0

votes
0

answer
12

views

HikariCP not returning connection to pool

To simplify the problem: Hikari Connection pool size : 1 mysql.max-pool-size=1 mysql.connection-timeout=30000 mysql.leak-detection-threshold=2000 mysql.idle-timeout = 90000 mysql.max-lifetime=123000 mysql.validation-timeout=5000 mysql.minimum-idle = 5 Call to DB methods: MySQLFunc.fun1(); MySQLFunc....
Simran kaur
1

votes
1

answer
28

views

splitting list if items more than n elements in react

I am using ReactJS for rendering properly formatted menu on our web app: How do I stop rendering list and begin from start if number of elements exceeds n(20 in my case) { item.children ? item.children.map(function (childitem, childindex) { return childitem.children ? { childitem.id == '39' ? : {ite...
Simran kaur
1

votes
1

answer
23

views

Divide space into 3 parallel blocks

I expect li inside ul to be divided into 3 parallel lists of elements next to each other. However, the list appears in a straight list. I expected col-xs-3 to do the job but it does not seem to work. Suggestions to fix this? return { childitem.map(function(subcat,subcatindex){ {/*--LEAF WHEN NO CHI...
Simran kaur
1

votes
2

answer
0

views

How to handle curly braces in RequestParam in spring boot

I have a spring boot application with a GET service. @RequestMapping(value = '/abc/track/{type}', method = RequestMethod.GET) public void DummFunc( @RequestParam(value='subs', required = false) String sub, , HttpServletResponse response) {} value for subs is an encoded v...
Simran kaur
1

votes
1

answer
0

views

CommonsRequestLoggingFilter not working in spring boot application

I have added this @Bean to the class I have main function in @Bean public CommonsRequestLoggingFilter requestLoggingFilter() { System.out.println('inside logging filter'); CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter(); loggingFilter.setIncludeClientInfo(true); logging...
Simran kaur
1

votes
2

answer
0

views

400 bad request returned in spring boot even before the request reaches filter

I have a spring boot application with a GET service. @RequestMapping(value = '/abc/track/{type}', method = RequestMethod.GET) public void DummFunc( @RequestParam(value='subs', required = false) String sub, , HttpServletResponse response) {} value for subs is an encoded v...
Simran kaur
1

votes
1

answer
460

views

String Concatenation in Lua using a string value in a variable

I have functions named MapMSH(Msg.MSH, b) MapPID(Msg.PID, b) MapPV1(Msg.PV1,b) NOW, in another function from where I will be calling above three functions, I have a variable u looping through values MSH, PID and PV1 I know I need to use .. operator to concatenate strings. what I really want is th...
Simran kaur
1

votes
1

answer
66

views

Using a common file for numerous function definitions and calling functions in program from the common file

I have a situation where I have common functions to be used in multiple Lua programs.The requirement is to create these functions and give them the definition/body in a separate file and the file will be shared amongst multiple programs for using definition of the functions. What kind of file shall...
Simran kaur
1

votes
1

answer
151

views

Simulating jack in the box(physics and lua)

function jackInTheBox(time) y = amplitude * math.cos(frequency * time * 2 * math.pi) / math.exp(decay * time) return y end Above function is to simulate how jack in the box (When you open a jack-in-the-box, the spring-loaded “Jack” springs out with full force, and then bobs more slowly over...
Simran kaur
1

votes
1

answer
83

views

Scaling in gideros

local scaling = Application.CENTER application:setScaleMode(scaling) I tried using above code in Gideros but it gives an error that 'bad argument #1 to 'setScaleMode' (string expected, got nil) at setScaleMode, how can I fix this ?Actually, It did not recognise Application.CENTER , though according...
Simran kaur
1

votes
1

answer
291

views

lua string split - how to split a string and get a substring starting from capital letter

I have come across functions that split a string in lua ut my requirement is to split a string when it starts with a lowercase letter, If it does,in my case the string is bound to have a part of string starting with capital letter like : mdmMSH in this case i would like to split while it starts at...
Simran kaur
1

votes
1

answer
982

views

attempt to perform arithmetic on a table value: Lua error message

stage:addEventListener(Event.ENTER_FRAME, function() Graphic:setRotation(Graphic:getRotation()+ (Timer.delayedCall(math.random(4, 8) , function () speed = math.random(1, 30) return speed end) )) end) Basicallu, what I am trying to do is, change the speed of rotation randomly, but since I do not w...
Simran kaur
1

votes
1

answer
301

views

box 2d concepts :Gideros (LUA)

In below mentioned code, what exactly is the difference between sprite, body and ground? Why are there no parameters passes to createBody while declaring ground? what is difference between edgeshape.new() and polygonshape.new()? require 'box2d' b2.setScale(20) -- this function creates a box sprite w...
Simran kaur
1

votes
2

answer
1.1k

views

String compatibility error, attempt to index a nil value

I am using Gideros and getting this error: main.lua:47: attempt to index a nil value stack traceback: main.lua:47: in function 'func' [string 'compatibility.lua']:36: in function I have this piece of code and as soon as the text is displayed, it gives me the above mentioned error:How can I fix this...
Simran kaur
1

votes
1

answer
489

views

using getPosition() and setPosition() in Lua with Gideros

I am using SceneManager.: Now, the problem is I have many objects on this level, but I want only one of them to move up and down on touch, the object is taken from texture pack and is basically an animation: If i do self:getPosition and self:setPosition, all the objects in this level change their po...
Simran kaur
1

votes
1

answer
173

views

attempt to index global variable OE (a nil value) Lua with sql

mk = conn:query({live = true, sql = 'SELECT DISTINCT OE.OderNumber,(SELECT R.ReportBody + ' CRLF ' +'Modified By: ' + UM.FirstName + ' at ' + UM.LastName + ' CRLF '+ 'Authored By: ' + UC.FirstName + ' at ' + UC.LastName + ' CRLF ' +'CRLF' AS [text()] FROM dbo.OrderReports R INNER JOIN dbo.Orders O O...
Simran kaur
1

votes
1

answer
2.4k

views

get ngAnimate working in ionic app

I am following the following link to get angular animations working in the app: http://angularanimation.ya.com.tr/start.html I have animate.css in my css folder and link to it in index.html. Also, I have ngAnimate as a dependent module in app.js I tried to use an animation in my html: The Italian M...
Simran Kaur
1

votes
2

answer
45

views

replacing values in shell script using sed

My shell script looks like this: FAILED_REQUEST_DIRECTORY=/bla/bla2 java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1234 -jar /xyz/abc-service-1.0-SNAPSHOT.jar --server.port=1111 --server.address=127.0.0.1 --kafka.bootstrap.servers=10.111.11.11:3197,10.112.12.111:3197,10.123.44.2...
Simran kaur
0

votes
0

answer
4

views

How do I average out the opencv camera calibration results from multiple images?

I'm trying to calibrate my stereo cameras using the checkerboard image in OpenCV python, and have managed to do it successfully (using tutorials as I'm clearly a beginner) with one checkerboard image. However, as I understand it, you need at least 10-20 angles of the checkerboard to do so properly....
Simran Kaur Soin
1

votes
1

answer
487

views

how to delete all variables attached to scope and rootscope and not the functions

I have tried this: for (var prop in $rootScope) { console.log($rootScope[prop]) if (prop.substring(0,1) !== '$') { delete $rootScope[prop]; } console.log($rootScope[prop]) } for (var prop in $scope) { console.log($scope[prop]) if (prop.substring(0,1) !== '$') { delete $scope[prop]; } console.log($sc...
Simran Kaur

View additional