Insert video clip in a lyx presentation and play it in GNU/Linux

LaTeX
How can I insert a video clip into a presentation created in Lyx? Have seen http://www.latex-community.org/forum/viewtopic.php?f=19&t=48. It work...
2 years ago

failed when using str_replace

PHP
i am new in PHP, i am trying to delete a post with an image, before delete the image in the storage drive, I have to change the image path from http:/...
2 years ago

How to combine lists of different lengths repeating elements?

Python
so I have say two lists: list1 = [1,2,3] and list2 = [4] and I need to combine them to produce the following output: list3=[[1,4],[2,4],[3,4]] ...
2 years ago

Factor to date conversion produces NA

R
I'm working on a kaggle dataset and here's some sample code: Before: Date Open High Low Close Volume Adj.Close 1 6/29/2010 19.00 25.00 17.54...
2 years ago

R: "label" a row based on conditions from another data.table

R
I have a data.table (A) that is over 100,000 rows long. There are 3 columns. chrom start end 1: chr1 6484847 6484896 ...
2 years ago

issue while creating an endpoint in Flask using Python

reST (reStructuredText)
I'm trying to write a microservice for a RESTful web service. I've a database created in 'Postgresql' and currently using Flask and psycopg2 (for conv...
2 years ago

Is there any concise way to convert the type from `Int` to `Double` after applying `splitAt` to a `List`?

Scala
My input is like this: 1 1 1 1 1 44 33 and the result I would like to get is like this: val listA = List(1, 1, 1, 1, 1) val listB = List(44.0, 33....
2 years ago

Blocking a REST API response until another API is called

reST (reStructuredText)
I have following scenario: There are two API calls in an application: api1 and api2. api1 is invoked multiple times from multiple users. I want to b...
2 years ago

Smarty Section Making the selected Link Bold

Smarty
How can I make the selected link from the List below, bold, that you see you are on Page ex. 3 or 5 With this code, If you click on a Link you don't...
2 years ago

how to assign a function's expression to a variable in smarty

Smarty
say I've got a text like this: {l s='Total'} 'l' is a function. The string 'Total' in fact will be a translation: 'l' will output that. I would nee...
2 years ago

REGR_SLOPE in Teradata SQL Query Returning 0 Slope

SQL
I am a relative newbie with Teradata SQL and have run into this strange (I think strange) situation. I am trying to run a regression (REGR_SLOPE) on s...
2 years ago

How to improve query execution time?

SQL
I have a rather complex query, which takes 1-2 minutes to execute. Is there a way to improve execution time? Here is the query: select o.orders_id,...
2 years ago

Same select criteria with multiple where conditions in SQL Server

SQL
Is it possible to do something like this when there are same fields required from the table but having different where conditions. I have tried to do...
2 years ago

Swift protocol extensions with enums

Swift
So I have several enums representing various unit systems: enum MassUnit:Double{ case Pound = 453.59237, Ounce = 28.349523125, Gram = 1.0, Kilog...
2 years ago

One form for multiple addresses in Symfony - Twig

Twig
First I want to make clear that I'm not using Entities/Doctrine for my forms (or even). I'm using webservices to add/edit the data fields for the data...
2 years ago

How do I navigate forward and backward within UIPageViewController using buttons?

Swift
I'm creating an onboarding app for New Patients of a physical therapy clinic. The new patient will answer questions on each view controller within the...
2 years ago

typescript/eS5-ES6 module is not getting called

TypeScript
I don't know what's wrong as I'm new in Angular2,typescript,es5 and es6. Look at plnkr. I don't understand why my FirstComponent is not getting called...
2 years ago

Typescript Typings definition errors

TypeScript
I am currently having issues adding proper type definitions to my project. I am very new to typescript and am following the guidance of a book (called...
2 years ago

Typescript using constructor in a class won't allow for new keyword

TypeScript
I want to be able to new up my Menu Class but I cannot when using a constructor, why is this? model = new Menu(); So that I can then set each prope...
2 years ago

models/departments.php

PHP
Creating Model, Controller and View for a Pagination System in CodeIgniter Application. Source: https://www.cloudways.com/blog/pagination-in-codeignit...
2 years ago