Sonia

1

votes
0

answer
13

views

SMOTE in r reducing sample size significantly

I have a data set with around 130000 records. The records divided in two class of target variable,0 & 1. 1 contains only 0.09% of total proportion. I'm running my analysis in R-3.5.1 on Windows 10. I used SMOTE algorithm to work with this imbalanced data set. I used following code to handle imbalanc...
Sonia
1

votes
1

answer
640

views

Pass props React Router

I need to pass props through React Router to LawsList Component. So I come up with this code: On main.js : const lawlistcomponent = props => { console.log("test"); return ; }; const routes = ( ); And on LawsList component : export default createContainer(props => { console.log(this.props.voted);...
Sonia
1

votes
1

answer
27

views

loop over pairs of files with common name in bash

I have a folder with 18 pairs of files with the same name except one has an R1 and the other an R2 , e.g. SM000907_S1_R1.fastq and SM000907_S1_R2.fastq. I would like to throw a command in a loop for all these pairs. I've tried the following loop, but it's not working (it throws the error "wrong subs...
0

votes
0

answer
4

views

Why querying the drive of users without OneDrive returns the signed-in (delegated authentication) user's drive instead of a 404 error?

When querying any user without a OneDrive, including guests, instead of the 404 one would expect, the output returns the signed-in user's drive ID. Could this be a recent (a few months at most) regression? The app I'm working on offers both delegated and app authentication. When requesting drive i...
Sonia Bounardjian
1

votes
1

answer
239

views

Cassandra as a Time Series store

I am considering the use of Cassandra as a time-series store. I have millions of series and each series have around 10K of sequential points with uniform intervals. Some series though have a few thousands points or less. They may start and end at different points but all share the same times. I acce...
Sonia
1

votes
3

answer
1.2k

views

CSS placing multiple text above multiple images

I am having trouble placing a multiple text in front of multiple images. The way I can achieve this is using absolute and relative positioning, with only 1 text above 1 image. But when used in multiple id's it is not working. Please show me a way. Thank you #box1{ float:left; position: relative; z-i...
Sonia Laishram
2

votes
1

answer
1.5k

views

A grammar for one variable functions in ANTLR

Hey! I am looking for an ANTLR grammar for parsing one variable function expressions. It should support +,-, /, ^, special functions (e.g. cos, sin) and constants (pi, e) and parenthesis. I tried writing it myself but I get left-recursion warnings. Does anyone have a example that I can get started w...
Sonia
17

votes
7

answer
27.1k

views

ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing

I had created an app and when tried to run,get an error like this. ERROR: In MenuView, unable to find attribute android:preserveIconSpacing Problems and at end of R.java please help me to fix this issue
Sonia John Kavery
18

votes
5

answer
5.9k

views

How to do recursion in anonymous fn, without tail recursion

How do I do recursion in an anonymous function, without using tail recursion? For example (from Vanderhart 2010, p 38): (defn power [number exponent] (if (zero? exponent) 1 (* number (power number (- exponent 1))))) Let's say I wanted to do this as an anonymous function. And for some reason I didn't...
Sonia Hamilton
3

votes
1

answer
139

views

scrollmagic and velocityjs

I'm trying to animate a div at some point with scrollmagic and velocity.js It gives me an error supplied argument of 'addTo()' is not a valid ScrollMagic Controller so the velocity animation takes place before it reach the trigger but It seems to me that it's a valid controller var scene = new Scrol...
sonia maklouf
6

votes
3

answer
1.3k

views

build Golang release binaries for Github

I'm looking for ideas on how to easily build binaries for common platforms for a Golang project, for release on Github. I already know how to manually do releases, using Github's instructions at Creating Releases. And I'm currently doing releases using aktau/github-release, but this requires manuall...
Sonia Hamilton
4

votes
1

answer
339

views

Error message when building default iOS solution in with monogame

Does anybody know why I get the following error message when I try to build the default "MonoGame.Framework.iOS.sln" on Monotouch? And how I can fix this? : on line 468 of the Guide source file (From MonoGame.Framework.iOS>iOS>GamerServices>Guide.cs I get, public static void ShowMatchMaker() { As...
Sonia Brami
6

votes
1

answer
2.7k

views

Scala case class with function parameters

I'm working with this code: case class State[S, +A](run: S => (A, S)) { ... def flatMap[B](f: A => State[S, B]): State[S, B] = State(s => { val (a, s1) = run(s) f(a).run(s1) }) ... } This is an abstraction for work...
Sonia Hamilton
5

votes
2

answer
8k

views

HTML5 Canvas Brush

I have searched the web and found no answer. I want to draw lines on an HTML5's canvas element but having a texture that is not solid, rather custom. Just like brushes in Photoshop if you know them. For example, to have a line that looks like it was drawn with chalk or artist paint brush. Do you kno...
Sonia
20

votes
1

answer
16.6k

views

Read a large zipped text file line by line in python

I am trying to use zipfile module to read a file in an archive. the uncompressed file is ~3GB and the compressed file is 200MB. I don't want them in memory as I process the compressed file line by line. So far I have noticed a memory overuse using the following code: import zipfile f = open(...) z =...
Sonia
5

votes
3

answer
2.1k

views

Phonegap :difference between capture.captureImage and camera.getPicture

I am trying to create a phonegap app to capture image with its camera. When i googled, i got two options ie using camera api and capture api. what is the difference between navigator.device.capture.captureImage(captureSuccess, captureError, options) and navigator.device.camera.getPicture(captureSuc...
Sonia John Kavery
5

votes
1

answer
2.1k

views

What does 'with context' mean when doing an import?

I've been looking for an explanation in the SaltStack docs about what 'with context' means. But there's only examples of using context. What is 'context'? What does it do here? And why is Debian ignored in the map.jinja file? (for example map.log_dir seems to "jump down" a level) # config.sls {% fro...
Sonia Hamilton
3

votes
4

answer
3.5k

views

Delete plugin data after removing from Wordpress

I am using a WooCommerce plugin (WooCommerce Currency Switcher) that I want to delete completely and then reinstall. When I install the plugin again, it remembers all of its previous settings. How can I delete all of a plugin's data, even after completely removing it from WordPress? I've searched an...
Sonia Khan
1

votes
1

answer
1k

views

Urban Airship notification does not be shown in android device while message is being received

I have integrated the urban airship library to an android project. My problem is that I try to send a message via test push notification in urban airship dashboard. While I see in logcat -> Received push message: Bundle[{com.urbanairship.push.ALERT=bla blaba etc which means that I receive the messag...
Sonia
2

votes
1

answer
27

views

How to write Rewrite rule for my Query?

I have getting problem in htaccess rewrite rule. My current url is:- http://example.com/abc/blogs/blogs/xyz/ I want to convert this url to:- http://example.com/abc/blogs/xyz/ How can I write Rewrite rules in my .htaccess file??
Sonia
1

votes
2

answer
192

views

available smallest width quantifiers

I am trying to create an application which works fine on mobile devices with small screen and tablet devices having large screen. That is devices with screen size 4 to 10 inch. Read that we can resolve this issue by using smallest width qualifier . The Smallest-width qualifier allows you to target...
Sonia John Kavery
2

votes
2

answer
22.5k

views

Impossible to set the rule “pointer-events” through JS or jQuery?

I've to manipulate the interaction with an element in runtime, making it invisible and "no interactible".. The rule that can accomplish the second, is "pointer-events: none" The problem is that it doesn't recognized from JS or jQuery... why?
Sonia
4

votes
3

answer
197

views

Move parameter in Clojure function

I'm working on 4clojure problem 29 : "Get the Caps" (= (__ "HeLlO, WoRlD!") "HLOWRD") I've written a solution in the REPL: user=> (apply str (filter (fn [foo] (some #(= % foo) (map char (range 65 91)))) "AbC")) "AC" But as you can see my parameter "AbC" is nested two parentheses in. How would I mov...
Sonia Hamilton
3

votes
3

answer
309

views

NoSQL Document DB

I am in a need for a document-oriented database for a project I am working on. I basically have two things I need: Full ACID support and the ability to have references. Scalability is not a major issue since the number of total users is at most 300. I know MongoDB supports references between documen...
Sonia
2

votes
2

answer
25

views

How to convert a list of strings representing tuples to tuples of integers?

I want to convert list_int=['(2,3)','(3,4)'] to integer coordinate points: [(2, 3), (4, 8)] I tried this code list_int=['(2,3)','(3,4)'] for x in list_int: con= int(x0 for x in list_int) print con and I am getting this error TypeError: int() argument must be a string or a number, not 'generator' I a...
sonia
2

votes
1

answer
3.3k

views

Need to Display name and images in dropdownlist using asp.net

I am displaying Name and image in DropDownList.I have done it by Jquery plugin.Its working now. I have XML file from where data comes.Here is one node of xml file. Sydney abc_australia.png ABC Radio Box 9994 GPO Sydney NSW 2001 AUSTRALIA - AUSTRALIA -33.870652 151.208895 -3 I am able to fetch name f...
sonia
1

votes
2

answer
857

views

How to only build, not run

In Gogland, how do I set up a Run/Debug Configuration to only build a project go build and not run it go run *.go. The Getting Started guide says The Go Application type is equal to go build command - but it actually runs my binary. The Features page doesn't offer any more details. Up until now I've...
Sonia Hamilton
3

votes
2

answer
455

views

Uicollectionview chess style grid

I have to implement a chess style grid view to show some radial progress bar.! I made the grid using some inefficient algorithm to do this, since UiCollectionView don't use rows and columns, and it worked, but when the user scrolled the collection to the limit and the "row" of the collection disappe...
Sonia Casas
1

votes
1

answer
7.3k

views

running an Ansible playbook against a single host

I'm using a hosts file for static inventory: server1 ansible_ssh_host=1.1.1.1 server2 ansible_ssh_host=1.1.1.2 server3 ansible_ssh_host=1.1.1.3 [group1] server1 server2 And I've got a playbook example.yml like this: --- - name: base setup become: true hosts: - group1 roles: - base I'd like to an ans...
Sonia Hamilton
13

votes
2

answer
14.7k

views

Preset files are not allowed to export objects

I have a carousel file in which I want to get index.js and build block.build.js so my webpack.config.js is //webpack.config.js var config = { entry: './index.js', // Webpack output: { path: __dirname, filename: 'block.build.js', }, devServer: { contentBase: './Carousel' }, module : { rules : [ { tes...
sonia maklouf
2

votes
4

answer
114

views

What are the types in C# that the syntax depends on? [duplicate]

Possible Duplicate: Which parts of C# .NET framework are actually parts of the language? I know it uses System.Type like in typeof(foo) System.Attribute because you can use [Foo] instead of [FooAttribute] System.String because you can write "bla".ToLower(). System.Exception because throw obj onl...
Sonia
2

votes
1

answer
321

views

undo escape of get_theme_mod function in wordpress

I'm trying to echo $loaders_val variable in PHP. This variable are HTML tag but it's seen like text in the browser. Which give something like this in the browser: click here My $loaders_val is being escaped and i found no additional parameter to passing to get_theme_mod function for output html Is...
sonia maklouf
2

votes
3

answer
6.8k

views

Changing element style on sibling hover with CSS

I have the following structure: Header text text text text something And I want the to turn blue for example when the footer is hovered. I know I can do it with Javascript but I was wondering If you might know some CSS trick to do it without. Thanks!
Sonia
2

votes
3

answer
1.4k

views

Get Input value from Edittext which generated dynamically

I have to create n EditText where n is user input. I could create it using for loop. TableLayout tbl=(TableLayout)findViewById(R.id.TableLayout1); //table row for (int i = 0; i < 5; i++) { TableRow tr = new TableRow(this); TableLayout.LayoutParams tableRowParams= new TableLayout.LayoutParams (TableL...
Sonia John Kavery
3

votes
1

answer
1.1k

views

MVVM popup question

I am new to WPF and even newer to MVVM. I have set up a simple application to try to understand WPPF. In my application I have the following: MainWindow.xaml -> I have a button. I want if the mouse goes over this button I want to have a simple popup show up. MainWindowViewModel -> I have creat...
Sonia Chandra
4

votes
1

answer
687

views

Non-commercial alternatives to Views plugin for SonarQube Community Edition 5.6

Are there alternatives to Views plugin for Community Edition 5.6? Not commercial plugins (Governance license). Cannot comment in SonarQube 5.5 and Views plugin.
Sonia
6

votes
1

answer
1.6k

views

Can i try phpMyAdmin in local with webmatrix?

I want to try phpMyAdmin in local starting it from webmatrix... It's regularly show the login page, but i've problem to login.. Each attempt it retrieve me #2002 Impossibile to login into MySQL server Once downloaded the last version of phpMyAdmin, i've created a config.inc.php file such suggested i...
Sonia
2

votes
2

answer
813

views

Facebook app works only with admin

I've created a facebook app for my site and an html page where i can login into the user account allowing the app for do that... So, this work correctly when i attempt to logon with the my account, that are the ADMIN of the page, but with other else account, the facebook popup window retrieve an er...
Sonia
3

votes
1

answer
109

views

css animation on loader

I have a loader animation but the problem is in the beginning it's like it block before the animation takes place .loader { align-items: center; box-sizing: border-box; display: flex; flex: 1 0 25%; flex-direction: column; height: 200px; justify-content: center; max-width: 25%; } .ball-sc...
sonia maklouf
3

votes
1

answer
1.3k

views

Ionic 2 Storage for browser and mobile

Before RC0 Ionic 2 had the possibility to use local storage like this: storage = new LocalStorage(SqlStorage, options); I used this in my app and it worked in both, browser (ionic serve) and mobile (build/run). Now there is a only LocalStorage or SecureStorage, which apparently both do not work in...
Sonia

View additional