back soft

مطالب مرتبط با «user» در back soft | نویسنده: استخدام کار

Adding file from $user.home to container with Dockerfile

Vote count: 0 Is it possible to copy a properties file from $user.home on windows to container root using ADD command in Dockerfile ?I have tried ./example.properties to go up one level to the home directory.Also I have tried $HOME/example.properties to get home, but apparently $HOME in Dockerfile is pointing to container's home directory, since RUN echo $HOME prints /root. asked 3 mins agoYuriy Kravets This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

dlopen failed to load library from unprivileged user

Vote count: 0 I load a native library from C# code through dlopen function. [DllImport("libdl.so")] public static exte IntPtr dlopen(string filename, int flags); const int RTLD_NOW = 2; // for dlopen's flags // call IntPtr r = dlopen(libFileName, RTLD_NOW); If I run application with sudo, library is load.If I run application from unprivileged user, I have a error. Output command lld for library linux-vdso.so.1 => (0x00007ffd51fe2000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6e472ff000) /lib64/ld-linux-x86-64.so.2 (0x000055f33e18f000) My system is Kubuntu 1504 Help me. Any idea? asked 1 min agoAlexcei Shmakov This entry passed through the Full-Text RSS service - if this is your c...

ادامه مطلب

Moving Columns To Rows In User-Selected Range With VBA Script

Vote count: 0 I am trying to create a VBA script that would allow me to select a range of data, and then, skipping the first column in the range, move the values the succeeding columns under the first column. Example current spreadsheet layout: --------------------------- URL1 | URL2 | URL3 | URL4 | --------------------------- | | | | -----+------+------+------- | | | | -----+------+------+------- 1URL| 2URL | 3URL | | -----+------+------+------- aURL| bURL | | | --------------------------- You'll notice that not all the cells in the range are populated Example result spreadsheet (after ruing script): --------------------------- URL1 | URL2 | URL3 | URL4 | --------------------------- | | | |...

ادامه مطلب

wordpress: Migrate user pro to user ultra plugin

Vote count: 0 I was using user pro plugin to display data on my website but I want to display the data through user ultra pro I have installed and activated. Whenever I deactivate user pro then It displays short codes of user pro plugin but I want to display the same data instead of that short code over the frontend. I am confused. The site only works with user pro but I want to make it working for user ultra asked 1 min agoAnkush Rishi This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

How can I format string to get plural based on user input in python?

Vote count: -1 I want to write a program that can take 5 words as input from user. and convert those 5 words into plural. i need to use function plural() only to perform this task and using the following heuristics: if the word ends in 'y', then remove the 'y' and add 'ies' if the word ends in 'o','ch', 's', 'sh', 'x', or 'z' then add 'es' otherwise, just add 's' i am little bit confuse here. asked 1 min agoSiddhesh Palav This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Accepting user data into a table

Vote count: 0 I'm designing an app which will accept user input into a TableLayout . The table has 4 headings . I'm unsure of how to get the data into the table . I have a successfully added a test piece of code but I can only add it once. I've attached the code below. public void addNew(){ TableLayout tL = (TableLayout)findViewById(R.id.table); TableRow tR = new TableRow(getApplicationContext()); TextView tV = new TextView(getApplicationContext()); tV.setTextColor(0xff000000); tV.setText("TEST"); TextView tV2 = new TextView(getApplicationContext()); tV2.setTextColor(0xff000000); tV2.setText("TEST"); TextView tV3 = new TextView(getApplicationContext()); tV3.setTextColor(0xff000000); tV3.setT...

ادامه مطلب

Difference between Greasemonkey userscripts and Firefox extensions?

Vote count: 0 I was trying to figure out the video player size & whether the content was auto-played or not and log this information. I need to choose between using a userscript via greasemonkey that does this or creating a firefox extension. Can someone tell me the differences as well as limitations of the two? asked 2 mins agoDubby This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Howto redirect users that come from a Google search to homepage

Vote count: 0 I wondered if there is a way to redirect users that come from a Google search to my homepage when the ranked page isn't the homepage, without interfering the good ranking for that page. asked 50 secs agokiks73 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

how ajax function in wp plugin can load on user side (for viewrs)

