Database or List of English First and Last Names [closed]

I’m compiling a database that contains last names from a variety of different countries and cultures, the UK among them. The project and its datasets can be found here: https://github.com/enorvelle/NameDatabases(Dead: link, project and GitHub account) This seems to have migrated to github.com/smashew/NameDatabases. (Sole contributer “Erik Norvelle”.)

WPF binding multiple controls to different datacontexts

I would maybe think about wrapping your user object in a seperate class then setting the DataContext properties of sub-panels that contain the data. For example: public class UserDataContext { public UserInfo UserInfo { get; set; } public UserExtendedInfo UserExtendedInfo { get; set; } } Then in your UserControl.xaml: <!– Binding for the UserControl should … Read more

Maven: Include resources into JAR

The source directories for the resources are not defined correctly in the copy-resources goal configuration. Also, the outputDirectory element puts the resources in the target dir, when target/classes is what gets packaged by default. Try this config: <configuration> <outputDirectory>${basedir}/target/classes</outputDirectory> <includeEmptyDirs>true</includeEmptyDirs> <resources> <resource> <directory>${basedir}/src/main/java/com/test/customize</directory> <filtering>false</filtering> </resource> <resource> <directory>${basedir}/src/main/java/com/test/resources</directory> <filtering>false</filtering> </resource> <resource> <directory>${basedir}/src/main/java/com/test/xml</directory> <filtering>false</filtering> </resource> </resources> </configuration> … Read more

Behavior of sleep and select in go

That’s a very interesting question, so I did cd into my Go source to start looking. time.Sleep time.Sleep is defined like this: // src/time/sleep.go // Sleep pauses the current goroutine for at least the duration d. // A negative or zero duration causes Sleep to return immediately. func Sleep(d Duration) No body, no definition in … Read more

The item was specified more than once in the “Resources” parameter. Duplicate items are not supported by the “Resources” parameter

Easy! Right-click your project and select “Unload Project” Right-click again and “Edit your_project.csproj” Search for the duplicate files mentioned in the error message and remove them. Save and close. Right-click to choose “Reload Project” view image

Load image from resources

You can always use System.Resources.ResourceManager which returns the cached ResourceManager used by this class. Since chan1 and chan2 represent two different images, you may use System.Resources.ResourceManager.GetObject(string name) which returns an object matching your input with the project resources Example object O = Resources.ResourceManager.GetObject(“chan1”); //Return an object from the image chan1.png in the project channelPic.Image = … Read more

How to copy a resource or another in Maven depending on the target environment?

Use Maven profiles (http://maven.apache.org/guides/introduction/introduction-to-profiles.html) Create a “dev” and “prod” profile, selecting an alternate set of resources for each profile. Make Dev active by default. <profiles> <profile> <id>dev</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <resources> <resource> <directory>src/main/resources/dev</directory> </resource> </resources> </build> </profile> <profile> <id>prod</id> <build> <resources> <resource> <directory>src/main/resources/prod</directory> </resource> </resources> </build> </profile> </profiles> Build using the desired profile via: … Read more