Posts by Pedro Soares • 1,136 points
75 posts
-
1
votes1
answer77
viewsQ: Project shared with Cmake
I have a project with the following extrusion: Projeto A: | CMakeLists.txt | main.cpp | #include "ProjetoB/ClassB.cpp" | #include "ProjetoC/ClassC.cpp" | vendor/ | Projeto B: | CMakeLists.txt |…
-
0
votes0
answers77
viewsQ: With do Eloquent is not bringing any value
I am using Laravel 5.2, I am trying to make a 'Join' n to m with the 'With' of 'Eloquent' but it does not return any value, even if they exist in the database. Class Pessoa: class Pessoa extends…
-
1
votes0
answers168
viewsQ: Fastcgi with C++ and NGINX
I am trying to make a small server for study using fastCGI with C++ without using any library. My problem is that via socket NGINX even connects but does not give me any information about the…
-
1
votes1
answer328
viewsQ: Transfer JSON table columns in Postgres Trigger
I am creating a Trigger in Postgres and would like to turn all columns into JSON to insert in a single column of table 'LOG', I would like to turn for example 'OLD.*' into JSON and add it in column…
-
1
votes0
answers179
viewsQ: Pagseguro and Pagseguroconfigwrapper
I am working with Pagseguro in Laravel 5.3, the problem is the Class Pagseguroconfigwrapper that I need to generate to make the authentication, i do all the steps described in the documentation and…
-
0
votes1
answer95
viewsQ: Libraries in Cmake as a project submodule
I am developing a C++ project where I make use of some libraries that I produced earlier, the problem that I don’t know how to import them in this new project of mine without putting the full path…
-
1
votes2
answers584
viewsQ: Python socket keeps open even using Close
I have a Python App that uses Socket, this App runs on XBMC’s Kodi, and when I close the App I would like to close the Socket and take down customers, the problem is that even I using…
-
2
votes1
answer507
viewsA: Why can’t I get the data from the ajax request? (json)
This is because the data variable is not a JSON object but a String. To transform it into an Object the Javascript parse JSON is used this way: function maisDetalhes(id){ $.ajax({…
-
2
votes2
answers982
viewsQ: Linearlayout Over Other Linearlayout
I have a layout in Android Studio that I would like to have on another layout, but I can’t do it in any way. I would like you to be on top, because it is a menu that appears when someone presses the…
-
0
votes1
answer122
viewsQ: Popover menu IOS Swift
I’m trying to make a menu PopOver similar to that of the WhatsApp but without success. I wanted to make a menu similar to the one below. The only menu PopOver what I can do is with the white…
-
0
votes1
answer40
viewsQ: Uipageviewcontroller Update Content and Bounce
Have a Page in my application that works with Uipageviewcontroller, in it I implement the Uipageviewcontrollerdatasource. So I have a list of items that are listed in various views, the problem is…
swiftasked Pedro Soares 1,136 -
0
votes1
answer157
viewsQ: Change APP icon in IOS Runtime
You can change the app icon at runtime. Because I have an APP that will be used by several customers, I would like to change the name of the APP and the icon when the customer logs in. I’m currently…
-
0
votes1
answer1471
viewsQ: Merge different columns in the same result
I am trying to generate a SELECT in Postgresql that joins columns of different tables in the same column of the result. Example: Usuario ----------------------- | id | nome | regra |…
-
0
votes1
answer88
viewsQ: Socket C++ Read Error
I am developing a program in C++ using Socket, the problem is that when the client sends some information to me I do not receive. In fact the program hangs. #include <iostream> #include…
-
0
votes1
answer128
viewsQ: Error importing class C++
I am trying to use a library in my C++ project with CMAKE, the problem that the library is loading the System class, and not my class that has the same name only the namespace that changes. It is as…
c++asked Pedro Soares 1,136 -
2
votes2
answers102
viewsA: Protect Class for namespace c#
I solved the problem as follows. I used the Internal type instead of protected, as I will only make available the library DLL, who will implement it will not be able to instantiate or have access to…
-
4
votes2
answers102
viewsQ: Protect Class for namespace c#
I am developing a C# application for Unity 3D where it will manage several types of database (Mysql, Postgress...), the problem is that I have classes that manipulate each type of database within my…
-
1
votes0
answers98
viewsQ: Laravel 5.2 Redirect::back()->with and Redirect::back()->withErrors does not work
I have already developed several applications with Laravel. The problem arose when suddenly in version 5.2 the Redirect::back()->with and Redirect::back()->withErrors command stopped working.…
-
1
votes1
answer319
viewsQ: Mongodb extension not found in PHP 5.6
I am developing an application in PHP 5.6 with Laravel 5.2 using Mongodb. The problem arose when I decided to upgrade my Mac to El Captam in a clean installation, because when I installed PHP 5.6…
-
2
votes1
answer55
viewsQ: Multiple Cmake in one project
I am developing an application in C++, where I need to use a library I have developed before with Cmake. But I don’t want to call the binary directly because each platform will have to have a binary…
-
0
votes2
answers90
viewsA: C - Openssl (d2i_RSA_PUBKEY, d2i_RSAPrivateKey and d2i_RSAPublicKey)
The first parameter of d2i_RSAPublicKey cannot be null, it has to be an RSA pointer. RSA *rsa = RSA_new() ; d2i_RSAPublicKey(rsa, &public_key_bytes, public_key_length);…
-
0
votes1
answer664
viewsA: Pass Class Name by C++ parameter
I solved the problem as follows. Create a Control Class and Inherit it in the Authentication Class and other controls. I pass an instance of it via parameter and call it when necessary as well as…
c++answered Pedro Soares 1,136 -
1
votes1
answer253
viewsA: Java crashing on windows server
I’m not an expert on Java EE, but from what I’ve been reading on the Internet, some versions of Glassfish happen exactly the same problem, but nobody knows why. So I’ll summarize the steps I found…
javaanswered Pedro Soares 1,136 -
1
votes1
answer664
viewsQ: Pass Class Name by C++ parameter
I am having a problem, I need to pass the name of a Class via parameter, so that the function can create a new instance, this Class is daughter of another Class called Control. The problem is that…
c++asked Pedro Soares 1,136 -
0
votes1
answer270
viewsQ: Regex with STD::REGEX in C++
I am developing a C++ system that I need to get some information from a String using Regular Expression, I am using a regular expression that I used in PHP perfectly, but in C++ returns blank. const…
-
4
votes1
answer264
viewsQ: Performance difference between static and shared library
Which is the best performance? Compile the program using libraries such as Mysql Connector and Sqlite as Static (staying inside the compiled binary) or as Shared being separated from binary. In…
-
0
votes0
answers24
viewsQ: PHP extension with Windows EMIT error
I am developing a PHP extension with Visual Studio 2015. I followed a tutorial and everything worked perfectly, the problem started when I tried to use the variable Std::string. When I do the string…
-
1
votes0
answers112
viewsQ: Compile PHP-CPP extension on Windows
I’m trying to develop a PHP extension with PHP-CPP on Windows. I was able to compile . a and . so of PHP-CPP with Mingw, however, when I compile the extension it does not find phpcpp. h. My File…
-
0
votes0
answers96
viewsQ: Slow to load Mongo image with PHP
I am developing a system that uses Mysql as a database and Mongo BD for image storage. The problem is that the images loading is very slow. OBS: I am using Laravel 5.2. Function that loads image:…
-
3
votes2
answers1807
viewsQ: "Class 'Mongoclient' not found" error
I recently installed in my Macbook Mongodb, I installed the extension in native PHP, which I am using together with native apache. The problem is this, if I run the web page on Apache I get the…
-
1
votes0
answers49
viewsQ: DP-20 serial printer with PHP
I’m building a script that prints Cheque with the DP-20 printer using PHP. But I can only find tutorial using their DLL, nothing via serial port. Does anyone know how to do this only with the serial…
-
1
votes0
answers29
viewsQ: Xcode 7 Swift Local Network Audio Chat
I am developing a simple application in Swift that can make "connection" in the local network, without use of external server, I have worked with socket in C++ where I stream images from the…
-
1
votes1
answer50
viewsQ: PHP-CPP Compilation Version
I have a problem with an extension I am compiling in PHP-CPP, because when I compile on my Mac, the local version of it is 20121212, but my Xampp is version 20131226, the problem is that in each…
-
2
votes1
answer112
viewsQ: PHP-CPP Include file inside extension
I am developing a php extension with PHP-CPP, where I need to make a include of a php file within the extension, I am doing this to protect the code. I’m trying this way: Php::Value HomeController…
-
3
votes0
answers99
viewsQ: Jquery Mask with 8 or 9 digit phone
I am using Mask in Jquery to format the phone field with 8 hi 9 digits, but unfortunately I can only leave 8 or 9. If I leave 9, when the user type 8 it erases the whole field, does anyone know how…
-
0
votes1
answer94
viewsQ: QML Camera does not get FULL SCREEN
I’m developing an app that requires the front camera to occupy the entire background screen, like the Snapchat app, but using QML the camera with spacing above and below the camera. QML Responsible…
-
0
votes3
answers93
viewsA: Error "Class Swift_keycache_simplekeycacheinputstream does not exist"
I solved my problem with the following way: I searched the classes that were missing in my project in the folder vendor and found that they were a blank php file, so I downloaded the Swiftmailer…
laravelanswered Pedro Soares 1,136 -
1
votes3
answers93
viewsQ: Error "Class Swift_keycache_simplekeycacheinputstream does not exist"
I’m trying to email with Laravel 5.1, but I always get the message below. Reflectionexception in Dependencycontainer.php line 309: Class Swift_keycache_simplekeycacheinputstream does not exist My…
laravelasked Pedro Soares 1,136 -
1
votes0
answers94
viewsQ: Detect When user disconnects Socket TCP Asynchronous C#
I am developing an Asynchronous TCP server in C#, but not how to make my system detect that the user disconnected or was disconnected for some reason and perform a procedure for removing it from the…
-
3
votes2
answers127257
viewsA: Put a background image and make it responsive
tried using the background-size in this way? background-size:100% 100%; or so: background-size:auto 100%; You can also use this mode: html { background: url(images/bg.jpg) no-repeat center center…
-
0
votes1
answer103
viewsA: Socket Asynchronous C# receiving more than one message at a time
I solved my problem as follows, as I always received several Jsons together, I checked if there was the end and start of the keys, if yes, I transformed the simple JSON into a List, and so I was…
-
1
votes1
answer103
viewsQ: Socket Asynchronous C# receiving more than one message at a time
I am developing a C# Dll that works with Socket TCP Asynchronous for the development of some tools I am working on, the problem appears when the client receives many messages in a short period, in…
-
1
votes3
answers751
viewsA: Problems with uploading images in PHP
For some obscure reason in my web server I need to put [0] in tmp_name, because it returns me an array, in your case it may be necessary to remove it. <?php $binario =…
-
1
votes1
answer1261
viewsA: Access webcam to take photo
I’ve done this using some Dlls from windows itself. See if it helps this class I own: NOTE: There is a lot of junk because I didn’t have time to organize the code because I found a more viable way…
-
5
votes0
answers180
viewsQ: Qcamera Windows "failed to start"
I made an application with QT where I make the instance of a Camera with QT and display it in the window. So far so good, the problem is that when I want to display it in another window (Qdialog) I…
-
0
votes1
answer224
viewsQ: Signal and SLOT C++ with QT
I am developing a software in c++ that captures images from Webcam, before I used Opencv but received an error Undefined Symbols for Architecture x86_64 Until I opened a topic here and nobody knew…
-
8
votes1
answer211
viewsQ: QT + Opencv on Mac Os 10.10.3 with error: Symbol(s) not found for Architecture x86_64
I recently installed Qt Creator and Opencv. I was able to easily compile QT and Opencv separately. But I can’t compile both together. My file .pro is like this:…
-
0
votes0
answers794
viewsQ: Computer screen stream with C#
I’m having a problem with streaming the computer screen with C#, I’ve done the software where the server would create a TCP socket and the client would send a print of it in Bitmap form. But the…
-
1
votes1
answer101
viewsQ: Error compiling Monodevelop Project
I’m developing an application with C# in monodevelop, everything was going great, until when I extend the Form class and get the following error:…
-
3
votes1
answer162
viewsQ: Unity 3D (5) Locking on IOS
I’m developing a game in Unity 3D, but when I run it looks great on PC , Android, browser, Linux, Windows, but when I run on IOS, it keeps crashing. I put only one cube and kept crashing. NOTE: I…