text
stringlengths
15
59.8k
meta
dict
Q: Element to save results with different length in R I want to extract similar text strings using the agrep function and save them in a list or vector, but the result has different length (even replacement could has length zero),so I get an error. How can I define a list or vector in order to save the results even if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31421460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: If SELECT COUNT is less than or equal to 10, input reservation details I'm trying to make a simple reservations form in PHP. If the amount of bookings with the same date and time is less than or equal to 10, I want it to input the details to the table. Anything else, I want a message to say "Booking failure! We're ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23135177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: JS, show marker as string in google api using geojson I'm new with Javascript and i wonder how to show a marker as a value that loaded from geojson file. for example: a marker with the number 17.6396, where the coordinates is 35.04226 32.76994. like in this map: http://www.meteo.co.il//MeteoMap.aspx <!DOCTYPE html>...
{ "language": "en", "url": "https://stackoverflow.com/questions/29366446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deserialize object into assembly that is now signed and versioned I used to serialize a treeview with the BinaryFormatter (c#). The Assembly that did just that and which contains the all the serializable classes has now a strong name and is signed and also got a new version number (however, implementation didn't cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/780739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Troubles switching from VC++ Directories to User Macros for Boost Good day, I have previously successfully used boost in Visual Studio 2010 by using Include and Library Directory paths under VC++ Directories in project settings. However not long ago I have been forced to switch to using "User Macros" to do the linki...
{ "language": "en", "url": "https://stackoverflow.com/questions/14796824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Class literal from a class object based on an interface At first look it doesn't look like this might be possible so it would be good to hear some design patterns or a work around to make this work. I need to provide an external library with the class literal Class<T> in order for it to find the right type and anno...
{ "language": "en", "url": "https://stackoverflow.com/questions/33818338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ORDER BY id DESC LIMIT 100 returns first rows instead of last Using latest versions of Postgres, Node and node pg. Trying to figure out why ORDER BY col DESC LIMIT 100 always returns the first rows regardless of order. Here's the table: CREATE TABLE transactions ( id BIGSERIAL NOT NULL, timestamp timestamp w...
{ "language": "en", "url": "https://stackoverflow.com/questions/73179341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: basic query on associative arrays How to do I query this in? Graph is working on this query $dataPoints = array(); $result = mysqli_query($conn, "SELECT * FROM service_booking GROUP BY service_id"); while($row = mysqli_fetch_array($result)) { $point = array("label" => $row['service_id'] , "y" => $row['...
{ "language": "en", "url": "https://stackoverflow.com/questions/56945167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Possibility to modify or extend code in D365FO to suppress thrown error Original class function creates an SQL query and executes it. Since there is an syntax error in the query it throws an error. What's the correct way to achieve fixation? Class extension does not work, because CoC executes the complete original f...
{ "language": "en", "url": "https://stackoverflow.com/questions/72001147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Array for multiple columns and paste into different sheet, getting #ref at the last row? I want to copy put a range of columns into an array and paste columns based into a different worksheet using an array. I want to put column A2 to H from RESOURCEPLANNING into an array and paste column A,B,D,F & G into Resource_O...
{ "language": "en", "url": "https://stackoverflow.com/questions/67345586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Element.focus() doesn't work when called within a function handler for addEventListener() Here is my code. For some reason, this code does not give focus to the textbox with the id "dude" even though the paragraph tag with id "answer" does get the key code of the button that I clicked. It is like the line with the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/72411275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running shell script against Localstack in docker container I've been using localstack to develop a service against locally. I've just been running their docker image via docker run --rm -p 4567-4583:4567-4583 -p 8080:8080 localstack/localstack And then I manually run a small script to set up my S3 buckets, SQS queu...
{ "language": "en", "url": "https://stackoverflow.com/questions/53563942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to use a file to migrate data from mysql to a clickhouse? I need to migrate the data from Mysql to ClickHouse and do some testing. These two database networks are not working, I have to use files to transfer. The first thing I think of is that I can use the mysqldump tool to export .sql files. mysqldump -t -h192...
{ "language": "en", "url": "https://stackoverflow.com/questions/52345137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android: select Tab programatic if in Dropdown List mode Depending on the number of tabs and on screen orientation tabs are displayed next to each other or in a dropdown list. I wrote a function to set the current tab. This works but not in dropdown list mode. What has to be done? static class TabsListener implement...
{ "language": "en", "url": "https://stackoverflow.com/questions/12986991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "No valid predicate" error when upgraded from Meta_search to Ransack? I've got an ActiveRecord model with a method defined like this: def state if deleted? :deleted else :expired end end The 'search_method' is defined in the model as: search_method :state In the view: = form.select :state,...
{ "language": "en", "url": "https://stackoverflow.com/questions/20992463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How are shared libraries referenced by various programs? I understand that shared libraries are loaded into memory and used by various programs. How can a program know where in memory the library is? A: When a shared library is used, there are two parts to the linkage process. At compile time, the linker program, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62296128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: New page opening seamlessly as a popup with different url on apple.com. How did they do it? I was trying to replicate the effect I saw on apple.com but with no success. On https://www.apple.com/uk/apple-watch-series-3/ if you click on learn more button (middle of the page - sports watch section) you get something li...
{ "language": "en", "url": "https://stackoverflow.com/questions/48784799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass a PHP variable into a Javascript cookie on submit of form? I am setting up a custom form to be used in my wordpress site. What I would like to do is grab the AUTO_INCREMENT ID of that submission and pass it into a Javascript cookie when the form is submitted. Currently the ID is working, but because the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37260159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How I insert a time-date-stamp in MongoDB with a Golang Sruct? I have the following struct: type TypeIncidence struct { Number int bson:"number" json:"number" Description string bson:"description" json:"description" Date_time_stamp string bson:"dateTimeStamp" json:"date_time_stamp" } and I want insert a docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/70589570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing pico cli commands, Java I've developed a Java API and I've built a command line interface to consume it using PicoCli What is the proper way to test my pico commands? Thanks in advance A: You can do black box testing by verifying the exit code and the output of the program to the standard output stream and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59661608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Math command fails to produce output on PyCharm Completely new to python, I'm trying to get the math packages included in anaconda to work. If I run a math command in IP Notebook, I get the right answer: But under the same settings, if I run the equivalent command on a .py file on PyCharm nothing happens: It can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34747669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Update excel file (xlsx) with csv logs using Python I'm getting daily logs in a csv format and currently opening them in excel and copy/pasting into my master excel file. I'd like to make a Python script that can read a new csv file and write to the master excel file on a specific sheet and starting from a specific ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28442237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to mapping hibernate entity to db view Could you help me how can I mapping to any entity to db view? Scenario is here, We create a view on db with native sql we have to do like this and we want to mapping this view to ours entity. How can we do that? We try to create an entity with same columns on view but it do...
{ "language": "en", "url": "https://stackoverflow.com/questions/38991169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML tabs with content in separate files I am at the moment using this code for HTML/JS tabs. But the code gets way to messy since it is all in one file, is it possible to separate the code in tab one, tab two etc? <!-- Tab links --> <div class="tab"> <button class="tablinks" onclick="openCity(event, 'London')">...
{ "language": "en", "url": "https://stackoverflow.com/questions/49918732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery Ajax html (Select multiple) I m searching something of easy. I must pass value from a form html to a file PHP by jquery. I try this code with zero result. If someone can say me where i m mistaking. Thx for JQUERY $('#Save').click(function(){ var realvalues = new Array();//storing the selected values insi...
{ "language": "en", "url": "https://stackoverflow.com/questions/63306176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add toggleBoldface option to a UITextView in iOS? I wish to add toggleBoldface, toggleItalics and toggleUnderline to the editting options of a UITextView. How can this be done? Preferrably in Swift please. A: Enable the text view's allowsEditingTextAttributes property. A: For those who came here because the...
{ "language": "en", "url": "https://stackoverflow.com/questions/35325394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why does the callstack not show the previous calls? In my VS2022 C++ project, something goes wrong after some time. Because the error occurs after 10 minutes only, I need to inspect the call stack to see what went on before the error occured. However, the call stack is too small. It just shows this: I have set brea...
{ "language": "en", "url": "https://stackoverflow.com/questions/74049038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firefox dropping style selectors involving :before and :after I work on a project where we quite often have LESS looking kind of like this: .boxed, .boxed-band, .boxed-band:before, .boxed-band:after, .boxed-image { background-color: green; &.section{ // Adds padding for all children except the headline. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33217835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP : how to get original value of number after being scaled (for zoom logic) currently i am making some "zoom in / zoom out" logic in php, and now i have some problem with scaling value and reverting it back to original value in php (if applicable to js it would be awesome). here is the codes $scale = 1; $...
{ "language": "en", "url": "https://stackoverflow.com/questions/52632793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Docker runs fine but commands crashes with error I'm not a pro in Docker for Windows but have been using it for few months and everything was fine. My setup: Windows 10 Pro x64 Docker for Windows version 17.12.0-ce, build c97c6d6 One day after my system rebooted I've got this error for every docker command (with abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/48803548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert old Japanese text encodings? I run MacBook Pro under 10.6.7, and I am competent in Unix. I have old Japanese text files in various encodings (EUC, SJS, New-JIS) that I can no longer read or display. The old program jconv.c does not help, since it only converts among these encodings. Is there a way ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6020273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to display multiple location markers by address using google map api? I don't want to display multiple markers using latitude and longitude, Only by addresses which are stored in mysql database. Latitude and Longitude are not stores in the table. I have worked on it and was successful in displaying one marker, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30312499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Java Maze Shortest Path misunderstanding Here is code, using recursion, I am trying to solve maze with shortest pathing, but it is getting solved with a longer way and I don't really understand why. Here is code of recursion : public boolean findPath(int row, int col) { board[row][col].visit(); if ((col == 7) && (...
{ "language": "en", "url": "https://stackoverflow.com/questions/34479670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Re Use of DefaultTableModel DefaultTableModel dtm = new DefaultTableModel(new Object[]{"SR#", "Date", "Name", "Description", "Quantity", "Weight", "Rate", "Total", "Balance","Paid","Net Pay"},0); table = new JTable(); table.setModel(dtm); JScrollPane scroller=new JScrollPane...
{ "language": "en", "url": "https://stackoverflow.com/questions/32208590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why does MD5 Hash For FileStream and String Differ C# I generate a MD5 Hash from a String and from a File Containing the Same String using System.Security.Cryptography.MD5. However the Hash Values Differ. Here is the code to generate from a string byte[] data = Encoding.ASCII.GetBytes("The quick brown fox jumps ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/13245842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: show div on right click of element I am trying to show div on click of right click event, this right click is working fine but event is not applied Correctly. Fiddle:: http://jsfiddle.net/SRX3y/82/ Code:: $.event.special.rightclick = { bindType: "contextmenu", delegateType: "contextmenu" }; $(document).on...
{ "language": "en", "url": "https://stackoverflow.com/questions/20045460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why won't int variable come before char array in terms of addressing no matter how I code it in C? I'm reading Hacking: The Art of Exploitation (2nd Edition), and I'm currently on the section about buffer overflows. In the first example, the variables are declared/initialized in this order: int auth_flag = 0; char p...
{ "language": "en", "url": "https://stackoverflow.com/questions/3481930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How To Save A URL Object As A Text File? I have an assingment I have to do so please do not post the code, but can someone explain to me logically how it is possible to save a URL source code as a text file? So far I have this code from the Oracle docs: import java.net.*; import java.io.*; public class URLConne...
{ "language": "en", "url": "https://stackoverflow.com/questions/23051262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add newline return or linebreak to string (Typescript & React) I have a variable called resultElem which is created after reading an array. As it reads the array, I want to add a newline '\n' or at the end of it, following a space. for (let l=0; l<answer.questions.length; l++) { var questionMap = [answer.ques...
{ "language": "en", "url": "https://stackoverflow.com/questions/71178689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change name server in GoDaddy may hosting in hostinger I want change name server in GoDaddy my hosting on hostinger vps hosting and my control panel is cent os control panel where I get me name server A: You should get your Name server on Email when you order the Hosting server also you can find the name se...
{ "language": "en", "url": "https://stackoverflow.com/questions/59823618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: POST JSON data with cURL I want to POST some JSON data to a server. I have constructed one javascript object for that: var formData; formData[0] = { value : accx.toString(); } Now the post function is: function postdata(){ var accx = acc.x; } acc.x is generated in a function and I will call postda...
{ "language": "en", "url": "https://stackoverflow.com/questions/25363804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Second End View puzzle, Prolog I write code in swi-prolog to solve Second End View Pazzles 7*7 (example http://www.funwithpuzzles.com/2009/10/abcd-second-end-view-ev4.html like this 5*5) for numbers 1-6 :- [library(clpfd)]. gen_row(Ls):-length(Ls, 7), Ls ins 0..6. abc_view :- maplist(gen_row, [R1,R2,R3,R4,R5,R6,R...
{ "language": "en", "url": "https://stackoverflow.com/questions/12717609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Multi undefined variables from a form and subsequent sql statement The outcome I seek is to loop through items taken from a form that isset or true and then have a sql statement query the database. The complication comes from I have 9 fields that the user could choose one or more or all fields (It is a search databa...
{ "language": "en", "url": "https://stackoverflow.com/questions/33600707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the difference between creating String as new() (inside heap not in string pool)and literal(inside string pool)? When we create string with new() Operator, it’s created in heap and not added into string pool while String created using literal are created in String pool itself which exists in PermGen area of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29159269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any way to prevent destroying a component in angular? We know that there is a method ngOnDestroy() in angular which runs on destroying a component but I want to know that is there any way to prevent it from destroying? A: The CanDeactivate guard has access to the instance of the active component, so you ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/48514644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Should we ask users to confirm an e-mail address when they change it? I have a service that requires an active e-mail address where users can receive notifications. Users can optionally receive notifications on multiple e-mail addresses by adding them. * *Should I require a new e-mail address be confirmed before ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8202272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CodeIgniter sess_destroy() for current session I have this code in Session.php: // Is the session current? if (($session['last_activity'] + $this->sess_expiration) < $this->now) { $this->sess_destroy(); return FALSE; } for each session CodeIgniter sets cookies expire date as $this->sess_expiration + time...
{ "language": "en", "url": "https://stackoverflow.com/questions/5702609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting the center of a grid's cell - unity I'm working on an isometric game with Unity and I need to know the centre of the cell in the world coordinates. I'm using the tilemap's GetCellCenterWorld() method, but it gives me back bad results. Here is what I expect to be the centre of the cell (basically the logical ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64143308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Performance comparison of atomic operations on different sizes How do the performance of atomic operations operating on the natural word size of the processor (4-byte or 8-byte) compare to that of operating on other sizes (2-byte or 1-byte)? If I need to maintain a boolean atomic variable, I'm trying to figure out t...
{ "language": "en", "url": "https://stackoverflow.com/questions/29322218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Haskell Zip Parse Error I am trying to use the zip function in Haskell to join two lists together. The lists could be defined and info gathered as follows: priority <- getLine let priorityList = [] priority : priorityList name<- getLine let nameList = [] name : nameList After gathering the info, the expe...
{ "language": "en", "url": "https://stackoverflow.com/questions/15635012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Adding A Node To A Nodelist Using XmlParser In Groovy When I add a Node to a NodeList using the XmlParser in Groovy, the NodeList does not appear to reflect the change. Here is the code that I'm testing within the GroovyConsole. If you run this code, you should see the output "ADD FAILED" followed by a dump of the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/36610537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In a pure user level thread strategy, why can't a multithreaded application take advantage of multiprocessing? My textbook states the following: In a pure ULT (user level thread) strategy, a multithreaded application cannot take advantage of multiprocessing. A kernel assigns one process to only one processor at...
{ "language": "en", "url": "https://stackoverflow.com/questions/42037109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pascal's triangle series in php I am trying to get pascal's triangle using two dimensional array. But it not works. can anyone solve this program. Thanks in advance. <html> <body> <div> <form name="form1" action="pascaltriangle4.php" method="post"> Enter the number of rows in pyramid of stars you wis...
{ "language": "en", "url": "https://stackoverflow.com/questions/17994347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Docker Port forwarding doesn't call css and images I have setup port concepts in docker to access my container magento2 to locally connected another system. This is Docker Container Setup: docker run -it -d --name containerName -h www.myhost.net -v /var/www/html -p 3000:80 --net mynetwork --ip 172.11.0.10 --pri...
{ "language": "en", "url": "https://stackoverflow.com/questions/39543285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert string to integer in BIRT after fetching it from the database? I use BIRT for reports and i am a beginner BIRT user. In my report i must calculate the average of a column. (database is an oracle) In my open script I have sth. like this: sqlText = "select A, B, C, D, ((date1-date2) day to second) as di...
{ "language": "en", "url": "https://stackoverflow.com/questions/12971579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery calculate the total of all textboxes (addition and subtraction) Hello I am trying to calculate the total of multiple fields in a row (my code will contain multiple rows) on key press (some of them uses addition method and some of them uses subtract method) but as I am newbie I am not too much familiar to JQue...
{ "language": "en", "url": "https://stackoverflow.com/questions/43710779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resetting ThreadLocal Value I initialize my ThreadLocal with a valueFactory Func. I would also like to reset the Value back to null on occasion. Perhaps I'm doing something wrong, but if I set my threadLocal.Value = null, it still seems to think that threadLocal.IsValueCreated == true. How can I truly reset the thre...
{ "language": "en", "url": "https://stackoverflow.com/questions/4974605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Facebook og:image (link image) does not display when sharing my website I cannot get the image to show when sharing my site in FB. Below is my open graph code. I have rescraped using the FB sharing debugging tool (https://developers.facebook.com/tools/debug). soooo many times, and it never displays, in the tool or i...
{ "language": "en", "url": "https://stackoverflow.com/questions/73089116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sequencing RXJS chaining / processing of NGRX observables in an HttpInterceptor I am having trouble attaching a JWT access token to the header of an HTTP request within a class which derives from the HttpInterceptor (Angular 8) base class. I have narrowed the issue down to the sequence in which the operations are pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/56851126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple Submit Changes and Exceptions Simple scenarios. Reading data from one source and saving to SQL database using LinqToSQL. There are many rows in the file. It's possible that SQL exception can occur for some rows but we want to ignore it (log exception) and still save the rest of the data. Currently we do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27384758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to optimize navigation and user-experience into a login form? I have developed an Universal app that uses a login form, that allowing users to connect or to create an account. It is a simple page that looks like this: This XAML code is also very simple: <ScrollViewer> <StackPanel> <TextB...
{ "language": "en", "url": "https://stackoverflow.com/questions/33099987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get map values by index when inside each loop in JavaScript? I try to write tests in a clean way. I iterate through the rows (each of which shows info about attached file) of the table on the page and verify if each attached file has correct size: it('attaches many documents', () => { const fileSizes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69827066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Input 0 of layer time_distributed_30 is incompatible with the layer: expected ndim=5, found ndim=4. Full shape received: (None, None, None, None) * *I am trying for classification of MSTAR data set with 10 classes *I have used the modal that contains DCNN and BILSTM with 15 time steps My questions are: * *How ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67898846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call a UDF from a JSON file in Python? I'm working on a chatbot project which fetches "delivery status" information from a database. I've defined a function (lets call it db_info) which will connect to my DB and then get the results. I have a .json file which has different intents like "Greeting", "Status Che...
{ "language": "en", "url": "https://stackoverflow.com/questions/70113384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to plot wide dataframe After training a model, I want to plot the accuracy, validation accuracy, etc. In Seaborn, this is what I tried to do: df_model_history = pd.DataFrame( np.array([ history.history['accuracy'], history.history['val_accuracy'] ]).T, columns=['Accuracy', 'Validation...
{ "language": "en", "url": "https://stackoverflow.com/questions/72128851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interrupting DataAdapters? I have a circumstance where I'm popping up a dialog window containing a "Please Wait" message, running an SQL query, then replacing the "Please Wait" message with a DataGridView containing the collected results. The code I'm using for this is basically: Dim X As New Data.SqlClient.SqlC...
{ "language": "en", "url": "https://stackoverflow.com/questions/5820327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Video View turns black This seems to be a very common problem, but I couldn't search for it on SO. I have a simple videoview and it play video from a mp4 file. It continously plays video and loop through the video. Problem is when playing I went to settings and came back then video turns black. This is my Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/38814775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: QList destructor behavior - Does call delete/free() on pointers in the list? I have a class SomeObjectList : public QList<SomeObject*> I am creating pointers to SomeObject and sticking them in the list like so: SomeObjectList MyClass::getSomeObjects() { SomeObjectList list; for( int i=0; i<10; ++i ) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17349150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create thrift service We have a some mobile service, google maps based (mobile applications for iOS and Android). So, the server part is a Java application, which accepts connection from clients. In one moment, without me, server was moved (relocated) to another one, and they not moved the Thrift service on the new...
{ "language": "en", "url": "https://stackoverflow.com/questions/30280437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ValueError: Metric 'cosine' not valid. Use sorted(sklearn.neighbors.VALID_METRICS['ball_tree']) I'm trying to use cosine metric with Ball_tree algorithm since my data is of high dimensions. e.g. nbrs = NearestNeighbors(n_neighbors=2,algorithm='ball_tree',metric='cosine').fit(data_seed) However i get the following e...
{ "language": "en", "url": "https://stackoverflow.com/questions/72260849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why the function strlen() returns different values for the same length of two char arrays? #include <stdio.h> #include<string.h> int main() { char a[50],b[50];// same sized arrays for(int j =0;j<50;j++){ b[j]='b';a[j]='a';// initializing with the same number of elements } printf("the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61946882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: reuse a widget in GWT I have a label widget and im trying to add this widget to the multiple cells in the flex table but the widget is appearing only in the first cell. Is it possible to reuse a widget in gwt?? how? Label l1=new Label("USER") ; tweetFlexTable.setWidget(0,0,l1); tweetFlexTable.setWidget(0,1,l1); A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/8133060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: copy the same row from multiple sheets into one sheet in excel I need to copy the same row from multiple sheets into one row. Example: I have an excel file with 5 sheets. I have to copy the 10th row (or the 15th row, or the 21th row) of every sheet in a 6th sheet, in the order of the sheets. Thanks in advance. A: T...
{ "language": "en", "url": "https://stackoverflow.com/questions/37835442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Reflection to get property from field I have these classes: public class Foo { public Bar bar; } public class Bar { public List<int> Something { get; set; } public string Else { get; set; } } I have a lot of classes like Foo. They all contain exactly one field. This field, Bar in my example, will...
{ "language": "en", "url": "https://stackoverflow.com/questions/67932888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Transform a function into something that lapply works on properly (lists) I'm trying to make a list with 10 elements, each element consisting of 5 * i items drawn from a uniform distribution, i being the ith entry, and I want to use lapply. Currently I made this function: z_list <- list() z_list_generator <- functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/54723064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: django-tables2: Adding columns/fields dynamically I want to add a new field when somebody checks an option in my web page ("Add column 'external id' ") table = IssueTable(issue_list) show_ext = request.GET.get('show_ext', 0) if show_ext: table._meta.fields = table._meta.fields + ('external_id',) I thought doing...
{ "language": "en", "url": "https://stackoverflow.com/questions/32094118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C#, I want to call a method with parameters like var test = new test1.test2.Method("parameter1","parameter2") I want to call a method in a fixed structure like below in C#: var Test = new test1.test2.test3("parameter1","parameter2"); Is this possible in C#? Here test1 and test2 can be classes and test3 is my method...
{ "language": "en", "url": "https://stackoverflow.com/questions/19494320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to delete all files with certain suffix before file extension I was just handed a directory with some 40,000+ images, and the directory includes three versions of every file, which makes it a bear to have to transfer between servers. I'm looking for a way using bash (OSX Terminal) to find and remove (rm) all fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/6839966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update jquery scrollbar after ng-repeat render Scrollbar don't see height of div because scrollbar update apply before child elements render. How i can watch what elements is compiled? I used watch to see when object adding to array. It works fine, but tinyscrollab_update sees empty div, because ng-repeat no compile...
{ "language": "en", "url": "https://stackoverflow.com/questions/15309094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CasperJS click() doesn't load new html I'm trying to use CasperJS' click() to follow a link which generates a modal on the current screen. When I query the proper selector and click it in the browser console using document.querySelector().click() it works, but even when I casper.evaluate() this it doesn't work. I fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/24197587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Getting binary data directly off the windows clipboard I've been beating my head against the desk for about an hour now just trying to find some way of getting say... an array of bytes off the clipboard. Instead, all I can seem to find is information on how to get plain text from the clipboard... that's not helpful...
{ "language": "en", "url": "https://stackoverflow.com/questions/24844971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Migration from SherlockActionBar to ActionBar I just migrate to native actionBar, before, with ABS it was working great. Now, I don't need anymore compatibility as I develop for API 16+ I changed all references, and now, my menu only shows in text, with physic button, it doesn't show up in action bar... I don't know...
{ "language": "en", "url": "https://stackoverflow.com/questions/24336739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i add a timeout function to javascript? $('.btn').click(function() { $(this).toggleClass('spinner'); }); and i want to add a timeout function to it i added it like this but it does not work, any ideas why? $('.btn').click(function() { $(this).toggleClass('spinner'); setTimeout(function() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50540136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error installing mariadb-server mariadb-client on Chromebook I'm trying install wordpress locally on my chromebook following these instructions. I successfully ran: ` sudo apt update sudo apt upgrade sudo apt install nano ` But then get an error when I try to run ` sudo apt install mariadb-server mariadb-client -y ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74903871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: undefined method `stringify_keys' for "/users/sign_out":String (Devise gem) In my project i am using devise gem .And also using link_to_if url helper because when users not isn't signed in , it will provide new_user_session_path and also when they signed in it will provide destroy_user_session_path. For this at fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/25731905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: localstorage not defined ionic 2 i'm trying to import "local storage" from 'ionic-angular' and it says me "LocalStorage is not defined".. in addtion I got this error RangeError: Maximum call stack size exceeded at deepClone (C:\Users\Adir\MyApps\ToDoApp\node_modules\rollup\dist\rollup.js:153:20) at deepClone (C...
{ "language": "en", "url": "https://stackoverflow.com/questions/39767816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTTP Post by android always return result 0 i supposed to send http post to web service in the form POST[messageTitle, messageContent, messageFrom] it's like array with the name post i searched around and some people said i should do : nameValuePairs.add(new BasicNameValuePair("POST[]", messageTitle.getText().toStr...
{ "language": "en", "url": "https://stackoverflow.com/questions/19963389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change the existing html text in a D3 rect? How to change the existing html text in a D3 rect to something else on the click of a button. There is an image on the top right corner of a D3 rect. When I click on that image the text inside the rect has to change to another html text like This is new text . It wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/64447776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run on the page typed js I'm currently working on a project which requires me to run by the user typed javascript in the form of a string. I've tried adding an empty <script> tag to the html and appending the string (containing the users freshly typed (after the page was loaded) javascript) to this script tag...
{ "language": "en", "url": "https://stackoverflow.com/questions/39265535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get the real error message in HttpClient response.ReasonPhrase? My Setting I have 2 WebApi projects with the following flow: * *User makes request to API 1 *API 1 makes request to API 2 on behalf of the user (using an HttpClient). using (var client = new HttpClient()) { client.SetBearerToken(toke...
{ "language": "en", "url": "https://stackoverflow.com/questions/40136132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: error: could not find or load main class First.class I have made program in java using netbeans. it is located in d:\sudhanshu\documents\netbeansprojects\Firstapp\src\firstapp. its name is First.java. it is running successfully and showing output in netbeans IDE. but when i m trying to run it through cmd its showing...
{ "language": "en", "url": "https://stackoverflow.com/questions/12759313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Character encoding for US Census Cartographic Boundary Files I'm trying to import the US Census cartographic boundary files (available here: http://www.census.gov/geo/www/cob/bdy_files.html ) into a GeoDjango application. However, python is complaining about UnicodeDecodeErrors (for example, for the non-ascii chara...
{ "language": "en", "url": "https://stackoverflow.com/questions/2477360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Force Chromewebdriver to download text,jpg instead of opening in a new tab I have a need to download txt and jpg files that are basically links in a web page. I am using chrome webdriver to do the same. My code to set the chrome settings is as below: prefs = { :download => {:prompt_for_download => false,:defa...
{ "language": "en", "url": "https://stackoverflow.com/questions/25171261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ajax call fails in IE with requests from HTTPS to HTTP I'm making a trivial ajax CORS request from HTTPS to HTTP, and it's working fine on every browser, except IE. It's not even trying to make a request and fails immediately. There is no error messages in console. This fails even without trying (there is no network...
{ "language": "en", "url": "https://stackoverflow.com/questions/21876122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting undefined when using "var" instead of "let" with Object.assign() var name = { nameValue: 'John' }; console.log(name.nameValue); // undefined var surname = { surnameValue: 'Doe' }; Object.assign(name, surname); console.log(name.surnameValue); // undefined I am getting undefined when using var but everyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/48316036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No ads error from adcontrol I'm checking out ads in a Windows Phone app for the first time. When I tried with the test settings, the test app showed up. When I replace the info by the applicationID and AdUnitId from PubCenter, nothing at all appeared (when debugging on a device). I suscribed to the erroroccured eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/22590169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Infinispan file system store plus sql database I am trying to use infinispan to achieve the following: - n JVM instances in cluster - All data replicated between one node and the remaining nodes - Data to be backed up by the filesystem to that the node can recover from the local file store - I want some spec...
{ "language": "en", "url": "https://stackoverflow.com/questions/34131139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Transforming OLTP Relational Database to Data Warehousing Model What are the common design approaches taken in loading data from a typical Entity-Relationship OLTP database model into a Kimball star schema Data Warehouse/Marts model? * *Do you use a staging area to perform the transformation and then load into th...
{ "language": "en", "url": "https://stackoverflow.com/questions/868247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using Custom Font - Failed to decode downloaded font in Oracle Apex I'm trying to use some customized font in my application. So i tried downloading Pacifico and trying to use in my application. But getting Failed to decode downloaded font and the font is not loading Below is my CSS . @font-face { font-family: 'M...
{ "language": "en", "url": "https://stackoverflow.com/questions/56374987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: usort Date Assistance I am trying, unsuccessfully, to sort my list by one of my template fields ($fields[3]) which is a text input field with a date inside it. The problem is that because of the format of the date it will not sort correctly because I guess it is just comparing numbers. I think I need to change the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/11583822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }