.NET SOAP Common types

Is there a way when creating web services to specify the types to use? Specifically, I want to be able to use the same type on both the client and server to reduce duplication of code. Over...

What is the best way to remove duplicates from a datatable?

I have checked the whole site and googled on the net but was unable to find a simple solution to this problem. I have a datatable which has about 20 columns and 10K rows. I need to remove the...

How might I remove duplicate lines from a file?

I have a file with one column. How to delete repeated lines in a file?

Compare two images the python/linux way

Trying to solve a problem of preventing duplicate images to be uploaded. I have two JPGs. Looking at them I can see that they are in fact identical. But for some reason they have different file...

Interview question: remove duplicates from an unsorted linked list

I'm reading Cracking the Coding Interview, Fourth Edition: 150 Programming Interview Questions and Solutions and I'm trying to solve the following question: 2.1 Write code to remove duplicates...

Faster s3 bucket duplication

I have been trying to find a better command line tool for duplicating buckets than s3cmd. s3cmd can duplicate buckets without having to download and upload each file. The command I normally run...

Make the current commit the only (initial) commit in a Git repository?

I currently have a local Git repository, which I push to a Github repository. The local repository has ~10 commits, and the Github repository is a synchronised duplicate of this. What I'd like to...

How do I create a list of random numbers without duplicates?

I tried using random.randint(0, 100), but some numbers were the same. Is there a method/module to create a list unique random numbers? Note: The following code is based on an answer and has been...

How do I find the duplicates in a list and create another list with them?

How can I find the duplicates in a Python list and create another list of the duplicates? The list only contains integers.

Rails: Error installing pg gem

Possible Duplicate: Postgres - the last version 0.14.0 of the “pg” gem gives error I'm new to rails. I want to use PostgreSQL since Heroku uses it too, but I'm having a bad time installing...

Reference - What does this error mean in PHP?

What is this? This is a number of answers about warnings, errors, and notices you might encounter while programming PHP and have no clue how to fix them. This is also a Community Wiki, so everyone...

Recursion in Python? RuntimeError: maximum recursion depth exceeded while calling a Python object

Possible Duplicate: Maximum recursion depth? I have another problem with my code. I'm writing my first program in Vpython and I have to make a simulation of mixing two gases. First, I had a...

shows blanks for repeating values in a result set

In the query below, for o.EventSetName, o.EventSetDisplay, o.EventSetDescription - any time the 3 columns in the result have duplicate ROWS - only the first such row should be shown and blank for...

finding matching files based on content

I have to write a script that compares two directories and finds duplicate files based on content not filename. I was thinking of using the diff command, diff -r dir1 dir2, but I get a ton of...

Remove duplicate linebreaks in a string

I have some files which could use \r, \n, or \r\n as their line break mode. I am trying to change all of them to \r\n, and remove consecutive line breaks. In theory, this is easy, and any number...

Server Architecture for hosting Java PLAY application in the cloud

This is rather a set of questions than one very specific question. In the last couple weeks/days I puzzled together information regarding how to properly host a JAVA PLAY application "in the...

Why can't interface builder use a concrete generic subclass of of UIView?

First things first... this has been voted to close as a duplicate of why you can't use Generics directly in Interface Builder. The TLDR answer there is IB uses Objective-C and Objective-C doesn't...

CakePHP Migration Creating a new table causes duplicate column name

I created a new Migration script on CakePHP 3 using the following command bin/cake bake migration CreateOfficialTeams id:int name:string topic_id:int The id field should be the primary key, and...

ASP.NET Core 2 web application isn't loading user secrets when debugging IIS website

Note: this issue has now been resolved - see my Update 3 below for the solution. I have an ASP.NET Core 2 web app which needs to connect to a SQL Server database. As per my Update 2 below I'm...

How to create a copy of a dataframe in pyspark?

I have a dataframe from which I need to create a new dataframe with a small change in the schema by doing the following operation. >>> X = spark.createDataFrame([[1,2], [3,4]], ['a', 'b']) >>>...

Windows Subsystem for Linux (WSL) using shared Node.js installation with Windows: Node.js npm & npx binaries not working

I have recently moved to a Windows + WSL environment (WSL is going very good by the way). The main reason of doing this is to have a Linux environment for development and having Windows for other...

pivot_wider issue "Values in `values_from` are not uniquely identified; output will contain list-cols"

My data looks like this: # A tibble: 6 x 4 name val time x1 <chr> <dbl> <date> <dbl> 1 C Farolillo 7 2016-04-20 51.5 2 C Farolillo 3 2016-04-21 56.3 3 C...

Pass object (taken from backend API) from HTML to Typescript using ngModel

I'm populating a selectpicker with values taken from the backend API: <select class="selectpicker mt-2" data-live-search="true" [(ngModel)]="startingCity"> <option *ngFor="let city of cities"...

WP database error Unknowon column ‘wp_’ in ‘field list’ for query SELECT wp_

Please do not close this question, it's not a duplicate and the suggested link explaining how to use quotes on MySQL does nothing for me since this problem is inside a WP script. Thanks I’m...

Duplicate layers when reusing pytorch model

I am trying to reuse some of the resnet layers for a custom architecture and ran into a issue I can't figure out. Here is a simplified example; when I run: import torch from torchvision import...

What would group.instance.id should be for Kafka consumer static membership?

We are trying to set up static membership for Kafka consumers to account for container maintenance upgrades. Every once in while containers will be deployed with improvement which can take down...

7 duplicate symbols for architecture x86_64 in react native

when I am trying to run my react native app on the ios simulator I am getting this error. Error: duplicate symbol '_EXCanAskAgain' in: ...

How to prevent actor reentrancy resulting in duplicative requests

In WWDC 2021 video, Protect mutable state with Swift actors, they provide the following code snippet: actor ImageDownloader { private var cache: [URL: Image] = [:] func image(from url:...

How to avoid "_" case in matches on modular numbers

This smells bad: let millis = time % 1000; match millis { 0..=199 => do_something(), 200..=599 => do_something_else(), 600..=999 => do_something_altogether_different(), _ =>...

Eliminate consecutive duplicates from a string

I want to eliminate consecutive duplicates from a string like f "aaabbbcccdeefgggg" = "abcdefg" This is my code f :: String -> String f "" = "" f "_" = "_" f (x : xs : xss) | x == xs = f (xs...