Posts by Geilton Xavier Santos de Jesus • 576 points
25 posts
-
0
votes1
answer123
viewsA: 'Iorderedequeryable<Condominium>' does not contain a Definition for 'Tolistasync'
Install the EntityFramework. The ToListAsync is an extension method defined in classe System.Data.Entity.QueryableExtensions You’re probably not importing the namespace ... for example using…
-
0
votes1
answer372
viewsA: How to run a WSDL Webservice from a SQL Server Stored Procedure
Maybe it is not a better method to call a WSDL, but I believe that the example below should work for you: DECLARE @obj int, @url VarChar(MAX), @response VarChar(MAX), @requestHeader VarChar(MAX),…
sqlanswered Geilton Xavier Santos de Jesus 576 -
1
votes2
answers50
viewsA: UWP - Softwarebitmap for Stream
You can choose to use Bitmapdecoder, as in the example: var stream = new InMemoryRandomAccessStream(); ImageEncodingProperties properties = ImageEncodingProperties.CreateJpeg(); await…
-
2
votes1
answer32
viewsA: blank option @htm.Enumdropdownlistfor MVC5
Just change the type of your Enum Zona in an annulable Enum, as follows: public Zona? Zona { get; set; } This also allows you to use Required in the attribute, which I think is significantly…
-
2
votes1
answer34
viewsA: C# code for Searchbar
Missing import of namespace System.Linq…
-
1
votes1
answer51
viewsA: openCV - Differentiate RGB and P&B photos into a directory
I found a way to check with the module PIL ImageStat (Here). from PIL import Image, ImageStat MONOCHROMATIC_MAX_VARIANCE = 0.005 COLOR = 1000 MAYBE_COLOR = 100 def detect_color_image(file): v =…
-
0
votes1
answer41
viewsA: Textbox in WPF datagrid
There are several solutions to your problem, but in my opinion, the best solutions are those using only styles with Datagrid and WPF standard control. Some solutions that may suit you: Option 1:…
-
0
votes2
answers340
viewsA: How to communicate with SOAP webservice
Do it this way: 1º Create a structure with request data, example: private StringContent MontarEnvelope() { var envelope = $@"<soapenv:Envelope…
-
1
votes1
answer271
viewsA: System.Collections.Generic.Ienumerable
Opa, analyzing the image you sent before editing the message, the problem occurs because you return a list to View, correct is you iterate on the list with a foreach, as in the example below:…
-
1
votes2
answers141
viewsA: How to limit Ips that can remotely connect to mysql?
You need to do REVOKE, see more details on the link: https://dev.mysql.com/doc/refman/5.6/en/revoke.html REVOKE ALL PRIVILEGES ON test.* FROM 'jane'@'56.44.3.24';…
-
2
votes1
answer69
viewsA: How to perform an SQL command that fills several lines
I believe that the example below can solve your problem. -- Creating temporary table for testing CREATE TABLE #tmp (id int primary key identity(1,1), counter int default 0) GO -- Inserting data into…
-
1
votes2
answers3880
viewsA: What is the unless command for in Ruby
unless is equivalent to using if not, using unless or if not (if ! condition) is a personal preference. I personally use unless when a Else.…
-
0
votes1
answer837
viewsA: What is the right way to implement filters in Rails?
Friend, I think the ideal would be to use Filter Scope An example of use: your Model: class Dinosaur < ActiveRecord::Base scope :with_name, lambda {|parameter| where("name like ?",…
-
1
votes3
answers1027
viewsA: How to find out how long an audio is in PHP?
To calculate the audio of an MP3, create a class mp3file.class.php with the following code: <?php class MP3File { protected $filename; public function __construct($filename) { $this->filename…
-
8
votes3
answers3855
viewsA: Differences between Git and Mercurial
Summary: Git Git is the rising star of version controls, it was developed by the creator of the linux kernel and has recently been widely used by the astounding developer community, Git offers a…
-
-1
votes1
answer801
viewsA: How to use multiple classes as User in Identity - Asp.Net Identity
From what I understand, you want to create two types of users the Conventional User (Userentity) and the System Administrator (Adminuserentity). Userentity will access the normal site and the…
-
1
votes2
answers508
viewsA: What’s the difference between App.conf and Web.conf?
In accordance with reply in English in the OS: Web.Config is used for web projects Asp.net / web services. App.Config is used for Windows Forms, Windows Services, console applications and WPF…
-
1
votes1
answer1006
viewsA: POST and GET on SSL
as you should already know the GET data can be viewed in the URL as a query string: https://exemplo.com/index.html?user=admin&password=whoops Because data is added to the URL, there is a limit…
-
6
votes8
answers6579
viewsA: Check user browser in PHP
Hello friend see an example: <?php echo $_SERVER['HTTP_USER_AGENT']; $browser = get_browser(); print_r($browser); ?> see working on this link : Example…
-
0
votes2
answers3813
viewsA: How to change the border color of a Groupbox
you need to create a custom control. Create a Class in your project and use the code below: public class MyGroupBox : GroupBox { private Color _borderColor = Color.Black; public Color BorderColor {…
-
0
votes2
answers581
viewsA: How to create a link that when clicked changes the value of href=""?
Hello friend to change the value of href on click use property setAttribute see an example: <a href="#" id="AbrirChat">ABRIR CHAT</a> <a href="#" id="FecharChat">FECHAR…
jqueryanswered Geilton Xavier Santos de Jesus 576 -
2
votes2
answers1997
viewsA: C# Simple - Forms - Pass to the datagrid what I select in the combobox
Friend, from what I understood you that to pick the selected text in the Combobox this would be the selecteditem see an example: private void showSelectedButton_Click(object sender, System.EventArgs…
-
2
votes2
answers579
viewsA: Live video playback using websocket
Este blogpost shows how to stream video using websockets, Node.js and ffmpeg, using the library jsmpeg. The post focuses on the server side, but the library documentation explains in detail both…
-
1
votes1
answer575
viewsA: Display Facebook images with a certain hashtag via API
I think you can use the GRAPH API. https://graph.facebook.com/search?q=#Eventodofulano&limit=10000&access_token=YOUR-ACCESS-TOKEN…
-
1
votes2
answers376
viewsA: How do I handle the event generated by the Windows Phone 8.1 back button?
try setting the Backpressedeventargs.Handled property to true. private void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e) { Frame frame = Window.Current.Content as Frame; if…