Posts by brazilianldsjaguar • 3,303 points
103 posts
-
12
votes4
answers23451
viewsQ: How to convert seconds to "Hour:Minute:Second" format?
How can I convert a value in seconds to a format of 'hours:minutes:seconds'. Example: 685 converted to 00:11:25 As I can do?
-
1
votes3
answers1130
viewsA: Webbrowser - Click on elements of a website
Using the code: WebBrowser1.Document.All.GetElementsByName("") You’re taking all the elements from the page that has the name attribute of "". That is to say: <div id="id"…
-
3
votes3
answers29883
viewsA: DIV/IMG with blurred/blurred background
For modern browsers, use the CSS attribute opacity to see images or other things with transparency: div { opacity: 0.8; //1.0 = totalmente opaco, 0.0 = totalmente transparente } To see a blurred…
-
0
votes1
answer689
viewsA: Carousel with wordpress loop in columns
Taking the code you showed me you’re using as your example: http://bootsnipp.com/snippets/featured/infinite-carousel-loop The main code is this: <div class="item active"> <div…
-
3
votes2
answers118
viewsA: mysql deprecated
Often, when searching for help on internet sites, they give examples as you saw, using old technologies that have already been discontinued. The mysql_connect(), and all functions mysql_* fit into…
-
2
votes2
answers1084
viewsA: How to loop posts in Wordpress?
Apparently there are some posts that have photo that is 2x1, and others that have photo of 1x2 (I refer to these photos): In addition, there are 3 columns. Bootstrap can do this easily: <div…
-
3
votes1
answer77
viewsA: Ajax and php protection
The only thing I would recommend is using some kind of nonce. A nonce is a number that is used only once (for example, a GUID). When the page is created, also create a nonce with a certain key. When…
-
2
votes1
answer59
viewsA: Select multiple to avoid 2 database queries
You can make an appointment like this: "SELECT user_1, user_2 FROM usuarios WHERE '" . $_SESSION['usuario'] . "' IN ( user_1, user_2 ) " . "AND estatus = 2" This query returns any user who is on…
-
1
votes1
answer45
viewsA: Search value within Google url
Try using regex like this: preg_match('file\/d\/(.*?)\/preview', $urlGeral, $valores); Also, remember that using the "$variavel" PHP, PHP puts exactly what the variable has into the string. That is,…
phpanswered brazilianldsjaguar 3,303 -
0
votes3
answers697
viewsA: How to box up when logged in
After logging in, you can save a data to $_SESSION. Then you can check if this value exists using a if() and isset(), as suggested by @Allex. function logar() { $_SESSION['logado'] = true; } /* ...…
-
0
votes2
answers176
viewsA: Retrieve data/text from other websites with PHP
Direct access to the data of a website that does not have an API or web service is very difficult (and could even be fraud). @Giancarlo mentioned a very good solution, being this access to an API.…
phpanswered brazilianldsjaguar 3,303 -
8
votes2
answers33846
viewsA: Passing JS values to another HTML page
Using the new HTML5, it is possible to write data (only of type string) no client, no need to use any server language (ASP.NET, MVC, PHP, etc.). HTML5 has several Storage modes (support for these is…
-
0
votes2
answers74
viewsA: Site does not load in full
When one site works in one place but not the other, it is good to check some things: All files were transferred to the target server? The server has access to read these files? Configuration data…
htmlanswered brazilianldsjaguar 3,303 -
2
votes3
answers496
viewsA: Mysql Friendly URL
What you describe is a desire that many people have when creating a site. Fernando Medeiros' answer is quite useful and simple, basically speaking use the ID, don’t worry. I agree with that, and I…
phpanswered brazilianldsjaguar 3,303 -
4
votes2
answers247
viewsA: Doubt about Security, Authentication and Authorization
If I understand your problem correctly, it’s that Roles cannot be predefined. I also imagine that you will be able to have a way to add new Roles at ease (as you said, a user Master creating the…
-
4
votes1
answer225
viewsA: Dropdown with Jquery/Ajax only sends data in the first record
Are all Dropdowns created with the id of tipoSel? The id of an element must be unique in the. would use a class, creating a dropdown like this: <select class="tipoSel"> <option…
-
1
votes1
answer249
viewsA: Split and search messages by older and newer
By adding a column to your table, you can sort at will using the SELECT, without even touching each record in the table. For example: ALTER TABLE tabela ADD data_enviada DATETIME; Then you could…
-
2
votes3
answers1923
viewsA: How to fetch a file in all folders
I believe your attempt, using Directory.GetDirectories() is the right start. If you are knocking ahead with access exceptions, you will need to Permissions when you’re doing - for example, using the…
-
1
votes1
answer178
viewsA: noClonflict() jQuery - No longer works
Tries to pass the jQuery.noConflict() for your IIFE (and remove the var $j = jQuery.noConflict() of the overall scope): <script> (function ($j) { /* código ... */ })(jQuery.noConflict());…
-
2
votes2
answers177
viewsA: Tag <code> recognize language (Wordpress)?
Inside a website, you will need some library to be able to "underline" or style your code. In this aspect, there is the https://highlightjs.org/, which is a javascript library that can color your…
-
3
votes3
answers101
viewsA: Is there any justification for this change? Change in variable pattern
Generally, there is no justification to counter the established standard. If the project is using 100% int, long, and short, continues to use, even with Int16, Int32, and Int64. Now, I think the…
-
0
votes4
answers3696
viewsA: Multiple Bootstrap Alerts
I know it’s not a direct answer, but I’ve been very successful in using Bootbox.js. It is quite useful in cases like this, where you want a similar message to appear alert() but want to use the…
-
4
votes5
answers1506
viewsA: Read XML file in C#
You’re first picking up all the tags <orcamento>. Then picking up all the <orcamentoitem>, regardless of what budget they fit. If you do this: XmlNodeList xmlPreVen =…
-
0
votes2
answers723
viewsA: SQL SERVER and Active Directory integration
Unfortunately, Active Directory cannot use a third party database. This way, you cannot configure it to use your own. Looking quick, Active Directory has some things that programs can use to…
-
1
votes1
answer424
viewsA: Connection via PHP to an SQL Server 2012 database
If on your host you are limited to extensions, I would resolve this using normal PHP to contain a service exposed on Amazon. It would be a Webapi made on top of the SQL database, which PHP could…
-
2
votes1
answer849
viewsA: How to select a port to connect to SQL-Server Remote
In his connectionString, puts a comma after the IP/server. For example: <connectionString Server="128.0.0.1,6000" ... /> Thus, you are specifying exactly the port to container. Now, if the…
-
3
votes5
answers61683
viewsA: Using line break " n" in Java
As others have said, it is not all systems that interpret the End Of Line also. For example, once my file hosts in Windows had, one way or another, if saved with \n and not \r\n. What happened was…
javaanswered brazilianldsjaguar 3,303 -
1
votes5
answers1056
viewsA: How do I connect Windows Phone to an SQL Server?
In this case, the Windows Phone app can make an HTTP call to a Web API. On the server, you can make a project Web API. Microsoft has many features about Web API, how it works, and how to make one.…
-
0
votes4
answers1075
viewsA: Jenkins can’t authenticate via SSH in Git
I don’t know exactly how to fix it, but looking good on Console Output, it’s marked using GIT_SSH to set credentials, but you are putting the authentication data in the Jenkins configuration. Will…
-
5
votes3
answers22986
viewsA: How to add +1 in a counter variable to each click?
I could do something like this: HTML <button id="count" data-valor="5">Clique Aqui!</div> jQuery $('#count').click( function ( ) { var valorVelho = this.data('valor'); var valorNovo =…
-
1
votes1
answer128
viewsA: How to specify the enctype of a Gravity form?
I managed to solve my problem. It is simply to use the hook gform_form_tag_{form_id} inside my plugin. This hook can be used to put anything you want inside the <form /> (being parameters).…
-
2
votes1
answer128
viewsQ: How to specify the enctype of a Gravity form?
I am using Wordpress with Gravity Forms. I have a form that I am using to submit data to a third party website. The detail, this site is waiting for the data to be sent in the form…
-
1
votes3
answers2228
viewsQ: How to make a simple square on Android?
Can you make a square full of one color without all the complications? I say complications, because the examples I see here on the internet requires you to create another class, inheriting from the…
androidasked brazilianldsjaguar 3,303 -
5
votes1
answer2375
viewsQ: What is Rameter Sniffing?
I’ve heard of Parameter sniffing. Something to do with SQL Server, stored procedures, and parameters. But what exactly is?
-
4
votes4
answers30736
viewsA: Permission error when trying to access database
I already faced this error. Is root configured to use a password even? Can you test this hypothesis by typing this: mysql -h localhost -u root Obs.: you don’t have the option -p to give the password…
-
4
votes8
answers7830
viewsA: Is giving a "SELECT" before an "INSERT" a safe way of not having duplicate records?
When it comes to multiple connections to the same database, with data being sealed and entered all at the same time, you have to really worry about transactions and when a certain group of data will…
-
2
votes2
answers1688
viewsA: 1005 - Can’t create table '' Rrno: 150
William’s answer is right. When I write scripts like this to create tables, I first put the tables 'parents', and then write the tables daughters. Therefore, the script will not give these common…
-
1
votes6
answers52587
viewsA: How do I use a database on an HTML site?
Depending on your goal, the Wordpress is a widely used platform, and uses the database. The good thing about Wordpress is that the use of the database is "behind the curtains", IE, you do not need…
-
0
votes3
answers838
viewsA: Custom tool Warning: Cannot import wsdl:portType
As Raul mentioned, the first Warning is a ' (space) that is in a parameter called "name". Looking at the other details in the messages, highlight this excerpt: /wsdl:portType[@name='WebService…
-
0
votes4
answers3156
viewsA: How do I create an sql view with more than two tables?
The utluiz answer is quite right. However, there are some important things to understand about views in Mysql. Here at this link (in English), explains when you can make a UPDATE for a view. It is…
-
6
votes3
answers14931
viewsA: How to style <select> tag
The tag <select> is not included in the elements available for styling. In this case, the pseudo-classes :hover, :focus, etc. will not work either. The best way to 'modify' this little arrow…
-
4
votes5
answers29661
viewsA: How do I know if a column exists in an SQL Server table?
One simple way I found is to check the 'greeting' (length) of the column - because the function returns NULL if the column does not exist. (This is for SQL Server 2005+) USE meuBanco GO IF (…
-
15
votes5
answers29661
viewsQ: How do I know if a column exists in an SQL Server table?
I am trying to add a new column to an SQL Server table, and I want to know if it already exists or not. I have tried something like this: IF EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE…
-
10
votes5
answers7848
viewsA: What is the difference of string vs string?
As explained by John Skeet at Stack Overflow in that reply, there’s a case where you need to use the alias instead of the System.<obj>, when explicitly declaring the type of a enum. For…
-
2
votes1
answer208
viewsA: How to catch the grandfather of a term in taxonomy in Wordpress?
You can do something similar, which I took from a reply Stackexchange’s own Wordpress: // determine the topmost parent of a term function get_term_top_most_parent($term_id, $taxonomy){ // começa do…
-
4
votes4
answers2731
viewsA: Is it possible to change the mouse cursor color via CSS?
Unfortunately, the cursor is a property of the OS itself (Windows, Linux, Apple). Through CSS, you can modify the guy cursor, but not the color as the color is set in the OS settings. That’s why the…
-
1
votes3
answers424
viewsA: Server.Mappath fails within Global.asax
The HttpContext is only available when someone makes an HTTP call (like going to the site through a browser). In this sense, it is not possible to use the function as described, in the place where…
-
1
votes2
answers483
viewsA: How to show the files that need to be commited?
If you want a way to do this using a GUI, the Git Force is a program that works on Linux. Stack Overflow in English also has an answer that discloses several alternatives for user on linux here.…
gitanswered brazilianldsjaguar 3,303 -
2
votes2
answers747
viewsA: EF6 Code First Relation between entities
In class Proprietario, puts a constructor that initializes the ICollection<Fracoes>. For example: public class Proprietario { public Proprietario( ) { Fracoes = new List<Fracao>( ); }…
-
3
votes7
answers180098
viewsA: Format decimal places directly in the SQL command in Firebird
Configured Firebird 2.0 here on my system, I created a table with QTDE, with DECIMAL(15,3). I have inserted 4 numbers, 10.521, 11.11, 65, and 65.88. After that I made SELECT * FROM tabela;, and…