profile

Custom PS1 not showing the current working directory

别说谁变了你拦得住时间么 提交于 2019-12-25 05:16:08
问题 I have customized the primary prompt for bash shell but unfortunately it is not showing the current working directory as can be seen below. [cifsamidala]w# pwd /home/Vinod/SearchIdIssue [cifsamidala]w# Here is what I have customized my PS1: HOST=`tput bold``hostname``tput sgr0` PS1="[${HOST}]\w # " Here is the Shell info for your reference. [cifsamidala]w# echo $SHELL /sbin/sh [cifsamidala]w# echo $0 -sh I also tried with 'pwd' as below but of no use. PS1="[${HOST}]`pwd` # " Kindly let me

Facebook API for extracting basic(Public) profile info of a person

馋奶兔 提交于 2019-12-25 00:24:38
问题 Actually I want to extract basic(Public Profile) information of a person on Facebook by it's name or email-ID without any type of authentication. So, can anyone tell me the detailed procedure how i can acheive this using Java Programming and i want the result in XML format 回答1: https://graph.facebook.com/4 Will give you a result similar to - { "id": "4", "name": "Mark Zuckerberg", "first_name": "Mark", "last_name": "Zuckerberg", "link": "http://www.facebook.com/zuck", "username": "zuck",

Eloqua Forms - Progresive Profie / Profiling

时光毁灭记忆、已成空白 提交于 2019-12-24 18:38:52
问题 I'm quite new in Eloqua. I'm trying to generate Progressive Profiling Forms, and as I can find in the web, there are two ways: Adding Rules, or setting Stages or Linear flow. But, I am not being able to do either. Any help? By the way, the most I could progress, is: click on Progressive Profile button, add some fields, then copy/paste HTML+JS generated, and open the form in Chrome (the whole code seems to be complete auto-sufficent). But there are many weird behaviors... 回答1: The way

How to switch spring profile at runtime

无人久伴 提交于 2019-12-24 18:34:54
问题 I have spring boot application with profiles. Now I want to switch profile at runtime, refresh spring context and continue application execution. How to switch active profile at runtime (switchEnvironment method)? @SpringBootApplication public class Application implements CommandLineRunner { @Autowired private Config config; public static void main(String[] args) { SpringApplication.run(Application.class, args); } @Override public void run(String ... strings) throws Exception { System.out

What is the significance of OrderedFriendsListInitialData?

亡梦爱人 提交于 2019-12-24 12:53:58
问题 When you're logged in, in the page source, there is a list called OrderedFriendsListInitialData . According to rumour, it's a list of people that visit your profile the most, others say that it's a list of profiles you view the most, and yet other say it's the friends you interact with the most. Can anyone shed some light on this by providing a definitive answer, or at least an educated one? 回答1: If You check the code You will notice it has something to do with right sidebar. Just before it

Use GPU profiler (for example CodeXL) together with PyOpenCL

ⅰ亾dé卋堺 提交于 2019-12-24 11:57:13
问题 I have my complex PyOpenCL app with a lot of buffers creations, kernel templating and etc. I want to profile my app on GPU to see what is the bottle neck in my case. Is it possible to use some gpu profiler with PyOpenCl app? For example CodeXL. P.S. I know about event profiling but it isn't enough. 回答1: Yes, it is possible. Look here: http://devgurus.amd.com/message/1282742 来源: https://stackoverflow.com/questions/17573338/use-gpu-profiler-for-example-codexl-together-with-pyopencl

set or update profile picture using fbconnect facebook?

感情迁移 提交于 2019-12-24 11:12:54
问题 i have a image and i want to set this image as the users profile image. i came to know that we cannot upload directly to "Profile pictures" so i uploaded it in some other album and now i want to set this image as its profile pic ??? any idea how can i do that using fbconnect ? thanks in advance 回答1: well i guess this is not possible... http://developers.facebook.com/docs/reference/rest/photos.upload 3rd paragraph says: You can upload to a specific user's album by calling photos.getAlbums.

Creating a User Time Sheet for a RoR Web App

三世轮回 提交于 2019-12-24 11:07:29
问题 I'm kind of a newb to RoR and I'm working on creating my first web app. So...My question is, how do I create a user time sheet in RoR? What I need to do is create a classroom time sheet for students' (Users) reading times at home. The students (Users) are able to sign up and have a profile created. From there, I would like for them to have access to log in their reading time(s). I have attached examples of just some simple timesheets that would work perfectly for this. I just do not know

How to import and export FireFox profile for selenium webdriver in python

半腔热情 提交于 2019-12-24 10:47:42
问题 How can I import and export a webdriver FireFox profile? What I wold like to do is something like: from selenium import webdriver #here I want to import the FF profile from a path if profile: driver = webdriver.Firefox(profile) else: #this is the way I get the WebDriver currently driver = webdriver.Firefox() #doing stuff with driver #Here I want to save the driver's profile #so I could import it the next time 回答1: You have to decide on a location to store the cached profile, then use

Why does test1() run much faster than test2()?

♀尐吖头ヾ 提交于 2019-12-24 03:53:19
问题 import java.util.Random; public class Test{ static int r = new Random().nextInt(2); static int a(){ return r==1 ? 1 :0; } public static void test1() throws Exception { // System.out.println(1403187139018L); for (int i = 0; i < 1073741824; i++) {}//* // Thread.sleep(20000); long d = 0; for (int j = 0; j < 10; j++) { long y = System.currentTimeMillis(); for (int x = 0; x < 1073741823; x++) { d += r==0?1:0; } System.out.println((System.currentTimeMillis() -y)); } } public static void test2()