Saba

1

votes
1

answer
24

views

GridView with different position

Lets say I have 5 items and normal gridview will show items as follows: (in a sequence order) 1 2 3 4 5 x x x x Now how can I make that to look like this: 1 x 2 x 3 x x 4 5 I know I can make that with relative view and set (x,y) of it accordingly but is that possible with gridview or GridLayoutManag...
Saba Jafarzadeh
1

votes
2

answer
74

views

Unable to configure mobile with Jmeter

I want to perform load test on my mobile app using Jmeter but I am facing issues in configuring my mobile phone. I have installed Jmeter and added recording template in it and set the port no of HTTP Test script recorder to 8080. NOw I installed the certificate in my mobile device and set the proxy...
saba bukhari
1

votes
0

answer
154

views

Access denied error while trying to connect Spyder on Windows to remote python kernel

I'm trying to connect my Spyder IDE(on Windows 7) to a remote python kernel. I have a ssh key file, and I enter the server name like '[email protected]_url:portnumber' and also enter the password. But when I try to connect, I get this weird access denied error: File 'C:\ProgramData\Anaconda3\lib\site-pa...
Saba
1

votes
2

answer
38

views

MySQL - query to get all rows that a specific character is non-English

I have a table that have nvarchar elements. This table have 2 kind of elements: elements with only digit characters elements with digit characters and the 3rd character is non-English character I want a query to get all rows that their 3rd character is non-English. Can anyone help? EDIT use WHERE...
saba
1

votes
2

answer
23

views

whats the difference between B = Button(…).grid() and B = Button(…) B.grid() in tkinter

I am new to tkinter and i was experimenting on buttons, and i noticed that sometimes same kind of code works and sometimes not. for example whats the difference between: button1 = Button(root, text='test').grid(column=1, row=1) and button1 = Button(root, text='test') button1.grid(column=1, row=1)
Saba
1

votes
0

answer
34

views

Uploading data into postgresql database [on hold]

I am trying to run a python script in Pycharm which I run successfully many times earlier. But today I am receiving this and there is no progress: There is no error and nothing happens. My other team member tried to run it and it was unsuccessful. She had the same issue. Would you please guide me wh...
Saba
0

votes
0

answer
11

views

Uploading data into postgresql database

I am trying to run a python script in Pycharm which I run successfully many times earlier. But today I am receiving this and there is no progress: There is no error and nothing happens. My other team member tried to run it and it was unsuccessful. She had the same issue. Would you please guide me wh...
Saba
1

votes
2

answer
718

views

Problem with Netbeans IDE when putting swing components in a jFrame

