RAVI KIRAN

0

votes
0

answer
6

views

How can I use a variable in if condition in expect script?

I am executing expect script on a remote host(say A) and I want to fetch some environment variables from that remote host(A). Depending on the remote host's(A) environment variables, I would like to perform some conditional operations on that host(A) and on the host(B) from which the expect script i...
Ravi Kiran
1

votes
1

answer
93

views

How to get access to AWS S3 bucket

I am trying to run a script from OpenTraffic repository, and it needs access to some AWS S3 buckets. I am unable to figure out how to get access to a particular AWS S3 bucket? FYI: OpenTraffic is a open source platform to obtain and analyse dynamic traffic data : https://github.com/opentraffic The s...
Ravi Kiran
1

votes
1

answer
58

views

How to read/search specific content in a webpage using shell scripting

I'm a beginner in shell scripting. I'm trying to write a script in which a part of it involves reading the value from a webpage. In this case, The shell script tries to fetch the IMDB rating of a movie by going to the movie's IMDB page. Can someone suggest me how i can achieve this & also what are...
Ravi Kiran
1

votes
0

answer
33

views

Execute spark jobs in Azure ML studio

I am trying to run some spark scripts using execute python script in azure ML studio. And getting an error saying unable to import spark libraries Basically i am trying to create web services using ML studio for the models that are developed. Is it possible or feasible to run spark jobs using ML st...
Ravi Kiran
1

votes
0

answer
207

views

Pass json parameters into webapi from Power BI

I have some questions in Power BI for calling a web api. I want to pass json parameters into my webapi as a post request from power BI. For example: url = http://localhost:56661/api json = {'id':1,'name':'api','data':'this is for testing'} And parse the json response received from the API and disp...
Ravi Kiran
1

votes
0

answer
44

views

matplotlib savefig is not displaying bar graph

I am trying to save multiple plots into a directory. When i run the below piece of code ,both the plots are getting saved. But when i open one of the png file is completely blank.The other plot is saved correctly. Below is the sample code being used. import matplotlib matplotlib.use('Agg') for i in...
Ravi Kiran
1

votes
1

answer
18

views

Can I get a working curl command to remove a system from RHEL subscription?

I want to automate the addition and removal of VMs from the RHEL Subscription. I want to use a curl command if possible and keep it simple. I tried executing curl commands on the api.access.redhat.com/management/v1/subscriptions endpoints but it is giving errors like 'Authentication parameters missi...
Ravi Kiran
1

votes
2

answer
301

views

Whats the Max number of tasks can be created in dispatch_async in an ios app

