All Questions

1
answer

How to apply the IF ELSE condition to the selection of a column?

In MySQL, I have an old table entities where the gender column is formatted as ENUM , containing values of type "i", "m", "f". When migrating this data to the new structure of this table, I wanted to run a query on the database...
asked on 17.12.2013 / 13:42
1
answer

How do the Outline of the buttons follow the curvature of the elements?

I know that outline is very important for usability and especially for the accessibility of the page, even here is a very interesting WebAIM article about it: link However, outline does not seem to match the border-radius...
asked on 18.10.2018 / 15:55
2
answers

Handle 1-pixel border to avoid double edge (1 + 1 pixel) with side-by-side elements

I have a grid created with a ul list whose inner elements at li contains a border. The idea is that when the elements are side by side the edges are manipulated so that there is only a single trace with 1 pixel instead of what happ...
asked on 13.01.2014 / 18:55
2
answers

How to get the current year in ORACLE?

I need to get the annual year in ORACLE, but I just know how to get the current date, like this: SELECT SYSDATE FROM DUAL Can you manipulate this to get the Year?     
asked on 27.02.2014 / 19:27
1
answer

How to fill column graphics with hachures using ggplot2

I would like to display column graphs, using ggplot2 , but would like to fill them with hachures. It makes it easier to understand in case of black and white photocopy! Using the base date cars and the command below as an e...
asked on 03.12.2018 / 14:08
2
answers

How to smooth a curve in the R

The goal is to get the data.frame x <- c(1e-04, 0.0014, 0.018, 0.24, 3.2, 42, 560, 7500, 1e+05) y <- c(0, 7, 10, 7, 0, -7, -10, -7, 0) df <- data.frame(x, y) The curve generated by library(ggplot2) ggplot(data = df, aes(x, y))...
asked on 03.03.2014 / 18:48
1
answer

Problem with printing HTML elements on the screen

I'm doing a software ( minigame ) that works with a deck. In the administrative panel of the same I need to view and consult the game deck. I perform a query in the database and, with the results returned, I print on the screen inside a ul...
asked on 09.01.2014 / 04:28
3
answers

Disable Auto Redirect after login in CakePHP 2.4

I'm using CakePHP 2.4 Auth and if I try to access a link that needs to login it redirects to the login form. For example: I try to access: / projects / edit / 34 without being logged in. Then CakePHP redirects to / login. After informing the...
asked on 08.01.2014 / 19:19
1
answer

How and when to use "Labels" in JavaScript?

On objects / JSON we use : for keys and values, for example: {x: 1} As discussed in What is the use of the colon in JavaScript? However, I was working on a small script to try to detect the JSON format before parse to avoid...
asked on 01.11.2017 / 20:58
1
answer

sealed class, with private constructor, versus static class

By "studying" this class , I checked that it is sealed and has the private constructor: public sealed class Interaction { /// <remarks> /// CA1053: Static holder types should not have public constructors /// </rema...
asked on 11.01.2017 / 16:25