# sonia_

208 questions

2

24

views

### display checked in react

I'm trying to display add checked to input when i is equal to zero I have a checked state which is a boolean so I should get checked= true and then checked= false lists.map( ( { names = '' }, i ) => { if(i === 0) { setAttributes({checked : true}); }else{setAttributes({checked : false});} return...
sonia maklouf

1

271

views

### PostgreSQL: “index row requires 1460216 bytes, maximum size is 8191”

I'm new to PostgreSQL and I'm trying to populate a table with the content of a list of dictionaries built in Python, which looks like: diclist = [{'accession':'value', 'species':'value', 'seq':'value', 'length': 'value'}, {'accession':'value', 'species':'value', 'seq':'value', 'length': 'value'}, ....

1

146

views

### R: Interpolation of values for NAs by indices/groups when first or last values aren't given

I have panel data that has county data for 15 years of different economic measures (which I have created an index for). There are missing data in the values that I would like to interpolate. However, because the values are randomly missing by year, linear interpolation doesn't work, it only gives me...
Sonia

1

17

views

### button for add and remove component in react

I trying to add new button which would add new tabs I'm using react-tabs which build tabs like this Title 1 Title 2 Any content 1 Any content 2 so I need two loop one for the tab and another one for tabpanel like this {stats.map(({ figure = '', instructions = '' }, i) => { updateStatProp(i, 'figure'...
sonia maklouf

2

89

views

### Redirect and remove folder in url .htaccess

I am trying to redirect from http://example.org/family/ to http://example.org/family/public without showing in the url the folder public, so I want to keep the url the same after redirecting. I've been reading a lot of different solutions but I haven't got the result I want. Currently I have a .hta...
Sònia

1

56

views

### How do I post result in the box on html page via express.js?

I have a difficult time trying to make html and node express work together. I want the result { 'date': April 15, 2017', 'unix': 1492214400 } to be posted inside the box ( enclosed in p ) on html page instead of to be opened in new window. Here is what I have tried so far. Can you pinpoint what...
Sonia

1

24

views

'addimage.php' to add an image to Mysql(table:question) $question = mysqli_escape_string($conn,$_POST['question']);$file_temp = base64_encode( file_get_contents( $_FILES['image']['tmp_name'] ) );$query = 'INSERT INTO question(question_name, image)VALUES('$question','$file_temp'); My HTML is:...
sonia

1

66

views

### transform 2d canvas in 3d

I try to understand how house or plan builder work when you can draw a floorplan How they transform 2d floor plan in 3d wall. I made a small demo with 2d canvas line and I try to find out how to convert a 2d canvas line in 3d wall with three.js or any other webgl libraries. var canvas, context, d...
sonia maklouf

0

33

views

### How to perform page-break dynamically while editing live preview

How to do page break while editing a page dynamically? While using @page options, page-break is working automatically. I want to see live preview of page at the time of editing so that page-break will appear & content should go to next page as it exceeds. See Page Print demo - [https://codepen.io/ne...
Sonia

0

58

views

### Monotonic Constraints in Lightgbm

Can anyone help me understand how to apply monotonic constraints to a dataframe with large number of features and rows? Can you please let me know if the process below looks fine? I have a dataframe that has 750K rows and 88 features. To assign sign to all the features using pearson correlation me...
Sonia Bandha

1

67

views

### change the character NUL by enter in batch

I am working on a bat file. I have a .txt file like this - 1: 04000025000 00000008,37 NULNULNULNUL 2: 04000455000 0465346000008,37 NULNULNULNUL I want to delete all NUL for have - 1: 04000025000 00000008,37 2: 04000455000 0465346000008,37 Coud you please he...
Sonia Sellathurai

1

55

views

### How can I a add arabic character in my topic url in blogger?

I tried to use a Custom permanent link to my blog. But I can't use arabic character. I tried also to use utf-8 code but the '%' is invalid in blogger. What can I do please? www.online.com/يكتمل www.online.com/%D9%8A%D9%83%D8%AA%D9%85%%D9%84 thanks in advance
sonia_

1

244

views

### Displaying CAknInformationNote on device

I am fetching the call-logs, appending them on information note using: CAknInformationNote* note = new (ELeave) CAknInformationNote; note->ExecuteLD(callLogs); I perfectly run on emulator (show all call-logs on note) but nothing shows up when run on the actual device (a Nokia N73). Any ideas?
sonia

2

640

views

### Wordpress LaTex Equations

Having trouble with latex formulas. For instance, for the following I get 'Formula does not parse': (\epsilon, F_\alpha_2, \epsilon) \rightarrow (F, \alpha_1) There are a lot of formulas that break down with no apparant reason. For instance the previous sample works on http://www.codecogs.com/latex/...
Sonia

1

445

views

### How to add the Zoom effect on our own website

I would like to have the effect like Facebook Theatre Mode on my website. But where to find the sample? I need one, the effect is when we click on the photo from the photo album then another pop-out layer on the top of the website. It is something like this: http://www.youtube.com/watch?v=31FG9yONq...
Sonia Yunni

1

1.7k

views

I'm using jquery load() to display all documents on my website. My script in index.html file looks like this $(document).ready(function() {$('#main-wrap').load('home.html'); $('#home').click(function() {$('#main-wrap').load('home.html'); return false; }); $('#wilgoc').click(function() {$('#main-w...
sonia

1

613

views

### how to execute java -Xmx512m -jar a.jar yourfile.txt. command from eclipse

1.>how to execute java -Xmx512m -jar a.jar yourfile.txt. from eclipse @junit
Sonia Gupta

1

99

views

### parser in android [closed]

The below is my xml format.In that i need to extract data under Group tag,this group tag is under common tag.Inside this common tag we have 4 groups are there,i need that 4 group data alone.But in my xml some other group tag is also there ,so that data is also extracting.But i need that group data w...
sonia

4

4k

views

### how to sort xml code in ascending order in java

Below is my XML code i need to display the 'node name' in ascending order. XML : Following is my java code : JAVA CODE : import java.io.IOException; import java.io.StringWriter; import java.net.URL; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.xml.pa...
sonia

2

1.5k

views

### Creating Google Location URL by using latitude & longitude information

I have a code where I'm retrieving latitude and longitude information. I'm interested to show that information on map. I would like to create a link for Google map with retrieved 'longitude' and 'latitude' information. I am using Linkify for this as follows: **** Java Code**: String text = 'maps.goo...
sonia

1

539

views

### How to parse xml containing namespace through JAXB

I am trying to parse an xml through JAXB which contains xmlns attribute. If I parse the xml as such it shows NullPointerException. But if I remove namespace tags and xmlns attributes then it worked fine. Sample xml is as follows: and my sample code is as follows: @XmlRootElement(name = 'database') p...
Sonia

1

227

views

### How to output an alert message when embedded link does not exist?

I have this piece of code and I was wondering how I would be able to display an alert message when the embedded link does not exist. Is this possible? function soniaZsound(track) { var link = 'https://ssl.gstatic.com/dictionary/static/sounds/de/0/'+track+'.mp3'; document.getElementById('myspan').inn...
Sonia Brami

2

24

views

### Python list indices must be integers or slices, not str when making a list of a list

I am using Python 3 and pandas and I would like to make a list within a list, by iterating over a list of data frames and pulling out indexes that match my criteria. I am getting the error 'list indices must be integers or slices, not str'. I think the function works fine but the for loop does not....
Sonia Buckley

1

2k

views

### Bind Access Form/Report to results from MySQL Stored Procedure

I'm trying to change the recordset of a Report (or Form) to be the results of a dynamically called MySQL stored procedure, in the Report_Load event. Specifically, how would I set up the connection? I've looked at Bind Access form to the results from a Stored Procedure, as well as How to bind Microso...
Sonia Hamilton

1

461

views

### How to stop firing observable on computed function in knockout js?

I am new to KnocoutJs. Any help is much appreciated. I want to call function on click of div and same function should be called inside computed function. Below is my function. DetailViewModel.prototype.DisplayChange = function (name) { this.currentSelection(name); switch (this.currentSelection()) {...
Sonia Dhir

2

281

views

I already have downloaded wordnet2.0 full, but i am not getting how to use it as a graph because it consists of multiple RDF files. I want to use wordnet2.0 ontology as a graph in Eclipse. The following is the snippet of code that i am using for loading a ontology as a graph. I also want to know, Am...
sonia

1

81

views

### compute mean based on 2 variables in a loop

I'm trying to compute the mean of two variables consecutively over a large dataset. I have 64 cases and over 200 variables. Basically, I need to compute the mean of two variables beside each other over and over. For example, I have v1, v2, v3, v4, v5, and so on up to v200 as my variables. I now need...
Sonia

1

1.1k

views

### Unable to create service reference for wsdl file

I have wsdl file and xsd files at my local machine. I want to add service reference in project. I don't have web service I only have wsdl file. I'm getting the following error: The document was understood, but it could not be processed. - The WSDL document contains links that could not be resolved....
Sonia

2

14

views

### CSV file containing column with occasional coma in parenthesis crashes pandas.read_csv

I need to write a function that parses a very large .csv file. Unfortunately, whoever made the csv file did not use a very good delimiter as one of the text columns occasionally uses the delimiter (I have no control over this). The csv file does not have quotes surrounding the text i.e. a problemati...
sonia

2

46

views

### Best way of getting the number of comments a user has post

I need to display the number of comments a user has post. I can think about two different ways of doing it, and I would like to know which one is better. METHOD ONE: Each time I need to display the number of comments, query the comments table to select all comments with user_id x, and count the numb...
Sonia

1

1.5k

views

### Why is Google Play Services version in Android SDK Manager different from the version required in gradle file?

I checked the Google Play Services version in SDK manager and it showed me 25. But the versions required in gradle file follow an entirely different pattern. Only by trial and error I could figure out that it should be 7.5.0. How can I map the version in SDK manager to the version I need for build.g...
Sonia

1

1.1k

views

### API key for Mailchimp API authentication Methods

We are exploring the MailChimp API v3.0. There are two types of authentication methods: Basic and OAuth 2. We are able to authenticate using both ways, but there is confusion with the Authorization Header part: Basic Authentication (both authorization headers below work): Authorization: Basic base64...
sonia

2

43

views

### .htaccess affect other file url

I am trying to make .htaccess rule not affect other file url example my .htaccess rule is RewriteEngine On RewriteRule ^([^/]*)$/tr/hp.php?q=$1 [L] my site url is mydomain.com/keywords everything working good on keywords but when i try to open robots.txt mydomain.com/robots.txt OR mydomain.com/ima...
Sonia

1

1.3k

views

### Why JasperReports Server shows empty report?

I have created a sample report in Jaspersoft Studio and I created server connection and the created report published to it. but when i open the server and check the same item which was published, it shows empty report. why it is so? Connection to jasper server: Report design:
sonia charan

1

816

views

### Missing artifact error when adding a Maven dependency

I am not familiar with maven but I need to add a jnativehook dependency in a Java/Jersey project. I tried to add this dependency in my pom.xml com.1stleg system-hook 2.0.3 But I get an error on Eclipse Missing artifact com.1stleg:system-hook:jar:2.0.3
sonia

1

90

views

### Tracking motion of object (by itself or by colour)

Is it possible to use the Google Tango Java API to track an object by itself (say, in the captured video feed I tap on the object and then the device tracks it continuously) or track an object by color (e.g. If I have a black sphere against a white background)

2

755

views

I am using netty 4.0.33 to build a SSL/TLS client/server. For every connection, I want to log a message that TLS connection is successful between the 2 peers. Where should I put this code snippet? channelActive or channelRead0? I am a bit confused about the purpose of channelActive and channelRead0....
sonia

2

45

views

### Matrix of distances between data in 2d Matlab

I have four 1-by-n matrices. The first two matrices represent the position of n points in the 2D plane (x and y component of position). The second two matrices represent the position of another n points in the 2D plane. I want to create an n-by-n matrix (say M) for which M(i,j) is the distance betwe...
Sonia Sohi

2

1k

views

### sort points in order to have a continuous curve using python

I have a list of unsorted points: List = [(-50.6261, 74.3683), (-63.2489, 75.0038), (-76.0384, 75.6219), (-79.8451, 75.7855), (-30.9626, 168.085), (-27.381, 170.967), (-22.9191, 172.928), (-16.5869, 173.087), (-4.813, 172.505), (-109.056, 92.0063), (-96.0705, 91.4232), (-83.255, 90.8563), (-80.7807,...
S.sonia

1

12

views

### Vim multi-file version of '*' matching command

In vim when you type * on a word (in command mode) it will do a quick search for all matches of that word, in the current file (and highlight the results if hls is set). Is there a quick way of doing this for all open files? I know about :grep eg :grep foo *.txt. But that involves too much typing (e...
Sonia Hamilton