a.kozubenko

1

votes
1

answer
56

views

add link in ActiveAdmine to show action

Please help to understand how to add link to show in active admine. My code now show do |ad| attributes_table do row :title row :slug row :short_description row :categories do ad.categories.pluck(:name).join(', ') end row :image do image_tag(ad.image.url(:custom), style: 'width: 50%') end...
a.kozubenko
1

votes
3

answer
36

views

Delay when animation was done

I'm new in HTML, CSS, sorry if my question is not professional. I tried to find information about delay after animation but without results. Only before. My question is: I have two buttons and div, when mouse on div - buttons should be shown - I resolved it with visibility and hover. but I need dela...
a.kozubenko
1

votes
1

answer
46

views

can not add onmousemove

I have next table: div class='container'> and during creating new column with function function appendCol() { var tbl = document.getElementById('myTable') var tr = tbl.getElementsByTagName('tr'); for (i = 0; i < tr.length; i++) { var td = document.createElement('td'); td.onmousemove = changeG...
a.kozubenko
1

votes
1

answer
2k

views

AWS, Credential must have exactly 5 slash-delimited elements,

During executing eb init on Ubuntu 16.04 I faced an error Credential must have exactly 5 slash-delimited elements, e.g. keyid/date/region/service/term,. I understand that my keyid has slashes but they must be there, key was provided by AWS and it is generated. I have no idea how to skip this validat...
a.kozubenko
4

votes
0

answer
28

views

PostgreSQL INSERT from SELECT limit

I have a INSERT query and expected 400k rows to be inserted. But after execution I have 257k inserted. My expectation from this query SELECT count(*) FROM daily_checkups WHERE pig_migration_count = 0 result is 400k Can somebody explain me, why after insert I have less rows? insert(
a.kozubenko
2

votes
1

answer
572

views

Need to dynamically change position for button

Maybe someone can help me with my application. I have a square and 4 buttons (plus row, minus row, plus column, minus column). Square What I need now for ' left minus button (row)' - when mouse are located on second row minus button should be near second row, if first row - near first row, etc. My s...
a.kozubenko
2

votes
2

answer
94

views

Changes were not applied in CKEditor

I tried to change CKEditor configuration. What I need - my tag now do not stay after update post, and CKEditor automatically deletes it. I tried to reset caches - does not help. My new line in config.js: CKEDITOR.dtd.removeFormatTags['i'] = false; My code before saving:       My code, when I...
a.kozubenko
2

votes
1

answer
515

views

How to add a conditional to show in ActiveAdmin

I have a task. Show a different field depends of my object parameters. For example for my form if message_type of current object = 'custom' I will show one inputs if not - another. Here is a code what works now: form do |f| if f.object.new_record? || f.object.message_type == 'custom' f.inputs do...
a.kozubenko
2

votes
1

answer
1.1k

views

splice in Immutability Helpers

Please tell how can I write the same but without indexes before splice. Is it possible? var a = [[1,2,3],[1,2,3],[1,2,3],[1,2,3]]; let c = update(a, {0:{$splice: [[0,1]] },1:{$splice: [[0,1]] }, 2:{$splice: [[0,1]] }, 3:{$splice: [[0,1]] }}) console.log(c) link jsfiidle I need delete one element fro...
a.kozubenko
2

votes
1

answer
2k

views

How to locate text in Paper Material-UI

I tried to make vertical center for Paper from material-ui. My code is bellow const style = { height: 150, width: 150, margin: 20, textAlign: 'center', rounded: true }; render () { let { currentTime, isRunning } = this.state; let stopWatchTime = this.showCorrectTime(currentTime); let butto...
a.kozubenko
3

votes
1

answer
1.1k

views

How to disable css modules for one file in webpack

I need to disable css modules only for one file. Please explain how can I do it I have two webpack files Please help to configurate my webpack.config.dev.js and webpack.config.prod.js files. I installed css modules with tutorial https://medium.com/nulogy/how-to-use-css-modules-with-create-react-app...
a.kozubenko
2

votes
2

answer
59

views

How to calculate the number of a day in series of consecutive dates?

I have a table id name created_at 1 name 1 08/01/2017 2 name 2 08/02/2017 3 name 3 08/03/2017 4 name 4 08/05/2017 5 name 5 08/06/2017 6 name 6 08/07/2017 7 name 7 08/10/2017 8 name 8 08/12/2017 I need to add a column where be rank for all rows, but if they were created fr...
a.kozubenko
3

votes
1

answer
40

views

How to check hstore key changes in Rails

I have hstore column (email_subscribing) in model. And have strore_accessor I want to check changes of one key from this store on after_update callback store_accessor :email_subscribing, :common_users_list, :admins_list, :caretakers_list, :tenant_admins_list, :managers_list aft...
a.kozubenko
5

votes
0

answer
742

views

TypeError: Object(…) is not a function first webpack runing

I try to run my application based on webpack and during first run I got error. Uncaught TypeError: Object(...) is not a function at Object. (main.js:75) at __webpack_require__ (main.js:20) at Object.defineProperty.value (main.js:63) at main.js:66 (anonymous) @ main.js:75 __webpack_require__ @ main.j...
a.kozubenko
2

votes
1

answer
5k

views

text-align for material ui

I can not center my inside div. Please help I locate and inside div and gave with css: .timerArea { text-align: center; } For Button it works but for Paper - no. Style for const timeArea = { height: 150, width: 150, textAlign: 'center', rounded: true, paddingTop: 65, backgroundColor: '#76D8E3',...
a.kozubenko
2

votes
2

answer
2.4k

views

How to run eslint in create react app

Help to run eslint in create react app. I created react app with tutorial Then I installed babel-eslint standard snazzy and then I added to script in package.json next line 'lint': 'standart --verbose | snazzy' and now I tried to run eslint with command: npm run lint but I have an error Parsing err...
a.kozubenko