Categories
Ask Board Games Games

Rummikub joker play

Question: when replacing a joker from the board the rules state I must replace the joker gained from the board with 2 tiles from my hand. My opponent interprets this meaning that I can only use the tiles from your hand. as example J,4,5 or J,6,6. Though I agree that I must use at least […]

Categories
Mastering Development

SQL check if group is continuous when ordered and return broken groups

I am trying to find a way to list rows, that are breaking continuous groups of records. I say groups, because we could use GROUP BY to list values of groups (but that is not applied, we need particular rows). Sample data: CREATE TABLE Test (ID INT, NNO INT, DIDX INT, SIDX INT); — Valid […]

Categories
CMS Mastering Development Wordpress

Email notification to an email address other than admin for custom type post comments in wordpress

I have a customer post type called video. I want wordpress to send an email notification to one user who is going to check and approve the comments, when ever someone comments on that post type video. Please help me how to set it up. Below code is not working and also custom post type […]

Categories
Mastering Development

Keras with Hierarchical LSTM

I had a problem about hierarchical lstm in keras. It works well when the data is 2 dimensions. When I changed it to three dimensions, it does not work. My data is (25,10,2) I want to build a hierarchical lstm, the first layer lstm will convert each data with shape (10,2) into a vector, there […]

Categories
Mastering Development

add a column to a dataframe in r based on unique values row count

I have a consolidated table as given below: > dput(data.frame(df)) structure(list(make = c("audi", "audi", "audi", "audi", "bmw", "bmw", "toyota", "toyota", "toyota", "honda", "honda", "honda", "honda"), model = c("A3", "A3", "A4", "A4", "3 Series", "3 Series", "Land Cruiser", "Camry", "Camry", "Accord", "Accord", "civic", "civic"), variant = c("1.4L TFSI", "1.6L TFSI", "1.6L", "1.8L TFSI Quattro", "320d", "320d", […]

Categories
Mastering Development

NumPy: Is there a way to perform ‘shifting’ on a ndarray?

Original array: array([[ 8, 9, 10, 11], [12, 13, 14, 15]]) With offset = 2 the result would be: array([[ 10, 11, 12, 13], [14, 15, 0, 0]]) With offset = -2: array([[ 0, 0, 8, 9], [10, 11, 12, 13]]) Is there a way to do this other than creating multiple slices and concatenating […]

Categories
Linux Mastering Development

Fetch the series of logs in between date range when the range contains specific string(s)

I am searching for multiple range of lines from a file with in a given date range when the search string(s) exists. I am not an Unix expert, don’t know how to achieve this. After googling I was able to display the logs in date range by using awk and sed commands (mentioned below), but […]

Categories
Mastering Development

How to Un-Sort The legends in the graph in R?

I am not an expert in R. I am having an issue, the legends are sorted alphabetically. I cannot arrange them manually because I have 87 patients and each patient has 300 days and the status (category) changes every day so i want to plot the graph exactly like it has in the source. ggplot(data […]

Categories
Game Creation Mastering Development

DirectX 11, support for Font drawing

I have recently started to work with DirectX 11 and 12, I am using Microsoft Visual Studio Community Edition. I am under a 64-bit machine. I am currently rendering a frame with background and a window using Windows C++ API and DirectX 11.1. I was thinking about drawing text, but I thought about using custom […]

Categories
Linux Mastering Development

Fetch the series of logs in between date range when the range contains specific string

I am searching for multiple range of lines from a file with in a given date range when the search string exists. I am not an Unix expert, don’t know hot to achieve this. After googling I was able to display the logs, but not able to add a search string. Below is the logs […]