Posts by Raul Almeida • 1,512 points
26 posts
-
2
votes3
answers844
viewsA: Comparison of >= and <= with strings
In the stored code will be executed by the database engine. It tries to convert String in Date. In C# there is no such thing, so you should use data types that are comparable. I suggest you convert…
-
5
votes3
answers546
viewsA: Run program inside Try/Catch
No. This is not the way to do it. There is a problem of putting the entire program inside a Try catch block but I will not refer to them but show you the right way to do it. It exists on the…
-
11
votes2
answers2267
viewsA: What is the best way to run a java application as a Service on Windows (32 or 64 bit)?
According to a similar question in stackoverflow.com you can use Apache Commons Deamon tools to accomplish this. In particular there is the Procrun which is a set of applications that allows you to…
-
7
votes2
answers4913
viewsA: How to check if a file is in use without launching C#exception
According to the reply of a similar question in stackoverflow.com the way is this same one you are using. The answer still says that although many do not find it comfortable to use exceptions, for…
-
3
votes6
answers6055
viewsA: Part of the Label in Bold?
You won’t get. You can use Richtext control that recognizes partial formatting in text.
-
1
votes3
answers346
viewsA: How to make a polymorphic pointer with the this pointer in the parameter?
I’m not sure what the purpose of the code is, but you’re using the keyword this outside the context of a class method, that’s what’s wrong. this a pointer to the current context class, as you are…
-
2
votes6
answers14835
viewsA: Android app development: what are the tools and language to start a project?
The standard development tool for Android is the Android SDK, you can check on link. The operating system as a whole was thought to run Java applications and so it is a bit difficult to get away…
-
2
votes7
answers8546
viewsA: How to implement a linear regression algorithm?
For those who might be interested here is the implementation I was looking for. It is written in the "language" Clipper (compiler x/Harbour) and works equal to TENDENCY for various values I tested.…
-
12
votes7
answers8546
viewsQ: How to implement a linear regression algorithm?
I need to implement a linear regression algorithm. Preferably that gives equal or near results to the function TENDENCY (or TREND) excel. I’ve found a lot of material that tries to explain the whole…
-
0
votes6
answers5869
viewsA: How to know the number of a week in each month
Follow untested code that does what you need: static Dictionary<int, Dictionary<String, DateTime>> searchBaseCache; static DateTime GetDateGiven(int year, int month, int weekNum, int…
-
5
votes6
answers5869
viewsA: How to know the number of a week in each month
The Elsdesire blog has this following question from reply ( in English ). The implementation presented is this: public static int GetWeekInMonth(DateTime date) { DateTime tempdate =…
-
2
votes3
answers986
viewsA: WCF consuming external Java Webservice with HTTPS and proxy
Seen the error message displayed, an answer in stackoverflow.com you should consider some hypotheses among them that the new computer does not have the certification chain that brings reliability to…
-
3
votes3
answers986
viewsA: WCF consuming external Java Webservice with HTTPS and proxy
It’s not the first time I’ve seen this kind of situation happen. Often we forget to plan the environment where our application will run and we overlook this common type of situation. Since the proxy…
-
3
votes3
answers838
viewsA: Custom tool Warning: Cannot import wsdl:portType
Without the file you imported I cannot give the complete solution to your problem, but I can help you explain the warnings. Warning 1: says you cannot import wsdl:port because there is a ' ' ( blank…
-
13
votes1
answer5272
viewsA: What is a wrapper class?
Wrapper are classes whose features they expose are implemented elsewhere. It is common in C# for example to create Wrappers classes to expose features of the Win32 API that are embedded in the…
-
7
votes9
answers2644
viewsA: Best practice for creating if
I do not know if it is worth thinking about performance of such a short fragment and execution so fast. However we can make the following analysis: Under A) you initialize the variable and it will…
-
1
votes3
answers2309
viewsA: Update secondary form without changing primary focus
In accordance with an answer in stackoverflow.com, you can make a window not have the focus enabled on it by overwriting the Createparams function and in C# it looks like this: private const int…
-
3
votes3
answers1088
viewsA: Where to put this logic? Controller or Model?
You need to divide this action into: Find the link, make the transformation in the description ( this is the function of the controller ) Save to database (this is model function) As a rule, the…
ruby-on-railsanswered Raul Almeida 1,512 -
1
votes2
answers1412
viewsA: How to turn a DLL created in C# to VB6?
According to an answer published for a similar question in stackoverflow.com this error occurs because instead of trying to add a reference to TBL, you should add a reference to DLL! Please try and…
-
1
votes2
answers183
viewsA: How to create Carrousel with query post content in Wordpress?
If it’s the case to really implement the effect you want I can’t help you but have some information I think important to you. This one recent article that says this effect you intend to do has some…
-
12
votes3
answers920
viewsA: Can using non-priminal variable type in C# affect performance?
No, these cases you exemplified, int -> Int32, for example, not only does not affect performance but makes no difference the use of either. int is only a nickname (alias) for Int32, just as…
-
7
votes3
answers6510
viewsQ: How to access a server via SSH without using password?
I have to connect a Linux server via SSH, using Putty as a client, many times a day and every time I need to put user and password. I have seen a person performing connection without using user and…
-
5
votes7
answers10092
viewsA: How to make child form change values in parent form C#?
A good way to do this in C# is to create a Form child event. For example: public event Action<String> EnderecoSelecionado; When you create the Child Form in the Parent Form, you register for…
-
7
votes3
answers1569
viewsA: How to create multiple entries in an index based on columns in the same row?
In Postgresql if you create an Indice with multiple columns as the example of the figure and run the query also as illustrated it will be able to use the Indice for the query and will handle alone…
-
2
votes3
answers1932
viewsA: Is there a more efficient way to create an array from another array dynamically, filtering the contents of the first one?
I believe the default solution to your problem is to use the function filter whose syntax is: filter(função_booleana, valor_interavel) For each value in valor_interavel, the function performs…
-
14
votes4
answers1418
viewsA: How do I programmatically respond to a command on the Linux terminal?
You don’t need all this, all you have to do is create a . pgpass file in the user’s home directory that will run the command. The file must have read/write permission only for this user for security…