Vic Seedoubleyew

0

votes
0

answer
6

views

Erratic Google Cloud Function when running a shell script

I am trying to run a shell script on a Google Cloud Function. I am using Node as the framework, and have tried different ways to run the script: execSync, execFileSync, spawnSync, etc: try { const output = require('child_process').execSync(__dirname + '/run.sh', [], { stdio: 'inherit', shell: '/bin...
Vic Seedoubleyew
1

votes
1

answer
1.4k

views

How to get php logs on 1and1 hosting

I am hosting a web application on a 1and1 Basic plan. I have tried setting up php error logging, by following their instructions, and thus have set up php.ini as follows : error_reporting = E_ALL | E_STRICT log_errors = On display_errors = Off error_log = /homepages/31/d704704531/htdocs/logs/php-e...
Vic Seedoubleyew
1

votes
2

answer
250

views

MySQL add unique constraint on columns from multiple tables?

Here's an example for what I am looking to do : I have 3 tables : Villages (id, name) Households (id, village_id) Persons (first_name, last_name, household_id) I would like to make sure there isn't 2 persons who have the same first name and last name in the same village. Basically I would like to d...
Vic Seedoubleyew
6

votes
3

answer
2.6k

views

How to outsource password and account management to a third party?

I read that storing passwords yourself, handling lost passwords and accounts etc, is a complicated process, and involves a lot of work if you don't want to take security risks. I am building a website for which security is very important. I thought it would be good to start with not trying to handle...
4

votes
2

answer
49

views

Save work into several commits

Most of the time, when doing some work, one ends up with changes that should be saved into different commits. I am looking for best practices for how to do that in a good way. Of course, the basic answer is to use git add -p. The problem with that basic answer is that it doesn't enable to test a giv...
Vic Seedoubleyew
4

votes
2

answer
2.5k

views

Installing Chromium on Amazon Linux

I am trying to install Chromium (or Chrome, whichever) on an Amazon Linux machine. I have tried many steps, to no avail. Here is what I have tried: Simple Yum Install yum install epel # worked yum install chromium generated error message: Error: Package: chromium-31.0.1650.63-2.el6.x86_64 (chr...
Vic Seedoubleyew
2

votes
3

answer
162

views

Testing unit tests' helper methods

As I am writing tests, some of them have a lot of logic in them. Most of this logic could easily be unit tested, which would provide a higher level of trust in the tests. I can see a way to do this, which would be to create a class TestHelpers, to put in /classes, and write tests for TestHelpers alo...
Vic Seedoubleyew
1

votes
2

answer
576

views

How to watch a change in Gerrit

I have made a pull request on my organisation's Gerrit. For some reason, I didn't get notified of a review or a comment on this proposed change, and it doesn't appear as watched by me. How can I watch it, to be notified ?
1

votes
1

answer
523

views

Error signing pdf with PHP's openssl_pkcs7_sign

I am using TCPDF to generate a pdf document and sign it. TCPDF itself just calls PHP's openssl_pkcs7_sign function, which seems to me to be calling C's PKCS7_sign function based on source code. Until recently things were working fine. Then I changed certificate provider. I just updated the private k...
Vic Seedoubleyew
3

votes
1

answer
1.3k

views

Writing jsdoc documentation on methods inside a class

I am writing some libraries in Google Apps Script and I am trying to document them. I have written some classes in the format below, and the comments of methods inside the class don't show up in the documentation : /** * My comments here */ function MyBeautifulObject(){ this.myMethod=myMethod; .......
Vic Seedoubleyew
2

votes
1

answer
126

views

The '--lang=en_US' Chromium switcher contains unsupported language value

I am using JxBrowser 6.14, and I get this error when starting a jxbrowser instance: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to start IPC process. at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:190) at java.lang.Thread.run(Thread.java:745) Caused by: java.lan...
4

votes
3

answer
785

views

Why declare a variable as a wildcard type

In the Java tutorials, it is sometimes written things like this : Set unknownSet = new HashSet(); While I understand the benefits of using type parameters and wildcards in class definitions and methods, I am wondering the following: What are the benefits of giving a variable a type that comprises a...
Vic Seedoubleyew
1

votes
1

answer
447

views

Align JButton icon to the left and keep text centered

I would like to set up a JButton so that it's icon is aligned to the left of it, while the text is centered. I have found how to have one of them left, the other right, or both at the same setting, but I couldn't find what I am looking for. Of course I can always redefine the paint methods, but I...
Vic Seedoubleyew
2

votes
1

answer
300

views

Gradle failing to download dependency when HEAD request fails

I have set up a dependency in my Gradle build script, which is hosted on Bitbucket. Gradle fails to download it, with error message Could not HEAD 'https://bitbucket.org/....zip'. Received status code 403 from server: Forbidden I looked into it, and it seems that this is because : Bitbucket redirect...
Vic Seedoubleyew
2

votes
1

answer
24

views

What is the unit of ImageFont.textsize() returned values?

I am trying to use PIL to precompute the size that a given line of text will take at a given font and size. PIL seemed to be more or less the only working solution. I am not sure what is the unit of the returned value of font.textsize(..). The doc doesn't specify it. The reason why I am asking is be...
Vic Seedoubleyew
2

votes
1

answer
230

views

JDBC getObject on table user returns error : “access to class (class) is prohibited”

I am having a weird response while trying to get all columns of users in the table 'user' of my 'mysql' database. I am using Google Cloud SQL, accessing it from Google Apps Script with the JDBC class. Here is my code : function displayingOneUser(){ var connection = Jdbc.getCloudSqlConnection('jdbc:g...
Vic Seedoubleyew
8

votes
5

answer
17.6k

views

Detect user inserting row or column in a google spreadsheet and reacting in a script

In Google Apps Script, one of the basic tools is the onEdit trigger in a spreadsheet, which enables us to detect when a user edits a cell, and react to it. How about when a user inserts a row or column ? Is there a way to detect that ? Would that trigger an onEdit ? If so, I guess maintaining in th...
Vic Seedoubleyew
1

votes
1

answer
63

views

Send left square bracket using autoit

I have plugged a Mac French keyboard onto Windows. I would like to have the left bracket key work normally, meaning when typing Alt+Shift+(, even with left hand side modifiers. I have the following code : HotKeySet('!+{(}', 'LeftBracket') Func LeftBracket() Send('{ASC 91}') EndFunc But it doesn't wo...
Vic Seedoubleyew
111

votes
5

answer
269.8k

views

PHP - Failed to open stream : No such file or directory

In PHP scripts, whether calling include(), require(), fopen(), or their derivatives such as include_once, require_once, or even, move_uploaded_file(), one often runs into an error or warning: Failed to open stream : No such file or directory. What is a good process to quickly find the root cause of...
Vic Seedoubleyew