profile

How to retrieve a user profile picture in Liferay

我是研究僧i 提交于 2019-12-04 13:00:24
I want to retrieve a user profile picture. How do i do it? Could you please share a code snippet? Im using Liferay 6.0.6. It has only user.getPortraitId() and no user.getPortraitURL(). So once i get the portrait id inside a JAVA class, what do i do with it? See the implementation of UserConstants.getPortraitURL(...) https://github.com/liferay/liferay-portal/blob/master/portal-service/src/com/liferay/portal/model/UserConstants.java On this approach you can get the image url. If you need the image object, you can load it with ImageLocalServiceUtil : long portraitId = user.getPortraitId(); Image

Deleted the Team Provisioning Profile:* in the Provisioning Portal, what to do?

牧云@^-^@ 提交于 2019-12-04 12:50:28
问题 I accidentally deleted the Team Provisioning Profile:* in the Provisioning Portal, what should I do now? :/ 回答1: I have a MacBook with Xcode 4.2 installed. I also, in the course of "getting acquainted" with the iOS Provisioning Portal and Xcode, removed the iOS Team Provisioning Profile:*. I wasn't having any success getting it back, either by removing the device from Xcode Organizer and plugging it back in, or by removing and again creating the Provisioning Profile for my test app. Here's

如何清理Xcode上多余的Provisioning Profile证书?

我与影子孤独终老i 提交于 2019-12-04 09:39:36
随着公司项目越来越多,相应证书可能也会越来越多,或者入职接手的电脑上面,Xcode上面已经缓存了太多没有用的证书,有强迫症的人怎么能忍受得了!!!现在教你轻松清理掉无用证书。 步骤: 1、打开Mac自带的终端(Terminal) 2、贴上命令:cd ~/Library/MobileDevice/Provisioning\ Profiles 3、继续输入命令:open . (打开该文件夹) 4、尽情的删除吧 来源: oschina 链接: https://my.oschina.net/u/1440723/blog/682873

How to use Profile in ASP.NET?

霸气de小男生 提交于 2019-12-04 06:36:49
i try to learn asp.net Profile management. But i added below xml firstName,LastName and others. But i cannot write Profile. if i try to write Profile property. drow my editor Profile : Error 1 The name 'Profile' does not exist in the current context C:\Documents and Settings\ykaratoprak\Desktop\Security\WebApp_profile\WebApp_profile\Default.aspx.cs 18 13 WebApp_profile How can i do that? <authentication mode="Windows"/> <profile> <properties> <add name="FirstName"/> <add name="LastName"/> <add name="Age"/> <add name="City"/> </properties> </profile> protected void Button1_Click(object sender,

使用Maven filter和profile隔离不同环境的配置文件

…衆ロ難τιáo~ 提交于 2019-12-04 04:47:10
##背景 在日常的项目开发过程中, 会有很多的配置文件, 而项目对应有多套环境(开发、测试、预发布、生产), 不同的环境使用的配置属性又不一样, 比如数据库连接属性、服务器日志文件路径、缓存服务器地址等等, 如果我们每次打包部署到不同的环境都要频繁的修改配置文件的话, 非常的麻烦, 而且势必会增加一定的风险。那么如何解决这个问题呢? ##解决方案 使用 Maven 的 filtering 和 profile 功能, 我们只需要在 pom 文件中做一些简单的配置就可以隔离不同环境的配置文件, 非常方便。 ##实现原理 ###filtering 主要用来替换项目中资源文件( .xml、 .properties)当中由 ${...} 标记的变量, 比如 ${zk.hosts}。如果在配置配置文件中配置了 zk.hosts=a.b.c.d 的话, 那么使用 Maven 编译项目的时候, 会自动的把 ${zk.hosts} 替换为 a.b.c.d。 ###代码示例 新建一个用于测试的 Maven 项目, POM 文件内容如下: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

What is the difference between the various shell profiles?

戏子无情 提交于 2019-12-04 03:20:36
What's the difference between ~/.bashrc, ~/.bash_login, ~/.bash_logout, ~/.bash_profile, ~/.profile, /etc/profile, /etc/bash.bashrc, /etc/ssh/ssh_config and sshd_config, when are they loaded and what are their purposes? The man page for bash says there are the following initialization files for bash shells: /etc/profile The systemwide initialization file, executed for login shells /etc/bash.bashrc The systemwide per-interactive-shell startup file /etc/bash.bash.logout The systemwide login shell cleanup file, executed when a login shell exits ~/.bash_profile The personal initialization file,

Error when trying to create archive of iOS app: “Unable to create a provisioning profile because your team has no devices registered.”

我们两清 提交于 2019-12-04 01:52:40
问题 I am trying to create an archive of an iOS app with Xcode to submit it to the App Store. However, the following error message pops up when I select 'iOS Device' as target and click on Product - Archive: Unable to create a provisioning profile because your team has no devices registered in the Member Center. Please connect a device, enable it for development, and add it to the Member Center using the Organizer. The same error message also appears when I click the "Fix Issue" button on the app

maven利用Profile构建不同环境的部署包

余生颓废 提交于 2019-12-03 22:34:20
在开发的过程中,经常需要面对不同的运行环境(开发环境、测试环境、准发布环境、生产环境等等),在不同的环境中,相关的配置一般是不一样的,比如数据源配置、用户名密码配置、以及一些软件运行过程中的基本配置。 使用Maven来进行构建可以达到不同环境构建不同的部署包。在maven中实现多环境的构建可移植性需要使用profile,通过不同的环境激活不同的profile来达到构建的可移植性。 1、工程pom.xml的配置 /** 这里定义了三个环境,local(本地环境)、dev(开发环境)、pro(生产环境), 其中开发环境是默认激活的(activeByDefault为true),这样如果在不指定profile时默认是开发环境 */ <profiles> <profile> <id>local</id> <properties> //这里的env只是一个变量而已,名字可以由你任意来定,这个变量在后面有用到 <env>local</env> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> <profile> <id>dev</id> <properties> <env>dev</env> </properties> </profile> <profile>

Connection to specific HID profile bluetooth device

十年热恋 提交于 2019-12-03 21:48:58
问题 I connect bluetooth barcode scanner to my android tablet. barcode scanner is bonded with android device as a input device - HID profile. it shows as keyboard or mouse in system bluetooth manager. i discovered that bluetooth profile input device class exist but is hidden. class and btprofile constants have @hide annotaions in android docs. hidden class: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.3.1_r1/android/bluetooth/BluetoothInputDevice.java here

RVM isn't recognized until I run “source ~/.profile” in terminal

依然范特西╮ 提交于 2019-12-03 21:38:02
sergio@sergio-VirtualBox:~/code$ rails -v The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install rails sergio@sergio-VirtualBox:~/code$ source ~/.profile sergio@sergio-VirtualBox:~/code$ rails -v Rails 3.2.1 Any ideas why the command doesn't work until I run "source ~/.profile"? I would like to not have to do this every time I run my machine or open a new terminal window. RVM provides quite good description https://rvm.io/support/faq/#shell_login you should use .bash_profile - unless you have good reasons against it - but I do not know many. Rvm puts