Posts by ihavenokia • 911 points
85 posts
-
0
votes2
answers59
viewsQ: Serialize to different objects in C#
How I have to create my class in C# to be able to serialize this json that comes in a request for my API? [{ "name": "campo_normal_1", "value": "valor do campo 1 normal" }, { "name":…
-
2
votes1
answer43
viewsQ: Querry Lazy Loading in EF Code First
It is possible to create a querry Lazy loading using a DbContext What is Eager Loading doing? Is there any way I can specify that Company company = db.Comanies.Find(id); this command does not need…
-
1
votes2
answers65
viewsQ: When placing a class in Dbset using Migrations
I have the following classes: public DbSet<Request> Requests { get; set; } public DbSet<Answer> Answers { get; set; } where they have a one-to-Many relationship. When I want a class to…
-
2
votes1
answer35
viewsQ: Parameters in the URL using /
I need to have a URL in the following format: nomedosite.com/note/{anything} I need this URL to trigger the controller Note, with the action Index. How should I set my route? I tried to use this:…
-
1
votes1
answer25
viewsQ: Error trying to install watson_developer_cloud
I am trying to install watson_developer_cloud using pip. After some time and after some dependencies to be installed I get the following error: Command "c: users i appdata local Programs python…
-
0
votes1
answer41
viewsQ: How to Get Data via Wordpress API
I wanted to start learning React.js and for this I decided to make a theme written in React for my wordpress, using the 'new' functionality WP API. How do I get access to the API from my computer? I…
-
0
votes1
answer247
viewsQ: Remove MVC URL parameter name
I have the following URL /vlog/usertimeline/? Slug=tests for the Vlog controller, usertimeline action and Slug parameter. How should I set the route to stay /vlog/usertimeline/tests I’m using MVC 4.…
-
0
votes1
answer126
viewsQ: Convert extracted binary from . getUserMedia() to . mp4
I am storing the user’s video and audio using . getUserMedia() in javascript and sending it to a websocket listening in C# (MVC). I leave down the path that the data makes until it reaches the…
-
1
votes0
answers185
viewsQ: Android app with colorful background on buttons and text
I’ve been playing with an android app, and I don’t know how it started to give problems...it didn’t start at all, as soon as the message appeared saying that the app crashed and if it wanted to…
-
0
votes1
answer110
viewsQ: Error:Failed to resolve: support-Annotations
I went to remove external libraries from my project because I was getting mixed version errors from appCompat library, I tried to delete everything related to version 25.2.0 because I need to use…
-
0
votes2
answers330
viewsQ: Display image until gif is loaded
I am loading a gif when the user hovers over a certain one <div>. I do this using jQuerry with the following code: $('#vidthumb_' + idDoDiv).attr('src', caminhoParaOGif); the problem is that…
-
1
votes1
answer67
viewsQ: Change FFMPEG generated GIF size
I am generating gifs using ffmpeg, in its latest version (to date of this issue), using the following lines of code: ffmpeg -y 10 -i in.mp4 -vf fps=10,scale=-1:340:flags=lanczos,palettegen…
-
0
votes2
answers75
viewsQ: Add SUM() to querry results
I have this querry that gives me the total number of lines that start with the same code USE CCILCDatabase; GO DECLARE @mes int; SET @mes = 1; WHILE (select @mes) <= 12 BEGIN SELECT…
-
0
votes1
answer79
viewsQ: Exchange WHILE for GROUP in SQL
I need an SQL function to get data grouped by month. I have in the column CPCCodeID codes (ex: 512456). I need to count and group by the first two digits. I need it separated for months (!!!) and to…
-
0
votes0
answers458
viewsQ: Error: method does not override or implement a method from a supertype
I have a project in Android Studio for a solution in the company where I am working. The project is two years old or so, and when I imported it from svn for the IDE I started having problems with…
-
2
votes1
answer218
viewsQ: Git Terminal vs Node Terminal vs Windows Terminal
I’m having some difficulty realizing the need to have so many terminals installed on the computer when I need to use git or Node.js. What are the differences between the terminals, what can one do…
-
0
votes0
answers380
viewsQ: There has been a violation of the referential integrity restriction
I am getting this error every time I try to update an object in my SQL database via Entityframework, the error is as follows: A reference integrity constraint violation occurred: Property values…
-
0
votes0
answers34
viewsQ: Move Assembla project to Visual Studio Team Services
The Assembly has changed prices this year and it will not be sustainable to continue with the service. Is there any way to migrate projects to Visual Studio Team Services without major…
-
1
votes2
answers1578
viewsQ: Invalid characters in path in File.Move()
I have this code to move a file: string path = "C:\\inetpub\\beGoodToo\\videofolder\\nome.mp4"; string path2 = "\"C:\\Program Files (x86)\\Wowza Media Systems\\Wowza Streaming Engine…
-
0
votes2
answers91
viewsQ: Copy <video> with its respective attributes
I have an HTML5 player using the tag <video>, only that I have the video (which is streamed via DASH protocol) to be loaded to the tag using a bookstore javascript. I need to have exactly the…
-
1
votes1
answer368
viewsQ: pause Navigator.getUserMedia
How do I pause the camera and microphone stream within the method getUserMedia? I have my code like this: navigator.getUserMedia({ video: true, audio: true }, function (MediaStream) { var video =…
-
2
votes2
answers172
viewsQ: What is the difference between $('#id') and Document.querySelector('#id')?
Aren’t you supposed to get the same result using one method or the other? I would add one Listener oncick and only using the second method could he effectively declare Event Listener. Why? var…
-
0
votes1
answer74
viewsQ: Undefined javascript function after $.getScript('');
I need to load a file . js after an ajax call. I have been searching and found the $.getScript('') to call my file, it opens, everything is fine, but the functions defined in that file are not being…
-
0
votes3
answers5991
viewsQ: Convert number to string to two decimal places
Imagine a string with the following value: 12,126456 How do I convert the string to 12.12? I need to convert, using C#, so that the final string has at most two digits after the comma. tried the…
-
1
votes0
answers195
viewsQ: Firefox does not open modal Bootstrap
I have the following HTML code: <div class="col-sm-4 col-md-4 col-lg-3 empresa-button"> <button data-toggle="tooltip" data-placement="bottom" onclick="setReturnURL('link');" title=""…
-
1
votes0
answers47
viewsQ: JSON for websocket gives error
I send a JSON to the websocket. JSON and sending is set like this: var binary = btoa(Uint8ToString(view)); var toSend = { 'fileName': fileName, 'sequence': SendedChunks, 'data': binary.toString() };…
-
0
votes1
answer405
viewsQ: DELETE in SQL does not run
I’m trying to delete lines from an SQL Express database, but unfortunately I can’t do it. The query is one of those really basic, but after running it I get the message from 'executing query' in SQL…
-
2
votes2
answers74
viewsQ: Create a new record based on another with Entity
I need to add some columns to a database as follows: save a comic line to a variable Market novo = new market(); novo = context.Markets.where(blabla).First(); change a row column novo.ParentID = 50;…
-
0
votes0
answers37
viewsQ: Error calling a service through Serviceclient in C#
I have a part in the project (MVC that connects to BD through web services) of my company that calls WCF services this way: public static ReturnType CallWebMethod<TService, ReturnType>(String…
-
0
votes2
answers61
viewsA: Restart low-priority service on the third core in C#
After some research I was able to do what I wanted. This code takes a process, changes the priority to the lowest, and leaves affinity only to the third core of the CPU Process[] services =…
-
1
votes2
answers61
viewsQ: Restart low-priority service on the third core in C#
I have a job running on the machine in production. This service sometimes gets "stopped" and the easiest solution is to restart the service, and it continues to function as expected. Is there any…
-
0
votes1
answer41
viewsQ: use WCF service method returns The Caller was not authenticated by the service
I have a project with several WCF services compiled, and accessible by another project on the same machine. Now I’m trying to connect to one of these services from another machine. I put the service…
-
0
votes0
answers131
viewsQ: Type is defined in a meeting that is not referenced
I have a project called DataLibrary, a . dll is referenced in another project of mine, but for some reason, when compiling VS gives me an error to say that there is a type that is closed in…
-
1
votes2
answers258
viewsA: Finish the last Asynctask before starting another
I was able to solve the problem with the help of the @ramaral user response Below is the code snippet that starts all AsyncTask, and if you’re running the previous one it cancels it and starts the…
-
0
votes2
answers27
viewsA: I can’t add items to scroolview
To add more items simply resize the preview window by clicking in the lower right corner and dragging to make room for more items.
-
0
votes0
answers32
viewsQ: How to check if the last Asynktask is over
I have an android application that communicates with the site through json that is obtained in the following way: @Override protected String doInBackground(String... params) { String url =…
-
1
votes0
answers128
viewsQ: Request for ASP.NET MCV super slow
I have a complicated problem with my project, and I don’t know what else to do. I have an MVC4 project (after an upgrade of the MVC3 project that the company I work for already had) and it is…
-
0
votes1
answer62
viewsQ: findViewById returns null
I am receiving null from my findViewById call, and I cannot understand why. The code below relates to a Activity in my program: @Override protected void onCreate(Bundle savedInstanceState) {…
-
1
votes3
answers1452
viewsQ: How to create a category tree in C#
Database I have a database with product and service codes (for public tenders) and wanted to find a way to create a "tree" for these codes. See how I have configured my database in the following…
-
0
votes0
answers17
viewsQ: Add Libraria to Github’s Android
How can I add a Github project as a librarian in Android Studio? I wanted to implement this, but I have no idea how to do it. I have all the requirements.…
-
2
votes1
answer68
viewsQ: How to create a View for screens with width less than X
I have a site MVC4, which is not responsive, and change all its implementation just to make it responsive does not seem to me at all productive, because it is a site where worked many people and…
-
2
votes2
answers258
viewsQ: Finish the last Asynctask before starting another
I’m wearing a AsyncTask (Android app) to receive a string json from the server (Comes from a controller on my ASP MVC site). Basically everything that comes from the server goes through this class…
-
0
votes2
answers39
viewsA: Image disappears after animation + window resize
I was able to solve the problem using this "deviation": $(window).on('resize', function(){ if ($(window).width() < 768) { $("#logo_mobile").css("display","block");…
-
0
votes2
answers39
viewsQ: Image disappears after animation + window resize
I’m building a menu for my blog, I found some code on the net, and I’m trying to implement one of them. The problem is this: the image (logo) disappears from the menu (header) when I do the…
-
1
votes1
answer99
viewsQ: Publishing site on IIS gives debug error
I have a little strange problem. I’m developing a website MVC on VS2013, I have a website IIS configured for my project. So I make Publish of my website for the IIS, then when I launch the debug…
-
2
votes2
answers278
viewsQ: Special character encoding before going to the SQL database
I am working with SQL Server 2008 and IIS7 to host my MVC website. For security reasons, the website on which I work at the moment does not allow strings with special characters like '<' or…
-
1
votes1
answer433
viewsQ: Leave HTML.Dropdownlist() in Bootstrap style?
I have a DropDownListin my View and despite having the class form-control the list does not take the style of the Bootstrap. How can I edit the way DropDownList builds the lists?…
-
0
votes1
answer79
viewsA: This operation would create an incorrectly structured document. Xdocument
The problem was that I was trying to add several elements to the root of XML, which is wrong (from what I noticed after a few searches). What I did was create a XElement <itens> and then…
-
2
votes1
answer27
viewsQ: Check if dynamic named file exists on disk
My program generates an XML file named after the following structure: C:/wayDosFile/Nameanob_data_nrdeelementosnoxml.xml At the moment, I’m every time I file and he has the nrDeElementosNoXML other…
-
0
votes1
answer79
viewsQ: This operation would create an incorrectly structured document. Xdocument
I’m trying to create an XML, but I’m not getting it. I want it to have this format: <item> <linktext></linktext> <etc..></etc...> </item> I can add one item, but…