text
stringlengths
15
59.8k
meta
dict
Q: WSDL UNKNOWN for input/output I've recently started developing a SOAP web service but running through some issues I can't resolve. So I've built a PHP client to test out the service. When I invoke __getFunctions using soapclient through my php script, I receive the following array(1) { [0]=> string(31) "UNKNOWN doO...
{ "language": "en", "url": "https://stackoverflow.com/questions/10076498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JPA/Hibernate How to add duplicate values to a List<> with a @OneToMany mapping I am getting an error every time I try to add duplicate products to the Client class. org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "uk_8opk6otadh2pkvi9bghguwp89" Detail: Key (products_id)=(50...
{ "language": "en", "url": "https://stackoverflow.com/questions/70748890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript ! and !! differences Possible Duplicate: What is the !! operator in JavaScript? What is the difference between these two operators? Does !! have special meaning, or does it simply mean you are doing two '!' operations. I know there are "Truth" and "Truthy" concepts in Javascript, but I'm not sure if !!...
{ "language": "en", "url": "https://stackoverflow.com/questions/6177370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Efficient iteration through AD Group Membership I'm just going to five straight in with what I have, the scenario is a little too complex to explain off the mark. XML config: <Groups> <Group priority="1" name="testGroup1" profile="testProfile1"/> <Group priority="2" name="testGroup2" profile="testProfile2...
{ "language": "en", "url": "https://stackoverflow.com/questions/23564958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript files getting included multiple times For some reason my javascript files are getting included in my source 12 times. Other members of my team, using the same source, do not have this problem. Any ideas what could cause this? A: Have you made sure that you are precompiling all of your assets? Try using:...
{ "language": "en", "url": "https://stackoverflow.com/questions/11438744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cancelling a background worker without worker.CancellationPending check? I have a Validator class which has a Validate function, This validate function loops over bunch of file and validates them. User can cancel the validate process. For cancelling the back ground worker I need ta reference of the background worker...
{ "language": "en", "url": "https://stackoverflow.com/questions/22325574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use std::chrono::milliseconds as a default parameter Scenario I have a C++ function which intakes a parameter as std::chrono::milliseconds. It is basically a timeout value. And, it is a default parameter set to some value by default. Code #include <iostream> #include <chrono> void Fun(const std::chrono::mil...
{ "language": "en", "url": "https://stackoverflow.com/questions/58730696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: use gruntjs in root file my file tree |- root |-- gruntfile.js |-- package.json |-- lib (jQuery & other) |-- webapp |---- App-1 |------- src(app src) |---------- js |---------- css |---------- images |------- package.json(use to require other modules) |---- App-2 |------- src(app src) |---------- js |---------- css...
{ "language": "en", "url": "https://stackoverflow.com/questions/17743783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Aggregate by name and average value per day in SQL I have data of the following format in a table (I have only shown values for two hours, but in reality I have values for all 24 hours): Name Availability Date ItemID -------------------------------------------------------- S1 75 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27255528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight 4.0 - image cropping with mouse events I have a task to build image cropping functionality in Silverlight 4.0 application. What I need to do is to have user on the left button mouse click select area to remain after cropping is applied and then call some other event (button click maybe) to apply that cro...
{ "language": "en", "url": "https://stackoverflow.com/questions/3782262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: TIdTCPServer gets stuck when connecting the second time I am using TIdTCPClient to get a file list all works well but when i close the client application and open it again i don't receive any event on TCPServer onExecute though the TIdTCPClient successfully connects to it and i am not able to send the file list. Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/8768692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why no type mismatch in call to CoCreateInstance function in the Windows API? I'm trying to translate this example of calling the WMI/COM using winapi from C++ to Rust, but there's something I don't understand in the original code. Here's a function call in the C++ code: hres = CoCreateInstance( CLSID_WbemLo...
{ "language": "en", "url": "https://stackoverflow.com/questions/59362354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: replacing elements in a vector of vectors C++ i have a vector of vector that contain just periods (".") so far and I want to replace certain coordinates on the grid with a symbol that I am taking in from an input file. I am using the replace method but keep getting this error " error: no matching function for call ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19748326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Soap Request as String convert it into java object I'm getting a SOAP request as string, from which I want to extract a Java object. Is it possible? If yes, then how? What API can be used for this? A: I'm getting a SOAP request as string, from which I want to extract a Java object. Is it possible? Yes. If yes,...
{ "language": "en", "url": "https://stackoverflow.com/questions/20471093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PostgreSQL using constants in foreign key The syntax for Foreign Key, as described in official documentation, includes set of column from table A referencing set of column from table B. Is it possible to use Constant in foreign key declaration? The problem is, I have table DICTIONARIES which contains all dictionary ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24550698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: CocoaPodspec unresolved identifier error I am trying to create my own framework by CocoaPodspec. I need some help to resolve the issue. And I got an error after run command pod lib lint --no-clean --verbose interminal : error: use of unresolved identifier 'GlobalLoaderView' This is Podspec file content : Pod::Spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/50873362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to take screen shot of a web page in PHP and show it in model popup and submit it into database function screenshot(){ html2canvas(document.body).then(function(canvas) { //document.body.appendChild(canvas); // Get base64URL var base64URL = canvas.toDataURL('').replace( 'image/...
{ "language": "en", "url": "https://stackoverflow.com/questions/57160178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Differences between query using LINQ and IQueryable interface directly? Using Entity Framework 4, and given: ObjectSet<Thing> AllThings = Context.CreateObjectSet<Thing>; public IQueryable<Thing> ByNameA(String name) { IQueryable<Thing> query = from o in AllThings where o.Name ==...
{ "language": "en", "url": "https://stackoverflow.com/questions/4572460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Filling content from bottom and right to left order Inside my page I have div which I want to populate with some content like it's on image. How can I do this without shrinking div content and populate inside div from bottom to up? A: Best approach for this layout would be the Flexbox Technique You can wrap the ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/30934560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: meteorjs -- Problems with the accounts-twitch package & OAuth2 Today, I started a new project (IRC Bot, etc.) to be used with Twitch.TV's chat servers. I wanted to use the accounts-twitch package that I found on Atmosphere, and had to manually install it (editing the package.js file) due to a deprecated dependency o...
{ "language": "en", "url": "https://stackoverflow.com/questions/24068671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mule ESB + RabbitMQ reliability and up-time: how to re-create a deleted exchange automatically at runtime I've got a Large mule application that receives on multiple queues and publishes to at least one exchange. I'm manually QA'ing the application by deleting the queues and exchanges to see if mule will retry to co...
{ "language": "en", "url": "https://stackoverflow.com/questions/33833420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Show ajaxloader on the time of $.getJson call i want to show ajaxloader icon on the time of executing $.getJSON. it should disappear after $.getJSON completes. $.getJSON("url", function(data){ ........ ........ }); A: Try this pattern: $("#someAnimatedGif").show(); $.getJSON("url", function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18502993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Servlets and synchronization Servlets runs in several threads, so my question is: If I have a lot of servlets which call some utility class (DbUtils, for example Connection c = DbUtils.getConnection(); //....some action with db here should I assume additional actions for synchronization inside DbUtils? Actually I'd...
{ "language": "en", "url": "https://stackoverflow.com/questions/5348991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: java: NoSuchElementException: Reading to arrayList sorry if my formatting is garbage. I'm trying to add 2 strings and a boolean to an arrayList doing the following. while((in.hasNextLine())){ list.add(new Task(in.next(),in.next(), in.hasNextBoolean())); } I keep getting a no such element exception. If I ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/36614058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get node value xml with LINQ c# I can't get the value of this XML node. I need to get the <LimitValue> value and give the user the possibility to change it. I have already tried this solution, but it doesn't work: namefile = Files[select].Name; XDocument document = XDocument.Load(@"C:\Users\lab\Desktop\copy\spectro\...
{ "language": "en", "url": "https://stackoverflow.com/questions/57203387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What PHP/Shell Framework can be used to access HTTP-POST/-GET Forms (besides curl)? I'm searching an abstraction layer from pure HTTP-POST/-GET using curl. It should somehow make it easy to define the Targeted script and it's variables. I read something exists in the FreeX (german unix/programming magazine), but do...
{ "language": "en", "url": "https://stackoverflow.com/questions/3166900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to dynamically add Proto Members in Protobuf-net Long time ago as @Marc stated in one of the threads that protobuf-net has no support for dynamic. Is that statement still valid? If not then can someone share an example how we can dynamically add the members in Protobuf-net. A: That is still correct. protobuf-ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/18968625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculating Averages and Determining Lowest and Highest Values I have split up a list with names and corresponding scores and have stored them in a dictionary called students. But with these scores, I have been asked to figure out the average score, minimum score and maximum score. I am a beginner and a student so a...
{ "language": "en", "url": "https://stackoverflow.com/questions/22441696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WebLogic 12.1.2 bad record MAC on HTTPS I'm trying to use WebLogic with HTTPS default keystore for development and I get the following error when I try to connect to the server via web browser: ExecuteThread: '0' for queue: 'weblogic.socket.Muxer', fatal: engine already closed. Rethrowing javax.net.ssl.SSLException...
{ "language": "en", "url": "https://stackoverflow.com/questions/26914682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pointer of QVector pointer This is my class constructor: UndoRedo::UndoRedo(QList<vector_t*> v, QUndoCommand *parent) : QUndoCommand(parent) { ... QStringList *sl = &v[0][0]; ... } Where vector_t is typedef QVector<QStringList> vector_t ; Whwn I try to set "sl" in this way, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/24897898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TypeError on Angular form submit I'm getting the error TypeError: Cannot set property 'songname' of null, when trying to submit an update to a row in firebase. The console error is saying that its happening with the record.songname in the edit function. I'm able to add, but not edit rows. myApp.controller('ProductsC...
{ "language": "en", "url": "https://stackoverflow.com/questions/44162406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use a Node.js module in CoffeScript in a JavaScript project I have been recommended this Node.js module. It is implemented in CoffeeScript, but I want to use it in my JavaScript project. Of course I will get an error message like this: What do I have to do to use the module in my project?
{ "language": "en", "url": "https://stackoverflow.com/questions/30003964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Assert IsMenu exception when attempting to populate a dynamic menu I'm attempting to populate a "submenu" in my dialog box from an array of strings as shown in this answer. My attempt looks like the following: #define ID_APP0 14000 #define ID_APP1 14001 #define ID_APP2 14002 #define ID_APP3 14003 #define ID_APP4 140...
{ "language": "en", "url": "https://stackoverflow.com/questions/65569414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL datetime compare I want to get some values from my table an there are some conditions about its datetime columns. I want to get all hotel values of a stated city from my table, which is named "LocalHotels". Also I should declare two DateTimevalues. First value should be less than or equal to hotel's value in "s...
{ "language": "en", "url": "https://stackoverflow.com/questions/34174524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Stop pandas to_excel() prepending apostrophe on strings I have a pandas dataframe which has only strings, although some are date strings like '2019-01-01', others are ints or bools as strings such as '1084' and 'FALSE'. When I try to write this to a sheet in an xlsx file I find it is prepending apostrophes in some c...
{ "language": "en", "url": "https://stackoverflow.com/questions/58195986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Curl request in python I'm a newbie to python program. I want to get trending topics in google trends. How do i make this curl request from python curl --data "ajax=1&htd=20131111&pn=p1&htv=l" http://www.google.com/trends/hottrends/hotItems I tried following code param = {"data" :"ajax=1&htd=20131111&pn=p1&htv=l"} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25895013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Row counter in sub report - Jaspersoft I have a subreport that receives two parameters and therefore generates as many reports as there are combinations of parameters, I have to put a row counter in the sub report but this must not reset every report generated by the sub report but must continue the numbering. This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61373263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I delete every n-th row from a dataframe in R, according to grouping variable? I wish to take every second measurement from a data.frame according to a grouping variable. For example, in the data.frame Input, take every second Sample for each ID: head(Input, 10) Sample X ID 15918 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38822053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any way to get all product variation prices to display? I have WordPress woo-commerce site with product selling, and i have three variation price for the product like (1 kg -420, 500 grams - 220 and 250 gram- 100). currently it prices are showing like 100-420, but i need all three variation price to be dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/54747520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: please help to sort it out error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\include -IC:\Program Files...
{ "language": "en", "url": "https://stackoverflow.com/questions/75563379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Is it good to have all the setter functions return a reference to the object in c++? Is it good to have all the setter functions return a reference to the object in c++? A: The typical purpose for this style is in use for object construction. Person* pPerson = &(new Person())->setAge(34).setId(55).setName("Jack"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/752762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Create a function for add_new_field in Python I am trying to create a function for a task I mentioned earlier for adding a new field to some files that are stored in one folder. I read about the function method in Python and followed but it does not work. I would be happy if someone could guide me about it. def newf...
{ "language": "en", "url": "https://stackoverflow.com/questions/15786220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems with w3 total cache I installed the plugin W3 total cache but It crashed an important plugin, so I have to delete it. The roblem is that my site is still running a cache version. I follow the instruction for delete the plugin: unchecked all options, disable and delete the plugin. I look up for the folders: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54603658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make a MFC Visual Studio C++ program use both CPUs in a dual processor setup I recently built a workstation with a dual Xeon E5-2699v4 CPUs. This provides me with a total of 88 threads. I have a program that can benefit from using these threads. However when I tested it out, it seemed that it was only utilisi...
{ "language": "en", "url": "https://stackoverflow.com/questions/48591572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Set default 'host' value for `php artisan serve` I am building a Laravel site, and want to test it on other devices as I build it (phone, ipad etc). As I understand it, the way to do this is to run php artisan serve --host=0.0.0.0. My question is... is there a way to define a default value for the host, and set it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50639622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Angular9: Getting Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays I have created a simple app to call backend services using HttpClientModule,, but data is not showing into the log, I did the following steps and I am using angular-9 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61304121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I cannot find javadoc or source files for JDK 8 Update 321 on the net In the projects in IntelliJ IDEA I am using JDK 8 Update 321, but I am missing javadoc or source for the SDK. OS is Windows 10. I realy tried, but wasn't able to find either on the internet. A: Javadoc: https://javadl.oracle.com/webapps/download/...
{ "language": "en", "url": "https://stackoverflow.com/questions/74221033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook OAuth access_token error Full code. public function indexAction(){ echo '<a href="https://www.facebook.com/dialog/oauth?client_id=475302972487577&redirect_uri=http://bp.mysite.com/en/social/fblogin" target="_blank">Login met facebook</a> '; } const FB_GRAPH_URL = "https://graph.facebook....
{ "language": "en", "url": "https://stackoverflow.com/questions/12134213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run a single test with multiple configs in parallel using pytest I have to run the same test against different hosts in parallel. Currently, i'm making a bunchof pytest.main() calls. But this is not run in parallel and results are not aggregated. This is the content of runtest.py: pytest.main('--conf=c1.txt') pytest...
{ "language": "en", "url": "https://stackoverflow.com/questions/24944263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Classes with String Switches class AddItemOption { //Fields that contain class data string input = Console.ReadLine(); //Methods that define class functionality public string myFunction(string Value) { switch (input) { case "Umbrella": Console.WriteLine...
{ "language": "en", "url": "https://stackoverflow.com/questions/13243138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does explicit template instantiation go in cpp or header file? Does explicit template instantiation go in cpp or header file? A: Assuming by "explicit template instantiation" you mean something like template class Foo<int>; // explicit type instantiation // or template void Foo<int>(); // explicit function instanti...
{ "language": "en", "url": "https://stackoverflow.com/questions/5864401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How can I supply an AntiForgeryToken when posting JSON data using $.ajax? I am using the code as below of this post: First I will fill an array variable with the correct values for the controller action. Using the code below I think it should be very straightforward by just adding the following line to the JavaScrip...
{ "language": "en", "url": "https://stackoverflow.com/questions/2906754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: Videojs original timeline not coming I am using videojs in my application. I wrapped video tag inside video-wrapper div to make it as the size of parent div which is video-wrapper. But the problem is I am not able to see the actual timeline of videojs which comes with it. Chrome is adding it's own timeline I guess. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41811961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does Rails generate a SQL query for an "include?" call in a view but not in the console? In my app a Position has_many Questions. In my position edit view, I create a set of checkboxes by looping over an array of Questions and checking those that the current position already includes. Looks like this: - @questi...
{ "language": "en", "url": "https://stackoverflow.com/questions/8126464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Vb.net 2 decimals double I want to place all my doubles to 2 decimals after the comma. At this moment when the value is 0.30, my Datagridview shows 0.3..any idea? This is my code: eenheidsprijs = Math.Round(eenheidsprijs, 2) basisbedrag = Math.Round(basisbedrag, 2) kortingbedrag = Math.Round(kortingbed...
{ "language": "en", "url": "https://stackoverflow.com/questions/24722638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Unity Google Play Services: Authentication Failed always: I have a problem with authenticate. The authenticate always fail and I can't understand the cause (not only fail in the editor, in my device too). Here is the code: using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; using Unit...
{ "language": "en", "url": "https://stackoverflow.com/questions/37987556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Import Excel sheet into database using MVC .net Web Application Im new to programming and i am trying to import excel sheet into my database using mvc. I am able to import into my database but i need to find out how do i add validation for example email and duplicates. It seems like if i upload the same excel sheet ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53333935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: remove from a draggable when being dragged - jquery I have this site which is a grid of draggable links. When dragged a drop down appears where the user can drag to trash the draggable. Problem is that when they drop it on the droppble, the link opens up! Which is not supposed to be happening. I've tried adding u...
{ "language": "en", "url": "https://stackoverflow.com/questions/15705863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I remove extra whitespaces created by iniparser? Recently I'm taking iniparser as primary choice. However, with its API creating too many whitespaces resulting in waste of memory. For example, iniparser_set() will create /*test.ini*/ [section] key = value instead /*test.ini*/ [s...
{ "language": "en", "url": "https://stackoverflow.com/questions/70445252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use replace regex in Komodo? I am trying to create a regex to find and replace (keep empty) different names in an txt file. I use Komodo, as it is part of the examen. Here the text sample: *Cassidy: What's your name again? Chrissie Watkins: Chrissie! Cassidy: Where are we going? Chrissie: Swimming! Cassidy: S...
{ "language": "en", "url": "https://stackoverflow.com/questions/53621053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby on Rails tutorial Chapter 11: Rspec tests fail on follower/following section I'm working on Chapter 11 of Hartl's tutorial, trying to get the non-logged-in users in the Users controller visiting the followers and following page to pass. I'm running into an error where Rails would complain about an undefined adm...
{ "language": "en", "url": "https://stackoverflow.com/questions/15874039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create/add multiple tittles and border lines to one text table in Tableau Desktop I have a text table in Tableau Desktop that looks like this. I want to partition it to add multiple tittles with border lines to separate into three parts within one tableau sheet, expecting result to look like this. Any ideas...
{ "language": "en", "url": "https://stackoverflow.com/questions/75174909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to call F# Extension in VB.Net Solved: IntelliSense just doesn't show the Extension! Lets say we got the following extension method in F#: [<Extension>] module Extension = [<Extension>] let Increment(value : System.Int32) = value + 1 In C# I can call it like this way: x.Increment(); //Result x=1 But...
{ "language": "en", "url": "https://stackoverflow.com/questions/17152187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Generic ListView Adapter I am trying to create a Custom Adapter which can handle any kind of layout to be inflated. By generic I mean any kind of data to be set in an adapter and any kind of a layout could be used with Event Listeners to be set for an item. For example: I have a contact list and a country list. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/11509572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why the return type of getchar() is int? I searched for the answer on Internet but I could not understand what is this 'EOF'? Please let me know from basic about what is getchar() and what are it's uses? Note that I am just a beginner of C language. A: In C there's really no difference between a char and an int. Ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/60332668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: row layout not set on on Main Activity Recycler View I am just parse some data and display on my ListProperty Class. I am using RecyclerView and CardView as a row layout. Somehow all is working fine i don't see any error in verbose. But the Data and row layout dosent display in my main activity. Activity is showing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38119908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change the text of textview more than one Hi and sorry for my English! :) I want to change the text of Text View after 3 second by random number but it's just show last number and I didn't see last numbers in Text View What should I do? Thanks... :) import android.app.Activity; import android.os.Bundle; impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/29433116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: 'Access attribute not allowed in generic body with external package I'm having some issues with generics in Ada. Given the below example, gnatmake results in: g_package.adb:13:33: 'Access attribute not allowed in generic body g_package.adb:13:33: because access type "t_callback_p" is declared outside generic unit (R...
{ "language": "en", "url": "https://stackoverflow.com/questions/48174233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does insert invalidate the std::set reverse iterator My understanding is the iterators of associative containers are not invalidated during insert or erase (unless the node pointed by iterator is erased). But in the below program the insert seems to invalidate the iterator. Is my understanding wrong? typedef std...
{ "language": "en", "url": "https://stackoverflow.com/questions/19826255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Text transition on hover image I'am trying to set css transition on the text on hover image like this -> https://victorthemes.com/themes/glazov/portfolio-grid/ I tried to do this with cubic-bezier() function, but without result. Here's my code. * { margin: 0; padding: 0; border: 0; } .img__wrap { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53197474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delphi DLL Modal Form causes AV on Second Call I am trying to show a modal (FMX) form from a DLL. Eventually this will be ported to OSX so I'm trying to keep the 'Windows' code to a minimum. Based on what's in the forum I have tried to keep the code as simple possible. I know that the first time showmodal is called,...
{ "language": "en", "url": "https://stackoverflow.com/questions/57228715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DateTime::__construct(): Failed to parse time string (//) at position 0 (/): Unexpected character Could not pass date to MySQL using php POST method. Got the error as given in the title. Here is my code. <code> date_default_timezone_set("Asia/Kolkata"); $dd = substr($dob,0,2)."/"; $mm = substr($dob,3,2)."/"; $yyyy =...
{ "language": "en", "url": "https://stackoverflow.com/questions/52579952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Compare one col with another containing multiple entries We need to compare one col with another in a df and identify if the entry from col"a" matches any of the entries in col"b". The result would be a new col with T = match or F = no match. # task df df <- data.frame( a = c("ABC", 'ABB', 'ACC', 'AAG'), b = c("...
{ "language": "en", "url": "https://stackoverflow.com/questions/70869912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: im getting a error message parse error: syntax error, unexpected " I get this error can someone help please Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\Users\packardbell\Desktop\hdd\htdocs\qr\index.php...
{ "language": "en", "url": "https://stackoverflow.com/questions/22816318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Discord.js how to delete a message if they have too many capital letters I want to block my user from using too many capital letters in the same message (i.e typing in full CAPS LOCK). I tried this, but it doesn't seem to work if they put spaces between capital letters; here is my current code: client.on("message", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63820651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Android Kotlin - Unit test a delayed coroutine that invokes a lambda action when delay is finished Ive been struggling with this for quite some time now, perhaps someone could help... I have this function in my class under test: fun launchForegroundTimer(context: Context) { helper.log("AppRate", "[$TAG] Laun...
{ "language": "en", "url": "https://stackoverflow.com/questions/70904977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing the working directory for a process remotely I've got an application that has a bug right now, but we're unable to update the end-user to get the fix out. What a possible workaround would be is to change the working directory to the application's install directory, but from what I can tell, there's no way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/2539675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Content in scrollview as a list item disappears when scrolling (swiftui), why? Solution by @Asperi, ScrollView().id(UUID().uuidString). There is a scrollview in the list item, when I scroll the list, the content in scrollview disappears. I think the issue is about scrollview & list reusable item conflict. If I remo...
{ "language": "en", "url": "https://stackoverflow.com/questions/59810913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Swift - How to correctly set up a Weak Variable I have an app with a lot of Astronomical calculations in them. For sanity they are separated into individual methods/functions. Run individually there are no memory runaways. HOWEVER when I need to calculate something complex like the angle of incidence of the sun's ra...
{ "language": "en", "url": "https://stackoverflow.com/questions/32841544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ibm-cloud-private dashboard first record does not look like a TLS handshake I'm trying to use ibm-private-cloud dashboard to install ibm-chart. And after selecting any chart, and proceed to configure, I'm pressing "install". Then i got the following error in the bottom of the page: Internal service error : rpc erro...
{ "language": "en", "url": "https://stackoverflow.com/questions/51078340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python 3 taking multiple data types in input, separated by space So i need to find a way to take multiple data types as an input and store them in variables. Lets say i have 3 variables, each of them should store a fixed data type a - float b - str c - int and if the user enters a wrong, he will be asked to type aga...
{ "language": "en", "url": "https://stackoverflow.com/questions/47024444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generating every outcome possible when parsing a list : element(N, L,X) I am trying to implement a simple element(N,L,X) predicate, where L is a list, X an element of the list, and N the position of this element in the list. I want to be able to do that : element(3, [a,b,c,d,e], X). yes : X=c. element(N, [a,b,c...
{ "language": "en", "url": "https://stackoverflow.com/questions/37863853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rails postgres some of the sequence not start from 1 I am using ruby on rails with postgresql database. A weird thing happened that some of the tables_id_seq are not starting from 1, but 980190963. But some of the seq are correctly starting from 1. The problem is when I tried to insert data into those table which se...
{ "language": "en", "url": "https://stackoverflow.com/questions/36813189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is my Apollo Client optimistic reply failing? I'm recording this to document the answer to a problem that took me several hours to solve. Scenario: I'm using two mutation queries on a single component in React Apollo-Client. This is a component wrapped into a larger component to form a page. Something like this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48513854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error in model.frame.default(formula = meansharelocal ~ meanshareglobal) : invalid type (list) for variable 'meansharelocal' Trying to conduct a t.test of two sets of data. The code I am writing for this is: t.test(meansharelocal ~ meanshareglobal) Each data set has 4 pieces of data, in a column like this in a tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/71677755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel show maintenance mode during composer update I'm have a question extremely similar to this unanswered one: laravel 5 maintenance page broken during composer update I am new to Laravel (using version 5.2) and am trying to work out the deployment process. From what I've gathered, the workflow that I want to us...
{ "language": "en", "url": "https://stackoverflow.com/questions/35397928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python CSV - optimizing CSV Read and Write I am currently fiddling around with Python when my boss assigned me with a quite daunting task. He gave me a CSV file with around 14GB in size, and ask me if I can inflate that CSV to a delimited file with 4TB of size, by replicating itself several times. For example, take ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37732466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python Multiple Assignment Statements In One Line (Don't worry, this isn't another question about unpacking tuples.) In python, a statement like foo = bar = baz = 5 assigns the variables foo, bar, and baz to 5. It assigns these variables from left to right, as can be proved by nastier examples like >>> foo[0] = foo...
{ "language": "en", "url": "https://stackoverflow.com/questions/32156515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: How to ensure data security even if postgres data can be accessed I am installing postgres along side a intranet application. The data folder of postgres can be accessed by the user. I have seen here how one can reset the postgres user password and thus compromising data security. Am I correct in understanding pg_hb...
{ "language": "en", "url": "https://stackoverflow.com/questions/41511110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Play Framework super Class i want to create two table using a abstract super class i have 3 user's -> Full Time User, part-time user, they have almost the same data I create the models but the table User is not created :( how do i do? thanks in advance Model Full time User @Entity public class User extends Model{ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9820420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP _REQUEST redirect? I am reading a script but am stuck on understanding this: $redirect = base64_decode($_REQUEST['redirect']); header("Location:$redirect");exit; because the redirect variable in REQUEST isn't defined anywhere in the script. Prior to this a POST form has been filled in, but there is NO mention o...
{ "language": "en", "url": "https://stackoverflow.com/questions/3517345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: makefile compile with -g and -O0 automatically Now I got a makefile like this: #-------------------------------------------------------- # Choose a compiler #-------------------------------------------------------- CC = gcc #-------------------------------------------------------- # Set your source file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36637481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to convert from a string to pure code in C++? I know that its possible to read from a .txt file and then convert various parts of that into string, char, and int values, but is it possible to take a string and use it as real code in the program? Code: string codeblock1="cout<<This is a test;"; string...
{ "language": "en", "url": "https://stackoverflow.com/questions/823207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Loop end condition with iterators and custom step size I am adding some functionality to a previously built code. I have to loop over a list is steps of 2 and process the elements elements differently. Here's my attempt. for(auto list_it = std::next(list.begin()); list_it != list.end() ; std::advance(list_it,2)){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59566298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Qt : How to generate .h and .cpp from a .ui file - Vim and Qt is it practical? I have been using Qt for a while in Windows with Visual Studio on Windows using the Qt Addin. For creating forms I would use Qt Designer and when I would save the form which I would get a *.ui file, a *.cpp file and a *.h file. Now on GN...
{ "language": "en", "url": "https://stackoverflow.com/questions/26989441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove duplicate from large lists efficiently? I have a list which contains ids and values and I need to remove ids duplication. I am looking for an efficiently way preferable in LINQ, instead of my loop and if condition. Thank you for any help and advise. var list = new List<Tuple<int, double>>(); Current value...
{ "language": "en", "url": "https://stackoverflow.com/questions/27033742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: FlashBuilder4 RIA on GAE I want to build a highly scalable "facebook for business" and after much testing am pretty set on FlashBuilder4 (Flex) with Google App Engine (GAE). What are your thoughts on the need/advisability of also using Spring/Cairngorm/etc frameworks? Frankly I don't have extensive experience coding...
{ "language": "en", "url": "https://stackoverflow.com/questions/2748595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use Youtube dataAPI Version 3 on zend framework 2.X version Not able to find any details on the net on whether Zend framework 2.X supports youtube dataAPI 3 ? A: ZF2 doesn't support YouTube like ZF1. However there is a module https://github.com/snapshotpl/ZfSnapGoogle to using Google APIs.
{ "language": "en", "url": "https://stackoverflow.com/questions/29278901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inferring types in Lambda Calculus I was wondering in anyone would have some decent resources on lambda calculus, specifically on type inference. I am studying for an exam and I can't seem to find any info on lambda types and how to infer in any tutorials I've done. I have an exam question which I'm trying to get my...
{ "language": "en", "url": "https://stackoverflow.com/questions/21064214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Manipulate text file - change multiple lines Have been looking at what I thought would be a really simple task this morning.... and turns out it wasn't, at least not for me. What I am trying to do is get powershell to read through an ini-file, and change multiple values under specific headers only. [Datoformat] Sepa...
{ "language": "en", "url": "https://stackoverflow.com/questions/71772551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }