Using ffmpeg to change framerate
I am trying to convert a video clip (MP4, yuv420p) from 30 fps to 24 fps. The number of frames is correct so my output should change from 20 minutes at 30fps to 25 minutes at 24fps. Everything else sh...
- Modified
- 2 Aug at 16:2
NotificationCompat.Builder deprecated in Android O
After upgrading my project to ``` buildToolsVersion "26.0.1" ``` Lint in Android Studio is showing a deprecated warning for the follow notification builder method: ``` new NotificationCompat.Buil...
- Modified
- 22 Feb at 07:25
Passing a generic <TObject> class to a form
I can't seem to find out the answer to this through searching, so here goes.... I know that I can pass Class objects generically to other classes by utilising this type of code: Then constructing in t...
- Modified
- 6 May at 20:45
Lombok problems with Eclipse Oxygen
I upgraded recently to the new Eclipse version (Oxygen). I downloaded the lombok.jar from the website and installed it. This is how the `eclipse.ini` looks like after installation: ``` -startup plugi...
How to set the maximum width of a column in CSS Grid Layout?
Using [CSS Grid Layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout), to have a page with a right column which size is derived from its content, but only up to 20% of the windo...
- Modified
- 2 Aug at 11:21
Could not load file or assembly 'System.Net.Http'
``` Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Stack...
- Modified
- 2 Aug at 10:50
Make text show up on hover over button
What I want to do is have something like this: ``` <button class="addMore">+</button> ``` Do an effect like this: [https://i.gyazo.com/d353b657df39c0e6ff159bfdb713f6a4.mp4](https://i.gyazo.com/d35...
Mongo C# - Where is FindOne?
I'm having trouble understanding how to do a `findOne` operation in the Mongo C# 2.4 driver. I have a collection with just over 9.1 million, flat documents. When I perform a `findOne` in Robomongo, ...
Access values from LINQ GroupBy
I have a linq query looking like this: ``` var myGrouping = ( from p in context.Products join pt in context.ProductTypes on p.productId equals pt.productId ...
How to make a formControl readonly
How to make a formControl in angular readonly I know i can do it in html like ``` <input type="text" formControlName="xyz" readonly /> ``` how to do it from JS Code and not html i.e in a model dr...
- Modified
- 2 Aug at 05:44
Conditional Access expression cannot be assigned - C# null-propagation += events
One of my favorite C# features added is the "[null-propagation](https://msdn.microsoft.com/en-us/magazine/dn802602.aspx)" in CS6. This has cleaned up so much code for many of us. I came across a sit...
- Modified
- 1 Aug at 22:32
How does this seemingly unconnected block (after an if statement) work?
I've inherited some code that makes occasional use of the following if notation: ``` if (a) foo(); { if (b) boo(); moo(); } ``` I'm not sure how to read that naturally but the c...
- Modified
- 2 Aug at 16:13
NETCORE MVC - How to work with nested, multi-parameterized routes
Looking for best practices when working with nested routes in .NET Core MVC. Let's say `CampusController.cs` works with a base model: ``` [Route("api/campus/")] public class CampusController : Contr...
- Modified
- 1 Aug at 23:24
Why exactly is void async bad?
So I understand why returning void from async would normally make no sense, but I've ran into a situation where I think it would be perfectly valid. Consider the following contrived example: ``` prot...
- Modified
- 1 Aug at 21:28
Change the Table's Alias name runtime in ServiceStack.OrmLite
I have a application contains IdentityDbContext and I want to select data using ServiceStack.OrmLite and I want to know how can I change the alias name ``` public class ApplicationDbContext : Identit...
- Modified
- 1 Aug at 20:29
Chrome javascript error: Refused to get unsafe header X-Response-Time with servicestack
I am getting this error in the chrome console. I added the X-Response-Time header to allowedHeaders to the CorsFeatures ``` Plugins.Add(new CorsFeature( "*", allowCredentials: true, allowedHeaders: ...
- Modified
- 1 Aug at 18:11
Get the value of authorization bearer in Service stack
I have following scenario , Mobile client --->Service stack api(A) --->A Wcf service(B) I am sending an access token from mobile client as Http Authorization header to service stack api (B)I don't n...
- Modified
- 1 Aug at 16:52
How can I create a dropdown menu from a List in Tkinter?
I am creating a GUI that builds information about a person. I want the user to select their birth month using a drop down bar, with the months configured earlier as a list format. ``` from tkinter i...
- Modified
- 6 Mar at 16:1
How to create a method to return 1 or 0 without using conditions?
I was asked a question in an interview to return 1 if provided 0 and return 0 if provided 1 without using conditions i.e if, ternary etc Just to give you and idea below code without if's: ``` public...
- Modified
- 7 Aug at 08:21
How to check if a StringBuilder is empty?
I want to test if the `StringBuilder` is empty but there is no `IsEmpty` method or property. How does one determine this?
- Modified
- 22 Oct at 22:23
Hyperlink to a secondary query in the results of an AutoQuery UI using ServiceStack
Firstly, I am amazed at how simple and performant ServiceStack is. Can't believe I've gone without sing this for so long. I'm especially loving the AutoQuery and Admin feature, but for the life of me...
- Modified
- 1 Aug at 07:39
Automatic CreatedAt and UpdatedAt fields OnModelCreating() in ef6
I have `CreatedAt` and `UpdatedAt` columns in my `User` model. `User.cs` **Requirement** * When we `SaveChanges()` user records, `CreatedAt` and `UpdatedAt` should automatically saved e.g: `DateTime.U...
- Modified
- 5 May at 14:14
How list Amazon S3 bucket contents by modified date?
Most of the time it happens that we load files in a common S3 bucket due to which it becomes hard to figure out data in it. How can I view objects uploaded on a particular date?
- Modified
- 1 Aug at 07:57
Click on pseudo element using Selenium
I am trying to use Selenium to click on a ::after pseudo element. I realize that this cannot be done through the WebDriver directly, but cannot seem to figure out a way to do so with Javascript. Here...
- Modified
- 1 Aug at 00:42
Invalid Host Header when ngrok tries to connect to React dev server
I'm trying to test my React application on a mobile device. I'm using ngrok to make my local server available to other devices and have gotten this working with a variety of other applications. Howeve...