text
stringlengths
15
59.8k
meta
dict
Q: Javascript Rich Text Editor and associated class to filter and clean the input? I realise there are several rich text editors for jQuery but I cannot find any that have an associated class that does the filtering and cleaning required to accept the input into a database. Does such a class exist? I am particularly in...
{ "language": "en", "url": "https://stackoverflow.com/questions/689369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ionic 3: Menutoggle keeps getting hidden I have implemented a hamburgermenu in Ionic 3, but I am facing an issue. When I run the application on my Android device the hamburgermenu keeps disappearing i.e. the button to open the side menu is gone. However, it only happens sometimes. I tried to run the application whil...
{ "language": "en", "url": "https://stackoverflow.com/questions/50068182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: delete Single Core Data Item from a uicollectionviewCell using a button I am trying to delete a single element of the coreData set using a button inside a collectionviewcell. So the cell has a label with the result of the core data fetch. When I hit the button it should delete the cell making it no longer appear. Al...
{ "language": "en", "url": "https://stackoverflow.com/questions/58293724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Counting unique variables within a unique variables [R] Suppose this is my data: X Y Z 1 1 2323 1 1 45 1 1 67 1 2 1 1 2 90 1 3 34 1 3 1267 1 3 623 1 4 81 1 4 501 2 1 456 2 1 78 2 2 41 2 2 56 2 3 90 2 3 71 2 4 24 2 4 98 2 5 42 2 5 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22963799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git Stash - Local Changes - Git Stash - Git Stash Apply - Undo Need some help, I screwed up. Please reserve judgement. Alright, this is what I did. * *git stash *made some changes to the code. *git stash (again) *git stash apply Is there any way I can get back to the code I had before the first git stash. An...
{ "language": "en", "url": "https://stackoverflow.com/questions/72751358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Triggering events from async/await functions in the right order I have problems ensuring the order of events in my asynchronous task. The class from which other async tasks inherit has the following functions and takes the EventHandlers (ExecutionProgress, ExecutionStarted, ExecutionCompleted) in the constructor arg...
{ "language": "en", "url": "https://stackoverflow.com/questions/30598345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copy Woocommerce product short description to ACF I want to copy the short description of all the products to an acf custom field that i created. The custom field's name is sxolia . I don't know how can i catch this ACF Field with a query to the database. UPDATE `wp_posts` SET `post_excerpt` = `?` WHERE `post_type` ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59838843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: testing monaca backend only possible on device, why? When I test my app on my device I'm able to connect to the backend user and collection features. Why isn't that working when I preview the app in the browser (Chrome)? Or is it possible and what should I do to fix this... A: As stated in the Monaca Backend API Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/37355199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 2 SELECT in a query with ORDER BY I need to create a MYSQL query that will return the following: excel this is my query SELECT t1.fecha_salida, t1.agencia, t2.fecha_salida, t2.directa FROM (SELECT fecha_salida, COUNT(*) AS agencia FROM ventas WHERE ventas.eliminado...
{ "language": "en", "url": "https://stackoverflow.com/questions/56763696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can you use subdirectories in a GitHub wiki checkout? I'd like to organize my GitHub wiki pages in subdirectories. How do we refer to the pages in subdirectories? A: github wiki / gollum-wiki doesn't inherently provide anything explicit for organizing pages into sub-directories. Any page can be linked from any...
{ "language": "en", "url": "https://stackoverflow.com/questions/14408376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I build a regex to match a value? I need a regex that matches this kind of strings: brand-new-car brand-new-car-1 brand-new-car-100 307 and I just need to catch the "name" regardless of whether the string has -count; like this: brand-new-car brand-new-car brand-new-car 307 This regex does not work properly...
{ "language": "en", "url": "https://stackoverflow.com/questions/5708165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to parameterize a jquery function name and call it? I'm trying to make a plugin for a modal and I want the users to be able to initialize the animate function picking from a jquery list of functions like fadeIn , SlideDown etc. var myModal = new createModal({ content: myContent, appendTo: ".mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/54649304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ending a while loop when it reaches matching numbers I need to end this while loop when it reaches a matching number such as 88, 77, and so on. import java.util.Scanner; public class LabProgram { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int userNum = scan.nextI...
{ "language": "en", "url": "https://stackoverflow.com/questions/58479325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Set the title for the navigation control I converted window based application into navigation based but I am not able to set the title for the navigation bar. controller = [[bookDisplayViewController alloc] initAndCreateView]; UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7696127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error connecting web3js to react native application I ran into a problem connecting web3 to a React Native app. Initially, the connection was made according to this guide. Everything worked, but as soon as I restart the application, an error appears: ReferenceError: Property 'Buffer' doesn't exist, js engine: herme...
{ "language": "en", "url": "https://stackoverflow.com/questions/72108832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JAXB default value for null elements when marshalling At the time of marshalling of JAXB object I want to set some defult value to the resulting XML. I do not want to use nillable=true as it generates empty tag with unnecessary xsi:nil="true", and this is not for setting default value. Instead I want to generate the...
{ "language": "en", "url": "https://stackoverflow.com/questions/27013103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Update on blur the first time only I can defer model updating until blur with ng-model-options="{ updateOn: 'blur' }". This prevents annoying the user with changing validation states while entering input the first time around. However, when a user returns to a failed validation to revise it, the updateOn: 'blur' p...
{ "language": "en", "url": "https://stackoverflow.com/questions/28397065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AJAX not rendering as it should I am at a loss with what’s stopping my code not rendering AJAX where it should be, I have a less serious JS ‘Parse error’ which I can’t work out also. I have a default prevented rails form_for where upon submit event jQuery finds the element and its attribute values, posts them to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/27693305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: where does llvm.memcpy.p0i8.p0i8.i64 come from i test clang and compile a simple C file including struct asigning.when I see the LLVM code ,there is llvm.memcpy.p0i8.p0i8.i64 ,where is from ? I not see the defination only see its declare as a fucntion. A: It is a LLVM intrinsic function. As per the language refere...
{ "language": "en", "url": "https://stackoverflow.com/questions/55293471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to remove first two words of a strings output I want to remove the first two words that come up in my output string. this string is also within another string. What I have: for servers in `ls /data/field` do string=`cat /data/field/$servers/time` This sends this text: 00:00 down server I would like...
{ "language": "en", "url": "https://stackoverflow.com/questions/27490379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: php recursive include function in 2 file with different path Hi all I've a problem with include function in php: I have 4 file: dir1/file1.php dir4/dir2/file2.php dir3/file3.php dir3/file4.php In file1.php I have: include_once('../dir3/file3.php'); In file3.php I have: required('../dir3/file4.php'); In file2.php ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28478191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert date value from jdatechooser to database table private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { String G_ID=gIDText.getText(); String G_Title=(String) titleCombo.getSelectedItem(); String FName=fNameText.getText(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36895567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Design a RESTful API in Laravel 5.2, using a resource that conceptually can contain other resources First of all I am really not very familiar with the REST practice, and I am not very confident about the title of my question. So I am trying to built a RESTful API using Laravel for a phonebook application. The phone...
{ "language": "en", "url": "https://stackoverflow.com/questions/36616606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Datasnap response doesn't convert to json I am returning a string response in my DataSnap server. function TServerMethods1.GetImagem(PhotoPath: string): string; var ... begin ... Result := StrEnv.DataString; end; This successfully returns a response with my base64 string {"result":["Qk02...."]} I need to get...
{ "language": "en", "url": "https://stackoverflow.com/questions/54894945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to find out which website is requesting my webpage? i have a webpage ... sorto like an api ... basically it prints out some data in form of json . other website can use this data via php by simply using file_get_contents or javascript/jquery ajax request (jsonp) anyway i want to be able to black list some unwa...
{ "language": "en", "url": "https://stackoverflow.com/questions/19101841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MonoGame develop3d branch not building on OS X I've successfully built been using the stable branch of MonoGame and the MonoDevelop templates for a while, and now I want to upgrade to the develop3d branch to utilize all its features. But when I build it, it gives me the error: ~/MonoGame/MonoGame.Framework/GamerServ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15238406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nested List Item not removing from Flask Session I have a simple Route in Flask where I want to add and remove items to a Session dictionary list value. Adding things to it is fine but it doesn't seem to remove the items. I've tried adding session.modified = True but that doesn't seem to have helped. What am I doing...
{ "language": "en", "url": "https://stackoverflow.com/questions/51066742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: stuck in lxml and xpath in python 3.x I am parsing an arxml file to extract data from it in python 3.x but I am stuck and can't get myself out the following code. I simply can't understand what I am missing. With xpath I located the child node from where I want to start extracting data of all its sub-element. I test...
{ "language": "en", "url": "https://stackoverflow.com/questions/71354956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i select old date from daterangepicker? I'm using daterangepicker , and I can't select old date from second datepicker section. It shows only from this month. And There is no arrow clickable on second date picker. I want that i can select any date , year or month on second datepicker section. There is must j...
{ "language": "en", "url": "https://stackoverflow.com/questions/36740353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL How can I return 2 different dates in same query I have a query and what I want to do is return the latest date for 2 columns in the same row. If you look at RowID 1 & 2 I would like to merge both rows. They both have the same Event Type however where they differ is in the isProcessed column one contains 1 and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/61920261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: swift 4: Setting button's constrains to safe area while inside a view I have a return button that is inside a view on the top left corner, and that view is anchored to the top of the safe area. What I'm trying to set is the button's top and leading constraint to the top and the leading of the safe area, but since th...
{ "language": "en", "url": "https://stackoverflow.com/questions/53134576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: python matrix multiplication check if number of rows of 1st matrix is equal to number of columns of 2nd matrix I need to perform a matrix multiplication between 2 matrices by taking user input. The below code works fine for the multiplication part but if the no. of rows of 1st matrix are not equal to the no. of colu...
{ "language": "en", "url": "https://stackoverflow.com/questions/61943939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Path of assets in CSS files in Symfony 2 Problem I have a CSS file with some paths in it (for images, fonts, etc.. url(..)). My path structure is like this: ... +-src/ | +-MyCompany/ | +-MyBundle/ | +-Resources/ | +-assets/ | +-css/ | +-stylesheets... +-web/ | +-images/ | +-images... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9500573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "104" }
Q: Core Data Fetch To Many I am trying to fetch all categories, and their sub categories, and display them all in a table. I know how to fetch all categories, but I need to fetch all sub categories, and sort them by category using a fetch results controller. Any ideas of suggestions? A: You can create a fetched res...
{ "language": "en", "url": "https://stackoverflow.com/questions/12993280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retain submitted data through refreshes I want to retain $orderby and $orderSort (within the query) when I refresh the page or press the links at the bottom of the page to move to next page or previous page. I have tried attaching orderby and orderSort to sessions but that didn't work due to the query - it always r...
{ "language": "en", "url": "https://stackoverflow.com/questions/26917593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error: undefined index? I get this array from a function (var_dump()): ...{ [0]=> string(7) "user_id" } [1]=> array(1) { [0]=> string(7) "user_id" } [2]... When I try to separate the values with: $var2 = $var['user_id'] I get the error "undefined index 'user_id'", even though, as you can see, the name of the value ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7850382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TITokenField- duplicate records are coming, I am using TITokenField and now i don't want to enter duplicate records. https://www.cocoacontrols.com/controls/titokenfield User is able to enter duplicate records. Can anybody tell me how to handle this. Thanks
{ "language": "en", "url": "https://stackoverflow.com/questions/35333190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ERROR: #1242 - Subquery returns more than 1 row in the query - MYSQL Below is the MySQL code where a subquery is returned. And I want the subquery to return just one row. SELECT DISTINCT w.cname FROM works w WHERE (SELECT DISTINCT w.cname, AVG(w.salary) FROM works w WHERE 1 GROUP BY w.cname...
{ "language": "en", "url": "https://stackoverflow.com/questions/54965977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ArrayAdapter for FragmentList crashes applications This is my code for an android application: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //Attempting to set the Fragment System.err.println("Starting"); FragmentManager fm =...
{ "language": "en", "url": "https://stackoverflow.com/questions/6316103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Printing array of specific element C programming: Was assign to derive values from a text file using File i/o and print array of a specific element instead of everything in the array. For example: After accessing the file using File i/o, I use printf(“%s”, readings); and was able to print all the reading in the arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/65081498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checking for empty fields on HTML form I am trying to create a form in HTML, and also trying to ensure that any field is not left empty. Here is the HTML for the form <form role="form" id="companyDetails" name="companyDetails" method="post" action="saveCompanyDetails.jsp" onsubmit="return false;"> <div class="co...
{ "language": "en", "url": "https://stackoverflow.com/questions/29145190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple websockets from the same page with java as the server side In my web-app I have 2 websocket connecting to server on the same port. One websocket is used for chat messenger and the other websocket on the same page displays the total number of people currently viewing that event. Chat Websocket: var chat = n...
{ "language": "en", "url": "https://stackoverflow.com/questions/32493212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeAhead Feature TextBox Control Windows C# I am using typeahead feature of TextBox .. all I want is that the Typeahead should show all the Items available in AutoCompleteStringCollection. Currently its suggesting me those string whcih starts with the characters that I type. What I need is the characters that I typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1504646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to change this code so that its loops are removed and replace with tensorflow? I used the following code as part of my deep learning algorithm. But due to the existence of loops, its execution time is very long. Can you implement it only with tensorflow's methods? def build_reward(self): self.perm...
{ "language": "en", "url": "https://stackoverflow.com/questions/65449395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error creating jar file in eclipse export When I run the project IDE it compiles fine and runs through IDE but when I export it as a jar file. I get -fat java export: could not find class path entry for my project folder location. I couldn't figure whats causing this issue. Suggestions and solutions are welcome. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58217538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IOS: Load a View Controller When App is Launched from Browser using url schemes? I am new to iPhone developing , My app is based on video conferencing, I have a task where an app should launch from browser using URL schemes. I have done it but problem is when app launched from browser it should load particular view...
{ "language": "en", "url": "https://stackoverflow.com/questions/21325372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: nested virtualization with KVM: -enable-kvm in qemu in nested virtualization In my already virtualized host, trying to pass the option the option -enable-kvm -m 1024, will fail: qemu-system-x86_64 -vga std -enable-kvm -m 1024 -monitor telnet:localhost:9313,server,nowait -drive file=my_img.img,cache=none # Could n...
{ "language": "en", "url": "https://stackoverflow.com/questions/43942033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Twitter bootstrap grid guide I am hoping someone can help me with this I am slightly confused with this I have always worked with 960 grid system. Making a Responsive design with Twitter Bootstrap, see the problem I am having is that the Desktop view on the twitter site states Label Layout width Column width ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14386975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVVM Binding Selected RadOutlookBarItem Imagine: [RadOutlookBarItem1] [RadOutlookBarItem2] [RadOutlookBar] [CONTENCONTROL] What i want to achieve is: User selects one of the RadOutlookBarItem's. Item's tag is bound like: Tag="{Binding SelectedControl, Mode=TwoWay}" MVVM Property public string Selected...
{ "language": "en", "url": "https://stackoverflow.com/questions/2673342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while installing react-native-queue library I'm installing the react native queue library like so: npm install --save react-native-queue. But I'm getting the following error: TOUCH Release/obj.target/OpenSSL.stamp ACTION binding_gyp_vendored_realm_target_download_realm /Users/prikshetsharma/Desktop/Humboi/...
{ "language": "en", "url": "https://stackoverflow.com/questions/66713040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: The dataframe with only 1 row can't display 3D bar whereas dataframe with more than one rows can display 3D bars I am trying to produce 3d barchart with highcharter with z-axis label and x-axis label showing. But when my dataframe has only one row the chart doesnot display the bars. If the dataframe consist of more ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65574402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to whitelist good bots in fail2ban We have a server running nginx and wordpress. Access logs have been disabled to reduce disk I/O and increase performance. I have enabled custom logs for multiple specific uri which logs host date/time method and uri into a specific files. For some uri like /phpmyadmin or /xmlrp...
{ "language": "en", "url": "https://stackoverflow.com/questions/37250086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: $this->Session->setFlash displays in wrong timings I am using $this->Session->setFlash to flash the error messages to the browser and its working fine. But, unfortunately, it is displaying the messages when it shouldn't display also. It is seems like, its getting the information's from cache and displaying. A: The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2739910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: want to create a call now button for my website I a not a super coder, but willing to learn as well. What I am trying to do is create the same function as : http://callnowbutton.com/ (this is a wordpress plugin) and we do NOT use wordpress. So how would I go about creating this ? The main items are: of course only n...
{ "language": "en", "url": "https://stackoverflow.com/questions/34551701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: What is the difference between preview size and picture size of android camera In an app which uses the camera, where I need to show the preview of the camera, I can set the preview size by getting all supported preview sizes and find the best one. Should I also set best picture size for the camera? If so what is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/42105087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: VBA Error handling, identifying the point of failure I have a couple of functions in VBA that run a series of queries in Access to download data from various sharepoints, manipulate it and then delete some data from SP, move data between SPs and finally upload new data. (it compiles data from various SP, and then be...
{ "language": "en", "url": "https://stackoverflow.com/questions/71308840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# setting derived property from base I can't seem to call the setter of an overridden property in a derived class from the base class. This seems like something that one should be able to do, but I am clearly missing something. In the DisplayQuestion method of the SearchSurveyBase class below, this line does not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11020632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Editing Multiple Records - Granting Access to All Logged-In Users As far as I can tell, this is a views and controller problem. I need to allow users to edit multiple records in one of my database tables. Railscast 165 deals with a similar situation, but it's not quite on point for me: http://railscasts.com/episo...
{ "language": "en", "url": "https://stackoverflow.com/questions/1537291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring Boot Too Many Redirects I'm developing a simple login Form using a Thymeleaf & Spring Boot. When i try hitting the following URL in Chrome: "http://localhost:8080/login" i get an error saying "ERR_TOO_MANY_REDIRECTS". I've tried clearing my cache & cookies in the browser and still get the same error. I tried ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39310634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is there a possibility to get a notification when a file on FTP server has been modified? I'd like to build a service where a file from a FTP Server is downloaded as soon as it has been modified. It's always the same file name. I think of checking for the timestamp every few minutes but maybe there is a more elegant...
{ "language": "en", "url": "https://stackoverflow.com/questions/60309852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does MOXy have an analog of Jackson's @JsonIgnore tag? In a JAX-RS (Jersey) application, I have a Java class whose instances can be both stored in a SQL database (using OpenJPA) and sent over the wire as JSON text (in a RESTful application). This class has a a field that has a setter and getter (for use with OpenJPA...
{ "language": "en", "url": "https://stackoverflow.com/questions/62749866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unity Visual Studio 2017 Freeze and Crash I work with Unity, and recently I came across some sort of bug with Visual Studio. For some reason one day the Script Editor stopped working. When I first open it up through Unity, it would open as usual and seem fine, but after 5 seconds of interaction, Visual Studio would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70715245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Iterate through elements in html tree using BeautifulSoup, and produce an output that maintains the relative position of each element? in Python I have this code that does what I need it to do using Jsoup in Java Elements htmlTree = doc.body().select("*"); Elements menuElements = new Elements(); for(Elemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/13736554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Apache POI SAX Parsing - How to get actual value of the cell I had a requirement to parser very large excel files using apache poi with limit memory. After googling, I came to know that poi provides SAX parser to parser large file effectively without consuming lot of memory. Apache POI SAX Parser example private c...
{ "language": "en", "url": "https://stackoverflow.com/questions/40886142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove backslashes "\" from title from csv file in php mysql I am working on a script that export data from mysql in csv file. Its work perfectly. When I enter title of the song with apostrophes from admin panel like test'123' the data save in database like this test\'123\'. Now when I export the data into csv file...
{ "language": "en", "url": "https://stackoverflow.com/questions/33751317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Outlook custom script to flag messages with a value less than 40 in the subject field I get thousands of e-mail alerts in my inbox daily, but many of them are actually trivial. I want to check whether the text of these alerts contains numbers below a certain threshold; if the numbers are lower than that threshold, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/35003387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python: Pass a list of IP addresses to geoip2 for location lookup I am looking for a way of analysing a massive list of IP addresses with location data. This list is about 10000000 entries. For the moment I am using geoip2 module from maxmind. The original code can look for a single IP address entry and print result...
{ "language": "en", "url": "https://stackoverflow.com/questions/66965638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Input url of photo in textbox and show it at picturebox I would like to ask is there any possible way to input url in textbox and after pressing " submit " button and it will show at picturebox or something else , I've seen it doable in visual studio but not in c# does anyone have any ideas regarding this? A: You ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39199290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: disable past dates on datepicker "without using JQuery UI" How to disable past dates from the current date on a datepicker, without using JQuery UI? I tried few posts for similar question but was unable to achieve it, Below is what I tried <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootst...
{ "language": "en", "url": "https://stackoverflow.com/questions/15802572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Specific Crosstab I'm facing a problem with some data, so i need to use a crosstab to generate a specific report, could you help me? Basicaly i have one query select like this: select route_id,id,tipo,local,valor_cobrado from itinerario and inside this table i have this data below: As you can see we have sometimes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72958146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Draw Canvas with video loop I loop over a part of a HTML video and simultaneously draw a Canvas with the current frame of the video. When the Videos starts over, there is always 1 gray frame at the canvas. If the loop region is long, its not a big problem, but for my needs these regions are maybe 0.5 seconds and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/33914294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PowerShell exit code 1 when selecting text from nuget help output I was trying to make use of the suggestion from this question Get NuGet.exe version from command-line to use the PowerShell command nuget help | select -First 1 This works and outputs just the line with the version on, which is exactly what I want. B...
{ "language": "en", "url": "https://stackoverflow.com/questions/52869877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular 4 Data Binding over ng-repeat I've recently switched to Angular 4 from Angular 1 and lots of things seem to be new to me now. One of them seems to relate to data-binding. In the old version, I would declare an array as $scope.arrname in the JS controller and I could navigate over it in the HTML view using ng...
{ "language": "en", "url": "https://stackoverflow.com/questions/44319853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Exporting Pandas to CSV results in #NAME error in CSV I have a DF that looks like this: Words +Beverly +Hills +Andrea +Johnson +Football Exporting this df to a CSV using: df.to_csv('df.csv', index=False) However, because each word has a '+' before it, excel is reading these cells as an equation r...
{ "language": "en", "url": "https://stackoverflow.com/questions/32575345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Project import of old firebase to new firebase console The Google docs say that I should be able to see all my old firebase projects in the new console and then import them. The problem is that 2 of the projects on the old firebase simply do not show up in the new console and therefore I cannot import them! The two...
{ "language": "en", "url": "https://stackoverflow.com/questions/38874586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the definition behind `%0 | %0`? Please help me to find the definition behind this code: %0 | %0 If we save this code in a .bat file and run it our CPU & MEMORY usage will go to 100%. A: %n is the n-th argument when calling a program or batch file. %0 will be the first parameter or the file name of the exe...
{ "language": "en", "url": "https://stackoverflow.com/questions/23926021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Chart : Single quote in title The title of my column-chart contain a single quote. It's displayed like this: &#39; . I have other specific characters, such as 'é', but they work perfectly. I tried to URL-encode the text, without result. Is there something I need to know about Google Visualization and single q...
{ "language": "en", "url": "https://stackoverflow.com/questions/36553946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Limit not working when testing Dynamic SOQL I am running a Dynamic SOQL query in my apex test code, and the LIMIT clause is not working. It does however seem to work when using it in the production code. The Query is similar to below. I dynamically build up the where clause using some terms from a form. string que...
{ "language": "en", "url": "https://stackoverflow.com/questions/3998037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What exactly does "import *" import? In Python, what exactly does import * import? Does it import __init__.py found in the containing folder? For example, is it necessary to declare from project.model import __init__, or is from project.model import * sufficient? A: The "advantage" of from xyz import * as opposed t...
{ "language": "en", "url": "https://stackoverflow.com/questions/2360724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: Removing a portion of text using regex? Here is what I have up to this point: The function .*? takes everything until the first "this character". For example $html = preg_replace('/alt=".*?"/', '', $html); replaces everything between alt=" and other quotation mark with nothing. My problem is now I have to deal with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30794248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a button in unity from Input.GetMouseButtonDown How can I create a touch event or UI button that can execute the code below. I got that code from an asset that meant for PC i want to re-create that project for android mobile using UnityEngine; using System.Collections; public class PlayerIO : MonoBeha...
{ "language": "en", "url": "https://stackoverflow.com/questions/46379918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I use Provider to provide a bloc to a PageView() without the child resubscribing everytime I switch page? I am using Provider to provide my bloc to a widget called TheGroupPage via a static create method static Widget create(BuildContext context, GroupModel group) { final database = Provider.of<Databas...
{ "language": "en", "url": "https://stackoverflow.com/questions/61471472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Errors When Downloading Files From SQL Database I am running a website, and part of the site is allowing users to upload files to a SQL database, and then download them. The download itself works, but the file is getting corrupted. Image files cannot be opened, doc files are showing up as blank. I will att...
{ "language": "en", "url": "https://stackoverflow.com/questions/20035165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where in a "block" I am doing a program that have very similar code blocks, and I was trying to make a where in a "block". Just an example function "sum" x = x + a function "product" x = x * a where a = 2 I want the 'a' to be replaced in both lines, but I didn't find out if this is possible using where Than...
{ "language": "en", "url": "https://stackoverflow.com/questions/14762407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Referring to a previously existing DataSet I'm working on a very basic VB.net frontend for an Access database and have stumbled upon a problem. Dim ds As DataSet MaxRows = ds.Tables("Course_assignmentsDataSet.tblCourse").Rows.Count i = 0 Private Sub Navigate() txtCourseReference.Text = ds.Tables("Course_assig...
{ "language": "en", "url": "https://stackoverflow.com/questions/6783568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resolve remote host names into ip addresses in codename one I'm interested in the ip address of remote hosts. Is there an easy way to resolve a host name into its ip address? After searching in the codename one source code and reading through the documentation, the only way to achieve this seems by implement android...
{ "language": "en", "url": "https://stackoverflow.com/questions/37040185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R loop through name specific columns to check the value I want to achieve the following: * *loop through all CHECK columns, sometimes there are more (up to 20). The same goes for data (will definitely more than 3 observations). feel free to use my variables CHECKnum, CHECKstart or CHECKend *check whether A001 is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66759259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NFC Permission Error I am working on an application that uses NFC and I keep getting this error, `12-28 14:19:41.962: E/AndroidRuntime(27523): java.lang.RuntimeException: Unable to resume activity {com.example.clinkguitest/com.example.clinkguitest.MainActivity}: java.lang.SecurityException: NFC permission required:...
{ "language": "en", "url": "https://stackoverflow.com/questions/14074671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Powershell remotely register COM dll by using regsvr32 I found on Internet, this ps script may work. But the result I get is: no error pops up, but also DLL not found in registry after running the script. Invoke-Command -ComputerName $servername -ScriptBlock {regsvr32.exe "\\uncpath\some.dll" } I tried in both "run...
{ "language": "en", "url": "https://stackoverflow.com/questions/20461721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why when passing parameters from one component to another it arrives undefined and then arrives again with the data? As will be shown below when passing properties from a parent component to a child component my code is executed first before the properties arrive and when trying to do a .map of an Array it returns t...
{ "language": "en", "url": "https://stackoverflow.com/questions/69274810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I add a foreach inside another foreach in this context? When a user registers on my platform, there's some code that removes invisible characters. I wanted to go further and add ucwords into it. However, I need to have some exceptions, as some words in Portuguese names aren't supposed to be capitalized. The c...
{ "language": "en", "url": "https://stackoverflow.com/questions/71289364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Shopify customers/account.liquid Create for loop sort of order I'm trying to sort orders in customers/account.liquid by shipping_address.name {% assign orders = customer.orders | sort: 'shipping_address.name' %} {% for order in orders %} <tr class="{% cycle 'odd', 'even' %} {% if order.cancelled %}cancelled_orde...
{ "language": "en", "url": "https://stackoverflow.com/questions/31460691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nokogiri 1.6.8 is installed but gives error for previous Nokogiri when running "bundle install" We had a server shutdown and Redmine stopped working, so I had to reinstall Bundler and run bundle install. While running bundle install I get this error: c:\APPS\webapps\redmine-3.2.0>bundle install Fetching gem metadata...
{ "language": "en", "url": "https://stackoverflow.com/questions/56728540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Suggestions for Writing Map as JSON file in Scala I have a simple single key-valued Map(K,V) myDictionary that is populated by my program and at the end I want to write it as JSON format string in a text file - as I would need parse them later. I was using this code earlier, Some(new PrintWriter(outputDir+"/myDicti...
{ "language": "en", "url": "https://stackoverflow.com/questions/19442723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: d3 v4 Positioning labels without touching polygon boundaries I'm working on a d3 v4 map that needs short labels positioned within each poloygon generated from topojson. You can see where I've got to here: http://bl.ocks.org/oroojo/9afff90bdb85deb78359a0d5e87a3f31/7606b296a1a47de3b9370d757182386fa35ac650 You'll see ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46466703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bash execute another command and enter input automatically I have a script when running it with ./script.sh it prints something in the console, then asks for a user input username?. After writing my username it asks a lot of other things which I have to write to the console. I have one case where I have exactly the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72477134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why do i get: IndexError: tuple index out of range? i've been trying to create a tictactoe agent and when i ran the training loop i got an error pointing towards the (.0) in the function that checks whether someone won(check_game_status). if you need the whole environment let me know. here is the way the board was c...
{ "language": "en", "url": "https://stackoverflow.com/questions/70383789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Serving static files in django 1.8 My 404.html page does not reference my finale.css file. My directory structure musicworld/ musicworld/ __pycache__ __int__.py settings.py urls.py wsgi.py feature/ __pycache__ migrations st...
{ "language": "en", "url": "https://stackoverflow.com/questions/30768303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FMOD: Cleaning up duplicate platform warning FMOD for Unity 2.01.07 (Unity 2019.4.18f1 - running on MacOS Catalina) seems to have broken their FMODStudioSettings class. I can't save in the editor without getting these errors: FMOD: Cleaning up duplicate platform: ID = playInEditor, name = 'Play In Editor Settings',...
{ "language": "en", "url": "https://stackoverflow.com/questions/65711930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Name lookup in using-declaration via using-directive Is the following program well-formed or ill-formed according to the c++ standard? namespace N { int i; } using namespace N; using ::i; int main() {} I get different results with different compilers: * *Clang (http://melpon.org/wandbox/permlink/c8vl7XbumyyS6vsw...
{ "language": "en", "url": "https://stackoverflow.com/questions/31628853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }