Student Student

1

votes
2

answer
14

views

UIView shadow not visible

I have a UIView called containerView. Upon creating the UIView & Adding it to the main view, I'm trying to add a little shadow. My code: let containerView = UIView() let bg_clear = UIColor(hexString: '#34495E') containerView.backgroundColor = bg_clear containerView.layer.cornerRadius = 15 containe...
average_student
1

votes
3

answer
62

views

For some reason loop doesn't print out correct array values

I'm having some trouble getting the correct output when printing an array. Essentially what I'm trying to do is set up an array in the main method, then send that array to another method that would print out something like this: 89 12 33 7 72 42 76 49 69 85 61 23 With it being 3...
Confused Student
1

votes
2

answer
2.5k

views

TestNG try/catch not working properly

I am working on a test automation framework that someone previously built. The framework reads test data from an excel file and uses Selenium webdriver to control the browser and perform tests. I am adding functionality to this framework by adding a TestNG class that reads data from a CSV file. Som...
Student
1

votes
2

answer
37

views

finding the occurrence of vector v (1,k) inside a matrix M (m,k)

I want to find the number of occurrences of vector v in matrix M. What I have is a matrix the size (60K, 10) and I initialised a test vector v (1,10): tester = np.zeros((1, 10)) Now I want to check how much time that vector entirely repeats itself in the matrix rows. I did it iterative and it work...
EE_student_TAU
1

votes
3

answer
3.7k

views

ÆØÅ doesn't display correctly in MySQL

I have set up a table in phpMyAdmin. I haven't changed the charsets or anything. I inserted a text in a new row, and when I try to SELECT that row and output it with PHP, the letters ÆØÅ are displayed as ���, however if I try to edit the field in phpMyAdmin, the letters are displayed correc...
1

votes
0

answer
199

views

Pagination not working with footable

hello friends i am trying to use footable in my project i got code from some site but pagination is not working with this code. I have created static demo page with following code and i have more than 100 rows in table i haven't mentioned in code and i am getting below output.can anyone help me. Lan...
Cs Student
1

votes
1

answer
19

views

How to use cloned github repository classes into existing java project

I am using some classes from a github project. I created a maven project and added the dependency from the provided github project, but I need to change some code in those project classes. I have downloaded and modified the repository but now I have no idea how to import it and use the classes to my...
student
1

votes
0

answer
45

views

Empty JFrame when adding JLabel & JTextField to it [duplicate]

This question already has an answer here: How to align JLabel-JTextField pairs vertically 7 answers Arrange the Label with its respective field Swing 6 answers Setting JLabels in rows and placing the equivalent JTextField right next to it 2 answers So I am supposed to make a very simple fillout f...
Some Student
1

votes
0

answer
145

views

Spring Batch using Spring Boot and Maven Modules

While working on a Spring Batch project, I'd like to create modules for each of the necessary batch functions. For example, the following shows the tag in the pom.xml file: db_common sor_one sor_two where the db_common module will have the common database configuration for creating DataSouce that i...
student_t
1

votes
0

answer
442

views

NLU FastText, Glove or Word2Vec Load Pre-trained model and Add new word to vocabulary

As i say in the title i would like to load pre-tranined model using gensim is possibile for example but with fasttext say: https://radimrehurek.com/gensim/models/wrappers/fasttext.html 'Note that due to limitations in the FastText API, you cannot continue training with a model loaded this way, thou...
T-student
1

votes
1

answer
38

views

How to interpret a joblib traceback within Python 3.x?

Objective: to apply joblib tools to a Python 3.x script. I am new to joblib and thought I would see if someone could help me to interpret the traceback to get meaningful results. I have kept to n_jobs=1 simply to help with the traceback, obviously in practice something like > 2 would be ideal. Given...
Student
1

votes
1

answer
46

views

Type Mismach Basic Language

I'm a grade 11 student and I am coding in Basic language. I asked the user a question, and the user gets to choose yes or no. In the coding, a 'type mismatch' error displayed. Also in the coding, after the question, I coded in some IFs and END IFs, and before I had this problem, it printed 0 when I...
Student Austin
1

votes
1

answer
255

views

Vaadin Grid TextField for Boolean StringToBooleanConverter

While working on an in-line editing feature in Vaadin Grid (8.1.0), I have created the beans and use setItems method from the Grid to populate all rows. But when I double clicked a row to edit it, an exception came up. I thought I have bound the bean's property type correctly with the TextField but...
Student_101
1

votes
3

answer
136

views

How Does Permission get asked Again?

I am seeking to copy my SQLite database to 'external' storage as a means of backing up my database file. From there the user can grab the .db file and move to a place deemed safe. In following the Android Developer documentation on getting permission to WRITE_EXTERNAL_STORAGE, I have entered the co...
CS Student
1

votes
1

answer
195

views

React Native - Platform-Independent Tab Navigation Method

I have come to a Tutorial to apply an interesting Tabs Navigation, basically it install and use the react-native-tabs npm and allow the React Native Application use a Tab Component that can be run in Both Android and IOS Platform. The application of the Tutorial Link is simple, the Tab just simple l...
I am a Student
1

votes
1

answer
30

views

Selecting observations which have duplicate values in one column [duplicate]

This question already has an answer here: How can I remove all duplicates so that NONE are left in a data frame? 1 answer In R,I have data called main, with a column called Pass.id which is an identifier for a particular event. The values within this column are either unique, or there are pairs Row...
A Student
11

votes
6

answer
2.2k

views

Pretty sure I'm over complicating my loops but unsure how to simplify [closed]

As the title says I just need some help/advice on how I can simplify a part of my code. I get the output I want but it's obvious to see that the way I go about it is a bit excessive. What I'm trying to do in my program is pass the array int [] myInches = {89,12,33,7,72,42,76,49,69,85,61,23}; Into my...
Confused Student
1

votes
1

answer
65

views

Use Benthic Golden “ImpExp 6” from python code

Using Benthic Golden6 'ImpExp6' tool -- I can successfully import 122+K rows of data from csv file. Attempting to automate via .py as I have with other smaller data sets and I am encountering the exceeded table space error. I dropped everything from the user, maximizing available space just for tes...
Student_of_Py
1

votes
0

answer
177

views

Error: Objective function must return a scalar-Python Optimization?

When i run Python minimize function on my objective function , i get Objective function must return a scalar error. def fun(param,*args): alpha=param[0]; beta=param[1:len(param)] t_to_next =args[1] remaining_coupons = args[2] coupon_rate = args[3] dirty_price = args[4] knots = args[5] fit_P = [] f...
Student
1

votes
0

answer
49

views

Lasso with SGL package : I get different results using the index parameter and alpha = 1?

I am working on the selection of variables in high dimensional models. I use the SGL package of R. in the function cvSGL if we set the parameter alpha=1 the function makes the selection of the variables with the lasso method. And the index parameter is a vector indicating group membership of each co...
Sh.student
1

votes
1

answer
234

views

PhoneGap - Angularjs http service (PHP API call) Not Working

I try to use Angularjs http service to call my PHP API. Everything working fine in Browser. But, when I test it on my Android Phone, it will not work. My Issue: In Android PhoneGap Application, Whenever I trigger the Angularjs http service it will always trigger the function (error) even when the Mo...
I am a Student
1

votes
2

answer
49

views

Upload apk to existing play store project after adding flavors

I want to upload a new version of my app, but I can't because I added flavors so the package name has changed from: com.myapp.android to com.myapp.android.flavor1 Inside my build.gradle: productFlavors { main { applicationId 'com.myapp.android' versionName '1.0' versionCode 4 } flavor1 { applicati...
student
1

votes
0

answer
102

views

Jquery ui touch double click not working

I am using the jquery ui touch punch to enable the touch event support for my application in the touch-enabled mobile devices. The drag and single click is working but double clicking is not working. By adding this CSS .ui-draggable { -ms-touch-action: none; touch-action: none; } The double touch w...
Student
1

votes
0

answer
58

views

Tornado doesn't free memory after many connections for downloading

I have some problems with freeing memory in Tornado. My handler downloading part of big bytes file, and write it in response. But the more parallel requests the more memory is used (this is logical). But after the end of requests, memory is not free! My code: import tornado.ioloop import tornado.web...
Student
1

votes
2

answer
61

views

Class to textfile to list

I am currently working on a project trying to make a simple bank system. The basics of the system is done as far as im concerned but there is one problem. I am trying to make a file saving system for my 'bank accounts'. When a new account is created (aka, a new class is made) it's supposed to be sav...
Filthy student
1

votes
1

answer
31

views

Can't display the table when running index.jsp

In my web app the welcome page needs to show a table. However it (http://localhost:8080/MyApp ) shows 'null' , but if I add 'ServlentToRead.java' I mean, http://localhost:8080/MyApp/ServlentToRead it displays the table. Why I can't get the table as first page ? here is the index.jsp Mytable Mytabl...
student
1

votes
0

answer
93

views

Svg to pdf converter for Qt project

I have multiple svg files and I wish to convert them in the PDF format. The problem is that I need to work with multiple text fonts and a simple QSvgRenderer is not enough. For example: My problem is that I need to integrate a library in my project that does not use external dependencies (just a li...
student
1

votes
0

answer
85

views

Build LibrSvg as static library for visual studio

I need to use librSvg library in a project for svg conversion to other formats (for example pdf). This is the only library that I manage to find that suits my needs (to convert a majority of embedded fonts from svg). My problem is that I do not know how to proceed because librSvg has a huge amount o...
student
1

votes
0

answer
111

views

Unable to load images asynchronous with FSPagerView

I have problem displaying the images in the slider because I have to wait for them to download and then load them inside the FSPagerViewCell ImageView. Inside the delegate function - (FSPagerViewCell *)pagerView:(FSPagerView *)pagerView cellForItemAtIndex:(NSInteger)index I am using an async functio...
Student
1

votes
0

answer
34

views

How do I access the 'friend node' using the Facebook Graph API?

I'm trying to use the Facebook Graph API to return some of my friends facebook posts, and it seems like I need a 'friend node' or something to access that. I currently have a user node that will return the facebook posts that I myself have posted, but I want to be able to return my feed of posts fro...
1

votes
1

answer
96

views

arduino auto servo movement signal from python

how do i change the if statement in arduino in order to move the servo the same degrees as whats randomized in python? First he's the python code: import serial import time import random arduinoData = serial.Serial('com4',9600) while True: low = 0; high = 180 ran_number = random.randint(low, hi...
Some Student
1

votes
1

answer
64

views

Android RxJava and Realm - does RxJava Error Handling will catch error that occurred from Realm?

My Questions Does RX Java error handling will automatically catch error occurred during the Realm processing its function? Is RX Java error handling is better and should be replacing the try-catch exception error handling? Based on my implementation below, Should I remove the Try-Catch Error Handli...
I am a Student
1

votes
0

answer
40

views

How to update a MongoDB collection based on multiple conditions without looping

For one of our Node.js app - we've a MongoDB collection like this: [ { 'field1': { 'key1': true, 'key2': false } }, { 'field1': { 'key1': true, 'key2': true } } ] which we need to update with the following logic: For each document if the field1 exists if the key1 and key2 are true set field1 to [key...
student
1

votes
0

answer
37

views

Pushing messages from an Oracle database to a client

I am building a new Android App which has an Oracle Database as its Datasource. I already have an Soap Webservice running on an weblogic server which can accept request from the client and send back the responses generated in the database. My Problem is that i also want to sent Data from the databa...
student
1

votes
1

answer
113

views

Minimum number of jumps to reach end with constraints [closed]

I need a bit of help with finding minimum number of jumps needed to reach the end of an array with constraints. I have an array of 20 numbers randomly selected between 0-100. No repetition and numbers are sequential in progressive order. First number is 0 and final number is 100 always. int data[] =...
Cyber Student
1

votes
1

answer
155

views

How to use INNER JOIN in JPAQuery?

I precise that I am a french student in 1st year of Java Developper. And I'm pretty sure my question title isn't even correct regarding what i'm trying to do. Then I hope the following explaination will be clearer! I'm developing a little multi-module app using: Spring Boot, Spring security, Hibern...
John Student
1

votes
0

answer
16

views

How do I test this writing XML Salesforce documentation in the developer console anonymous window?

I'm trying to learn how to read and write XML using the Document Object Model using this documentation on the Apex developer guide: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_xml_dom.htm. However, I can't for the life of me figure out how to actually generate the X...
Salesforce Student
1

votes
0

answer
26

views

Geopandas - Trying to get exact location on shapemap

I'm trying to place the location of these community centres on my shape map. Currently the only thing showing on my map is the different levels of income factors from an existing csv file which I have linked. But as I said, I would like to link in these locations which I have the lat/long for: Image...
ComSci Student
1

votes
1

answer
172

views

Folium - Choropleth doesn't seem to be working

I'm new to geopandas and folium but I'm struggling with this particular issue. I want to put my wards on my choropleth, and I was able to do it, but everything is solid as opposed to what I want it to be, the higher the number the lighter it is and the lower the number the darker it is. Any help wou...
ComSci Student
1

votes
3

answer
39

views

How to disable a html subtraction button when the value is 0?

So I've tried all over the internet for an answer and have been unable to come up with the correct answer. My code: HTML - JS: function subStrength(){ strength = strength - 1; document.getElementById('strength').innerHTML = strength; } function addStrength(){ strength = strength + 1; document.getEle...
Mr. Student.exe

View additional