Posts by Uilque Messias • 872 points
28 posts
-
0
votes1
answer1762
viewsQ: What steps to implement SSL/TSL in an ASP.NET MVC application
I am developing an ASP.NET MVC project and would like to know what are the necessary processes to implement TSL/SSL. I’m actually not sure if this is the best place to ask this, yet I imagine you…
-
2
votes2
answers8677
viewsA: Load full page by clicking link within Iframe
If you have access to the code HTML of the page in question, the solution is quite simple. Simply add an attribute target on the link with value _blank that in this case you open the link on another…
-
1
votes3
answers1764
viewsA: Compare two numbers and pick the biggest
You can change the regex to facilitate the search and then exchange the , for . (for the method parseFloat works in the standard en-US): $('.item').each(function() { var greaterValue = -99999,…
-
3
votes1
answer73
viewsA: Split widget on screen
You can do it like this: <LinearLayout android:id="@+id/horizontalLinharLayout" android:orientation="horizontal" android:weightSum="10" android:layout_width="math_parent"…
-
5
votes3
answers982
viewsA: GIT, display of branchs in bitbucket tree
Just do the merge without fast-foward. You can do this with the following command: git merge develop --no-ff. the --no-ff ensures that when merging, a new commit will be generated. If you want to…
gitanswered Uilque Messias 872 -
5
votes1
answer3678
viewsA: How to send data from an Activity to a Fragment?
Much like how you receive data via putExtra in Activity. First of all you need to refactor the method setupViewPager: private OneFragment oneFragment; private TwoFragment twoFragment; private void…
-
5
votes1
answer5066
viewsA: Failed to connect to github.com port 443: Connection timed out
There was a guy who had the same problem and then managed to solve it. He reported on ONLY version in English. I will post the answer here in a free translation: Well, we’ve done the following…
-
1
votes3
answers168
viewsA: Function calling other functions
You can place the validation at the moment the user tries to submit the data from form, then you do all the validation and if you have any error, just stop the data from being sent: <form…
-
6
votes2
answers122
viewsA: Run statement only if 5 conditions are true. Javascript
Simple, you use the if with or without { and }. It seems kind of obvious, but for those who are starting it is not so much, but most commands in the programming languages have a good translation…
javascriptanswered Uilque Messias 872 -
2
votes1
answer221
viewsA: Direct photo taking method of the application only works on some mobile phones
Without the error description it is very difficult to understand the problem and suggest a solution, but still, come on. What I imagine is happening, since it’s only on some phones, is that these…
-
0
votes4
answers2082
viewsA: Keep Ivs side by side even if the line runs out
You can use the overflow-x: auto to the div father and float: left to the divs daughters, still, you will need one more div auxiliary: .div-pai { width: 300px; overflow-x: auto; // isso faz com que…
cssanswered Uilque Messias 872 -
1
votes2
answers271
viewsA: jQuery with Internet Explorer
Since you are wearing jQuery, could write the functions using it, this way: function sumAll() { var total = 0; $('.pra-somar').each(function() { var valor = parseInt(this.value); if (isNaN(valor)) {…
-
3
votes2
answers3686
viewsA: Download file via Ajax
You can use a plugin JavaScript called Download.js, but it has no compatibility with previous versions of Internet Explorer, only from 9. Another solution is you open one iframe to download, at the…
-
1
votes2
answers49
viewsA: Filename coming from a txt and files. Is there a difference in comparison?
To return only what you have in listaFarm but is not in listaCommiter, just reformulate your query: var diferenca = listaCommiter.Where(l => !listaFarm.Contains(l)); You can also use the…
c#answered Uilque Messias 872 -
1
votes1
answer168
viewsA: Relative Path in Vbscript
You can both take the file path and treat: Dim caminhoArquivo, segmentosCaminhoArquivo, nomeArquivo, caminhoPastaAtual caminhoArquivo = Wscript.ScriptFullName segmentosCaminhoArquivo =…
-
2
votes4
answers614
viewsA: Writing effect using javascript, setInterval does not work
The setInterval may not be a good one because it repeats indefinitely (until it is determined that it stops with clearInterval). What I recommend is that you use setTimeout that runs only once. With…
-
1
votes1
answer123
viewsA: How to call Restful Web Services on Android application?
The best and most used way to access APIs on Android is using Retrofit. You can follow a small step-by-step to install and configure Retrofit on official website on Github and if you need more…
-
1
votes1
answer637
viewsA: Get response from a restful java web service on Android
You’re trying to get a guy Usuario when the server is sending a type boolean. Try changing your code to: public interface ClicnetServiceApiContract { @GET("/inserirUsuario") Call<boolean>…
-
3
votes3
answers1957
viewsA: Cannot implicitly Convert type 'Object' to 'int'. An Explicit Conversion exists (are you Missing a cast?)
@Vinicius, It’s not good practice to make a cast (aka. unboxing). One of the best practices says you need to do a conversion or parse and to do this you have some options. Int32…
-
1
votes2
answers3651
viewsA: The 'Oracle.DataAccess.Client.Oracleconnection' type initializer triggered an exception with c#
@pnet, if you show the exact error being generated (if possible the Stacktrace) helps a lot in understanding the error and finding the solution. In this case, I update this answer. For now, let’s…
-
0
votes3
answers236
viewsA: Compare two querys
@Wickedone, When you call the method ToList<T>() of a IQueryable<T>, you enumerate the data and speak to the LINQ that you want to execute the query in the database. In that case, if SQL…
-
1
votes3
answers1650
viewsA: Send All Checkbox via Post
Less gambiarra (aka. Workaround), my heheh people. André, you can use the standard Helpers from ASP.NET MVC. Since the value of a <input type="checkbox"/> only goes to server, if this is…
-
1
votes1
answer187
viewsA: Problem accessing List from a query
LINQ, by default, works with entities with the use of the concept LazyLoading (Only loads properties when necessary). In this case, it does not yet include relationship properties that will not be…
-
2
votes1
answer229
viewsA: Can I create modules in Asp.net mvc?
Deivid, in fact you don’t even need to create multiple projects. You can separate the Modules for Area in the ASP.NET MVC 4. In fact this concept has existed since version 1.0 of ASP.NET MVC. If you…
-
0
votes5
answers13398
viewsA: How to declare a date variable in C?
According to this example in Wikipedia, would be something like: #include <time.h> int main(void) { time_t dataEHorario; // Você ainda pode setar a data para o atual do sistema current_time =…
-
2
votes3
answers2378
viewsA: Send a List<T> with multiple items to the controller
The most interesting thing would be to know how your Controller and View. But I’ll try to show you through a practical example: Let’s imagine that you need the user to select only the products he…
-
4
votes2
answers1328
viewsA: How to make a user helper logged in to Asp.NET MVC 4?
@Luiznegrini you can try using a Singleton in the Professionaluser class. Adding a static property of the same class type, when called you can search the current user through another external method…
-
2
votes2
answers1083
viewsA: Load a type list into a View of another type
Within a select is not possible, but you can emulate this using a div and setting the style with the value overflow-y:auto;height:200px; that makes the div look like a select open. Therefore, I…