profile

Activation of maven profile based on multiple properties

ε祈祈猫儿з 提交于 2019-11-29 10:55:06
问题 I am creating a maven 2 build for a project and I came up with profiles since the build has to be created for both different locations (say Berlin, Paris, North Pole) and different environment (Development, Production). Those are specified via properties. So for "North Pole" "DEV" I do: -Dlocation=NorthPole -Denvironment=DEV Now I would like to acivate my porfile based on both these properties, not just one. So I tried following: <profiles> <profile> <id>NOrth Pole DEV</id> <activation>

FBProfilePictureView object won't show image

吃可爱长大的小学妹 提交于 2019-11-29 09:21:43
I'm doing the scrumptios facebook developer tutorial for the 3.1 iOS SDK. I've managed to display my profile name from facebook, however the FBProfilePictureView wont show the picture here's the code for iboutlet @property (strong, nonatomic) IBOutlet FBProfilePictureView *useProfileImage; here is what I used to display the pic self.useProfileImage.profileID = user.id; I have confirmed that the it changed the profileid variable of the image by displaying it in a label. When I first ran the project I had this error "2012-05-18 04:04:11.620 Scrumptious[6548:f803] Unknown class

iOS mobileconfig walkarounds

女生的网名这么多〃 提交于 2019-11-29 04:37:18
i've searched quite few sites for any intel on configuring iPhone over the air with mobileconfig files, and stuck at some stage... :/ here is what I've found: http://cryptopath.wordpress.com/2010/01/29/iphone-certificate-flaws/ but this part is beyond my comprehension Using openssl smime and the P12 you got from Verisign, sign the mobileconfig file including the complete CA chain and put it onto a public HTTP server If I understood correctly what I have to do is: 1)obtain a certificate from Verisign (got it based on key.pem and request.pem generated from openssl) 2)create .mobileconfig file in

How write a program to connect to a a2dp bluetooth device using pre 3.0 Android?

白昼怎懂夜的黑 提交于 2019-11-29 04:18:01
问题 My application needs to connect to a a2dp device over bluetooth and I want to "be able to query for the visible bluetooth devices, then, select a a2dp device and have it 'connect via a2dp' so that audio starts playing through the connected device" but my phone is running gingerbread (2.3.3). I went through the basic bluetooth tutorial at http://developer.android.com/guide/topics/wireless/bluetooth.html and got to the part I need to connect to the bluetooth device and then I read the bottom of

Creating an Add user form in Django

我只是一个虾纸丫 提交于 2019-11-29 01:42:42
问题 I want to create a SINGLE form which gives the ability to the admin to create a new user with extended profile. Please note that, I don't want to use admin and registration apps. I have extended the user with the UserProfile model. I have read all the documents related to extending user profile. But, I really don't know how to save these information. I coded the following django form for this issue: class CreateUserForm(forms.Form): username = forms.CharField(max_length=30) first_name = forms

Maven - separate integration tests from unit tests

随声附和 提交于 2019-11-29 01:38:54
Is it possible to isolate integration tests from unit tests within same module? I created simple pom: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>prj</artifactId> <packaging>war</packaging> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target

Make Maven Proxy/Server settings configurable based on location?

空扰寡人 提交于 2019-11-28 21:23:18
So I'm not sure what the best way to accomplish this is, but basically I have a laptop that I use at work for Maven projects. It works fine when I'm at work, but as soon as I walk out of the door of their corporate proxy and maven server, I often have to do alot of hand-fudging of the settings.xml file when I'm at home if I'm not VPN'ed in: We have a corporate-installed Maven Repository proxy server to store some of our own artifacts and handle being the middle-man for our commonly used artifacts. We have an http proxy that we use for connecting to the outside world. Both configurations have

Best way to profile memory usage in a Java application?

可紊 提交于 2019-11-28 20:23:05
I realize that similar questions have been asked about this before here on SO, but let me describe exactly what I need to do: I have a set of tests which run a command line java application and I'd like to add memory profiling to them. One option I see would be to add code (possibly using 3rd party tools/libraries) to my application that would provide a memory snapshot. Another option would be to use a third party tool which manages/instruments my application and the JVM for me (and ideally does not require me to change my code). I'm thinking of something like Valgrind but for Java. Also open

Using ASP .NET Membership and Profile with MVC, how can I create a user and set it to HttpContext.Current.User?

不想你离开。 提交于 2019-11-28 16:34:55
I implemented a custom Profile object in code as described by Joel here: How to assign Profile values? I can't get it to work when I'm creating a new user, however. When I do this: Membership.CreateUser(userName, password); Roles.AddUserToRole(userName, "MyRole"); the user is created and added to a role in the database, but HttpContext.Current.User is still empty, and Membership.GetUser() returns null, so this (from Joel's code) doesn't work: static public AccountProfile CurrentUser { get { return (AccountProfile) (ProfileBase.Create(Membership.GetUser().UserName)); } } AccountProfile

Profile Entire Java Program Execution in VisualVM

旧城冷巷雨未停 提交于 2019-11-28 16:28:48
问题 In Java profiling, it seems like all (free) roads nowadays lead to the VisualVM profiler included with JDK6. It looks like a fine program, and everyone touts how you can "attach it to a running process" as a major feature. The problem is, that seems to be the only way to use it on a local process. I want to be able to start my program in the profiler, and track its entire execution . I have tried using the -Xrunjdwp option described in how to profile application startup with visualvm, but