Drawing line in SVG
Vote count: 0 i'm trying to code Tic Tac Toe game. In this code, everything working fine, but when i want to add two lines as a symbol for cross (in this code only one fo example) it doesn't draw in target svg. It seems that element is added, because if i try to draw 3 crosses in line, code retu s t...
Merge several XMLs and propagate changes
Vote count: 0 I have 1000 of XMLs with a similar structure and I want to merge them into a master XML with the elements I need to translate. Once I have this master XML translated I want to propagate the changes back to the individual XMLs, so at the end I will have the 1000 XMLs translated. I am cl...
Building binary file from images in a directory
Vote count: 0 I am working to build a binary file containing multiple images with each image having an associated label. The format I need is a slight variation of this (please see The CIFAR-10 dataset > Dataset layout > Binary version). My dir structure is: [main_folder] --- [ant] - img1 - img2 - i...
How to drop softDeletes from a table in a migration
Vote count: 0 I'm adding the soft delete columns to my table in a migration: public function up() { Schema::table("users", function ($table) { $table->softDeletes(); }); } But, how can I remove these if I roll back? Is there a method to do this, or do I just manually delete the columns that get adde...
Bootstrap's multiple selectpicker using Ruby on Rails
Vote count: 0 I'm new to Ruby on Rails, and I'm trying to implement Silvio Moreto's bootstrap-select plugin in my web-page. I already have everything I need installed, but I don't know how to embed my current .erb code into the syntax needed for the selectpicker multiple class to work. Additionally,...
Firebase or own database for mobile app?
Vote count: 0 I'm creating an android app which uses firebase cloud messaging. As a result I have to store the fcm token in a database to send fcm to the device later. And I'm thinking of using firebase as a database to store these tokens. I created an API using nodejs and redis to manage these toke...
Actionbar MenuItem animation
Vote count: 0 I'm trying to animate a 'MenuItem' when I add it to the actionbar. The problem is that I have to call 'MenuItem.visible(true)' before I load the animation or nothing happens at all. I have an animation listener and I tried putting it in 'onStartAnimation()' but that doesn't get called ...
Toggling CSS to change background
Vote count: 0 In a tic tac toe game, when a game is won, I want the wi ing line's background to go red. I have taken the wi ing line box id's into an array as such- if (cell1.i erText == symbol && cell2.i erText == symbol) { if (cell3.i erText == symbol) { wi ingLine=[cell1.id,cell2.id,cell3.id]; //...
Progress Bars update crash javaFX
Vote count: 0 I have a pretty nasty bug on JavaFX (jdk 1.8.0_91) occurring in my application in which several progress bars are displayed and update (randomly or at the same time). Sometimes, especially when a progress bar is filled (it had a style class to the progress bar) but sometimes also in th...
Do HaXe have a friendship with XPath?
Vote count: 0 I need to get some XML node by it's XPath, how I can do it? I tried to use this library https://github.com/djcsdy/haxe-xpath, but something wrong https://github.com/djcsdy/haxe-xpath/issues/26 for my task xml-fast isn't good solution, because it looks "slightly worse" than XPath, I thi...
NSData base64Encode return nil swift
Vote count: 0 i tryed let contents = results["contents"] as! String! let decodedData = NSData(base64EncodedString: contents, options:NSDataBase64DecodingOptions()) let decodedString = NSString(data: decodedData!, encoding: NSUTF8StringEncoding) let contents = results["contents"] as! String! let deco...
Having issues with a user defined arrays program in C
Vote count: 0 I have to write a program that writes a program that uses the heap to store an array. I have a problem where the program will crash after successfully ru ing it... I also have some small aesthetic problems, the element needs to start at 1 and no comma on the last number that is printed...
How to use join in Laravel Elocuent?
Vote count: 0 I have following two tables. users - id,name,title posts - id,author where post.author = user.id My Post model as follows. namespace App; use IlluminateDatabaseEloquentModel; class Post extends Model { public function users() { retu $this->belongsTo('AppUser'); } } I use Project::find(...
BankExchange timeserias rates
Vote count: 0 me trying to fetch exchange rate from http://bank.exchange using CURL How can I fetch time-series (like OpenExchangeRates) which will be grouped by a date? (like http://api.bank.exchange/INR?dates=date1,date2) asked 6 mins agoGeorge Vassilev Let's block ads! (Why?)
How to make auto execution of sql queries
Vote count: 0 i have lots of query with select and update. i want to execute it automatically in Oracle SQL developer. I also want to note the execution time of each query. Please suggest way. Thanks in advance. asked 6 mins agouser5783725 Let's block ads! (Why?)