Whats the Max number of tasks can be created with dispatch_async in the following scenario in an ios multitasking app for(i=0 ; i
Ravi Kiran
1

votes
1

answer
1.8k

views

Can't clone Github or Bitbucket repositories

When I try to clone a repository from GitHub or Bitbucket, I get an error saying 'Could not resolve host: github.com' (or bitbucket.com). I checked the global .gitconfig file, but it doesn't have an entry for http.proxy. Is it happening because of DNS issues? If so, then how to resolve it?
S. Ravi Kiran
1

votes
2

answer
888

views

cannot implicitly convert type 'system.collections.generic.list<string> ' to 'system.collections.generic.list<entities.tablename>

I tried almost all the solutions but of no use.I am unable to get the distinct list of the particular column Priority.Any help greatly appreciated. public List GetAllAlertNames() { var lstAlertNames = _zyenaDbContext.AlertTypes.Select(x => x.Priority).Distinct().ToList(); return lstAlertNames;...
Ravi Kiran
1

votes
3

answer
2.9k

views

VS2010 cs file opening in Notepad

Yesterday while was writing code in model Repository suddenly power off. I left and when I open now Repository.cs was opening in notepad. Actually in Notepad it is empty. Any way to recover the code as I don't have back up of my whole days work? How to reopen it?
Ravi Kiran
1

votes
2

answer
161

views

I want to split a string using sscanf in c++. My String will be either “a.b” or “a:b”or “ab” format

main() { char *tokenstring = 'a.b'; char o[10],s[10]; sscanf(tokenstring, '%[^'.'].%s', o, s); printf('%s\n%s\n ', o, s); } Output: a b This is fine. But My input string format varies. string tokenstring = a.b; I am looking for sscaf logic which works for both inputs. a.b or a:b or ab one more co...
Ravi Kiran
1

votes
2

answer
140

views

Can we localize the iOS app name dynamically

I am developing an iOS framework (say xyz.framework) , in that I am trying to build a feature to localize the bundle display name (CFBundleDisplayName) where I should localize the app name (name of the app which consumes my xyz.framework) As per my understanding we have to mention name of the app in...
Ravi Kiran
1

votes
1

answer
48

views

Is Blocks is convinient way to use for multiple return values in objective c

In my iPhone - objective c project I have to return multiple values from a method I thought of using Blocks to do so like - (void)fetchValueForKey:(nonnull NSString*)key WithCompletionHandler:(void(^_Nonnull)( id _Nullable value, NSError* _Nullable error))completionHandler { } I am asking this que...
Ravi Kiran
1

votes
1

answer
560

views

How to avoid multiple login in different tabs of same browser

I have a JSF application, for which i wanted to restrict multiple login. The actual scenario is if user1 login and click on registration link, the registration page will be displayed, in middle of filling the form. If the same link is pasted in an other tab in same same browser, the system is allow...
Ravi Kiran
1

votes
1

answer
625

views

Internal error: A procedure imported by 'ScopeEngineManaged.dll' could not be loaded

When I tried to execute sample U-SQL script on my local machine, i am getting below error. Error 1 E_CSC_SYSTEM_INTERNAL: Internal error! Could not load file or assembly 'ScopeEngineManaged.dll' or one of its dependencies. The specified module could not be found.' I m trying to execute the script lo...
ravi kiran
1

votes
1

answer
67

views

I am creating a Framework in Objective C, Which needs a good constructor pattern

I am creating a Framework in objective C , which has multiple features, where all the features are need to be initialized while instatiating the library instance, where I am also giving flexibility of providing alternate implementation to any of the feature, to acheive this I am using builder patter...
Ravi Kiran
1

votes
1

answer
37

views

Manipulating hive variable

I would like to subtract a number from the hive variable passed. For example: SET hiveconf:window_size = 12 SELECT id , max(marks) OVER(ORDER BY Date_time ROWS BETWEEN ${hiveconf:window_size}-1 PRECEDING AND CURRENT ROW) from Students; But ${hiveconf:window_size}-1 in window function is giving error...
Ravi Kiran
1

votes
1

answer
0

views

How to merge several dataframes column-wise in pyspark?

I have around 25 tables and each table has 3 columns(id , date , value) where i would need to select the value column from each of them by joining with id and date column and create a merged table. df_1 = df_1.join( df_2, on=(df_1.id == df_2.id) & (df_1.date == df_2.date), how='inner' ).select([df...
Ravi Kiran
1

votes
1

answer
81

views

Club a number of methods performing AJAX operations as one service in Angular JS

I am writing an application in which I have to write a number of functions performing AJAX operations. I want to put all these functions under one service in a module and invoke these functions in the controllers whenever they are required. I know that it can be done using Angular JS modules, but no...
S. Ravi Kiran
1

votes
3

answer
1.2k

views

how to shuffle data of a column in sql?

Is it possible to shuffle data of a column in sqlite android? I have two columns from which I want to shuffle alph in sqlite on a click event in android num alph ------------ 1 a 2 b 3 c 4 d this is my code public class MainActivity extends Activity { SQLiteDatabase db; S...
Ravi Kiran Pasala
1

votes
1

answer
1.8k

views

Http GET request parameter as query parameter and header

I need to send parameters through HTTP GET request. Since my HTTP client has to be generic, I am adding the parameters as query parameter (?key=value&k=v) and also as request header (key: value). Is this a good approach? Will the server looking for header ignore query parameters or vice versa? Pleas...
Ravi Kiran
1

votes
2

answer
862

views

How to restrict the call to alloc,init in obj c singleton class

I am creating a singleton class in obj c with the following Dispatch once block, in ClassName.m + (instancetype)sharedInstance { static ClassName*objClassName = nil; static dispatch_once_t onceToken = 0; dispatch_once(&onceToken, ^{ objClassName = [[ClassName alloc]init]; }); return objClassName;...
Ravi Kiran
1

votes
1

answer
274

views

Azure SQL Database: 'NEWSEQUENTIALID' is not a recognized built-in function name when creating the table

I am trying to create a table with the below syntax on Azure SQL DB and it is throwing the below error. Can any one tell me why NEWSEQUENTIALID() is not allowed here. When I'm creating the same on on-premise server, its working fine. Is there any replacement to NEWSEQUENTIALID().? Table: CREATE TAB...
ravi kiran
1

votes
1

answer
214

views

NSLocalizedString is returning the key

In my framework app, I have some localization files added and have a method to get localised strings as follow -(NSString *)getCurrentLocale{ return NSLocalizedString(@'mykey', nil); } and I have installed this pod into one demo app, and trying to get the locale but it always returns the key, (it...
Ravi Kiran
1

votes
1

answer
63

views

Convert string representation of multiIndex pandas into multiIndex pandas in python

I have a string representation of a multiIndex below. iterables = [['bar', 'baz', 'foo', 'qux'], ['one', 'two']] df = pd.MultiIndex.from_product(iterables, names=['first', 'second']) df = str(df) I would like to convert string represented df back into a pandas multiIndex class. Are there any direct...
Ravi Kiran
1

votes
1

answer
261

views

How do I create a new cocos3D project for iPad using xcode?

I installed Cocos 2D (Sprite builder version 1.3.5) and then Cocos 3D (version 2.0.1). I can´t create Cocos 3D projects. after installing cocos3D I can see only 'cocos3D static library' template in xcode (as in this screenshot) but not Cocos3D application template and If I create new project usi...
Ravi Kiran
1

votes
2

answer
700

views

I cant Stop my video which is playing in YTPlayerView ios

In my ios app I am using Googles YTPlayerView to load You tube videos, I can able to Play videos , But i cant able to stop The videos which is playing, on tap of Done button of the webviews Player It is exiting from full screen and automatically opening fullscreen, How do i stop the Videos ? i tried...
Ravi Kiran
1

votes
1

answer
213

views

Starting service Service Bus Message Broker failed: Time out has expired and the operation has not been completed

when I ran the workflow manager getting the error message at add host to service bus farm. We have the SharePoint as standalone, OS is Windows server 2012 r2 SQL server 2016 developer. Followed below two url's for installing https://collab365.community/configuring-sharepoint-2013-to-support-workflo...
ravi kiran
2

votes
3

answer
848

views

Bad comparison of nonnegative value with -1

FindBugs is reporting me that I'm comparing nonnegative value with -1 for the following code. /* I get inputstreamreader from a org.apache.commons.net.telnet.TelnetClient object */ InputStreamReader reader = telnet.getInputStream(); char msg = 0; StringBuilder temp = new StringBuilder(); while((msg...
Ravi Kiran
1

votes
2

answer
670

views

can we directly access the SQLite data base of core data

In an iphone application i am using core data to manage all my data, now my question is can we directly access the data base which has created by core data using our own queries? is it possible ? if so, will apple approve the app ? is it against the apple guidelines ?
Ravi Kiran
2

votes
1

answer
1.3k

views

How do I cast my NSArray to List<String> in xamarin ios

In my xamarin ios project I am fetching some array from a file Using NSArray TimeFilePath = NSBundle.MainBundle.PathForResource('Time','txt'); arrTime = NSArray.FromFile(TimeFilePath); Now I have to convert TimeFilePath to a List I tried the following but It failed Listitems = (List)TimeFilePath;...
Ravi Kiran
3

votes
2

answer
3k

views

EXTERNAL TABLE access failed due to internal error: 'Java exception raised on call to HdfsBridge_IsDirExist. Java exception message:

I am trying to create external table through polybase with below syntax on Visual Studio 2015. Its giving me the below error. Can some one pls help on this CREATE EXTERNAL TABLE dbo.DimDate2External ( DateId INT NOT NULL, CalendarQuarter TINYINT NOT NULL, FiscalQuarter TINYINT NOT NULL ) WITH ( LOCA...
ravi kiran
3

votes
2

answer
6.5k

views

How to track the GPS coordinates as user walks, from xamarin.forms for ios platform

I just went through this link to track GPS co-ordinates of current location as User walks with a xamarin.forms app (iOS platforms) But I could not find how to do it, as I am born new to xamarin.forms, Can we do this in xamarin.forms or should I Create a xamarin ios project? Any links/tutorials to tr...
Ravi Kiran
4

votes
2

answer
20.4k

views

How to mock super class method using Mockito or anyother relavent java framework

My Scenario is as below class SuperClass{ public void run(){ System.out.println('I am running in Super class'); } } class ChildClass extends SuperClass{ public void childRunner(){ System.out.println('Step 1'); System.out.println('Step 2'); **run();** System.out.println('Last Step'); } } Now I want t...
Ravi Kiran Y
2

votes
2

answer
8.5k

views

Jasmine's spy throwing is not a function error

I have an Angular JS application with a module and some services in it. My controller uses these services. In Jasmine test cases, I created a mock of a service using Jasmine's createSpy. Following is the mocked service: beforeEach(module(function ($provide) { shoppingData = function () { getAllItems...
S. Ravi Kiran
6

votes
0

answer
912

views

Application Share Extension not showing in Share Menu from second time in iOS

I have created application share extension to my app to share photos.For the first time i turned on my app from more.. in share menu.When I ran the app again even though my app is enabled previously its not showing in default Share Menu like WhatsApp ,flickr Facebook, i need to on and off my app e...
ravi kiran
3

votes
2

answer
2.8k

views

What does ds.Tables[0].Select() represents

What dr gets here. DataRow[] dr = objds.Tables[0].Select('ProcessName = '' + tnProcName.Text + '''); I am getting dr{System.Data.DataRow[4]} and not the line individually. In dr now consists of list of rows.How can i compare the column present in data row.
Ravi Kiran
2

votes
1

answer
1.3k

views

Gambling license is mandatory to integrate In app betting for ios apps? [closed]

I did some researching on in app betting,and I have found one framework called as Betable and they says its legal to use in ios apps since they have a gambling license, My question is should we have a gambling license to integrate in app betting in our ios apps? Will Apple approve if we integrate in...
Ravi Kiran
2

votes
2

answer
543

views

Unable to click yahoo mail delete button

I am beginer to Watir and trying to delete yahoo mails using webdriver require 'rubygems' require 'watir-webdriver' br=Watir::Browser.new :ff br.goto('https://login.yahoo.com/config/login_verify2?&.src=ym') br.text_field(:id,'username').set('xxxx') br.text_field(:id,'passwd').set('xxxx') br.button(:...
Ravi Kiran Basa

View additional