text
stringlengths
15
59.8k
meta
dict
Q: How to resolve : "The hierarchy of the type StepsCode is inconsistent" problem How to use a method of class of project A in a class on project B, all projects are maven projects and it's an existing projects with lot of packages and classes , it's for a cucumber test projects, I have the application with lot of proj...
{ "language": "en", "url": "https://stackoverflow.com/questions/55479401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can Python 2 still be installed for use with Spyder? This may be somewhat of a novice question. I don't have a lot of python knowledge, but run a script written by a previous employee of ours. It was written in Python 2 and there are issues larger than using parentheses when trying to rewrite to Python 3. However, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/69438286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET Can't set value to datepicker from code behind I have a datepicker field $(function () { $("#dateTextBox").datepicker({ changeMonth: true, changeYear: true }); $("#dateTextBox").datepicker("option", "dateFormat", "dd/mm/yy"); }); In code behind, on button cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/28728434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Length of cells depending on the length of the string in Excel/CSV Recently I mastered fgetcsv in the hope of writing an array to a file so that I could later open it via Excel, there was no problem with it. Everything turned out ok. But, as far as I understand, there can not be done so to automatically push apart t...
{ "language": "en", "url": "https://stackoverflow.com/questions/52145845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display the notification using service? I was trying to display the notifications using background service for which I wrote 3 classes. The service should run in background even if the appllication closed and and it should start running automatically so I used , <uses-permission android:name="android.permissi...
{ "language": "en", "url": "https://stackoverflow.com/questions/20880937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to do file transfer via SCP using python and a .pem file I wanna to replicate that command in python: scp -i aKey.pem aFile.txt ec2-user@serverIp:folder I found some examples of SCP but didn't found neither using a .pem key, and without informing the user password. How can I make this in python? A: Try to...
{ "language": "en", "url": "https://stackoverflow.com/questions/39573434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Running with_items inside with_items I'm currently running a command as follows: name: Generate a timed-based code for user command: "{{ item.command }} creates={{ item.file}}" with_items: - { command: '/usr/bin/google-authenticator -t -f -d --label=user1 --qr-mode=ANSI -r 3 -R 30 -w 1 --secret=/home/user1/....
{ "language": "en", "url": "https://stackoverflow.com/questions/44033834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Softlayer: SoftLayer_Account::getAllBillingItems. Getting Empty Array [] when i pass "parentId" as null working on SoftLayer_Account::getAllBillingItems passing Filter where I am getting all items with all child Items seperatly. But I want only parent items, so I included parentId as null in filter and I am getting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42647642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CDialog child windows I just wanted to use insde of a good old MFC Dialog based application 2 more moveable dialogs as childs. After solution wizard, i made a Default Dialog resource (child style) and created 2 dialogs in OnInitDialog of the main Dialog: m_P1 = new CMyDlg(); m_P2 = new CMyDlg(); m_P1->Create(IDD_DI...
{ "language": "en", "url": "https://stackoverflow.com/questions/38901934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compiled Expression Trees misunderstanding? I have this expression : Expression<Func<string, bool>> f = s => s.Length < 5; ParameterExpression p = Expression.Parameter (typeof (string), "s"); MemberExpression stringLength = Expression.Property (p, "Length"); ConstantExpression five = Expression.Constant (5); Bina...
{ "language": "en", "url": "https://stackoverflow.com/questions/9453322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Casting and pointer casting in C++ Can anyone explain me why this is true: char *p; short i; long l; (long *) p = &l ; /* Legal cast */ (long) i = l ; /* Illegal cast */ I know it has something to do with lvalue and rvalue but shouldn't (long *) p be a rvalue? edit: sorry it seems I confused myse...
{ "language": "en", "url": "https://stackoverflow.com/questions/20871139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What does (($2 :: fst $1), snd $1) do in ocaml? I'm a beginner in ocaml just need some guidance with the syntax sometimes (($2 :: fst $1), snd $1) I know $2 must be the second token in the line, $1 the first, and fst and snd refer to the first and second component of a pair. I know :: usually indicates to make a li...
{ "language": "en", "url": "https://stackoverflow.com/questions/70129383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Copy and paste from other workbook Im trying to copy all the cells that contain blue font and copy in another workbook in the same range of the source, but im lost at this point. Everytime that i try to run this code, i get an run-time error. Sub test2() Application.EnableEvents = False Application.ScreenUpdatin...
{ "language": "en", "url": "https://stackoverflow.com/questions/39713657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android custom Intent class I want to send a complex object from one Activity to another, so this complex object cannot be serialize, because some fields in this object are system classes and natively non-serializable. That's why I want to create my custom class named "MyIntent" inherits from android.content.Intent,...
{ "language": "en", "url": "https://stackoverflow.com/questions/39532031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Validate submitHandler not displaying response I have a jQuery validation script that is working perfectly with the except of the event handler. I have simplified this post for troubleshooting purposes. jQuery submitHandler: function (form) { $.ajax({ type: $(form).attr("me...
{ "language": "en", "url": "https://stackoverflow.com/questions/22794120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extensive String Manipulation - Cursor or While-Loop? Quick Background I have received a project from our marketing team to make bulk updates to the descriptions of products that will be displayed on our website (>500k items). They have decided to take many decades worth of descriptions and try to make them as simil...
{ "language": "en", "url": "https://stackoverflow.com/questions/34726667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are C++ compilers allowed to replace construct + moveconstruct with just a construct? Are C++ compilers allowed to replace: const auto myType = MyType(1, 2, 3); with: const MyType myType(1, 2, 3); ie, emit the assignment, or is there anything which prevents this? Note: The reason I ask is that I prefer the first v...
{ "language": "en", "url": "https://stackoverflow.com/questions/37478797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add custom image to font awesome icon I'm a fan of Font Awesome I'm using lots of icons from there. But, now I need adding my custom image to font awesome file for using as icon. I want to add them to font icons files so that I can use their property like .fa-2x .fa-lg etc By researching on internet I found t...
{ "language": "en", "url": "https://stackoverflow.com/questions/24042219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert formula with relative cell in a range I've been searching how to insert a formula in a range where each cell refers to a different cell but I still have no clue on how to do it. I've tried this: Dim datejour As String Dim datemois As String Dim dateannee As String datejour = Format(Day(Date), "00") datemois ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72558691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android - data binding to field, displaying matching icon I have a class WifiManager that holds a Boolean value that represents either wifi connected or wifi disconnected. the Boolean field gets updated with a broadcastReceiver I have in that class. private BroadcastReceiver wifiScanReceiver; private boolean isWifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/39530947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c# Building Dynamic SQL in c# Trying to build a Dynamic SQL string in my c# code. Not sure where I'm going wrong with it. private void Save_Item_Drop_Data() { string uri = string.Empty; string strUpdate = string.Empty; WBGUpdateValue Update = new WBGUpdateValue(); Update.Email = Game_Data._User_Accou...
{ "language": "en", "url": "https://stackoverflow.com/questions/59923192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R readHTMLTable function not working I have the following code written in R in which I would like to obtain some names from this particular webpage. library(RCurl) library(XML) x <- getURL("http://www.encyclopedia-titanica.org/titanic-passengers-crew-lived/country-17/england.html") x_2 <- htmlParse(x) x_3 <- readHTM...
{ "language": "en", "url": "https://stackoverflow.com/questions/36628875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Throw error when creating react component conditionally I have a react component called ListChats and another called Chat. ListChats calls the rendering of a Chat I need that if an error occurs when rendering the Chat, ListChats knows and comes back with the list of available chats. A possible error, its capture has...
{ "language": "en", "url": "https://stackoverflow.com/questions/66232474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Play 2.3 with ReactiveMongo to serialize JsObject I have a case class like this: case class MemberOptions( @Key("_id") memberId: Long, settingsJson: JsObject, updateDate: DateTime = DateTime.now() ) How can I serialize and deserialize JsObject? I tried to look for Writes and Reads but found nothing yet. There...
{ "language": "en", "url": "https://stackoverflow.com/questions/42763434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Failure to normalize the dynamic range of an image When I try to use the following function to normalize the dynamic range of an image: void normalize(uint8_t array[], unsigned int cols, unsigned int rows) { uint8_t minValue = min(array, cols, rows); uint8_t maxValue = max(array, cols, rows); uint8_t MI...
{ "language": "en", "url": "https://stackoverflow.com/questions/38819343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make changes to XAML during runtime/debugging and show changes without a restart? When running my application it is fairly slow to load. So in order to speed up development I am wanting to run my views independently using a testing framework (to avoid needing the whole application load up). In the process of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51412538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What dropdown box does rails_admin use? I want to use it in my rails projects instead of the default selectbox, but can't figure out what kind it is or how to implement it in my code. The rails_admin one is more like a textbox with typeahead instead of just a standard dropdown. Thanks! A: It looks like they have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10987366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create package with main and test classes? I'm making a PageRank class that relies on some linear algebra operations that I've written myself. Since I couldn't be bothered to learn JUnit testing, I decided to write my own testing class for my PageRank class. Unfortunately, it wasn't as easy as I expected. Her...
{ "language": "en", "url": "https://stackoverflow.com/questions/48962369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Javascript Mouseevent On Hover Currently I am looking for some help with my mouse over event. <div class="video-container"> <video id="my_video" loop muted poster="IMAGE_URL"> <!-- put your image here --> <source src="VIDEO_URL" type="video/mp4"> <!-- path to your video here --> </video> </div> Above is my video-...
{ "language": "en", "url": "https://stackoverflow.com/questions/74697373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: F* Raising Exception in match body I am trying to create a function in F* to determine the minimum element of a list, and I want to throw an exception if the list is empty. The code I have so far is below: module MinList exception EmptyList val min_list: list int -> Exn int let rec min_list l = match l with | []...
{ "language": "en", "url": "https://stackoverflow.com/questions/57838693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Query is not working or any connection issue I have an issue in my search box, I actually want to show products on a page when anyone searches for the similar product but I am just getting a header and footer not any product. This is my query in the controller public function showsearchpage() { $query = Produc...
{ "language": "en", "url": "https://stackoverflow.com/questions/43669873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using the natural width of an element while limiting its height I have elements A, B, and C. I want them to appear in roughly this configuration: .---.---. | | B | . A .---. | | C | .---.---. I want to limit the height of B (and have it overflow: scroll) such that combined height of B and C is the natural heigh...
{ "language": "la", "url": "https://stackoverflow.com/questions/39944041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Make a record from a list of Text values Starting from a list of Text, I'd like to convert this into a Record where each field corresponds to a value in the list. import Data.Text data MyRecord = MyRecord { rOne :: Text, rTwo :: Text, rThree :: Int } txt :: [Text] txt = ["foo", "bar", "12"] I'm not sure how...
{ "language": "en", "url": "https://stackoverflow.com/questions/67462494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stuck at debugging with message "Waiting for Debugger" in Android studio Whenever I try to use Android Studio's Debug function, the Run status would always stuck at: Launching application: No local changes, not deploying APK $ adb shell am start -D -n "com.example.nagamacmini.retrofitomdb/com.example.nagamacmini.ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/38699829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# - Replacing an item in the backpack I'm trying to create a simple backpack-program. It is an assignment for school and I'm almost finished except I cannot manage to replace the item in my backpack with a new one. My guess for why it might not be working is that I cannot replace item because it is in the global sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/42165289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does people train object detection methods with early stopping and what were their settings? I'm working on some stuff related to object detection methods (YOLOv3, Faster-RCNN, RetinaNet, ... ) and I need to train on VOC2007 and VOC2012 (using pretrained models of course). However when I read the relevant papers I d...
{ "language": "en", "url": "https://stackoverflow.com/questions/59772828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: See if Input Has Spaces with jQuery I'm trying to write a function that reads a inputs value, and determines if a space has been used in it's creation. I'm not trying to trim anything -- just see if it would have needed the ability to trim. I'm not even sure where to begin on this, so I don't have any code to look a...
{ "language": "en", "url": "https://stackoverflow.com/questions/13257007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SQL Rounding Query I have been doing alot of research attempting to find an answer to my question. I am trying to work out which syntax is needed to round when the figure is less than one. For example SELECT 17/26 When running this in SQL, it bring up zero, however i am attempting to get it to return ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26354744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fix a unexisting Reactive Forms error I'm building a form but, for whatever reason, the compiler is complaining about it. Can anybody spot something wrong here? This is what I get: ERROR Error: No value accessor for form control with name: 'email' ERROR Error: No value accessor for form control with name: 'p...
{ "language": "en", "url": "https://stackoverflow.com/questions/62283527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copied data paste into String function Can anyone tell me how to store copied data into String in selenium? example: driver.findElement(By.xpath("//*[@id="x")).sendKeys(Keys.CONTROL, "a")); driver.findElement(By.xpath("//*[@id="xy")).sendKeys(Keys.CONTROL, "c")); driver.findElement(By.xpath("//*[@id="xy")).sendKeys(...
{ "language": "en", "url": "https://stackoverflow.com/questions/48793215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Extract all function from source file without evaluating it For my package I am looking for a method to identify all function assignments in a user supplied R script, without executing it. So let's assume the following example script (ex.R): ex.R ## user supplied script a <- function(x) 1 b1 = b2 <- function() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75374051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: having trouble compiling old VC++ 6 c++ code I am trying to compile MSVC 6 C++ code using MSVC 2008 Express on 64 bit windows 7. When I tried to open the .sln file, I get the error "project file dpcwebcfx.vproj could not be loaded". I don't have the .vproj file, but I do have dpcwebcfx.dsw file. So in the .sln file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18018358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exception in VOCE sample C++ app I've been playing around with the C++ api of Voce for speech recognition in one of my projects. So far, I've been able to compile the C++ version of one of the sample apps provided by Voce named recognitionTest (provided under the samples directory in voce-0.9.1). However, when I try...
{ "language": "en", "url": "https://stackoverflow.com/questions/29550317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does this function traverse Binary Tree? I am working on a coding challenge. I found a solution, but I did not understand a part of the solution. The prompt is Given a binary tree, find the leftmost value in the last row of the tree. Input: 1 / \ 2 3 / / \ 4 5 6 / ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47659452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is AWS Lambda resetting every ~2hrs even with regular ping from EventBridge? I have a Lambda function that has an unacceptably long start-up time due to large files being transferred on initialisation. Once this is done, the actual data processing is very quick I've set up a rule with EventBridge that keeps the...
{ "language": "en", "url": "https://stackoverflow.com/questions/73838898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Handling large JSON web response in VBA I need to create a program that accesses a REST API and imports the JSON response into Excel. I am using XMLHTTP WebRequest to get the response into an string and then use the VBA-JSON Library to parse it. Sample code: Dim Url As String Dim Response As String Dim HttpReq, Resp...
{ "language": "en", "url": "https://stackoverflow.com/questions/48846585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to write this sql query efficiently in this case Here I have a query like below and am looping the child id and passing it to this query and getting the appropriate result. Here I have 33 child ids so the result for this query contains 33 rows DECLARE @DATETIMENOW DATETIME SET @DATETIMENOW = GETDATE()-7 SELE...
{ "language": "en", "url": "https://stackoverflow.com/questions/23547759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Worst Case Binary Search? The question is: In order to distinguish ordinary emails from spam, an algorithm with several features has been designed. Every feature provides information about the message, for instance number of suspicious words, the length of the message, degree of matching with spam templates e...
{ "language": "en", "url": "https://stackoverflow.com/questions/22442190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Externalize angular configuration file ( config.json ) I have an angular application (war format) that run on a jboss application server. My actual architecture is: Front app ( angular ) and back app ( java ), the front calls back services using the rest api link, that is provided in the src/conf/config.json file. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/63673403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling NSXMLParser from static method does not parse I'm trying to build a nice little class with NSXMLParser for my needs. I'm calling the class this way: ViewController.m: [IDAN_XML_Parser setXmlString:soapMsg]; [IDAN_XML_Parser setStringToFind:@"userID"]; [IDAN_XML_Parser setHeader:kAPP_PASSWORD andHeaderValue:k...
{ "language": "en", "url": "https://stackoverflow.com/questions/16735013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to transfer struct from one process to another? I have one server process and some clients, the clients need to send to the server as many structures as possible, they will not wait for any answer, just send and send. In which way i can transfer next struct in that case: typedef struct tagTDATA { B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7106714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accordion animation in ui-bootstrap is different from the original bootstrap (size of the accordion is increased, visually it "jumps") The default animation in bootstrap does not change the size of the full accordion in the process. For some reason in the ui-bootstrap that is not the case and while it animates it do...
{ "language": "en", "url": "https://stackoverflow.com/questions/36721480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to prevent reordering of loads after stores using the C++11 atomics API? I know that you can use the C++11 atomics API in a producer-consumer context to make sure that a consumer sees the "done writing" flag only after some produced record has been completely written out, i.e. producer: data[write_index] = <som...
{ "language": "en", "url": "https://stackoverflow.com/questions/27139261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting "TypeError: cannot pickle '_thread.RLock' object" when using Broadcast Variable in Spark Cluster The Spark Cluster has one Master and four Slaves. I have a small table in the database, so I read the table in Master node and set it as a Broadcast variable like this: def checkTableExists(tablename, connection)...
{ "language": "en", "url": "https://stackoverflow.com/questions/73080447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to draw perfect straight line passing through majority of given points in MATLAB? Can someone help me figure out how to draw a perfect straight line from given set of points passing through majority (may be 5-6 point out of 20) of these points? Please note that this is not a line fit problem, but perfect line sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/27775682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unexpected binding behaviour I have select list i set default option to be chosen. what happen is for few second it works then it disappear and the blank option in the list is chosen as default. <div class="form-group"> <select class="form-control" ng-model="item.action" ng-options="option.value as op...
{ "language": "en", "url": "https://stackoverflow.com/questions/30108289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simplify PHP for SQL data retrevial I'm new to PHP and SQL queries but trying to learn. Anyway, I have the following code which I'm sure there will be a simpler way of doing (hopefully as I intend to do the same for day of year not just month). My current code is; //Get jan power consumption $janquery = mysql_query(...
{ "language": "en", "url": "https://stackoverflow.com/questions/12626670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert Object to List in c#? I have a List<string> in Model. When I write a html helper, I can get the data from metadata.Model, which is an object // this is from MVC3 (namespace System.Web.Mvc -> ModelMetadata), I did not write this // Summary: // Gets the value of the model. // // Returns: // The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9043773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I tell if a file has changed through .NET? I am looking for a way to determine when a particular file has changed, through .NET. (What I ultimately want is functionality that makes a copy of the file as soon as it has changed.) How can this be done? A: class Program { static void Main(string[] a...
{ "language": "en", "url": "https://stackoverflow.com/questions/479114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linux: how to check the largest contiguous address range available to a process I want to enter the pid at the command line and get back the largest contiguous address space that has not been reserved. Any ideas? Our 32 bit app, running on 64 bit RHEL 5.4, craps out after running for a while, say 24 hours. At th...
{ "language": "en", "url": "https://stackoverflow.com/questions/9403146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: REDIS-Python -> get all keys and respective values from 1 database I am trying to get all keys and values from a REDIS db. There are about 35000+ open connections on REDIS by the other users. I am using r.scan_iter()to get all the keys and I am appending them to a list. I am currently using pipeline.execute() to get...
{ "language": "en", "url": "https://stackoverflow.com/questions/46677903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Facebook and Whatsapp sharing buttons I have an PHP page showing an image to the user, and I want them to share via Facebook or WhatsApp, Here the code for the head part: <meta name="description" content="<?php echo $Rowdati['metadescrizione'];?>"> <meta name="keywords" content="<?php echo $Rowdati['keywordsapp'];?...
{ "language": "en", "url": "https://stackoverflow.com/questions/46861633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making a V-shaped pattern with Python I wanna make pattern by algorithm. Result is the pattern like .......... .......... .......... .......... .......... .......... .########. .########. ########## ########## But my ideal pattern is ##......## ##......## .##....##. .##....##. ..##..##.. ..##..##.. ...####... .....
{ "language": "en", "url": "https://stackoverflow.com/questions/45183784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Do custom networks replace default network in docker-compose.yml Does specifying custom networks in docker-compose remove services from the default network? I can't find any information about this. example version: '3' services: nginx: image: 'nginx:alpine' restart: always networks: - web -...
{ "language": "en", "url": "https://stackoverflow.com/questions/50824072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create filterable and sortable div elements I am using rails 3 and ruby 1.9 to develop a ecommerce app. I currently have a loop pulling product info from the database into a div for each product to populate the storefront. Problem is I have been been trying without any luck to figure out how to make the prod...
{ "language": "en", "url": "https://stackoverflow.com/questions/17776309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parse data from php to jsquery.flot.pie I've seen some questions about this already but I still couldn't clear the fog around this... I have this sql statement to get data: <script type="text/javascript"> <?php $query = "SELECT rel_id, SUM(suma) FROM $tbl_rel_balansas INNER JOIN $tbl_balansas ON $tbl_rel_balansas...
{ "language": "en", "url": "https://stackoverflow.com/questions/5572911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dotnet restore: An error occurred while retrieving package... metadata Root element is missing I have a nuget/docker build issue that I’ve spent a couple of days debugging and am running out of ideas: Do you know why I am getting the below error? The issue is with one asp.net core solution (others that are very simi...
{ "language": "en", "url": "https://stackoverflow.com/questions/58697460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find "complete cases" with awk Using awk, how can I output the lines of a file that have all fields non-null without manually specifying each column? foo.dat A||B|X A|A|1| |1|2|W A|A|A|B Should return: A|A|A|B In this case we can do: awk -F"|" -v OFS="|" '$1 != "" && $2 != "" && $3 != "" && $4 != "" { print }' foo...
{ "language": "en", "url": "https://stackoverflow.com/questions/43378932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent Popup template to shows multiple feature in ArcGIS 4.16 Angular 10 I have integrated a popup on the map for a specific layer. Some time the poup shows pagination (featureNavigation) multiple data. Sometimes it fails to show the data, or mismatch in the data that actually the service returns. var popupTra...
{ "language": "en", "url": "https://stackoverflow.com/questions/64336716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ambiguous use of a subscript when accessing a 2-dimensional array bridged from Obj-C This code which ran perfectly in Xcode 7.0 now complains with a error : Ambiguous use of a subscript in Xcode 7.3.1 on the second line. let ar = sender.draggingPasteboard().propertyListForType("ABLinkedPeopleUIDsPboardType") as!...
{ "language": "en", "url": "https://stackoverflow.com/questions/38733518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP ECHO VARIABLE I managed to create a new line for each only with : $content1= hot("britney") ? "britney found" : ""; $content2= hot("gaga") ? "gaga found" : ""; $content3= hot("carol") ? "carol found" : ""; $filename = 'result.txt'; $handle = fopen($filename, 'a'); fwrite($handle, "$Content1\r\n"); fwrite($hand...
{ "language": "en", "url": "https://stackoverflow.com/questions/3827080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: perl6 Is using junctions in matching possible? Is it possible to use junction to match any of the values in a junction? I want to match any of the values in an array. What is the proper way to do it? lisprog$ perl6 To exit type 'exit' or '^D' > my @a=<a b c> [a b c] > any(@a) any(a, b, c) > my $x=any(@a) any(a, b, c...
{ "language": "en", "url": "https://stackoverflow.com/questions/41457242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Rename the newly created sheet based on active cell in Sheet1 I am newbie at VBA and have a problem to solve, which for you will be more than simple, I am sure. Here is the problem: I have table with company names in column A. What I want is to select cell with company name, click the button which will run a macro c...
{ "language": "en", "url": "https://stackoverflow.com/questions/45301925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change value in private member in JFrame with reflection Hello, I have the following code, what I want is to modify the value of the instance called number to any value I have both classes in the same package ReflectionOnClass.class import javax.swing.*; import java.awt.*; public class ReflectionOnClass extends J...
{ "language": "en", "url": "https://stackoverflow.com/questions/52677449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a Twitter-like following system How can i make a Twitter-like following system where, if you follow someone, you will receive their tweets. I have a database table called "users", "followings", and "posts". The users table holds the users that are on my site. The followings shows the persons followers, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/15937260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing JSON return object names I have this function for returning users and user count List<User> entitiesList = DB.Users.OrderBy(x => x.UserName).ToList(); var count = DB.Users.Count return (entitiesList, count) The result from HTTP request is this { "item1": [ { "fullName":"Joe Smith" }, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56772138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does javascript loaded via .load run even after it's "deleted"? I don't know any better way of asking this, or search for it, so here it goes: I have a webpage that's basically a menu and a big white DIV in the center. All the subpages are loaded inside that div via .load. This is all fine, but: I want to know if s...
{ "language": "en", "url": "https://stackoverflow.com/questions/29912959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Graphql-Client ruby OpenSSL::SSL::SSLError I am trying to test if I can connect to a graphql API from a rails backend by using graphql-client with the following code: require "graphql/client" require "graphql/client/http" HTTP = GraphQL::Client::HTTP.new("https://x.x.x.x:3100/graphql") Schema = GraphQL::Client.lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/65023280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android AVD (Emulator) exit I cannot open the emulator, each time I Press launch avd. the emulato exit immidately before launching. and it seems like there is no integration ? or something wrong as I have the below error: emulator unknow. even though I have an emulator. I don't even know what sort of issues is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/44336377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating index by concatinating multiple columns MySQL I am new to mySQL and trying to migrate to MySQL from oracle and I have an index that I need to convert to mySQL. In oracle I have created this index by using 2 columns as : CREATE INDEX TEST ON TABLE(COL1||'/'||COL2, COL3) Now I am trying to find alternate for...
{ "language": "en", "url": "https://stackoverflow.com/questions/35050416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to auto-backup Access Database I want to autoback up my access database with the below code and it didn't work for me. I got an error "cannot find the input table or query "WinAutoBackup" Please view the picture. Also, did I use CurrentProject correctly? [Function fMakeBackup() As Boolean Dim Source As String D...
{ "language": "en", "url": "https://stackoverflow.com/questions/57742075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GridView button with condition I have a gridview with 3 columns Name,Surname,Change(ButtonField column) which is populated from an SqlDataReader with the following code SqlCommand sqlCommand = new SqlCommand("select * from Empl where userId ='" + userid + "'", sqlConnection); sqlConnectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7110858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to make inserted items sortable $('.parent').sortable({ containment: "parent", tolerance: "pointer", axis: "x" }); $('button').on('click', function(){ var str = $('#store').html(); $(str).insertBefore($('.parent').eq(0)); }); .parent{ background:silver; margin:9px 0; } .title{ backgroun...
{ "language": "en", "url": "https://stackoverflow.com/questions/53768536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I align elements vertically in Vuetify? I have these social media buttons in the top left corner: And here is the code: <v-row v-for="(button, index) in socialMediaButtons" :key="index"> <v-col> <v-btn fixed fab class="mt-5 ml-1"><v-icon>{{ button.logo }}</v-icon></v-btn> </v-col> </v-row> As you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58900624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript won't work when passed in jquery AJAX / jquery call in loaded DIV I know this question has sort of been asked, but it's been asked for other issues not related to how my code is set up, and I believe it's unrelated to how this works. I can't for the life of me figure how to fix this. I have two PHP pages ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45899156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Multiple select statements in single query while using 'group by' and 'join' I have three tables - podcasts, videos and others. Each of the entities under these are associated with a category and subcategories. Example for podcasts - This category_id and subcategory_id have their name values in their respective tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/64622274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Gant table in excel Experts, can you help me with one task I have? I have to make a Gant table in excel for real production. Do you have any teplate of working gant in excel? I would be grateful if someone could share an example. Thank you in advance. Isue for excel Gant table
{ "language": "en", "url": "https://stackoverflow.com/questions/71625862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any way to compile a C# assembly statically into a project? I'd like to compile the same build number into a number of separate assemblies written in C#. When I update the build number in a single place, I need it to update in all of the individual assemblies. Whats the easiest method to do this? A: Use a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5485404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a websocket ping in vanilla browser JS I've searched a lot but cannot find a specific example of how to send - using javascript - a ping over a websocket (https://www.rfc-editor.org/rfc/rfc6455#section-5.5.2) from the browser. I'm told that the server I'm using will reply to a ping, but I've been trying var...
{ "language": "en", "url": "https://stackoverflow.com/questions/64712649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why is the value being changed even in a const function? #include<iostream> using namespace std; class temp { int value1; public : void fun() const { ((temp*)this)->value1 = 10; } void print() { cout<<value1<<endl; } }; int ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/3574059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Not hide soft-deleted instances while using `get_or_create` Let's say you are modifying get_queryset in you manager something like this class VoteManager(models.Manager): def get_queryset(self): return super().get_queryset().filter(is_deleted=False) class Vote(models.Model): objects = VoteManag...
{ "language": "en", "url": "https://stackoverflow.com/questions/53968557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Executing shell command in python: String error I want to execute a batch file and a command on the windows shell cmd.exe per Python. Its this command: $cmd.exe /k ""C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 & msbuild ALL_BUILD.vcxproj" When I enter this line manually on the command pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/13837612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When dumping assetic, using MopaBootstrapBundle, Runtime Exception occurs: The filename, directory name, or volume label syntax is incorrect Below is the complete output: > php.exe C:\xampp\htdocs\bootstrap\app\console assetic:dump Dumping all dev assets. Debug mode is on. [file+] C:\xampp\htdocs\bootstrap\app/../w...
{ "language": "en", "url": "https://stackoverflow.com/questions/10451697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to fix "ViewDestroyedError: Attempt to use a destroyed view" error in Angular tests? First off, there is a long list of similar questions (1, 2, 3, 4, 5, 6, 7, 8 and more), but none of those actually have an answer applicable to my case and many other have not been answered at all. Description and links to sour...
{ "language": "en", "url": "https://stackoverflow.com/questions/56562397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java. Changing the values of an inner array within an ArrayList I'm new to Java. I'm trying to create a Data Structure design for a simple snake game. I decided to have a dynamic size ArrayList of Arrays holding integers which represent Xs and Ys of a snakes "body". I have a quite bulky solution (with advanced for l...
{ "language": "en", "url": "https://stackoverflow.com/questions/44640088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Facebook login callback session always closed I have a facebook login feature in my app. Now my code works well in the emulator. But when I tried testing it to a android phone. There's no error but the session appears to be always closed even if I'm logged in. Here's my code: Session session = Session.getActiveSessi...
{ "language": "en", "url": "https://stackoverflow.com/questions/22405738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to prevent ios app from loading previous core data stored on device I want the app to pull new objects every time it is loaded (start-up) and not retrieve old information stored, how would I do this effectively?
{ "language": "en", "url": "https://stackoverflow.com/questions/44437149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I find my secret Key to add my Authy Application to clients phones? After setting up MFA, most clients have the account automatically added to their Authy app. For others, they are trying to add the account by clicking Settings >> Add Account. It then asks them to scan a QR-Code or manually enter a key. As th...
{ "language": "en", "url": "https://stackoverflow.com/questions/44464999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Any idea what would cause intermittent 500 serialization error on c#/.net/EF/MVC5 site? I've got an Azure web app .NET(4.6.1)/c#/MVC5/EF/Newtonsoft.JSON(6.0.4) that will run fine for a week, and then out of the blue, through 500 errors, and become unusable for everyone. Restarting and/or Recycling the site brings t...
{ "language": "en", "url": "https://stackoverflow.com/questions/46447553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change width of checkable area of checkbox I have a CheckBox object and it doesn't have any text associated with it. It is in a Grid which has another coulmn used as the label for it. The whitespace next to the checkbox you can click and it will toggle checkbox I want it just be the area of the actual checkbox and n...
{ "language": "en", "url": "https://stackoverflow.com/questions/6428545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }