How to stop Selenium from creating temporary Firefox Profiles using Web Driver?

You can control how the Firefox driver chooses the profile. Set the webdriver.firefox.profile property to the name of the profile you want to use. Most folks think this is a bad idea, because you’ll inherit all the cookies, cache contents, etc. of the previous uses of the profile, but it’s allowed if you really want … Read more

Implementing Profile Provider in ASP.NET MVC

Here’s what you need to do: 1) In Web.config’s section, add “inherits” attribute in addition to your other attribute settings: <profile inherits=”MySite.Models.ProfileCommon” defaultProvider=”…. 2) Remove entire <properties> section from Web.config, since you have already defined them in your custom ProfileCommon class and also instructed to inherit from your custom class in previous step 3) Change … Read more

Where are the gcov symbols?

I just spent an incredible amount of time debugging a very similar error. Here’s what I learned: You have to pass -fprofile-arcs -ftest-coverage when compiling. You have to pass -fprofile-arcs when linking. You can still get weird linker errors when linking. They’ll look like this: libname.a(objfile.o):(.ctors+0x0): undefined reference to ‘global constructors keyed to long_name_of_file_and_function’ This … Read more

Spring profiles and testing

Can I recommend doing it this way, define your test like this: @RunWith(SpringJUnit4ClassRunner.class) @TestExecutionListeners({ TestPreperationExecutionListener.class }) @Transactional @ActiveProfiles(profiles = “localtest”) @ContextConfiguration public class TestContext { @Test public void testContext(){ } @Configuration @PropertySource(“classpath:/myprops.properties”) @ImportResource({“classpath:context.xml” }) public static class MyContextConfiguration{ } } with the following content in myprops.properties file: spring.profiles.active=localtest With this your second properties file should … Read more

Do you know the Maven profile for mvnrepository.com?

Once you’ve found your jar through mvnrepository.com, hover the “download (JAR)” link, and you’ll see the link to the repository which contains your jar (you can probably Right clic and “Copy link URL” to get the URL, what ever your browser is). Then, you have to add this repository to the repositories used by your … Read more

How to assign Profile values?

I had the same problem today, and learned a lot. There are two kinds of project in Visual Studio — “Web Site Projects” and “Web Application Projects.” For reasons which are a complete mystery to me, Web Application Projects cannot use Profile. directly… the strongly-typed class is not magically generated for you from the Web.config … Read more

How to add /usr/local/bin in $PATH on Mac

The PATH variable holds a list of directories separated by colons, so if you want to add more than one directory, just put a colon between them: export PATH=$PATH:/usr/local/git/bin:/usr/local/bin That syntax works in any Bourne-compatible shell (sh, ksh, bash, zsh…). But zsh, which is the default shell in recent versions of MacOS, also exposes the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)