: All Posts
SQL query to get all values a enum can have
Postgresql got enum support some time ago CREATE TYPE myenum AS ENUM value1 value2 How do I get all values specified in the enum with a
Read more →
str object does not support item assignment duplicate
This question already has answers here Changing a character in a string 17 answers Closed 2 years ago I would like to read some characters from a string s1 and
Read more →
The type initializer for MyClass threw an exception
The following is my Windows service code When I am debugging the code I am getting the error exception The type initializer for CSMessageUtilityCSDetails threw
Read more →
Truncating all tables in a Postgres database
I regularly need to delete all the data from my PostgreSQL database before a rebuild How would I do this directly in SQL At the moment Ive managed to come up
Read more →
Turn off constraints temporarily MS SQL
Im looking for a way to temporarily turn off all DBs constraints eg table relationships I need to copy using INSERTs one DBs tables to another DB I know I can
Read more →
Using Mockitos generic any method
I have an interface with a method that expects an array of Foo public interface IBar void doStuffFoo arr I am mocking this interface using Mockito and Id like
Read more →
Viewing all git diffs with vimdiff
I setup git diff to wrap into vimdiff using Git Diff with Vimdiff as a guide and its working as expected unless there are many files with changes When there
Read more →
Visual Studio How to break on handled exceptions
I would like Visual Studio to break when a handled exception happens ie I dont just want to see a First chance message I want to debug the actual exception eg
Read more →
Visual Studio move project to a different folder
How do I move a project to a different folder in Visual Studio I am used to this structure in my projects app ProjectSomething ProjectSomethingElse I want to
Read more →