Posts by Rafael Soufraz • 491 points
22 posts
-
2
votes2
answers384
viewsQ: Run callback on close android keyboard
I have a app running with Cordova and Ionic. In this app i would like to effect an action in particular controller when the keyboard closes completely. Today I’m using…
-
2
votes1
answer135
viewsQ: Pass extra parameters via gcm (google cloud message) - Cordova
When sending a notification to gcm, I added a parameter to the url named 'appUrl'. And I need, when opening my Cordova app, to pass this parameter to the index.html so that I can redirect my…
-
1
votes2
answers688
viewsQ: Difference of days javascript considering dates in different months
I need to pick the difference between two dates. However, in my business rule, the difference of 17/05/2014 and 17/05/2014 is 1 day. So I thought just adding a day in the final result would solve my…
javascriptasked Rafael Soufraz 491 -
2
votes1
answer146
viewsQ: Can the controller send an email?
In a controller called activities, I have a method called reminder. This method, receives an id, looks for that activity based on that id and sends an email to the moderator of that activity with…
-
2
votes1
answer106
viewsQ: Multiple foreach inserts in MVC
I have an application that receives several observations from a view and need to insert this into a table of observations. I want to know if in this case, controller is who makes the foreach and…
-
1
votes0
answers52
viewsQ: Distribution of responsibilities of an agenda module
In an application, I need to present a calendar/calendar, which is composed of events and locations. I’m using the concept of Positorios, where I store all queries to a particular entity. In this…
-
0
votes2
answers668
viewsA: Doubts about unitary tests
With merits to João Batista Neto - Web Developer at Imaster Okay, your question is about unit tests in general. You obviously didn’t understand the intention or the motivation to write tests. Unit…
-
4
votes2
answers668
viewsQ: Doubts about unitary tests
I am new to unitary testing and am in doubt in some basic applications. First: the focus of phpunit is to check if a return has an expected pattern. If yes, the test has passed. If not, it throws…
-
1
votes1
answer82
viewsA: Trace/path/process of a php commands on the computer
Here’s a post explaining exactly what I was looking for. http://derickrethans.nl/more-source-analysis-with-vld.html The VLD program displays the operating code (opcode) that a processor has to…
phpanswered Rafael Soufraz 491 -
0
votes1
answer82
viewsQ: Trace/path/process of a php commands on the computer
I’m interested to know what is done when PHP runs a echo or print (for example). I am interested to know what track/path/process it makes at the lowest level of "machine language". How it allocates…
phpasked Rafael Soufraz 491 -
2
votes2
answers40
viewsQ: Database normalization with 'parent services' and 'child services'
I am modeling a database which services belong to a category (used in most cases). Currently, categories are defined in the service table itself with a 'level' flag where I say whether that record…
-
0
votes1
answer193
viewsQ: Values that are calculated, if you store the value with the calculations in the database?
I am developing a system where a product undergoes 3 changes before reaching its final value: Individual Discount, Selling Bonus and General Discount I want to know if, I should store only the…
-
3
votes2
answers8689
viewsQ: When to use address table in database
I’m developing a system where several entities will have address. Example: the school has address, the student has address, the teacher has address, the suppliers have address and etc. I’m willing…
-
2
votes1
answer2588
viewsQ: Mysql server cannot start in Centos
I cannot perform any operation in Mysql as it gives error of: Starting Mysqlcouldn’t find Mysql server root@server2 [~]# /etc/init.d/mysql status MySQL is not running, but lock file…
-
2
votes1
answer186
viewsA: cannot load such file -- config/boot (Loaderror) - Redmine ruby
I solved the problem by uninstalling all the trash from Redmine, ruby, Gem and all the modules and reinstalling by following this:…
-
0
votes1
answer186
viewsQ: cannot load such file -- config/boot (Loaderror) - Redmine ruby
I had Redmine installed on a Ubuntu 12.04 server I decided to upgrade the Redmine to the new version. After following all the steps in this tutorial: http://goo.gl/yI0zE2 I’m getting the error…
-
3
votes2
answers845
viewsQ: List ignored files with git --assume change
I ignored some files in a git project and I just need to have control to know which ones were ignored or not. Will that at some point I need to change. I’ve tried all the commands below: 1116 git…
gitasked Rafael Soufraz 491 -
3
votes1
answer2666
viewsQ: Working with git in graphical mode in windows
I have git running on an internal network. I want to allow one of the stations to work on that server. I already managed the key on that station and added it to the server where git is. I already…
-
0
votes2
answers406
viewsQ: Error in bind server configuration
I followed this tutorial to install a dns server on my local network: http://goo.gl/vkVC0A My idea is to access intranet.empresa on the network pcs and fall on ip 10.0.0.220 which is a web server. I…
-
1
votes1
answer271
viewsQ: Send files via rsync setting user and group
I have the following script that sends files from a local folder to a remote server: rsync -Crav --exclude 'storage' --exclude 'error_log' --exclude 'database.php' --progress --partial --rsh='ssh…
-
8
votes3
answers12215
viewsQ: Calculate distances between two coordinates
I am using this function below to calculate the difference between two coordinates. Through google maps is reported a difference of 2 to 3km. But the function is returning me the result…
-
0
votes1
answer1025
viewsQ: Package duplicity error updating Ubuntu 14.04
In Ubuntu 14.04, I am trying to update the Repositions with apt-get update. However, stop at the duplicity error below. I’m doing the procedure to install phpmyadmin. Thanks for your help. # apt-get…