I`m making a GUI for my java program using Swing Components and Netbeans IDE. My problem is that I can't easily put the components on where ever I like in the jFrame. When I drag and drop a component on the frame, other components of the frame start changing their positions and even sizes! Have any...
Saba Jamalian
1

votes
3

answer
6.7k

views

copying pointer to member functions from a structure

I have my code organized as following class MyClass { public: typedef void (MyClass::Ptr2func)(); } struct abc { MyClass::Ptr2func ptr; bool result; } void main() { MyClass myCls; abc var; //here is a lot of decision making code and pointer initializations //I want to copy the pointer to function i...
Saba
1

votes
1

answer
303

views

What's the best pattern in data modeling for relating real people to app users?

This is a design question. I need to come up with a Data Model for a small app and I'm looking for the best approach. A simplified version of the business I'm trying to model has the following entities: Assignments: These are like projects, they have a start date, end date and a team of people assoc...
1

votes
1

answer
552

views

Using Compiler Optimization in Calculating Speed-up

When we are talking about a parallel program in Cuda on GPU having a speed up over a similar sequential one on CPU , should the sequential one be compiled by a Compiler Optimizer (gcc -O2)? I have paralleled a program on GPU. It has a speed up of 18 in comparison with its CPU implementation without...
Saba Jamalian
1

votes
2

answer
951

views

Find the current view name of the Info-path form on SharePoint

I have a multi-view InfoPath form on SharePoint Site. I need to generate PDFs from the current view of the form using C#. I have done many searches, but no answer so far. Appreciate your input very much.
Saba
1

votes
2

answer
792

views

Msg 102, Level 15, State 1, Line 3 Incorrect syntax near ' + '. 5

select SUM(dr_amount)-SUM(cr_amount)' + 'from Gl_Transaction where Accountno like'1%' select SUM(dr_amount)-SUM(cr_amount)' + 'from Gl_Transaction where Accountno like'2%'' + 'select SUM(dr_amount)-SUM(cr_amount)' + 'from Gl_Transaction where Accountno like'3%'' + 'select SUM(dr_amount)-SUM(cr_amoun...
saba awan
1

votes
1

answer
2.4k

views

Infinite Wait in Selenium WebDriver

I have actually 3 question How Selenium WebDriver implemented this driver.manage().timeouts().pageLoadTimeout(-1, TimeUnit.SECONDS) because we cannot give a negative value to a thread for infinite sleep. 2.I make a code for infinite sleep like that WebDriver driver=new FirefoxDriver(fb, fp); driv...
saba
1

votes
1

answer
55

views

What's the correct way of importing a Grails plugin if not mentioned in instructions

I'm trying to use the methods defined in this Grails plugin after confirming that the plugin is installed correctly: https://github.com/agorapulse/grails-open-exchange-rates/blob/master/grails-app/services/grails/plugin/openexchangerates/OpenExchangeRatesService.groovy For all I can speculate, I add...
Saba Ahang
1

votes
1

answer
376

views

Prevent Jsoup to fetch Http response

I'm using HTTP parameters to send a query to a server and fetch the results. I use Jsoup and send my parameters in the URL: String doc = Jsoup.connect('http://server.com/query?a=x').execute().body(); However, in some cases, I don't want the results. I just want to send the parameter to the server a...
Saba Jamalian
1

votes
3

answer
1.9k

views

How navigate back in XML tree to get to an adjacent child element using parent method

Given the following XML: ... USD/KRW 1024.400024 KRW=X ... In order to find the right and get it's price I do the following: def slurper = new XmlSlurper() def result = slurper.parse(XML_URL) def node = result.depthFirst().find { it.text() == 'KRW=X' } println node.parent().find { it['@name'] == 'p...
Saba Ahang
1

votes
2

answer
208

views

How to have a scalable width based on the screen width for a view in android Relative Layout

In the Layout for an activity of my Android app, I need to have a line with a text aligned on the right side of it like below: And this is my XML so far: Basically the issue is that the width of the line is changed according to the width of the screen and width of the text. It should be the width...
Saba Jamalian
1

votes
1

answer
7.2k

views

How to change Firefox WebDriver Port

It is just a curiosity that how can I run firefox driver on different port like IE and Chrome driver.This driver have option like ChromeDriverService service=new ChromeDriverService.Builder().usingPort(7000). usingDriverExecutable(new File('')).build(); though the firefox driver have the option like...
saba
1

votes
2

answer
126

views

Android using variable for first time

I need to set some values to their associated persistently stored data, if they exist, on initialization. If not I need to initialize them. Is there any disadvantage to using the SharedPreference to initialize the variable on the first run. That is, something like this : @Override protected void onC...
Saba Jafarzadeh
1

votes
1

answer
330

views

JodaTime Checking if two times is in a period [closed]

I have two times start time and end times and I put it in JodaTime Local time as this : LocalTime localStartTime = new LocalTime( hoursStartTimeInt, minutesStartTimeInt); LocalTime localEndTime = new LocalTime( hoursEndTimeInt, minutesEndTimeInt); I want to compare if these times are between 12:00 -...
Saba Jafarzadeh
1

votes
1

answer
419

views

System.Speech Voice Recognition not working

I am using c# system.speech , and i have limited number of sentences that i wants to recognize. Here is code SpeechRecognitionEngine recognizer = new SpeechRecognitionEngine(); String[] Sentences = File.ReadAllLines(samplePath); Choices sentences = new Choices(); sentences.Add(Sentences); GrammarBui...
Saba Mehmood
1

votes
1

answer
52

views

Update entities fields with data from other entity symfony2

I have two tables in database - orders and trucks. They have relation ManyToOne. When I receive order - truck field is null by default. Trucks table have preconfig data. So my task: for every order entity which I restore with findAll() method and send to twig (render as table) make checkbox, so I ca...
Saba
1

votes
1

answer
1.1k

views

Spring / freemarker include template inconsistent between IDE and command line

I have recently updated my project from Spring boot 1.1.1 to 1.2.6 and Spring version 4.0.5 to 4.1.7. After the upgrade, the application runs fine from the IDE i-e intellij, but if I run it from command line it gives and error Free-marker template error (DEBUG mode; use RE THROW in production!): T...
Saba
1

votes
2

answer
53

views

Getview is not being called in custom adapter I debugged and I found position was being returned as -1

Below is the code for mycustom adapter.Getview is not being called in custom adapter I debugged and I found position was being returned as -1 in method @Override public Object getItem(int position) { return result.get(position); } ArrayList result ; String [] title; Context context; int [] imageI...
Saba Shamsher
1

votes
1

answer
54

views

VBA: Function marked as restricted using dll

I wrote a C# dll that uses TCP sockets to send information from the client to the server. I am using the StartClient function from my dll but running into the error: Function marked as restricted, or the function uses an Automation type not supported in Visual Basic. The error occurs at the returnV...
Saba
1

votes
1

answer
2.2k

views

how to set value of html element in c#

I am developing a project to take data from a website.so I used a webBrowser and set the url to travelchi.ir and I wrote below code private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { HtmlDocument doc = webBrowser1.Document; HtmlElement Source = doc.G...
saba
1

votes
1

answer
219

views

changing the background of JOptionPane

I change the background of JOptionPane with this code : UIManager.put('OptionPane.background',new ColorUIResource(204, 255, 255)); but the result doesn't look like what I expect
saba safavi
1

votes
1

answer
149

views

How to define attribution of attribution in python

I am trying to make an attribution of an attribution in python. Is there a way to do so: class Foo(): def __init__(self, x, y): self.x = x self.x.y = y I have no idea how to do it, I checked for some examples. But I have not found any example similar.
Saba
1

votes
1

answer
1.3k

views

How can I access the application using selenium webdriver that works through VPN?

For example, I have an application 'www.test.com', to access this site I have installed browsec VPN in firefox then I can see the application content - accessing the site without vpn I get an error of 'Your IP Address has been blocked..bla bla' Now I want to test some UI of that site through Seleniu...
Saba Malik
1

votes
1

answer
473

views

Find the corresponding nouns or verbs of adjectives and adverbs in an English sentence

My goal is to build an algorithm that given an adjective or adverb within a sentence, indicates the corresponding noun or verb. For example: The boy threw the heavy stone angrily to the window that was very far. heavy (adj) -> stone angrily (adv) -> threw far (adj) -> window So far I was able to...
Saba Jamalian
1

votes
1

answer
269

views

error: package com.google.android.gms.ads.identifier does not exist when deploying to target

I'm a bit new to the Gradle build system. My app already had some working integrations with Google Play Services, including the Ads library. I'm trying to add the Android Nearby service to my build.gradle, but the import for the ads library no longer works specifically after I added in the Nearby li...
Saba Imran
1

votes
1

answer
45

views

VBA code in Excel, Argument not optional, CountIf Error

I created a code to find instances of the number 1 in column A in Sheet27 but it keeps giving the error 'argument not optional' and highlighting the CountIf part of the code. I want this information to be displayed as a msgbox. Private Sub CommandButton1_Click() Dim instances As Long instances = Wo...
Saba Ali
1

votes
1

answer
0

views

canvas doesnt draw in loop

Why arent rectangles being drawn in loop? I just started making snake game n tried to draw body of snake via loop,but for some reason ctx doesnt draw in loop. if i write rect without loop it works. var canv = document.getElementById('canv'); var ctx = canv.getContext('2d'); var snake = []; snake[0...
saba silagadze
1

votes
1

answer
5k

views

Find correlation coefficient of two columns in a dataframe by group

I have a large dataframe 'Im' that looks like this V1 V7 X134 X135 X136 X137 X138 1 m 1000 543.360 1057.770 1869.42 2664.06 3935.307 2 m 2000 767.256 1704.430 2993.63 5248.06 6341.129 3 m 3000 413.096 796.168 1441.13 3500.46 2962.048 4 a 4000 257.128 559.200 1014.79 2948.64 208...
Saba
1

votes
2

answer
64

views

Why can't I directly assign to object properties using multiple return values from a method?

Based on this question I've coded the following which throws a compilation time error: Here is the code: 43. Currency currency = new Currency() 44. (currency.rate_one, currency.time_one) = getDateAndRate() My method with two return values: def getDateAndRate(){ Date date = new Date() double rate = g...
Saba Ahang
1

votes
2

answer
299

views

effect of ligting on image segmentation in matllab

I'm trying to do a segmentation task on the below picture. I'm using fuzzy c-means with some minimal pre-processing. The segmentation will have 3 classes: background(the blue region), meat(the red region) and fat(the white region). The background segmentation works perfectly. However meat-and-fat se...
Saba
1

votes
2

answer
49

views

In map , whether the tr operator will affect the original array?

I wrote the code like this, my (@Last,@Input); @Input=qw(This is FOR Testing); map{ tr/A-Z/a-z/;tr/a-z//cd;push @Last,$_;} @Input; print 'Original array ==>@[email protected]
1

votes
3

answer
85

views

Data discrepancies/comparison between three tables - SQL Server 2014

I have three tables in SQL Server 2014, each table has millions of data and keep growing. I am trying to find discrepancies between the tables, for example: DECLARE @ab TABLE ( k1 int, k2 int, val char(1) ) DECLARE @cd TABLE ( k1 int, k2 int, val char(1), add_cd varchar(50) ) DECLARE @ef TABLE ( k1...
Saba
1

votes
3

answer
227

views

Android soft keyboard displays weirdly after calling onResume

I have an EditText that I manually control showing keyboard by below code: private void showKeyboard(boolean show) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); if (show) { mAddNewEditText.requestFocus(); imm.showSoftInput(mAddNewEditText, 0); } else...
Saba Jafarzadeh

View additional