Posts by Iago Leão • 1,038 points
22 posts
-
0
votes2
answers86
viewsA: Problem downloading audio . wav Laravel 5.2
According to the documentation of the Laravel (documentation of 5.5, but compatible with 5.2) you better use it: Return Response()->download($pathToFile); Return…
-
2
votes1
answer217
viewsQ: Namespace does not work correctly / BC30002: Type 'Prod' is not set
I was invited to solve a problem in a client’s system in Asp.net (Language in which I do not dominate). Without further ado... My.aspx product file has the following directive <%@ Import…
-
0
votes1
answer52
viewsQ: Lowest index for multiple elements
By default jQuery always returns the highest index when the selector returns more than one element, as in the example below: <ul> <li>1</li> <li>2</li> <li…
-
0
votes1
answer155
viewsQ: Allocation of responsibilities in the MVC
I’m starting work with MVC, more specifically with Laravel and Eloquent (the ORM embedded in Laravel). I have studied and continue to study the MVC standard and its advantages. However, in practice,…
-
3
votes2
answers578
viewsQ: Slim routing does not work
I’m trying to use the Slim Framework following the documentation for the same, configured mod_rewrite and installed mcryp; If I call http://localhost/slim/books have: Not Found If I call…
-
4
votes3
answers269
viewsQ: How to reduce the capture of groups in a regular expression?
I have the following expression: /((segunda|terça|quarta|quinta|sexta|sábado|domingo)+(((-feira)?)+(.)+\(([0-9].*)\))?)/im That brings me: Show Trueque performs on Saturday at the CDL theater…
-
6
votes3
answers5650
viewsQ: Regular expression to pick up the value after the comma
With the following expression (,)([0-9]*) manage to catch the ,25 but would like to catch only the 25. decimal (10,25) In this case how can I disregard the ,…
-
2
votes2
answers5641
viewsA: Embed a private video of my Youtube channel on my website
The solution I found was: 1) Change private video setting to unlisted. 2) Create a flash to encapsulate and hide the Youtube video stream. Flash calls a PHP that brings the video URL if the request…
-
2
votes2
answers5641
viewsQ: Embed a private video of my Youtube channel on my website
I would like to embed on my website a video defined as private which is on my youtube channel. Reading the youtube documentation I believe that’s the DATA API or the API of Player My goal is to get…
-
-3
votes1
answer586
viewsQ: How to create a dll to use on Asp.net
it is worth noting that I am not programming Asp.net much less c# or something like that. But I had to support a system in Asp.net that consumes a . dll I needed to make a change to this dll. Can…
-
12
votes2
answers949
views -
3
votes1
answer13631
viewsQ: How to change the date format in SQL Server 2008?
Currently my seat is in YYYY-DD-MM format I would like to put in MM-DD-YYYY. I found the SET DATEFORMAT only it’s not the best option since I’ll have to add it to all the querys. Is it possible to…
-
2
votes1
answer244
viewsQ: Sublime Text Plugin - Automatically post files to another folder
Does anyone know any plugin for Sublime Text 2 that somehow publish the modified files in a given folder? Another app that has this feature is Dreamweaver.
sublime-text-2asked Iago Leão 1,038 -
1
votes1
answer890
viewsQ: Read Word file without losing formatting
How to read a Word file without losing formatting the same? Status: Client wants to upload a Word file and we store all this within the database as text (for future searches and similar). Note:…
-
1
votes2
answers601
viewsA: Problem with friendly url
Friends, manage to solve the problem, actually my problem is in the configuration file of the site-available, within the configuration node had a directive Multiviews, according to the advice of a…
-
4
votes2
answers247
viewsQ: Strange redirection
Even without the . htaccess and without the active apache rewriter module if I call meudominio.com.br/page it will search first.html page if it does not find it will fetch.php page. How do I disable…
-
2
votes2
answers601
viewsQ: Problem with friendly url
I am facing problems with friendly url on my website. My requests loop if I do this: RewriteEngine On Options +FollowSymLinks RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ sessao.php If I…
-
1
votes1
answer179
viewsQ: Rewriterule problems in apache 2.22 (in Digitalocean.Comm)
I use a cloud server called Digital Ocean. However I am facing problems while trying to create friendly Urls. I have activated the module rewrite through the command: sudo a2enmod rewrite and…
-
0
votes3
answers519
viewsA: Why can’t I connect to my Mysql server?
Friend, first of all I strongly recommend not using the mysql_* library, because soon it will be discontinued (deprecated), so there are some much safer alternatives including.…
-
39
votes9
answers12451
viewsA: How to prevent SQL code injection into my PHP code?
It is no longer recommended the use of mysql library will be discontinued in the next versions. So there are some solutions: http://br2.php.net/mysqli http://www.php.net/manual/en/class.pdo.php…
-
1
votes2
answers1755
viewsA: Problem with email with embedded image
Solved dude, I started using phpmailer, simpler and I don’t have to worry about header. Vlws!! Guys require_once('mail.php'); $database = new Database(); $pnt_not = $database->query("SELECT *…
-
2
votes2
answers1755
viewsQ: Problem with email with embedded image
I am trying to send email with image embedded in the text through the Boundary. In Gmail everything beautiful, as always, but in Outlook does not arrive the text in HTML and the image arrives as an…