Questions tagged [programmatically]

0

votes
0

answer
3

Views

Google Cloud API client - How to enable specific API programmatically?

I am trying to automate few steps for a google cloud project. I will be receiving project ID and service account credentials (json) as input to my program. I would like to enable few APIs like 'Cloud Machine Learning API' or 'Resource Management API' for this service account programmatically. [Co...
PST
1

votes
1

answer
803

Views

Run T4 programmatically

I am trying to generate code using T4, but I am unable to run my TextTemplate programmatically using net 3.5. All links which are supposed to explain how to do it are dead This This Generating a code file by saving the TextTemplate works as expected.
Ronijo
1

votes
1

answer
206

Views

How to programmatically get the list of all the Completed PullRequests in AzureDevOps?

I am using the following code to get the list of All the completed pull requests on a VSTS repository. However, the list of pull requests that is fetched, contains only a limited list of the pull requests, and not all of them. Any idea what am I doing wrong? Here is the code: /// /// Gets all the...
PiJei
1

votes
1

answer
35

Views

Two RecyclerViews desynchronizes during programm scrolling

I have two RecyclerViews on my screen. And I need to scroll both at the same time on the same distance programmatically. But if I do it fast - the RecyclerViews desynchronizes. In this source code you should fast click on button in the right top and will see the result. This is Activity, where butto...
Pablo
1

votes
2

answer
35

Views

Launch Configurations Created using AWS-Console VS Programatically

I would like to find out if there is an easy way to find out whether given launch configuration is created using AWS Console or Programatically? Usecase: We are planning to avoid copying/creating launch configuration using AWS-Console, so we would like to implement some alert system if there is any...
cnutext
1

votes
1

answer
326

Views

Swift TableView multiple Custom cells, inrease number of row in from cell lead to crash

I have problem which trying to solve for hours. I have tableView with multiple cells. I don't use StoryBoard. My problem is this: Number of cells in tableView depends on size of array. When app start, tableView and its cells loads perfectly. Even when i insert into ViewDidLoad this: arrayOfCatego...
Angelus
1

votes
1

answer
48

Views

Android Studio - How to inflate an xml layout containing a view that use percentage params

I am here because I would like to use multiple times the same cardView layout, changing simply some information contained in it and then adding it to a view contained in the main xml layout. The problem is that the view to which append the created cardViews is a PercentRelativeLayout, so I need to s...
Andrew1410
1

votes
2

answer
47

Views

Generate Winforms Project .exe programmatically from within a Winforms Application

I have a requirement to build a container C# WinForm Application which will spit out .exe files of another WinForm Application on a button click event. For eg: I have one Winform App named ProjectA which accepts one startup argument. Now I have a container WinForm App named ProjectB. I want to gener...
Harshit Gandhi
1

votes
1

answer
663

Views

iPhone X Tab Bar and Nav Bar Issue

I have this complete app build programmatically right from beginning. The project was started on an old Xcode may be Xcode 6. I am currently building on Xcode 6. My Project has Objective-C and Swift files communicating with each other. The problem I am having is because it is built programmatically,...
Swati
1

votes
0

answer
31

Views

Java Android | Programmatically using the in-call number-pad while in a call

While I understand that this sort of question has been asked a few times, none of the answers that have been presented have been satisfactory for my needs and so I would like to ask all of you: While in a call, is it possible to activate a number on the in-call keypad inside of an application? (ie:...
Mailbox
1

votes
1

answer
214

Views

How to change the color of `color set` programmatically in ios

There is any way to change the color of color set programmatically. I use theme color in Xcode and now I want this color come from API. Anyone can solve my problem. I search this on the net but all tell us how to make color set and how to use it but I want how to change this color during run time.
1

votes
1

answer
31

Views

Android Alphanumeric only, programmatically (NOT XML)

I have a program in Android, with one AutoCompleteTextView named aCTVNumeroPoste. This AutoCompleteTextView change the type of input depends of other option. So Option 1 makes the AutoCompleteTextView only Text and Option 2 makes the AutoCompleteTextView only Numbers. And this seems to works well wi...
Pato
1

votes
1

answer
187

Views

Could we delete a label that have been added programmatically on swift?

I am currently experiencing difficulties in the development of my app. To make it simple, it is an application that allows you to do mental calculation. My problem is with the display of the calculations that have been proposed, the results provided by the player, and the result of the calculation....
Henri Piot
1

votes
0

answer
171

Views

How to obtain the bluetooth mac addres in android 8.1 and higher programmatically?

We have an Android application where we need to establish a connection between 2 devices via Bluetooth programmatically. String macAddress = android.provider.Settings.Secure.getString(getApplicationContext().getContentResolver(), 'bluetooth_address'); However, the above code is not working anymore...
user2459331
1

votes
1

answer
97

Views

How to programmatically receive input from UIButton in Swift 4?

I'm new to Swift. I managed to build an app which almost works, but I cannot get the last steps right. I would appreciate any help! I wrote a code which displays a user-defined number of UILabels. In those labels, the contents of a [String] is displayed. Under the labels, there is the same number of...
Emile
1

votes
0

answer
99

Views

iOS 12: How to disable Message suggestion programmatically?

My app send a security code and it show on the top of the keyboard automatically (the keyboard is set 'Number Pad' type). How do I prevent it show the code programmatically? ( If I change keyboard type to 'Numbers and Punctuation', the code will not show but I don't like this keyboard's type)
myaug
1

votes
0

answer
59

Views

pdf manipulation - tagging image or figure

I have a source pdf(untagged.pdf) out of which I would be creating a tagged version(tagged.pdf) I have information of all the html tags of all contents of the source pdf. Now I have a figure on page 3. When I programmatically parse, this will not be detected as an image but this is a rectangle with...
SuperNova
1

votes
1

answer
2.9k

Views

Custom UIButton(CheckBox) add responder to action iOS SDK

I have custom UIButton class: CheckBox.h @interface CheckBox : UIButton { BOOL isChecked; IBOutlet UIWebView *webview; IBOutlet UIImageView *img; NSMutableString *labelText; NSInteger fontSize; NSInteger heightWebView; } @property (nonatomic,retain) NSMutableString *labelText; @property (nonatomic,r...
itworksinua
1

votes
2

answer
7.5k

Views

How to Add Dynamic row view in Scrollview in android?

I want to dynamic add row in linear layout but i create xml and i run the application crash . my xml and sourcecode below. My Xml Code:: My custom_row.xml code in Below:: And My new Edit Sourcecode:: public class TestDynamicScroll extends Activity { ArrayList list = new ArrayList(); ScrollView slnLa...
crickpatel0024
1

votes
2

answer
219

Views

how can i put string in spinner programmatically

this is my problem: I need to add many string in my spinner R.id.spinnerfilter programmatically not with string.xml help me please thanks
mizo mizo
1

votes
4

answer
402

Views

Programmatically change a Frame position

I've created programmatically a View, an UIImageView and a Button. The problem is that i need to update their position if the device switches from Portrait to Landscape, how can I do it? This should be the code that checks if the Device is in Portrait or Landscape mode - (void)willAnimateRotationToI...
LS_
1

votes
1

answer
351

Views

Three textviews (side by side) below one textview(centrally positioned)- Android

This is my first question so pardon any convention I might have unknowingly overlooked. Now, I want to create a long table in which each element has centrally positioned textview and below it, three textviews side-by-side. I have tried TableLayout, which makes the cells aligned (and I dont want that...
braincrash
1

votes
1

answer
705

Views

iOS: Getting height of views with programatically added constraints as only indicator

Hello there fellow iOS programmers. While creating an app I've ran into a problem I can't seem to find an answer to. Let's lay it out: I'm creating a UIViewController with a UIScrollView as it's only child. Inside this view I have a UIView, and inside of this there is a list of UIViews with UILabels...
Jacob R
1

votes
1

answer
2.6k

Views

PRESTASHOP 1.6 Add a category to a product programmatically

In my module clients can add products to the shop, it will pass by a separate database. When an admin check the products and validate one, i change the information to a prestashop product. So i have this code : $object = new Product(); $object->price = 32; $object->id_tax_rules_group = 0; $object->n...
David Aclub
1

votes
1

answer
747

Views

Adding custom View to layout programmatically

I'm using this library: https://github.com/sephiroth74/HorizontalVariableListView I need to add the component 'it.sephiroth.android.library.widget.HListView' to my layout programmatically. I've tried this but nothing is visible... View w; w=new it.sephiroth.android.library.widget.HListView(MainActi...
Borja
1

votes
1

answer
156

Views

JSF Validators do not work if Random or SecureRandom used to generate component ID

When I use UUID#randomUUID() (which uses SecureRandom) or RandomStringUtils#randomAlphabetic(int) (which uses Random) to generate component ID for HtmlInputText validation stops working. If instead I set the component ID using an arbitrary hard-coded String (e.g. 'C5d682a6f') the validation works a...
Patrick Garner
1

votes
1

answer
657

Views

Adding and removing NSTextField programatically in SWIFT OS X

I am trying to write text labels on a graph view representing a variety of data points (imagine a line graph in Excel). I select a data set using a tableView. Each time a select a new data set the graph is redrawn. I can draw the line graph using a custom view. No problems. I can draw the text labe...
Wolfstar
1

votes
1

answer
626

Views

c# add page to onenote from template

New to OneNote development. I have an app that I want to add a new page based on the template that is the default in this section of my notebook. I want to take some text from a textbox and name the generated new page to that text. I don't need to do anything else with the page from the app An...
Ralph
1

votes
2

answer
579

Views

UIBarButtonSystemItem.FixedSpace for nav bar padding not working

i'm attempting to add a done button to my nav bar (built directly UINavigationBar not with a controller). The done button appears fine, the action works, but it has no padding from the edge of the nav bar. i tried adding a second bar button item with fixed space but it has no effect. what's even w...
stanley
1

votes
1

answer
387

Views

Swift - Creating UIButton when in landscape

I am making a calculator app in iOS 9, Swift and with Xcode 7 and I would like to know how to create UIButtons when the user switches to landscape mode only. Adding more operators to the left of the number and AC Button and changing the constraints, shifting the buttons over to make room for the new...
Zach
1

votes
1

answer
103

Views

Align views programmatically

I am trying to create a contentView programmatically and i cannot understand why the following code dows not work as i want. Here is the code: public class UserProfile extends AppCompatActivity { ScrollView scrollView; LinearLayout contentnView; @Override protected void onCreate(Bundle savedInstance...
Iraklis Bekiaris
1

votes
2

answer
1.4k

Views

Android: How to change the gravity of an ImageButton placed into a dynamically created layouts

I have a main dynamically generated LinearLayout containing 4 items : - A TextView (dynamic width) - An ImageView (static width) - A TextView (dynamic width) - An ImageButton (static width) The 3 first items should be stuck together and the last one should float on the right of the screen. Name - Ra...
Vincent Roye
1

votes
1

answer
1.1k

Views

Adjusting width & height for view after rotating it by 90 degree in Android

I want to add view & rotate it by 90 degree programmatically, however I can't figure how to set its dimensions properly. This is my placeholder: And this is how my code looks like: FrameLayout placeholderView = (FrameLayout) findViewById(R.id.placeholder); View myView = new View(getApplicationContex...
Tamir
1

votes
1

answer
650

Views

Setting DataSource in Runtime Java EE 7

How I can set a Data Source dynamically? Like below in Spring: @Bean(name = 'dataSource') public DriverManagerDataSource dataSource() { DriverManagerDataSource driverManagerDataSource = new DriverManagerDataSource(); driverManagerDataSource.setDriverClassName('com.mysql.jdbc.Driver'); driverManagerD...
1

votes
1

answer
62

Views

how to access an object which made with a function in c#

I'm making a c# windows app and trying to create objects in form (for example TextBox and Label) programmatically. And I can do this easily but I can't define them as public objects. I have a function called 'makeTextBox(...)' in a class called 'varstats' and this is the function: public static void...
KamyarM
1

votes
2

answer
187

Views

Logarithmic Fade In and Out over Game Frames

I have created a static function within Unity3d that fades out music over a certain amount of frames. The function is being placed within Unity3d's FixedUpdate() so that it updates according to real world time (or at least close hopefully). My current math for a linear fade out looks like this: if...
Mark Aven
1

votes
1

answer
51

Views

Creating layouts programmatically

I have a problem when I tried to create a layout from code. The problem is that I am creating differents layouts horizontal and vertical with weightsum. The idea is to create a display similar to the image 1 but now is displaying the image 2. Image 1 Image 2 ¿Anyone can help me? If you need more ex...
kartGIS
1

votes
2

answer
92

Views

Remove duplicate word sentence

I have a list of sentences. I want to deal with duplicates like this: White shoes women Shoes women white Women white shoes I want to make into this: White shoes women Can I do this in Notepad++? Or maybe some other software?
hamsun
1

votes
1

answer
935

Views

Swift: adding a button programmatically without supplying a frame during initialization

Suppose I want to add a UIBUtton programmatically. Every UIView constructor requires a CGFrame, but in my case I want the size to be intrinsic and the location to be anchored to the super view's center. If I instantiate the UIBUtton element without supplying a frame, I see it in the debug view hiera...
Yotam

View additional questions