Java

Dedicated to the discussion of the Java programming language a...
Nov 12, 2017 11:06
Could someone can help?
Nov 12, 2017 11:06
I don't want to write DEBUG log in catalina.out
Nov 12, 2017 11:05
How can I disable hibernate DEBUG logging.
Nov 12, 2017 11:05
I have a problem with logging.
Nov 12, 2017 11:05
Hi!
Sep 28, 2017 07:47
Anyway, thanks for helping me @Wietlol and @Tavo
Sep 28, 2017 07:46
:D
Sep 28, 2017 07:41
@Wietlol How to check if current user is remember-me?
Sep 28, 2017 07:28
@Wietlol Do you know why and how to fix it?
Sep 28, 2017 07:24
@Wietlol authentication.getClass().toString() returns class org.springframework.security.authentication.UsernamePasswordAuthenticationToken
Sep 28, 2017 07:07
It always return false even I checked remember-me
Sep 28, 2017 07:05
If I check remember-me, it returns true else returns false.
Sep 28, 2017 07:04
RememberMeAuthenticationToken.class.isAssignableFrom(authentication.getClass())‌‌​​ always return false
Sep 28, 2017 07:02
I'd like to check current user is remember-me, I use this function
https://paste.ofcode.org/9LieBUXRqxCqgaT52uE8nm
But this function always return false even I checked remember-me
Is there anyone can help?
 

Java, Spring,JPA, PHP, jQuery & Javas

This room is for Java, ,Spring Framework, JPA, Javascript, jQu...
Sep 29, 2017 10:12
 

Spring Issues

Chat for QnA
Sep 28, 2017 07:03
I'd like to check current user is remember-me, I use this function
https://paste.ofcode.org/9LieBUXRqxCqgaT52uE8nm
But this function always return false even I checked remember-me
Is there anyone can help?
Sep 28, 2017 06:57
Is there anyone can help?
Sep 28, 2017 06:57
But this function always return false even I checked remember-me
Sep 28, 2017 06:57
public static boolean isRememberMeAuthenticated() {
// Check authentication exists
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if (authentication == null) {
return false;
}

return RememberMeAuthenticationToken.class.isAssignableFrom(authentication.getClass());
}
Sep 28, 2017 06:57
I'd like to check current user is remember-me, I use this function
 

Trash

Chat Dustbin (Ignore kar Ignore)
Sep 28, 2017 06:59
I'd like to check current user is remember-me, I use this function
public static boolean isRememberMeAuthenticated() {
// Check authentication exists
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if (authentication == null) {
return false;
}

return RememberMeAuthenticationToken.class.isAssignableFrom(authentication.getClass());
}
But this function always return false even I checked remember-me
Is there anyone can help?
 

Web Developers

Room to discuss javascript and jquery, php and mysql issues. b...
May 18, 2017 07:21
0
Q: Cannot allow only particular IP Address access my website with apache 2.4

Charles PHAMI'd like to define whitelist IPs (myIP1, myIP2) in VHOST file to allow only particular IP Addresses access my website in apache 2.4. I've tried with several ways but I cannot access from everywhere even from myIP1 or myIP2. What I've tried: The First <Directory "/var/www/html/website"> <Re...

May 18, 2017 07:21
Is there anyone can help me?
Jan 13, 2017 06:09
Hi everyone,
I got an issue and I need your help.
I got ERR_TOO_MANY_REDIRECTS on subdomain
0
down vote
favorite
I have script to deploy auto my wordpress on apache2 automatically whenever developer commit code to any branch with subdomain is branchname but I’m receiving ERR_TOO_MANY_REDIRECTS. My site is feature_fabfitfuntheme.shop.f… The strange thing is that when I go to a sub-page such as feature_fabfitfuntheme.shop.f… it works perfectly fine. This is my .htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
May 18, 2017 07:21
Could you one can help?
May 18, 2017 07:21
0
Q: Cannot allow only particular IP Address access my website with apache 2.4

Charles PHAMI'd like to define whitelist IPs (myIP1, myIP2) in VHOST file to allow only particular IP Addresses access my website in apache 2.4. I've tried with several ways but I cannot access from everywhere even from myIP1 or myIP2. What I've tried: The First <Directory "/var/www/html/website"> <Re...

May 18, 2017 07:20
I'd like to define whitelist IPs (myIP1, myIP2) in VHOST file to allow onlyh particular IP Addresses access my website in apache 2.4. I've tried with several ways but I cannot access from everywhere even from myIP1 or myIP2. What I've tried:

**The First**

<Directory "/var/www/html/website">
<RequireAny>
Require ip myIP1
Require ip myIP2
</RequireAny>
</Directory>


**The Second**

<Directory "/var/www/html/website">
Options All
AllowOverride All
Require all denied
Require ip myIP1
Require ip myIP2
May 18, 2017 07:20
I cannot allow only particular IP Address access my website with apache 2.4
Jan 13, 2017 06:07
Could you please help?
Jan 13, 2017 06:07
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Jan 13, 2017 06:07
0
down vote
favorite
I have script to deploy auto my wordpress on apache2 automatically whenever developer commit code to any branch with subdomain is branchname but I’m receiving ERR_TOO_MANY_REDIRECTS. My site is https://feature_fabfitfuntheme.shop.fffdev.com/ The strange thing is that when I go to a sub-page such as https://feature_fabfitfuntheme.shop.fffdev.com/welcome/ it works perfectly fine. This is my .htaccess file
Jan 13, 2017 06:06
I got ERR_TOO_MANY_REDIRECTS on subdomain
Jan 13, 2017 06:06
I got an issue and I need your help.
Jan 13, 2017 06:06
Hi everyone,
 

Apache Spark

Just a place for random discussions about Apache Spark and coo...
May 18, 2017 07:18
I'd like to define whitelist IPs (myIP1, myIP2) in VHOST file to allow onlyh particular IP Addresses access my website in apache 2.4. I've tried with several ways but I cannot access from everywhere even from myIP1 or myIP2. What I've tried:

**The First**

<Directory "/var/www/html/website">
<RequireAny>
Require ip myIP1
Require ip myIP2
</RequireAny>
</Directory>


**The Second**

<Directory "/var/www/html/website">
Options All
AllowOverride All
Require all denied
Require ip myIP1
Require ip myIP2
May 18, 2017 07:18
I cannot allow only particular IP Address access my website with apache 2.4
 
Apr 13, 2017 04:21
You're my hero.
Apr 13, 2017 04:21
Help a lot.
Apr 13, 2017 04:21
Thanks @tripleee
Apr 13, 2017 04:18
I export foobar from interactive shell. How to I pick it up from non-interactive shell @tripleee
Apr 13, 2017 04:09
I will check this doc. Thanks a lot @tripleee
Apr 13, 2017 04:04
The value of $PATH is different between terminal and GUI
Apr 13, 2017 04:02
Ex: $PATH
Apr 13, 2017 04:02
The same with different variable.
Apr 13, 2017 03:58
@tripleee Pls take a look at stackoverflow.com/questions/43225645/…
Apr 13, 2017 03:56
I did that. But still cannot pick up the variable I exported.
Apr 13, 2017 03:54
@tripleee Sorry! This is not what I mean. I'd like to export environment variable and then pick it up from script (or some tools as rundeck, jenkins,... ). How do I do that?
Apr 12, 2017 04:30
How to pass environment variables to a non-interactive shell (with example)?
 

Docker

Ask your Docker questions and somebody will respond later if t...
Dec 14, 2016 08:40
Could you please help?
Dec 14, 2016 08:40
I got Oops! That page doesn’t exist or is private.