Vote count: 0 i'm developing wp plugin in which when user enter id to get post against that id. that is working fine on admin side. i followed example to get data by ajax call http://dobsondev.com/2015/06/12/wordpress-ajax-example/ but now i'm trying to do on customer side where anyone can enter id and get result. I removed function which was using to create page on admin side. rest of that i have 4 function named hello_word() , ajax_script(), ajax_handler() i tried to use following add_Action to register but it was not working add_action( 'admin_footer', 'ajax_script' ); then i tried following to register ajax_script add_action( 'wp_ajax_my_action', 'ajax_script' ); add_action( 'wp_ajax_nop...

ادامه مطلب

allocate users by tiers using Pig on Hadoop

Vote count: 0 Need to count the # of users in each group, and group allocation for each user is based on their payment they made. Here is my current code, wondering if any ways to make it more elegant? Is it possible to complete the logic by one group by statement? Thanks. customer_group = group clicks by customerID; customer_payment_count=foreach customer_group generate customerID, COUNT(payments) as payment_amount; tier1 = filter customer_payment_count by payment_amount...

ادامه مطلب

Trouble creating user control in C#

Vote count: 0 I'm creating a user control in C# but I can't figure out how to do the event stuff. I want to change the backcolor property of the panel on mouse hover but it's not working. Code: public partial class QuestionList : UserControl { public QuestionList() { InitializeComponent(); } public struct QuestionListItem { public string Question { get; set; } public string Answer { get; set; } public QuestionListItem(string question, string answer) { Question = question; Answer = answer; } } public void Add(QuestionListItem questionlistItem) { Panel panel = new Panel(); panel.MouseHover += Panel_MouseHover; panel.Dock = DockStyle.Top; Label label = new Label(); label.MouseHover += Label_Mou...

ادامه مطلب

I want to fetch user's location on a splash screen, and after fetching location, splash screen must end

Vote count: 0 I want to fetch user's location on a splash screen, and after fetching location, splash screen must end. I want to store the latitude and longitude in two strings. Here is my code : SplashScreen.java package com.example.black_ghost.miniproject; import android.content.Intent; import android.content.SharedPreferences; import android.location.Location; import android.location.LocationManager; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View;...

ادامه مطلب

How to "deny user" in Apache htaccess file

Vote count: 0 If I have an .htaccess file in a directory: require group groupfoo require user userfoo Is there a way to deny user bar, which is in groupfoo from accessing the directory/files? deny user bar does not work as I hoped asked 1 min agovol7ron This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

List out admin user id who add the product in magento

Vote count: 0 i have creted user1 ,user2 for only add the product they can add the product and i want to show there id in new column i want to add new column in catlog/Manage Product/ before name column. asked 1 min agoanp.wismad This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Laravel + Homestead: Access denied for user 'homestead'@'localhost'

Vote count: 0 This is my first attempt using Laravel. Here is my .env file APP_ENV=local APP_DEBUG=true APP_KEY=k9ld4YcEsFgVUArv46L1U1zXxOG6B5C6 DB_HOST=127.0.0.1 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_DRIVER=smtp MAIL_HOST=mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null And here is the same file in VM APP_ENV=local APP_DEBUG=true DB_HOST=127.0.0.1FgVUArv46L1U1zXxOG6B5C6 DB_DATABASE=homestead DB_USERNAME=homestead CACHE_DRIVER=filet SESSION_DRIVER=file REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null MAIL_DRIVER=smtp MAIL_...

ادامه مطلب

User Access Rights getting cleared in Odoo 8

Vote count: 0 I'm trying to lea Odoo and developing a module. For the same, I just created 2 new user groups. ie. Parent and Faculty. I used the following code, Parent Faculty It worked fine and I can see these groups under the Access Rights tab in user's form view. Then I was able to assign Faculty option for a user. But when I upgrade my module, it's getting reset the user's access rights. After upgrading my module, how it looks like is: It will be appreciable, if anyone can tell me the reason for this issue. asked 1 min agoNikhil Mohan This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilt...

ادامه مطلب

Batch - input username/pw when prompted

Vote count: 0 I am new to using batch so I'm not sure if what I'm trying to do is possible, BUT, the scenario is I have several switches that I need to manage using SSH. I am currently using plink(putty) to do so through the command prompt. I'm able to coect to my switches but I'm confused on how to automate the login portion. What I'm trying to figure out is when I coect to the switch I am stopped 3 times and asked for input, one time for useame, again for useame(i dont know why its twice) and then finally for password. All of that before I can actually run commands on the switch. So in my very archaic batch file I'm attempting to do the following. echo plink SESSIONNAME -l useame -pw passw...

ادامه مطلب

Rake db:seed doubling users

Vote count: 0 I have really stupid problem with rake db:seed. I created couple of users and seed a database with rake db:seed. When I visit my app, all users are doubled! Obviously I run rake db:reset before every attempt to seed. I restarted served. What's happening? asked 4 mins agoJes 1 Answer Vote count: 0 By default, rake db:reset will also run db:seed, so there's no need to run both commands. This article describes the full list of db: rake commands, which you might find helpful for future reference. answered 2 mins agoRobert Nubel This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilte...

ادامه مطلب

Access control to different users - Laravel 5.2

Vote count: 0 In my app I have two types of users - admin and teacher. In my AuthController I have this : public function getLogin() { retu view('auth.login'); } public function postLogin(IlluminateHttpRequest $request) { if(Auth::attempt([ 'useame' => $request->input('useame'), 'password' => $request->input('password'), 'type' => 'admin' ])) { retu redirect ('admin'); } if(Auth::attempt([ 'useame' => $request->input('useame'), 'password' => $request->input('password'), 'type' => 'teacher' ])) { retu redirect ('educator/account'); } retu redirect('login')->with('message', [ 'type' => 'danger', 'message' => 'Грешно потребителско име или парола!' ]); } public function getLogout() { Auth::logou...

ادامه مطلب

Java User input YY-MM-DD format

Vote count: 0 This is for an assignment in data structures and I can't seem to find the exact answer I need. I am attempting to take user input for a date, preferably YY-MM-DD format, then check for validity.. if not valid, cycling until valid. This really seems very tedious and I am receiving two illegal start of expression errors. I did search, google and stackoverflow, but only find things addressing Date public String hireDate(){ Scaer input = new Scaer(System.in); boolean answer = false; while(answer == false){ String temp = input.nextLine(); if((temp.charAt(0) >= 0 && temp.charAt(0) = 0 && temp.charAt(1) = 0 && temp.charAt(3) = 0 && temp.charAt(4) = 0 && temp.charAt(6)...

ادامه مطلب