mardi 14 février 2017

transition effect not working

Vote count: 0

I am trying to get button visibility with animated effect using CSS transition effect on hover but the effect not working.

I am unable to find my mistakes, can anybody help me to solve my issue.

My HTML & CSS Code is as under.

.prodiv3
{
        background-color:#d79e37;
        position:relative;
        z-index:999;
}
.product-box a
{
        text-decoration:none;
}
.prodiv3 h2
{
        padding:0px !important;
        margin: 0px !important;
        color: #fff;
        padding-left:15px !important;
}
.prodiv3 p
{
        color: #000000;
        padding-left:15px !important;
}
.link-icon
{
        position:relative; 
        bottom:120px; 
        left:10px;
        visibility:hidden;
        width:60px; 
        height:60px; 
        background:url(../images/link-icon.png) no-repeat center center #ff411c; 
        //display:block; 
        border-radius:100%;
}
.product-box a:hover .link-icon
{
        visibility:visible;
        -moz-transition: all 1s ease-in !important;
        -webkit-transition: all 1s ease-in !important;
        -o-transition: all 1s ease-in !important;
        transition: all 1s ease-in !important;
}
asked 25 secs ago

Let's block ads! (Why?)



transition effect not working

Checking mail id of distribution list

Vote count: 0

I am developing VBA automation which will forward specific mail to given distribution list which have been saved in one specific worksheet and also i have to check all mail id's of distro if it is correct or not. So Please help to develop a code which will check mail id if they correct or not..

asked 31 secs ago

Let's block ads! (Why?)



Checking mail id of distribution list

Python code required

Vote count: 0

I have a text file containing unstructured data which has record locators and passenger names..I want to fetch all record locators with passenger names. If a record doesn't have passenger name don't fetch it in result. Suppose my file has: Record 1 Record 2 Record 3 John Record 4 Smith

So output file should have Record 3 John Record 4 Smith As output

Please post a python code for the same.

asked 33 secs ago

Let's block ads! (Why?)



Python code required

how to get device active user with specific Time-stamp

Vote count: -1

How to get Active User in Android Multi-User Support Devices with Sending specific Time-Stamp?

asked 42 secs ago

Let's block ads! (Why?)



how to get device active user with specific Time-stamp

T-Sql Find the Employee Count as average by the number of months in the year

Vote count: 0

I have table called "Employee"

Employee table has below columns

Id (identity)
EmploymentStartDate (datetime),
EmploymentEndDate (nullable datetime),

My query:

DECLARE @FromYear int = 2010, @ToYear int = 2017;

WITH YEARS AS 
(
    SELECT @FromYear As TheYear
    UNION ALL
    SELECT TheYear + 1
    FROM YEARS
    WHERE TheYear < @ToYear
)

SELECT
    Y.TheYear,
    SUM
    (
        CASE WHEN
            YEAR(EmploymentStartDate) <= Y.TheYear
            AND (EmploymentEndDate IS NULL OR YEAR(EmploymentEndDate) >= Y.TheYear)
        THEN 1
        ELSE 0
        END
    ) WorkingEmployeeCount,
    SUM
    (
        CASE WHEN
            YEAR(EmploymentStartDate) = Y.TheYear
        THEN 1
        ELSE 0
        END
    ) StartedEmployeeCount,
    SUM
    (
        CASE WHEN
            YEAR(EmploymentEndDate) = Y.TheYear
        THEN 1
        ELSE 0
        END
    ) SeperatedEmployeeCount
FROM
    YEARS Y
    CROSS JOIN
    Employees E
GROUP BY
    Y.TheYear

If ı run above query i get below result

TheYear - WorkingEmployeeCount - StartedEmployeeCount - SeperatedEmployeeCount

2010    -  1                   -  1                   -   0
2011    -  2                   -  1                   -   0
2012    -  2                   -  0                   -   0
2013    -  2                   -  0                   -   0
2014    -  2                   -  0                   -   0
2015    -  4                   -  2                   -   1
2016    -  3                   -  0                   -   0
2017    -  6                   -  3                   -   2

Question:

I need to use below formula.First i want to find every year's months count than AVG of EmployeeCount per year.

EmployeeCount / MonthsCountPerYear than get AVG

If i try below query it is not working for me (I can not create a solution)

(AVG(EmployeeCount / (CASE WHEN TheYear = DATE(GETUTCDATE) THAN 2 ELSE 12 END))) AS AvgEmployeeCount

What i want should be as below

TheYear - WorkingEmployeeCount - StartedEmployeeCount -SeperatedEmployeeCount - AvgEmployeeCount

2010    -  1                   -  1                   -   0                      - 1,30
2011    -  2                   -  1                   -   0                      - 1,20
2012    -  2                   -  0                   -   0                      - 1,00
2013    -  2                   -  0                   -   0                      - 3,50
2014    -  2                   -  0                   -   0                      - 5,33
2015    -  4                   -  2                   -   1                      - 7-33
2016    -  3                   -  0                   -   0                      - 9-34
2017    -  6                   -  3                   -   2                      - 1,15

How can i find employee count avg for every year according to months in a year.Any help will be appreciated.Thank you

asked 30 secs ago

Let's block ads! (Why?)



T-Sql Find the Employee Count as average by the number of months in the year

Swagger editor doesn't offer relevant code completion

Vote count: 0

When I use swagger editor (online or local) sometimes it offers code completion of the relevant level and often it starts offering code completion of the root level: definitions, swagger, info, paths, etc. while my cursor is not at the root level, for example when I'm entering properties. There are also no indications that tell that there is something wrong with the document. I cannot see the pattern to find out when this happens, it just happens and it makes the editor very difficult to use as I have to type almost everything.

I wish I could provide more details but for now this problem happens randomly. Does anyone know what can cause this behavior and how to fix it?

asked 45 secs ago

Let's block ads! (Why?)



Swagger editor doesn't offer relevant code completion

Can we deconstruct arbitrary type constructors?

Vote count: 0

In Haskell, or any other programming language supporting pattern matching, can we achieve the following:

Given a type constructor e.g. Left :: a -> Either a b I can extract its argument with

let f (Left x) = [x]

Is there any way to achieve the same thing for any type constructor, something like an operator (*) to lift Left x to Apply (λa.Left a) [x] or BinTree x y to Apply (λa,b.BinTree a b) [x,y], so we could do

let extract x = case *x of Apply _ xs -> xs

asked 33 secs ago

Let's block ads! (Why?)



Can we deconstruct arbitrary type constructors?

how do I rename tooltip of echart download icon

Vote count: 0

I am using echart

enter image description here

How do I rename download button tooltip in corner of top-right(written in Chinese language)

I can't find in echart option.

asked 33 secs ago

Let's block ads! (Why?)



how do I rename tooltip of echart download icon

How do i append another list within list comprehension

Vote count: 0

I am trying to find out unique elements and avoid duplicates , between the lists (using list comprehension)

`a = [10 , 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89,9]`
`b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]`

dup_list = []

This works , but with duplicates

`final_list = [uniq for uniq in a if a not in dup_list if uniq in b ]`

when i try to append the my dup_list in the last line of the comprehension statement it says invalid syntax i.e this doesn't work. "final_list = [uniq for uniq in a if a not in dup_list if uniq in b dup_list.append(uniq) " I am a newbie in python so apologize for any missed out basic facts .

asked 6 secs ago

Let's block ads! (Why?)



How do i append another list within list comprehension

ORACLE-Why WHERE clause is not working on UNION?

Vote count: 0

I am working on oracle 11g.But when I add WHERE clause in UNION of two table it shows error:

ORA-00904: "T8"."ENTRY_DATE": invalid identifier

This is my query:

SELECT * FROM
(
    SELECT T1.OUTLET_ID,T1.STATUS,T1.ENTRY_DATE  FROM T_ORDER_DETAIL T1 
    UNION 
    SELECT T8.OUTLET_ID,T8.REASON,T8.ENTRY_DATE FROM  T_NON_PRODUCTIVE_SALES T8 
) 
WHERE T1.OUTLET_ID = T8.OUTLET_ID AND T1.ENTRY_DATE = T8.ENTRY_DATE

Where's the problem?

asked 19 secs ago

Let's block ads! (Why?)



ORACLE-Why WHERE clause is not working on UNION?

create threaded class functions with arguments inside class

Vote count: 0

I have an object of class AI, which has a private non static void function which has a lot of arguments: minmax(double& val,double alpha, double beta, unsigned short depth, board* thisTurn); because this is a very time intensive function I want to use a number of threads to run it concurrently, therefor I must create a thread with this function inside another function inside the AI class;

According toThis question to make threads inside member functions containing non static member functions wiht no arguments of said class, one must call:

std::thread t(&myclass::myfunc,this);

And according to this tutorial threads of fucntions with multiple arguments can be created as such:

std::thread t(foo,4,5) 

where the function 'foo' has 2 integer arguments

However I desire to mix these to things, to call a function which has arguments, which is also a non static member function, from inside the class that it is a member of, and i am not sure how to mix these to things.

I have off course tried (remember that it is inside a function inside the AI class):

std::thread t(&AI::minmax,val,alpha,beta,depth,thisTurn,,this);

and

std::thread t(&AI::minmax,this,val,alpha,beta,depth,thisTurn,this);

But both cases fails with a compile error like this:

error: no matching constructor for initialization of 'std::thread'
candidate constructor template not viable: requires single argument '__f', but
  7 arguments were provided

My question is therefor, if or if not, it is even possiple to -- from inside a member function of a class -- call a non static member function which has several arguments as a thread, and if this is the case, how it is done.

asked 11 secs ago

Let's block ads! (Why?)



create threaded class functions with arguments inside class

Devexpress:aspxtextbox text validation

Parse mutually exclusive input arguments with MATLAB's input parser

Vote count: 0

I have a function that has at least two required input arguments. Depending on the value of the second argument, there might be a third required input argument. I am wondering what is the best way to code a robust function that incorporates these requirements using MATLAB's input parser?

The function may look like this:

function vout = test(ReqInpArg1, ReqInpArg2, varargin)

ReqInpArg2 may hold the following string content:

  • 'cash'
  • 'absHurdleRate'
  • 'none'

If the user chooses cash, than another input argument numCashTicker needs to be defined as part of varargin, e.g. 'numCashTicker', 4. If absHurdleRatehas been choosen, a different input parameter has to be defined, e.g. 'hurdleRate', 0.2. If, on the other hand, none has been chosen, none of these input parameter must be defined. As a matter of fact, numCashTicker and hurdleRate are mutually exclusive, i.e. they must not be defined at the same time. In addition, if the user didn't chose none, he must define one of the other varargin input arguments.

What is best practice / the best strategy in order to implement these requirements?

asked 14 secs ago

Let's block ads! (Why?)



Parse mutually exclusive input arguments with MATLAB's input parser

DCM4CHE, Network operations,Handling a C-Move call

lundi 13 février 2017

Which code can swallow interruptedException?

Vote count: 0

I read concurency in practice. Now I want to understand how to handle InterrruptedException

Advices from book:

- Propagate the exception (possibly after some task-specific cleanup), making your method an interruptible blocking method, too; or
- Restore the interruption status so that code higher up on the call stack can deal with it.
- Only code that implements a thread's interruption policy may swallow an interruption request. General-purpose task and library code should never swallow interruption requests.

First two statements are clear for me but I don't understand third. Can you clarify this? Providing example will be prefered.

asked 18 secs ago

Let's block ads! (Why?)



Which code can swallow interruptedException?

How to prevent react router from re-rendering a previously rendered page?

In firebase web i want to retrive multiple data in real-time

Vote count: 0

In firebase web i want to retrive multiple data in real-time. my code is

$(document).ready(function(){
   var rootRef=firebase.database().ref().child("users");
   rootRef.on("child_added",snap=>{
var name=snap.child("Name").val();
var email=snap.child("Email").val();

$("#table_body").append("
asked 35 secs ago

Let's block ads! (Why?)



In firebase web i want to retrive multiple data in real-time

S3 and Cloudfront throwing error on page reload

Vote count: 0

Somehow when I'm using the website URL (I've setup Amazon ACM as well), it works fine but when I try to refresh the page, it throws an error such as:

enter image description here

I'm using a reactJS SPA website to host the website on Cloudfront through S3. I've made the necessary changes on S3 for the permissions:

Bucket Policy:

{
    "Version": "2012-10-17",
    "Id": "Policy1485855809339",
    "Statement": [
        {
            "Sid": "Stmt1485855807310",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::mydomain.com/*"
        }
    ]
}

I've created two buckets: mydomain.com and www.mydomain.com I've redirected all requests from www.mydomain.com to mydomain.com with the help of S3 redirect.

I've now created a Cloudfront distribution with the help of S3 as the origin and the following configuration:

enter image description here

Please let me know if more information is needed

asked 35 secs ago

Let's block ads! (Why?)



S3 and Cloudfront throwing error on page reload

Convert base64 png to jpeg image in Nodejs

Vote count: 0

I am using FabricJS module in Nodejs. There is a Canvas I am trying to export as jpeg but it wont(giving me a hard time). All I am getting is base64 png data.

Data that starts like

data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t.....

Is there anyway in nodejs that I can convert this image to jpeg? I googled a lot but couldn get a solution

asked 32 secs ago

Let's block ads! (Why?)



Convert base64 png to jpeg image in Nodejs

Aspose formula detection

Vote count: 0

I am trying to create placeholders for fields in excel using aspose.cells for java. I know about smartmarkers. The user uses <> to specify placeholders and I would process that to then change it to the '&=' notation. How would I do this for formulae. If I have does aspose have functions to detect if given key is a formula?

asked 33 secs ago

Let's block ads! (Why?)



Aspose formula detection