Posts

javascript - Activating overlay background when hovering over link -

Image
i preparing layout blog , need make slideshow more or less follows: i'm able lot via css, have problem! images activate when mouse hovers on div , need image activated, or better, colored, when hovering on image link. could me out this? take code via bootply bootply i not know if via css or via javascript. tried more via javascript not know it. you need use pseudo-class :hover on parent of image , text. change opacity of image when hover on child of element. change this .img-box-feature:hover{opacity:1;} to this [class*="box-"]:hover .img-box-feature{opacity:1;} see updated bootply also, suggest change classes box-um , box-dois , , box-tres box . can use .box:nth-child() or .box:nth-of-type() target specific one.

java - I want to implement docker in spring and hibernate application using gradle -

i had develop application using gradle , spring-hibernate. want implement docker in same. can tell me how proceed. read many tutorials of docker unable right resource. you develop application same way before. additionally create dockerfile uses java image parent. cmd pass java -jar ... command. more details can find on provided link above.

c++ - Why including atomic - gives errors -

i'm using g++ (gcc) version 4.9.2 under ubuntu 64 bit 14.04. i'm trying compile following simple code: #include <iostream> #include <atomic> using namespace std; int main() { cout << "!!!hello world!!!" << endl; // prints !!!hello world!!! return 0; } and following errors: /usr/include/c++/4.9/atomic:385:56: error: ‘noexcept’ not name type memory_order __m = memory_order_seq_cst) volatile noexcept ^ /usr/include/c++/4.9/atomic:389:53: error: expected ‘;’ @ end of member declaration load(memory_order __m = memory_order_seq_cst) const noexcept ^ /usr/include/c++/4.9/atomic:389:59: error: ‘noexcept’ not name type load(memory_order __m = memory_order_seq_cst) const noexcept ^ /usr/include/c++/4.9/atomic:393:59: error: expected ‘;’ @ end of membe...

php - add 4 hours for UTC Time -

so create form outside of calendar script using. i submitting date java date picker works great. problem script uses date subtracts 4 hours based on it's needs. is there way add 4 hours submitted date shows correctly in admin when go approve event submitted. example: i submit form 10:00 admin reads 6 am the code in admin of script compensating utc. <?php if (!isset($_post['submit'])) { ?> <?php } else { $input_arr = array(); foreach ($_post $key => $input_arr) { $_post[$key] = addslashes($input_arr); } $user_id = $_post['user_id']; $listing_id = $_post['listing_id']; $status = $_post['status']; $title = $_post['title']; $description_short = $_post['description_short']; $description = $_post['description']; $venue = $_post['venue']; $location = $_post['location']; $admission = $_post['admission']; $contact_name = $_pos...

php - Display a calendar in wordpress -

i searching lot last 2 days regarding this. given appreciable. wish display neat yearly calendar on website. after displayed, need dates mysql database , reflect them on calendar. , not able display calendar. can me providing way towards library or code or might me this. dont need google calendar. please suggest me something. have no idea of doing this. you can try plugin display calander/events . here https://wordpress.org/plugins/the-events-calendar https://wordpress.org/plugins/spider-event-calendar/screenshots/ https://wordpress.org/plugins/my-calendar/screenshots/

Rails: Form help -- supplying method with argument -

i relatively new rails , have attempted write small loan app user can make loan , app can track balances / etc. adding function loan model handles payments , have gotten far (draw attention make_payment(value) portion: loan.rb class loan < activerecord::base belongs_to :lender, :class_name => 'user' belongs_to :borrower, :class_name => 'user' has_many :payments default_scope -> { order(created_at: :desc) } validates :amount, presence: true validates :lender, presence: true validates :borrower, presence: true def make_payment(value) remainder = amount - value update_attribute(:amount, remainder) return remainder end end i can use correctly deduct value original loan amount, cannot seem make work using views , form. view follows: app/views/loans/show.html.erb <p id="notice"><%= notice %></p> <div class="row"> <div class="col-md-2"> <ul> ...

Do I need to keep server.key and server.csr for SSL in my rails app directoy? -

currently, in rails directoy (including github) have these files: website_name.crt server.csr server.key server.pass.key do have keep these files here ssl work? or dangerous keep them there. you should never ever expose server.key public. if have granted them key kingdom! , has key can decrypt ssl/tls connections , see what's what. keep hidden, keep safe.