Daniel Rodriguez

1

votes
0

answer
35

views

How to change the language of a plugin in a specific page?

I would like to know if I can set a plugin to a different language than the one WordPress is using in a specific page. The site I'm working on is in English, but I need to display a form in Spanish in a single page. The plugin itself has the translation to Spanish (checked using LocoTranslate) but I...
Daniel Rodríguez
1

votes
1

answer
45

views

Cannot find module created with Browserify

I use Browserify and Gulp to bundle JavaScript modules. I have one module which I generate with the following code: browserify('./index.js', { standalone: 'lib1' }) .bundle() .pipe(source('lib1.js')) .pipe(gulp.dest('DEST')); Index.js file contains the following code: module.exports = require('./lib...
Daniel Rodríguez
0

votes
0

answer
6

views

How to debug a ReactNative app which is not opening

I've been moved to a RN project and I'm new to this. If I create a new app/project is starts perfectly on my phone but this one doesn't. It shows 'the app has stopped working'. I tried with a simple index removing the rest of the functions but nothing. How could I see some logs or where could I remo...
Daniel Rodriguez
1

votes
1

answer
845

views

Input Mismatch Exception on a method calling Scanner's nextLine

I need to use the method public static String readString() { return input.nextLine(); } In order to use the Scanner method next.Line(), its just a requirement of the project, the thing is that when I use the static method ProjectUtils.readString() to gather the user input as a string it just thro...
Daniel Rodríguez
1

votes
1

answer
53

views

Instance of 'std::out_of_range' with vector in C++

Hi, i've been recently working with vector but it seems that when i input '3+2+1' or so, my expected output would be '1+2+3' console says: ' terminate called after throwing an instance of 'std::out_of_range' original problem is from: http://www.codeforces.com/problemset/problem/339/A. What's my pro...
1

votes
1

answer
122

views

Sass maths operators with functions

I've got this function: @function toRem($val){ @return #{$val / $fontSize}rem; } And also this property but it compiled badly: top: 3.5rem + toRem(15); --> 3.5rem0.9375rem (compiled) I have tried with this as well but doesn't work either, the result is the same: top: #{$headerHeight + toRem(15)}; Bu...
Daniel Rodriguez
1

votes
3

answer
72

views

Return Largest Number in Array using spread syntax

I'm trying to find the largest number in each sub array using this function: /* jshint esversion: 6 */ function largestOfFour(arr) { var max=[]; for(var i=0; i
1

votes
2

answer
874

views

Maven assembly plugin: include file without taking its path folders

I'm using maven-assembly-plugin to include files from a dependency ZIP (also generated with assembly plugin) into a final release ZIP file. The issue is that I want to select which files from the dependency to get, but not copying the folder path where those files are. Just the files. For example: z...
Daniel Rodríguez
1

votes
1

answer
74

views

How to know if a document claims to be in PDF/A using itext7

I had a function written using iText v5 and I'm trying to update it to use iText v7. The function checks if a document claims to be PDF/A (I know iText is not a PDF/A Validatior, I just need to know if it declares to be). The implementation in v5 is the one from this other question. However, reader...
Daniel Rodríguez
1

votes
2

answer
316

views

Lazy loading - Providers and modules

I'm moving my app to lazy loading. I'm done with pages, pipes and directives but now it's the turn of providers/services and some other modules. This was my app.module: ... import { FileUploadModule } from 'ng2-file-upload'; import { CloudinaryModule } from '@cloudinary/angular-5.x'; import * as clo...
Daniel Rodriguez
5

votes
7

answer
512

views

I'm starting an opensource project. Any advice? [closed]

First of all, I reviewed this question, but I think I need a little more information since I've never worked on an opensource project before. I'm starting an opensource project, currently hosted on Google code. It is a framework for creating flash games in ActionScript3 (programmer oriented). So far...
Daniel Rodriguez
1

votes
1

answer
9.7k

views

Python - Merge Sort Recursive Algorithm

I was trying to implement this pseudocode for the recursive merge sort algorithm: **procedure** *mergesort*(L = a1, a2,…,an ) **if** n > 1 **then** m := ⌊n/2⌋ L1 := a1, a2,…,am L2 := am+1, am+2,…,an L := merge(mergesort(L1), mergesort(L2 )) {L is now sorted into elements in increasi...
Daniel Rodríguez
1

votes
1

answer
1.2k

views

Use Spring Batch to write in different Data Sources

For a project I need to process items from one table and generate 3 different items for 3 different tables, all 3 in a second data source different from the one of the first item. The implementation is done with Spring Batch over Oracle DB. I think this question has something similar to what I need,...
Daniel Rodríguez
4

votes
1

answer
1.2k

views

Drupal 6, Views 2: Is it possible to have a filter that only applies to registered users?

Is it possible to create a filter in a Drupal 6 View that is only applied for registered users? For one filter I need I'm using the user vote (With fivestar and votingapi) to know if they user already voted this node or not, and when the user is annonymous, is working as if all the votes from all t...
Daniel Rodríguez
12

votes
3

answer
25.8k

views

How to run a script in PySpark

I'm trying to run a script in the pyspark environment but so far I haven't been able to. How can I run a script like python script.py but in pyspark? Thanks
Daniel Rodríguez
3

votes
3

answer
84

views

Assign array of object content to a new array [duplicate]

This question already has an answer here: Clone Object without reference javascript [duplicate] 4 answers I'm trying to assign an array of objects to another array but when I created the new array and in others functions I change its value, the original array changes as well (which is not ok). Coul...
2

votes
0

answer
468

views

Deadlock in Spring Batch updating processed items

Running a Spring Batch application in several servers over the same Oracle DB table, from time to time a deadlock error is produced. The application isolation level is READ COMMITTED and the jobs are executed with throtle-limit 10. The application is querying a DB table, processing items from it and...
Daniel Rodríguez
3

votes
1

answer
89

views

How to rename column before unpivot? SQL Server

Help I want to rename a column before using the unpivot method My table is like this: List item id| value| ENE| FEB| MAR| ABR| MAY 1 | dsads|2000|2334|2344|2344|2344 after unpivot I get something like this id| value| month| amount 1 | dads| ENE | 2000 2 | sadf| FEB | 2334 but I want something...
Daniel Rodriguez
1

votes
4

answer
1.4k

views

Cannot create routes on Ionic 3

I want to see the actual route on the url but I can't figure out what I need to change exactly. I'm following the docs here: https://ionicframework.com/docs/api/navigation/IonicPage/ but I get this error: ...home.ts has a @IonicPage decorator, but it does not have a corresponding 'NgModule' at... I...
Daniel Rodriguez
2

votes
1

answer
49

views

My Ember's controller's properties are being literally echoed

I've been during a while working with Ember.js. Now I'm getting a weird behaviour that I cannot fix. Is not the first time I experience it, but in previous occasions I figured it out after making little changes. But now, I really have no idea what's causing the conflict. The issue is occuring in Con...
2

votes
1

answer
5.3k

views

Access to attributes from relationship on ember-data models

I'm working on a small application like a Social Network to manage projects. Right now, I'm working on friendship relations on the network. For that I've created a model called 'Person' with the next attributes: App.Person = DS.Model.extend ( { name: DS.attr('string'), place: DS.attr('string'), emai...
2

votes
1

answer
108

views

NGSI update attributes from complex entities in Wirecloud

Is it possible to update a child attribute through the updateAttributes() function from Wirecloud NGSI API? For example, a coordinate (entity.location.coords.coordinates[0]=-2.000000) in this piece of entity. 'attrNames': [ 'A1', 'A2', 'position' ], 'creDate': 1389376081, 'modDate': 1389376244, 'loc...
Daniel Rodriguez
1

votes
1

answer
45

views

EJB Singleton - Lock READ method calling a Lock WRITE method of the same instance

Given a Singleton like this one: @Singleton public class waitingTimeManager { private Map waitingTimes; @PostConstruct public void setup() { waitingTimes = new HashMap(); } @Lock(LockType.READ) public boolean shouldWeWait(Integer id) { if (waitingTimes.containsKey(id)) { boolean wait = someLogic(wai...
Daniel Rodríguez
2

votes
1

answer
197

views

box-shadow with background-clip: content-box

I've got a div with some padding and I'm using background-clip: content-box to apply a background-color. This works like a charm but the problem comes when I try to apply also a box-shadow: Is possible to convine both properties? I'd like to do something like 'box-shadow-clip: content-box' as well.
Daniel Rodriguez
1

votes
1

answer
264

views

Meteor mobile-config.js launchScreens

I'm creating the splash images for my app but I've got some questions: Can I create of all them at once? I've seen some repos for this but there are not updated with new sizes (e.g 2048x1536) Would be possible to use the same image for different sizes? My phone is 1920x1080 but there is no splash s...
Daniel Rodriguez
2

votes
2

answer
372

views

Rating plugin not working on Ionic 3

I followed this tutorial: http://ionicframework.com/docs/native/app-rate/ I'm using the second approach but I get this error: Uncaught (in promise): TypeError: Cannot read property 'split' of undefined TypeError: Cannot read property 'split' of undefined at Function.Locales.getLocale (http://192.168...
Daniel Rodriguez
2

votes
3

answer
805

views

Starting BDD resources?

What would you recommend to start learning and applying BDD on a casual game development studio?
Daniel Rodriguez
2

votes
0

answer
252

views

Unable to get JSON response from RoR backend using EmberJS and Ember-data

I kno this is a bit tricky question. The thing is I have connected succesfully two models with complex relationships (using joining tables between them and so on) between my Ruby on Rails backend and Ember/Ember-Data through a JSON response. Know, the problem is I am not able to connect a third mode...
3

votes
2

answer
2.7k

views

AS3 reflection. How to find out if a method is overridden?

Is it possible to use AS3 reflection to find out if a method was overridden? I need a method like: protected function isOverriden(methodName:string) : bool { //magic here! //... return awesomeLocalVariable; } So, I pass in the method name as a string and the isOverridden method yields true only if...
Daniel Rodriguez
2

votes
2

answer
339

views

Non-reactive and reactive data in Meteor (same helper)

I've got one view displaying some pictures published by users with some data (let's image Instagram). I already have these pictures as non-reactive data (otherwise you could see many updates) but these images have one button to like the picture. If I have this as non-reactive data I can't see when I...
Daniel Rodriguez
4

votes
4

answer
1.2k

views

What are your experiences with Code::Blocks? [closed]

I looked at Code::Blocks and it certainly looks great for c++ development, I like it's multiplatform capabilities (runs everywhere), but I wanted to get your feedback. Is it good/stable enough to be used in a professional environment? Thanks.
Daniel Rodriguez
2

votes
1

answer
516

views

Take number from class using Sass

Having the class name 'class-name-X' (where X might be a number from 0 to 9) I'd like to create an specific class for all of them like: .class-name-{X} { height: {X} + 'px'; } Is that possible? I know that using arrays it's but this comes from the JS to the HTML so on the CSS I only get the class na...
Daniel Rodriguez
1

votes
1

answer
411

views

MIPS GCC cross-compiler build fails: “cannot find -lc”

I am trying to set up a GCC 4.9.4 cross-compiler for a QCA955X-based router with Linux 2.6.31. This is a MIPS32R2-abi CPU that uses uClibc-0.9.30.1 (as found in /lib.) Due to this, I have decided to compile a GCC 4.x with the matching uClibc and binutils-2.19.1a. My host system is Ubuntu 18.04 with...