text
stringlengths
15
59.8k
meta
dict
Q: MVC Razor WebGrid Nullable Complex Types I have an entity called Lookup who has a complex Type Description with two string English and French. There has arise a time where no value will be store into the lookup. Now other entities have lookups as properties so we could have foo.Lookup.Description.English for example...
{ "language": "en", "url": "https://stackoverflow.com/questions/7285577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Count The Number of Duplicate Values during the preceding timeperiod I am looking to count how many duplicate values there are in a previous time period (24 hours to make it simple). For example in this data set I am looking to come up with values such as this Here is some how to create the below dataframe data = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68945258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Formatting off in Safari vs Chrome I am using this template to build this website. In chrome and edge, the services tiles look right: In safari, the rows are messed up: I am not a pro at this stuff ... I am just a freelancer trying to do everything ... and poked around and cannot spot the source of this problem. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50953267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to do a Second Commit in Github Can anybody explain how can use github to store my project. I have created an account,created a repository, uploaded my files to it all these are done mechanically by following their help. But i dont know what to do next. How can i do a second commit. and what is mean by branch p...
{ "language": "en", "url": "https://stackoverflow.com/questions/9842698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Circle Shape in 16 to 23 Android Version I want to make a circle that is perfect in all Android versions. I tried to create a drawable like this: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" > ...color..stroke... </shape> And i...
{ "language": "en", "url": "https://stackoverflow.com/questions/33405757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript array of hrefs I am trying to create an array with different hrefs to then attach to 5 separate elements. This is my code: var link = new Array('link1', 'link2', 'link3', 'link4', 'link5'); $(document.createElement("li")) .attr('class',options.numericId + (i+1)) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2774980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Write this function without bitsets Trying to write a function that gives all ways to cover a R rows by 2 columns figure, I find this function but uses a approach with bitsets, was wondering how can i do this wihtout using binary operators. This the function explanation: left_obstacles is a bitset of size R in wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/74694682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Draw Line between two Geo Points in JMapViewer I'm working with OpenStreet Maps in Java with JMap Viwer http://wiki.openstreetmap.org/wiki/JMapViewer I can load the maps and everything ok but I don't know how to draw a line between two points from a latitude and longitude. Any body know the function to draw this kin...
{ "language": "en", "url": "https://stackoverflow.com/questions/10744798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C# Linq-to-SQL Insert row into datacontext without committing to database I'm writing this Web app that is associated with a Microsoft sql database. I want the user to be able to insert rows, view rows, and then edit those rows on the page. When the user clicks a submit button, I want to commit all of the changes th...
{ "language": "en", "url": "https://stackoverflow.com/questions/8882173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to mount context-referenced Tomcat application with mod_jk? I have an WAR application running in Tomcat at /foo context, meaning that its URL is http://example.com:8080/foo. Now I'm trying to connect Apache HTTP Server to Tomcat through mod_jk. This is my workers.properties file: worker.list=foo worker.foo.port=...
{ "language": "en", "url": "https://stackoverflow.com/questions/5138865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android OpenGL reading pixel color at the center of the screen I'm rendering a texture in OpenGL. I want to retrieve the pixel color value at the center of the screen. ByteBuffer byteBuffer = ByteBuffer.allocate(4); byteBuffer.order(ByteOrder.nativeOrder()); GLES20.glFinish(); GLES20.glReadPixels(0, 0, 1, 1, GLES20....
{ "language": "en", "url": "https://stackoverflow.com/questions/34081833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to write Powershell script to identify any azure resource with a creation date in the last 30 days in multiple subscriptions how to identify all azure resources with a creation date in the last 30 days in multiple subscriptions using PowerShell script A: Well, first you should note what you are using is a reall...
{ "language": "en", "url": "https://stackoverflow.com/questions/65627056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NHibernate/Hibernate - Forced to apply sorting twice on pagination I'm having an issue currently where I have to apply sorting twice in a query. Since I want paginated results, I'm using a DetachedCriteria approach and using it as a Subquery for the main Criteria. Issue is, that if I apply the sorting only on the De...
{ "language": "en", "url": "https://stackoverflow.com/questions/32985921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adjust the width of the mat-side-nav while it is open When the nav-bar is clicked open, the width of the nav-bar is to be adjusted automatically with the content. <mat-sidenav #sidenav mode="side" class="primary-color main-sidenav nav- shadow" opened="true" [@sidenavState]="sidenavState" (@sidenavState.done)="...
{ "language": "en", "url": "https://stackoverflow.com/questions/53269760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why I can't insert new data in my database using SQLITE? public class SQLiteJDBCDriverConnection { This block is to connect to sqlite database and create "warehouses" table with three columns. public static Connection connect() { Connection conn = null; try { // db parameters String url = "j...
{ "language": "en", "url": "https://stackoverflow.com/questions/53010463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to tell a gem not to be installed on JRuby? How can I configure a gem so that it couldn't be installed on JRuby? A: in *.gemspec: s.platform = 'ruby' possible platform values: ruby C Ruby (MRI) or Rubinius, but NOT Windows ruby_18 ruby AND version 1.8 ruby_19 ruby AND version 1.9 mri Same as ruby, but not R...
{ "language": "en", "url": "https://stackoverflow.com/questions/9363127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Clearing the screen for new graphics in Java (awt) I have this code which is basically a home menu with two clickable rectangles. * *Start Game *Info Start Game works fine. Info is what is not really working. When pressed, the info screen will appear, but the home menu buttons will still be there though not visi...
{ "language": "en", "url": "https://stackoverflow.com/questions/70162935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android: how to hide bottom buttons on dialog fullscreen I'm trying to hide navigation buttons when a dialog is shown fullscreen. I've manage to do it following this example: Android fullscreen dialog however, whenever i touch a button they appear again. is there any way to hide them properly? thanks A: The fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/59050705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I use array using "row index" in python? I made code in python There's so many arrays, what I want to do is extract value of arrays and add it to array_matrix in row and make a label too and every circle row = row + 1 This is some part of my code, I know the form of array_matrix[row,0:3] = array1(u) and...
{ "language": "en", "url": "https://stackoverflow.com/questions/47278540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: perl threading problem I'm writing a multithreaded website uptime checker in perl, and here is the basic code so far (includes only threading part): #!/usr/bin/perl use LWP::UserAgent; use Getopt::Std; use threads; use threads::shared; my $maxthreads :shared = 50; my $threads :shared = 0; print "Website Uptim...
{ "language": "en", "url": "https://stackoverflow.com/questions/3034048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to implement email for your apps in xcode? I tried to implement 'mail composer' (sample code from dev) to my apps. They are a lot of hard coded in the sample code. For example: sent to recipient - [email protected]. I want to leave it blank like @"", however it automatically prefix comma in front of the email ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/6003948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Searching for file using ref number I am trying to write a program that when prompted the user enters a Ref number and the program searches for the file which contains this ref number within it. Few things first: The files all end with a .dpt extension and look like this: PX12RUJ PX12RUR PX12RUV #PX12RUU PX12WLJ #P...
{ "language": "en", "url": "https://stackoverflow.com/questions/27374792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Refit upload file from Api to Api I am trying to upload an image from one Asp net core backend to an other via refit. await _repository.UploadImageAsync(userId, new StreamPart(file.OpenReadStream(), file.FileName, file.ContentType), extension); The Api [Put("/image/{userId}")] Task<Guid> UploadImageAsync(Guid u...
{ "language": "en", "url": "https://stackoverflow.com/questions/60565664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ng-bind-html is not able to bind text and image url together I am trying to use some string and a image together in ng-bind-html tag in AngularJS but it is giving error so far what i did is <div class="row"> <span data-ng-bind-html="question"></span> </div> If only string value is coming or only image url is c...
{ "language": "en", "url": "https://stackoverflow.com/questions/44391255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get process name in an injected dll? I have this basic internal dll: #include "pch.h" DWORD WINAPI HackThread(HMODULE hModule) { uintptr_t moduleBase = (uintptr_t)GetModuleHandle(L"Mainmodule123.exe"); AllocConsole(); FILE* f; freopen_s(&f, "CONOUT$", "w", stdout); std::cout << "Injecte...
{ "language": "en", "url": "https://stackoverflow.com/questions/72832953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to see if a .NET program is running Is it possible to determine if a Microsoft .NET program is running on a windows computer? A: The following will return true if there is one or more processes running that have the supplied name. public bool IsProcessRunning(string processName) { return Process...
{ "language": "en", "url": "https://stackoverflow.com/questions/4471665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make div appear only once after closing using useState and localstorage I have a div with a close button. Currently, what it does is when the user clicks the close button, the div disappears. But when the user refreshes the page, the div is still there. I'm thinking of using localstorage but I'm confused as to how i...
{ "language": "en", "url": "https://stackoverflow.com/questions/69819364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Result does not return any data in FMDB I am using this tutorial to implement FMDB in my project. But my code does not return any value. here is the code for retrive value. -(NSMutableArray *) getCustomers { NSMutableArray *customers = [[NSMutableArray alloc] init]; FMDatabase *db = [FMDatabase databaseWithP...
{ "language": "en", "url": "https://stackoverflow.com/questions/15811813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Hide Body but Keep Image displaying with JavaScript I have an HTML page that I want to hide everything in the body but still show just a single image on the page. Then, I want to hide that image that was showing and then re-enable the body. I want to do this with JavaScript that I inject into the page. That...
{ "language": "en", "url": "https://stackoverflow.com/questions/56193236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to Open new browser after each scenario in Cucumber-Protractor I had automated all my scenarios using cucumber-protractor framework. All this scenarios run fine when executed individually i.e. closes the browser once scenario is complete but when ran together I am unable to open new browser window after each ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34730078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which member in PROCESS_MEMORY_COUNTERS structure gives the current used memory Following is the PROCESS_MEMORY_COUNTERS structure typedef struct _PROCESS_MEMORY_COUNTERS { DWORD cb; DWORD PageFaultCount; SIZE_T PeakWorkingSetSize; SIZE_T WorkingSetSize; SIZE_T QuotaPeakPagedPoolUsage; SIZE_T QuotaPage...
{ "language": "en", "url": "https://stackoverflow.com/questions/20896469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Create another symbol in specific point in a line graph I would like to have another symbol in a specific point of line graphs where the x axis has value of 1. In my graph, all the points in the line have circle as a symbol, but I would like to have a triangle where the value of the x axis is 1. So far, I found this...
{ "language": "en", "url": "https://stackoverflow.com/questions/75574669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do I keep getting ArrayIndexOutOfBoundsException? I know that the ArrayIndexOutOfBoundsException means that you're trying to access something not defined in the array, and tried to look up solutions. All the solutions say that you need to use < rather than =<, but that's about it. I don't understand why my loop ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28401964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Display rss xml index in html I am adding an RSS feed to my website. I created the RSS.xml index file and next I want to display its contents in a nicely formatted way in a webpage. Using PHP, I can do this: $index = file_get_contents ($path . 'RSS.xml'); echo $index; But all that does is dump the contents as a lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/32750723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set a default row for a query that returns no rows? I need to know how to return a default row if no rows exist in a table. What would be the best way to do this? I'm only returning a single column from this particular table to get its value. Edit: This would be SQL Server. A: One approach for Oracle: SELE...
{ "language": "en", "url": "https://stackoverflow.com/questions/285666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Extracting HTML input string into Python I'm currently trying to grab a string that a user would put in an HTML form, and set that equal to a variable in a python program after the 'search' button has been clicked. I'm using flask to run the html code just on localhost. How would I go about implementing this? The co...
{ "language": "en", "url": "https://stackoverflow.com/questions/59147862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pass url from one js page to another and extract exact value how can i pass this url="https://www.google.com/finance?q=tcs&ei=I7dtWaHxOJCuuATHoZaoCA" from store.js page and getting exact stock price of tcs on my another app.js page using chatbot and nodejs.
{ "language": "en", "url": "https://stackoverflow.com/questions/45186839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Application.Match vs Find I want to write a macro that will get the last item in column A and check if it exists anywhere in columns B to D. However, the following code never finds a match and returns "Doesn't exist": Sub MatchInRange() Dim LastItem As Range Set LastItem = Range("A1").End(xlDown) If Not IsError(Ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/45882858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NSURLConnection JSON doesn't post data I'm creating a login Page in my iPhone app and I use Json to call a PHP page to connect to a MySql database. I have the connection with the PHP page but my program doesn't post anything. - (IBAction)login:(id)sender{ //Alloc dictionary jsonDictionaryLogin = [[...
{ "language": "en", "url": "https://stackoverflow.com/questions/15053186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Translator API "Too Large URL" I have recently started working on Translator API and I am getting the ERROR Too Large URL when my input text exceeds 1300 characters. I am using the below code string apiKey = "My Key"; string sourceLanguage = "en"; string targetLanguage = "de"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19995625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring Boot throws exception when int field in mongodb model has null value in the database I have a situation when a user does not enter data for certain field I pass null as value for that int field to signify that no value was entered by the user like {user: 'John', age: null} but when I read such document in m...
{ "language": "en", "url": "https://stackoverflow.com/questions/49656855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to update all clients when Flask database changes without polling? Currently I have a Flask server that runs a small web frontend as well as a command line interface to that same server. The basic idea looks like this: <Top section: allows file upload> * list of files from database <Second ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45486960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is this C++11 regex error me or the compiler? OK, this isn't the original program I had this problem in, but I duplicated it in a much smaller one. Very simple problem. main.cpp: #include <iostream> #include <regex> using namespace std; int main() { regex r1("S"); printf("S works.\n"); regex r2("."); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8060025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: Using Win32, GetModuleBaseName() and GetModuleFileNameEx() fail with GetLastError() = 6 when using valid handle First some simple code snippet: m_hProcessHandle = ::OpenProcess((PROCESS_QUERY_INFORMATION | PROCESS_CREATE_THREAD | PROCESS_DUP_HANDLE | PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION), FALSE,...
{ "language": "en", "url": "https://stackoverflow.com/questions/10502706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HelloAndroid.java not created automatically - Hello World Android App in Eclipse I've finally installed the Android SDK/Eclipse and set everything up correctly (I thought), but when I create a new Android project it is not automatically creating the necessary files (HelloAndroid.java is missing). I just wanted to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10745129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django fixtures for model from imported application (like django-allauth) I know that is possible to create fixtures file like initial_data.json for my own model. I want to create similar file for tables which are created and used by imported django-allauth application. I tried: [ { "model":"allauth.soci...
{ "language": "en", "url": "https://stackoverflow.com/questions/18020791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HTML5 Input tag : what if max,min,step do not fit with each other Let's say you had a job to provide the user with a <input> as this: <input type="number" min="1" max="11" step="3" value="1"></input> the result would be increased as this sequence : 1,4,7,10,(13). you can never see "13" in the box because this n...
{ "language": "en", "url": "https://stackoverflow.com/questions/25903654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Css loop animation I have a problem with the animation, where the words should iterate 'n' number of times The above mentioned code has 9 different words which has a fade in and out animation one after the other, but this animation is only once . What i need is the loop iterates again and again with the same animati...
{ "language": "en", "url": "https://stackoverflow.com/questions/37882776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Neo4j Cypher query empty collect makes the entire result empty I have been facing wierd problem, I have tried to get data from the neo4j graph that I have built.Here is my query MATCH (u1:User {user_id: 4})-[:FOLLOWS]->(u2:User)-[]->(r1:Rest{city_id: 1}) WITH COLLECT ({ REST: r1.res_id}) as rows MATCH (u1:User {user...
{ "language": "en", "url": "https://stackoverflow.com/questions/39613457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FragmentTabPager not working at all I'm trying to implement FragmentTabPager Activity, but it doesn't run at all. Once I call the activity the app stops immediately. I've used tried multiple sources of code/tutorial including developers.android, but the same problem happens with all of them. And from what I understa...
{ "language": "en", "url": "https://stackoverflow.com/questions/10062692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Inserting additional code into the onclick attribute of a submit button using jquery I'm having trouble trying to properly insert additional code into the onclick attribute of a submit button. I don't want to overwrite anything within the onclick but just add additional code. I have successfully inserted the code...
{ "language": "en", "url": "https://stackoverflow.com/questions/9224689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript Double Select I have a problem with 3 Select Box's I have. The second and third should populate after select the first and second select box. After select a value from Select Box 1, it populates Select Box 2. After select a value from Select Box 2, it populates Select Box 3. I have two problems with my co...
{ "language": "en", "url": "https://stackoverflow.com/questions/46854429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make the BODY DIV Fill the Available Area I'm working on a brand new website and I'm trying to just get the basic layout going. I am using the ASP.NET MVC 4 generated HTML and I would like to get the DIV named body to fill the available space after making room for the header and thus anchoring the footer to the bott...
{ "language": "en", "url": "https://stackoverflow.com/questions/11909683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing a pointer for a dynamic runtime function I'm trying to write a generic utility function for a class that applies a function to each element of a vector with the only input argument being the value of that element. The idea being that I can use that to support scalar addition/multiplication as well as user-sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/52683634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Peewee ArrayField error When I create my table based on a model without an ArrayField, I get no errors. When I add: images = ArrayField(CharField) I get: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/peewee.py", line 5037, in create_table ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47970063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: (python) solving transcendental equation i need to solve following equation: 0 = -1 / x**0.5) - 2 * log((alpha * x**0.5) + beta) alpha and beta are given, i just need to iterate x until a certain extent. I'm not a great python programmer, but like to implement this one. How might this be possible? Best regards A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/40489853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do null columns behave differently with the count aggragate function? In oracle, we have a task to count the number of rows that have a specific null collumn. I have the query: select count(MY_COL) from My_Table where MY_COL is null; this returns zero results. Why does this return zero results and the query sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/18667381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't install python, pip related apps through Ansible I am using below ansible yml file to install python, pip, etc. roles/python/main.yml: --- - name: python apt: pkg: python - name: python-pip apt: pkg: python-pip - name: mongopy pip: pkg: mongopy - name: mtools pip: pkg: mtools when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45472916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SpringBoot project gradle build 'bootRepackage' task fails because it is unable to rename jar When running 'gradle clean build' on my spring boot project (version 1.3.6.RELEASE) on windows 10 (as administrator), the build fails on the 'bootRepackage' task on one of my modules with the following stacktrace :myProject...
{ "language": "en", "url": "https://stackoverflow.com/questions/40420018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does setting focus in the OnNavigatedTo() event not set focus? I've got this code in a pages OnNavigatedTo() event: if (string.IsNullOrWhiteSpace(textBoxGroupName.Text)) { textBoxGroupName.Focus(FocusState.Programmatic); } ...but textBoxGroupName does not have focus when the page displays. Why not? A: OnNa...
{ "language": "en", "url": "https://stackoverflow.com/questions/14313447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to handle very very large amount of data in Android? I have a database containing 2 500 000 row of 13-digits numbers (and on end a little bit more - 4 000 000) The user has to find if a 13-digits number exists in this database, all this on his android phone, without any internet connexion. So what do you suggest...
{ "language": "en", "url": "https://stackoverflow.com/questions/36197067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Open an iOS app from a shared link on a Facebook post We need users to open our app from a "...shared a link" on Facebook, or re-direct to the iOS app download page. Is there objective c code available to accomplish this? Thanks. A: Since you asked for objective-C code, I assume you want to open either the appsto...
{ "language": "en", "url": "https://stackoverflow.com/questions/26551343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot update global state using Context.API Trying to use Context.API to create a global state and pass it to multiple components. The state will store a few properties including a TwilioToken, device type and a name. I have a component SignupForm that renders a button. When the button is clicked, this triggers a f...
{ "language": "en", "url": "https://stackoverflow.com/questions/72351491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flash CS5.5 adds green background to bitmaps with alpha Recently, my Flash began to behave weirdly. I have imported PSD file, where were some layers with transparency. They imported successfully and are OK. The problem is, when I want to edit them from library with PS. I always worked great, but now flash adds all p...
{ "language": "en", "url": "https://stackoverflow.com/questions/20188676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get the string value of the name of a property in a dynamic type in Azure Log Analytics? I have a value of type dynamic, the JSON representation of which looks like: { "ReportName": { "Duration": 2347, "RowCount": 1167 } } I would like to extract the string value "ReportName" from this, as I have many rows...
{ "language": "en", "url": "https://stackoverflow.com/questions/48104812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Design practice for container class with multiple collections which reference each other I'm trying to design a class structure with the following: * *Container class which holds all the items. *Item collection class which is inside the Container, where each Item has a unique ID and some other data, including a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9781300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to put different datatypes in the same List<> Is it possible to put different datatypes in the same List<> in C#? myList.Add("Joe"); myList.Add(25); A: Assuming you are using Java, yes. Everything is an Object in Java and Arrays take Objects. Good luck getting them back out though.
{ "language": "en", "url": "https://stackoverflow.com/questions/13746194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I fix my image not being pasted correctly? I am trying to crop a image into a circulor form (which works) and then pasting it to a white backround. from PIL import Image,ImageFont,ImageDraw, ImageOps, ImageFilter from io import BytesIO import numpy as np pfp = Image.open(avatar) # cropping to circle img=p...
{ "language": "en", "url": "https://stackoverflow.com/questions/70131857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the meta value of the ACF field (wordpress)? I need to get the meta value of the ACF field. ACF field called 'submitdate' (format => Date Time picker : Y-m-d H:i:s) already has data '2021-06-11 17:23:36' I tried the following code, but it only shows correct $post->ID, it doesn't show $submitdate. No erro...
{ "language": "en", "url": "https://stackoverflow.com/questions/67931845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to take data from mongodb atlas and add to table on website? the plan is to create a table on a website (link below) that users can add or remove data (a new row) to. I have set up a form above the table (with POST) that takes data input into the form and then adds that data to a collection in my mongodDB atlas ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67713220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does module refer to in context of the 4 concepts of Webpack? The 4 concepts of webpack are Entry, Output, Loaders, and Plugins. I have been looking through the documentation to get an understanding of how my React configuration works. Entry and Output make sense. But why is loaders included under module. In t...
{ "language": "en", "url": "https://stackoverflow.com/questions/48064823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get Names of Background Running Apps I'm making an app in which i need to show the names of apps running in background. I did R&D on it and came to know that we can know only about Apple's apps like Photos , Camera etc. But I couldn't know how. Please help me if you know how to get JUST NAMES OF BACKGROUND RU...
{ "language": "en", "url": "https://stackoverflow.com/questions/9919070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Struggling with gesture dragging I am trying to implement dragging in my Android app. I am following the Android documentation sample listed here. Here is the code: // The current viewport. This rectangle represents the currently visible // chart domain and range. private RectF mCurrentViewport = new RectF(A...
{ "language": "en", "url": "https://stackoverflow.com/questions/53968778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic HREF in XSLT using attribute not working as expected I'm newer to XSLTs and I'm struggling a bit with getting this one to format correctly. I want the output HTML to basically be rows that look like this: 1 : SO090040717 113657 XXX 56371444826 Where "SalesId" is a clickable URL that is formatted (in this e...
{ "language": "en", "url": "https://stackoverflow.com/questions/21388430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Initialization of unique_ptr as a class member variable In C++, Is there a difference between using braces when initializing the unique_ptr and not using them in this code? // MyClass.h class MyClass() { public: MyClass(); private: std::unique_ptr<TT> tt{}; } // MyClass.cpp MyClass() { } Do I even need to init...
{ "language": "en", "url": "https://stackoverflow.com/questions/62543543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Import external js script into Angular app I was trying to implement this widget to my Angular app. For the second part I was able to create a custom js file in my assets folder, create a .d.ts file for it and successfully imported the function in my component. But for the first part: <script async src="https://tele...
{ "language": "en", "url": "https://stackoverflow.com/questions/53186015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Youtube Player fragments inside ViewPager I really need help with this situation. I can't manage to properly create YouTube fragments for each PagerView fragment. Use case: ~ Let's say I have a PagerView with x fragments, and I want on each of it(in a part of it actually) to be able to play a different video using...
{ "language": "en", "url": "https://stackoverflow.com/questions/46542349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jump to function definition How can I jump to a function definition using Vim? For example with Visual Assist, I can type Alt+g under a function and it opens a context menu listing the files with definitions. How can I do something like this in vim? A: To second Paul's response: yes, ctags (especially exuberant-cta...
{ "language": "en", "url": "https://stackoverflow.com/questions/635770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "308" }
Q: .htaccess redirect url with controller name for MVC application i am trying to build a mvc like application and i cant figure out the right .htaccess i need. I want something like: RewriteRule ^(.*)/(.*)/(.*)$ $1.php?action=$2&n=$3 [L] so i can access the file that contains the proper controller and two get variab...
{ "language": "en", "url": "https://stackoverflow.com/questions/11532235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: springMVC+mybatis+mysql can't insert blob I use the mybatis and springMVC,and the database is the MySql,I know the configuration of the SpringMVC and mybatis are right ,but when I want to write a demo of the blob ,it does't work,this is the code. FileMapper.java public interface FileMapper { //插入文件 int inser...
{ "language": "en", "url": "https://stackoverflow.com/questions/37114269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checking for missing values in CSV I have a CSV file that counts the data in a timestamp every 15 min. I need tried to figure out how to see, if there is missing any of the 15 min in the file. But i cant get the code to work 100%. hope you can help! First i geathered the data from csv and set it in timestamp. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45661376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: shader storage block length returns zero or less I am getting zero or less when I try to get the length of an indeterminate-length array in a shader storage block. Setting up the storage: geometryBuffer = ByteBuffer.allocateDirect(12* 4) .order(ByteOrder.nativeOrder()); geometryBuffer.putFloat(1f); geometryBuff...
{ "language": "en", "url": "https://stackoverflow.com/questions/38681103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: __attribute__((OS_main)) results in strange behaviour in AVR I don't know how to precisely described the error I am seeing. If I set up my port register in main() everything works as intended. However if I try to do it in a function, the program halts. main.c: __attribute__((OS_main)) int main(void); int main(void) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16103979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Performance: list all keys from hdf5 file with pandas Is it normal that that it takes so long to obtain all present keys in a hdf5 file? Code Sample: start = time.time() store = pd.HDFStore(filepath) print(time.time() - start) 0.0 start = time.time() a = store.keys() print(time.time() - start) 23.874846696853638 l...
{ "language": "en", "url": "https://stackoverflow.com/questions/44737892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Iterating Properties I've been doing some research on iterating properties, and have come up with a basic solution that seems to work, but doesn't quite do what I'm looking for. I'm calling a WebService method which returns an PeopleSoft object with a large amount of properties. Each one of these properties returns ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12391405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set a specific function to every widget while using loops in tkinter from Python 3? I'm exploring tkinter from Python 3 and I have a problem with using loops to create widgets containing functions. I have this code: from tkinter import * def test(no, button_name, event=None): def callback(): prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/47115243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Laravel eloquent is very slow when joining two models There is a model Invoice which equals to a purchase basket and model InvoiceItem which stores items inside a specific invoice. The model invoice has status field, if its value is 2999 and someone has verified it, it is successful. I need to get invoice items whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/65069447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove StartMenu shortcut using C# How can I remove a shortcut folder from Startmenu in Windows using C#, I know how to do that using this code: private void RemoveShortCutFolder(string folder) { folder = folder.Replace("\" ", ""); folder = Path.Combine(Environment.GetFolderPath(Envir...
{ "language": "en", "url": "https://stackoverflow.com/questions/650746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Qt Reources - Add and Read JSON file I need a JSON file to save some info about my app and read it sometimes. And because my app runs in Ubuntu and Windows, I added it to Qt Resources... To access the JSON file I tried: QFile file(":/files/files/my_settings.json"); qDebug() << "settings file: " << endl << file.readA...
{ "language": "en", "url": "https://stackoverflow.com/questions/41502389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Defining self-referential structs in a C header file (.h)? I'm trying to create a struct used in two .c source files to make a simple linked list structure. I thought it would save time to create a struct in the header file, however, I get a 'parse error before *' error. This is the code I'm using: /* * Structures....
{ "language": "en", "url": "https://stackoverflow.com/questions/8549077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the DataGrid MappingName for a non DataTable DataSource? I am able to Bind my DataGrid in .NET 3.5 CF to a List() but I am unable to format the columns by specifying their width. Below is the code that looks like it should work but does not. I am pretty sure that I am not setting the MappingName correctly a...
{ "language": "en", "url": "https://stackoverflow.com/questions/859464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: debugging a rails controller making too many queries I have a rails application that about 3 years old, and I'm having a problem with my pages making too many queries. Every page that loads has several lines that look like this: ReqTdsLink Columns (1.0ms) SHOW FIELDS FROM `req_tds_links` what sort of method call...
{ "language": "en", "url": "https://stackoverflow.com/questions/808553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP file read not working On a server I have the file some.php. I try to read the contents using file_get_content and fread. Both these don't read my content. If I try some other URL like yahoo.com, these functions are reading the contents. Why does this happen? $my_conetn = file_get_contents("http://example.com");...
{ "language": "en", "url": "https://stackoverflow.com/questions/2848185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to rewrite CSS Grid declaration w/ grid areas for IE11 I have a handy Container component that defines a grid that wraps all children within the middle column, which serves as a max-width container. This component has the option of specifying the child item to break that max-width container and start at the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/52504649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: React Router v4 Group of Router I want to create a Route Group to validate each route with the first Component. But it may not be possible. Because React read just the first group, I also tried it with React.Fragment, but the same thing happens I created a Group of Routes: import React from 'react'; import {Route} f...
{ "language": "en", "url": "https://stackoverflow.com/questions/49267910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java - Sorting a 2D Array by Row Sum Trying to write a method that swaps the rows of a 2D array in order of increasing row sum. For example, if I have the following 2d array: int [][] array = {4,5,6},{3,4,5},{2,3,4}; I would want it to output an array as so: {2 3 4}, {3 4 5}, {4 5 6} Methodology: a.) take the sum...
{ "language": "en", "url": "https://stackoverflow.com/questions/44993028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Writing a P2P chat application in Python Is it possible to write a peer-to-peer chat application in Python? I am thinking of this from a hobbyist project point-of-view. Can two machines connect to each other directly without involving a server? I have always wondered this, but never actually seen it implemented an...
{ "language": "en", "url": "https://stackoverflow.com/questions/4269287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: symfony2 doctrine multiple update / transaction I'm working on a Symfony2 project with doctrine and have some problems with a SQL update. I have a database table where all entries have a position attribute, since the order is important and changeable by the customer. Finally, I decided to save the position as simple...
{ "language": "en", "url": "https://stackoverflow.com/questions/26348104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show first page of the route without page number on Next JS I've been trying to create a blog page which contains pagination with numbers. My pages folder is like below : src -pages --blog ---[id].tsx I am able to render all static pages with getStaticPaths function Next provides. The issue is I would like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65264228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent text keyboard input on Android/chrome mobile [web] I have a textarea with keyDown listener <textarea onKeyDown={handleKeyDown}></textarea> And the handleKeyDown function: const handleKeyDown = event => event.preventDefault() When I typing from windows PC, Chrome Version 90.0.4430.212 (Official Build) (64-b...
{ "language": "en", "url": "https://stackoverflow.com/questions/67529716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }