text
stringlengths
175
47.7k
meta
dict
Q: Error in creating 2 tables in Green Screen STRSQL I'm getting an error while trying to create 2 tables in Green Screen STRSQL. CREATE TABLE QTEMP/CUSTOMER AS (SELECT * FROM CBHHUBFP/SSCUSTP) CREATE TABLE QTEMP/ADDRESS AS (SELECT * FROM QTEMP/CUSTOMER) ERROR: Keyword Create not expected Valied Tokens End-Of-Sta...
{ "pile_set_name": "StackExchange" }
Q: Most efficient way to convert date strings to a pandas time series index My CSV data file contains dates in the following format: In: data["DayIndex"].unique() Out: array(['04/23/17', '04/20/17', '04/21/17', '04/24/17', '04/22/17', '05/02/17', '04/27/17', '05/06/17', '04/30/17', '04/25/17', '04/26/1...
{ "pile_set_name": "StackExchange" }
Q: UIView is not autoresized after I hide the UIStatusBar I have a ViewController which need to hide the status bar sometimes. The problem is the view of the UIViewController is not autoresized after the status bar is hidden. (Actually I have another application use the exactly the same View Controller. Which has no ...
{ "pile_set_name": "StackExchange" }
Q: CodeIgniter refresh page after form submit I am trying to refresh a page via CodeIgniter, but I can't seem to get this to work. Basically, we have a list of jobs on a page and a user has the option to filter the said jobs. So, a user will select checkboxes and then click save to save their selections to a database...
{ "pile_set_name": "StackExchange" }
Q: How to convert a column data to a row in php mysql This is basically for testing an address book php application. Here is the output I got from the SQL query. I want to convert this results to a row. MySQL Query output Output looking for A: Query SELECT contact_id, MAX(First_name) AS First_name, MAX(Last_Name)...
{ "pile_set_name": "StackExchange" }
Q: how find function in source In researching how to best utilize OpenSSH, I looked into SHA hashing and found a post discussing the SHA2 functions in OpenSSL. The accepted answer states SHA-224 and SHA-256 are the same function, save for an internal parameter I'm sure that this is true but, I'd like to take a look...
{ "pile_set_name": "StackExchange" }
Q: How to securely erase Apple NVME SSD? I just got one of the new 12-inch MacBooks and would like to wipe the storage drive. With a conventional SATA drive I'd use the "ATA Secure Erase" command which can be sent from a Linux environment using the hdparm utility. With the new NVME drive this does not work. I found a...
{ "pile_set_name": "StackExchange" }
Q: Sources of musical tension I understand that harmonic tension occurs when you hang on a chord which "wants" to resolve, like a chord with a leading tone or certain dissonant intervals. Are there other sources of harmonic tension? What are non-harmonic sources of tension? A: The pause is one that comes straight ...
{ "pile_set_name": "StackExchange" }
Q: Device based access policy for Laravel Security is not my area of expertise. I am working on a lightweight administrative Laravel web app for internal use by company (small) employees: The app is intended to be used only by the employees Remote work (from home) is not uncommon Smartphones and laptops are usuall...
{ "pile_set_name": "StackExchange" }
Q: How to set up UncaughtExceptionHandlers for multiple bindings in spring kafka streams? Right now, I'm trying to access the underlying kafka streams handle by following - https://cloud.spring.io/spring-cloud-static/Finchley.SR2/multi/multi__apache_kafka_streams_binder.html#_accessing_the_underlying_kafkastreams_obj...
{ "pile_set_name": "StackExchange" }
Q: Preserve internal state on page refresh in React.js It must be pretty regular issue. I'm passing props down to the children and I'm using it there to request to the endpoint. More detailed: I'm clicking on the list item, I'm checking which item was clicked, I'm passing it to the child component and there basing o...
{ "pile_set_name": "StackExchange" }
Q: Converting an html page to binary format in python Suppose I have these two lines: c=urllib2.urlopen(myUrl) html=c.read() I'm quite new to Python and am looking for a way to transform the HTML code stored in html in a binary array so I could easily store in my MongoDB without worrying about the encoding of the we...
{ "pile_set_name": "StackExchange" }
Q: adding upload file interface to my solr browser I am new to solr 4.0. I already made a custom browser site. 1)I want to add an upload file interface to it, so clients can upload their own files from home. 2)After a file is being uploaded i want to parse and edit it with a jar application i made. The only i can th...
{ "pile_set_name": "StackExchange" }
Q: How do I use pseudo-elements to display content after the main item? I am trying to achieve the following look: I want to place the heart on the top right of the price box. And I've managed to create it but the placement of the heart is hardwired. And if I change $89k to something bigger, the price box increas...
{ "pile_set_name": "StackExchange" }
Q: Typescript check for the 'any' type Is it possible to check for the exact any type using typescript conditionals? type IsAny<T> = T extends any ? true : never type A = IsAny<any> // true type B = IsAny<number> // never type C = IsAny<unknown> // never type D = IsAny<never> // never A: Yeah, you can test for any...
{ "pile_set_name": "StackExchange" }
Q: Compiler flags for C++11 I'm trying to write a CMakeFiles.txt (never done it before) and I'm not sure what compiler flag to use for C++11. I use GCC 4.8.2 and the flag is std=c++0x but I'm not sure what to do about other compilers. I don't suppose they all use that flag, I believe MinGW-TDM uses std=c++11, what wo...
{ "pile_set_name": "StackExchange" }
Q: django uml database Is there any possibility to export the Django database into some kind of a UML tool, so that i can see graphically see the relations between tables (or even between classes) ? thanks! A: The django-extensions project includes a modelviz management command which will export your model structur...
{ "pile_set_name": "StackExchange" }
Q: vue mapGetters not getting on time I'm using vuex to manage the state in my application and doing one way binding with my form. <script> import { mapGetters } from 'vuex' import store from 'vuex-store' import DataWidget from '../../../../uiComponents/widget' export default { data () { return { ...
{ "pile_set_name": "StackExchange" }
Q: select records which are repeated twice! I have a table in SQL Server with these records : ID Date Time -- --------- ---- 1 09/05/02 6:00 2 09/05/02 8:00 3 09/05/03 6:00 4 09/05/04 8:00 5 09/05/04 6:00 I would like to select those ID who have record...
{ "pile_set_name": "StackExchange" }
Q: Drop down initiated when click on enter on validated text box I've created a MVC5 App which was generated from my model by scaffold the view and controller, In the model I have a drop down for dev and prod which is working fine, I have validation for name for alpha-numeric and the problem is for e.g. user chooses ...
{ "pile_set_name": "StackExchange" }
Q: Why is the returndata of a function returning bytes formatted in a weird way? Solidity 0.4.25. Consider this code contract A{ function test() public view returns (bytes){ bytes memory output = abi.encodePacked(bytes32(1)); return output; } } The returned data is: 0000000000000000000000000...
{ "pile_set_name": "StackExchange" }
Q: Rails reverses day and month when saving DateTimePicker form field I am trying to use Tempus Dominus Bootstrap 4 in a form on a Ruby on Rails 5.2 app so the user can select a date. Here is the code: app/views/events/_form.html.erb <div class='form-group'> <%= f.label :starts_at, 'Start Date and Time', class: 'co...
{ "pile_set_name": "StackExchange" }
Q: Is there a way to schedule the end of the repeating alarm in Android? I'm quite new to Android development and I've decided to create a repeating alarm app where you'd choose when the cycle ends, like after 5 alarm bursts. I have set the alarm and all that, I have a button to cancel the alarm but I can't limit it ...
{ "pile_set_name": "StackExchange" }
Q: Determine Days Not Covered Based on Fields Containing "From" and "To" Dates Server: Microsoft SQL Server SQLFiddle: http://www.sqlfiddle.com/#!18/cdfa3/1/0 If I have rows containing a "start" date and an "end date", how can write a SQL query that will list the days that are not contained between those dates. Examp...
{ "pile_set_name": "StackExchange" }
Q: How to properly define the Flashbuilder 4.5 Premium license for a maven flexmojo based build? We have been building our Flex app forever using Maven. Due to the fact that we use RIATest for integration testing we need to create a special test version of the app with the RIATest agent compiled in it and with the Fl...
{ "pile_set_name": "StackExchange" }
Q: How to set MongoDB automatically assign ID to each sub-document? public class SubClass { public bool isValid { get; set; } } public class MainClass { public List < SubClass > SubClasses { get; set; } } MainClass m = new MainClass() { Name = "Mohsen", SubClasses = new List < Su...
{ "pile_set_name": "StackExchange" }
Q: Why is Qemu Virtual CPU on my kvm guests can some one please clarify this. I am new to kvm and created two guest instances one linux and one windows. On both Guests, CPU is showing as QEMU virtual CPU,why is it so? if kvm utilizes hardware virtualization and Qemu an emulator then what is the role of kvm in virtu...
{ "pile_set_name": "StackExchange" }
Q: When describing time span, are 間 {あいだ} and 内 {うち} interchangeable? Both 間 {あいだ} and 内 {うち} can be used to describe time span relative to specific situations, similar to "while" in English. But are they interchangeable all the time? Are there any scenarios where one can use one of them but not the other? Are there ...
{ "pile_set_name": "StackExchange" }
Q: stopwatch in javascript using new Date object In script below i try to make some kind of stopwatch: <html> <head> <script> var t; var time; var timetoRun=180000;// 3 min function Timer() { stoper = (this.startTime+ this.timetoRun)-new Date().getTime(); x = parseInt(stoper / 1000); ...
{ "pile_set_name": "StackExchange" }
Q: Error during serialization or deserialization using the JSON JavaScriptSerializer. Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. public string MemberDetail(string Code) { String res = ""; ...
{ "pile_set_name": "StackExchange" }
Q: How to link single-threaded CRT libc.lib? I have an application which uses an old .lib file which in-turns depend on single-threaded libc.lib. As I read on MSDN, Single-Threaded libc.lib is no longer supported and I should use Multi-threaded ones. How do I force that .lib to use multi-threaded version of libc.lib...
{ "pile_set_name": "StackExchange" }
Q: ASP.NET MVC - View is posting null model I have been trying to call a POST action from my view. I see POST method parameter is always null. What I am doing wrong ? My model class : public class Survey { public int Id { get; set; } public int QuestionId { get; set; } public string QuestionText { get; se...
{ "pile_set_name": "StackExchange" }
Q: Set background from value <table border="1"> <tr><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td><a style="display:none" color="#ff00cc" title="t">t</a><a color="blue" title="asas">a</a></td></tr> <tr><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td><a style="display:none" color="#6600cc" title="t">...
{ "pile_set_name": "StackExchange" }
Q: How to define first and last object and stop the loop I am sharing a fiddle with you guys and on there, if you focus on the input field and move the keyboard arrow down key, it will start selecting the items. Once you reach the last it takes you to up again. I want to restrict it is such a way that: if you are on ...
{ "pile_set_name": "StackExchange" }
Q: Passing a UIImage from one view controller to a UITableViewCell I am using a UITable to show images (Like a feed in instagram) I have the image saved in the viewcontroller I am taking the picture, but I need a way to pass the UIImage i have created to the UITableViewCell. What would be the best way to accomplish t...
{ "pile_set_name": "StackExchange" }
Q: Linq query Join objects with different data sources? I am trying to join two objects, the first is a (static) local object defined in a Helper and the second (Subsonic) Database object. Here is the offending extract from my repository, I wont bore you with the models and helpers unless requested. public IQueryable...
{ "pile_set_name": "StackExchange" }
Q: Rails timezone and Daylight saving time for a while I´m trying to understand how this timezone times will work, and I had a question: Today in my country, we are in Daylight saving time (GMT-2). So the user of my application enter a time, like 11:00AM and post the form. Far as I know, rails will convert this dat...
{ "pile_set_name": "StackExchange" }
Q: How to fix the Unknown Command error caused by starting CmdInit.cmd using TCC/LE? When you attempt to start the TCC/LE console via executing TCC.exe from ConEmu alongside the cmdInit.cmd script, you get this error: TCC: C:\[...]\ConEmu\cmdInit.cmd [8] Unknown command "C:\WINDOWS\system32\find.exe Windows" How...
{ "pile_set_name": "StackExchange" }
Q: Laravel 5.8 on demand notification error Call to a member function create() on null When I do this, the user receives email without error: Notification::send($user, new TicketNotification($details)); But, when I do this, the user also receives an email, but with an error in the screenshot below Notification::rout...
{ "pile_set_name": "StackExchange" }
Q: Simple Discount Studying for an exam and have a problem,I am a beginner. Its a discount calculator. Bag of coffee costs €3.75 10 bags or more 5% discount 20 bags or more 10% discount What I have so far import java.util.Scanner; public class discount { public static void main (String[] args){ //Scanner input; Kee...
{ "pile_set_name": "StackExchange" }
Q: Defending against a 'WAITFOR DELAY' sql injection attack? The problem We need to defend against a 'WAITFOR DELAY' sql injection attack in our java application. Background [This is long. Skip to 'Solution?' section below if you're in a rush ] Our application mostly uses prepared statements and callable statements (...
{ "pile_set_name": "StackExchange" }
Q: Tooltip, JQuery scrollbars not working in Ajax loaded content I use .append() to load dynamic data in a page from another PHP page. The problem is the content from the another page have jquery scrollbars and tooltips. If I include jquery.js and remaining javascript code in that page the dynamically loaded content ...
{ "pile_set_name": "StackExchange" }
Q: Creating a dynamic install directory in WiXSharp I am having trouble with with my directories, I want my InstallDir to be my top parent directory and for any other Dir to be contained within this folder structure. I have tried this multiple ways and can't seem to work it out but what I am aiming for is to be able ...
{ "pile_set_name": "StackExchange" }
Q: Showing time in proper manner I need to show time during level, in which I want to show in how much time player completed its level, I am calculating proper time, but it is not showing in properly format here is my code so far. I need in this format hour : minute : sec but its showing in this format seconds : nano...
{ "pile_set_name": "StackExchange" }
Q: Where can I find a reference which controls are in which version of MFC? Preferably with visual illustrations... MSDN just lists class-names and what I really want to see is which versions of MFC have nice modern functionality like dockable toobars, collapsible windows, and other graphical niceties. Does such a 'v...
{ "pile_set_name": "StackExchange" }
Q: Issue with setting NSString from another class - Objective C I have a search bar that once the search button is clicked, will call another class that will set a local NSString for that class. The issue is when setting it in a function, I can call it there but if I call it from outside of that function when I move...
{ "pile_set_name": "StackExchange" }
Q: Q3.24 (d) Signals & Systems 2ed by A. Oppenheim 3.24 (d) Determine the Fourier series representation for the following signal: a_k = 1 (k is even), 2 (k is odd) The solution (see attached) breaks down the answer to two components: y(t) and z(t). How is z(t) derived? A: Let me start by the definition of the Fouri...
{ "pile_set_name": "StackExchange" }
Q: unresolved external symbol _gluLookAt@72 referenced in function I'm making a program using the glu library but when i compile i got this error: 1>opengl_3.obj : error LNK2019: unresolved external symbol _gluLookAt@72 referenced in function "public: void __thiscall OpenGLContext::setupScene(void)" (?setupScene@Open...
{ "pile_set_name": "StackExchange" }
Q: C# Array or List for a single Class type I have a class that contains a few basic types. (3x float, 2x int). Now I need a collection that can hold several million instances of this class. I need no derived types. All elements are exactly from this single class. Further more the number of elements is fixed. In very...
{ "pile_set_name": "StackExchange" }
Q: Can you specify point size when using rasterize in holoviews Is it possible to specify a size for the points generated by the rasterize function in holoviews? Similar to that of spread when using datashade A: Yes and no. There is a PR for that at https://github.com/pyviz/datashader/pull/771 , but it hasn't been ...
{ "pile_set_name": "StackExchange" }
Q: Align valuebox in box with offset in Shiny ui <- dashboardPage( dashboardHeader(title = "Sales"), dashboardSidebar(), dashboardBody( tags$style(HTML(".box-header{background:#d2d2d2; color:#d83000; text-align:center;}")), shinyUI(fluidPage( fluidRow( box(fluidRow(column(width = 12, ...
{ "pile_set_name": "StackExchange" }
Q: Is this number theoretic quantity bounded above? I am considering a combinatorial argument which involves the following quantity. We use the prime counting function $\pi(n)$ and to save on exponents we set $h=\pi(n/2)$. The quantity as a function of integer $n \gt 7$ is $$(\pi(n)!)^{1/(n-h)}$$ Computations for...
{ "pile_set_name": "StackExchange" }
Q: How do I change the picture on my profile? In Counter Strike: Global Offensive how do I change the picture that comes up when I kill/get killed? A: CS:GO is linked to your Steam account. Any changes made to the steam account, including the profile picture will change your account in CS:GO.
{ "pile_set_name": "StackExchange" }
Q: Net DateTime.AddMonths(1) doesn't work the same as Javascript d.setMonth(d.getMonth() + 1) I have client side date validation that requires one particular Date to be one month from a different date so I use d.setMonth(d.getMonth() + 1) and mostly works just fine. For end of month issues as in 1/31/2009, it retur...
{ "pile_set_name": "StackExchange" }
Q: Convert a string to date format I want a string value to convert date (yyyy-MM-dd) format. Below is the code which I tried but it is giving me an exception. string date = "20141021"; DateTime myDate = DateTime.ParseExact(date ,"yyyy-MM-dd", CultureInfo.InvariantCulture); As y...
{ "pile_set_name": "StackExchange" }
Q: Is there a way to convert epub format to images? I need a tool to programmatically convert epub files to a series of images. The output should look like screenshots taken on a canonical device (for this application, an iPad). I haven't been able to find any tools that do something like this. So what I'd really l...
{ "pile_set_name": "StackExchange" }
Q: K8s mongodb container cannot use the EBS volume mount I am having the below Pod definition. apiVersion: v1 kind: Pod metadata: name: mongodb spec: volumes: - name: mongodb-data awsElasticBlockStore: volumeID: vol-0c0d9800c22f8c563 fsType: ext4 containers: - image: mongo name: mongodb ...
{ "pile_set_name": "StackExchange" }
Q: SLCOmposeviewcontroller twitter sharing alert issue I have been using this code for twitter posting . SLComposeViewController *fbController=[SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) { SLCompo...
{ "pile_set_name": "StackExchange" }
Q: How to gather task results in Trio? I wrote a script that uses a nursery and the asks module to loop through and call an API based upon the loop variables. I get responses but don't know how to return the data like you would with asyncio. I also have a question on limiting the APIs to 5 per second. from datetime ...
{ "pile_set_name": "StackExchange" }
Q: Function parameters not working I'm still in the learning phase of javascript so I'm hoping there's a simple fix to this. I have an image map area that'll run a javascript function onclick. Here's what I have: Relevant HTML for Area Mapping: <img id="imageMaps" src="images/20keys.jpg" usemap="#20Keys" width="100%"...
{ "pile_set_name": "StackExchange" }
Q: Spring REST offline testing I'm trying to test a spring web MVC controller. I have the following test class: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:controller-test.xml" }) public class EmployeesControllerMockTest implements ApplicationContextAware { // this serv...
{ "pile_set_name": "StackExchange" }
Q: Is there absolute proof that an object cannot exceed the speed of light? Have any known experiments ruled out travelling faster than the speed of light? Or is this just a widely accepted theory? A: This needs to be emphasized : No theory, and Special Relativity that is used in physics to describe data is a theo...
{ "pile_set_name": "StackExchange" }
Q: CGPDFDocument: open PDF streamed or while file is not complete yet? Situation: (Large) PDFs are stored on an iOS device The PDFs are encrypted using a Rijndahl algorithm When tapping one of the PDFs, it gets decrypted and afterwards viewed using a PDF viewer I implemented. The viewer is using the Core Graphics fu...
{ "pile_set_name": "StackExchange" }
Q: Modify array to not play randomly I'm trying to not play in a random order and just play in the order of the array instead and loop back. Does anyone know how to modify this? I'm very new to javascript, so sorry if this question is horrible to even ask haha. Thank you for your help! <div id="player"></div> <sc...
{ "pile_set_name": "StackExchange" }
Q: How do I unbind a DocumentComplete Handler? I have following code: webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(Action1); webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(Action2); Works just fine. But they seem to trigger every time any page is done dow...
{ "pile_set_name": "StackExchange" }
Q: Obstructions to putting a complex structure on a real vector bundle (other than, obviously, dimension) A complex vector bundle is usually described as one with structure group $GL(n,\mathbb{C})$. If I take a real $2n$ when is it not the underlying real bundle of some complex bundle? A: There are basic obstructio...
{ "pile_set_name": "StackExchange" }
Q: Is it possible for Shake to change a source file? When running tools such as formatters and linting tools with "auto-correction" options, it can be that the input and output for a Rule are the same file; for example: "//*.hs" %> \out -> cmd_ "ormolu" "-m" "inplace" out -- OR batch 10 ("//*.hs" %>) ( ...
{ "pile_set_name": "StackExchange" }
Q: Adjective used to mean "smellable" An object that can be seen is visible. Something that can be heard is audible. What's a similar word to indicate that something is smellable? A: Both olfactory and olfactive have this meaning, but both words also have the more common meaning of emitting a smell, so they wouldn'...
{ "pile_set_name": "StackExchange" }
Q: Add class to last item Possible Duplicate: change repeater li item class if first or last Im working on a .net website which I've never worked with before. I have the following that outputs 4 divs... <asp:Repeater ID="RT_Ranges" runat="server"> <ItemTemplate> <div class="item"> <h4> ...
{ "pile_set_name": "StackExchange" }
Q: BizTalk server XmlDocument/ xmlString to Schema data I am stuck in a problem, there may be some better solutions but what I tried and failed is explained below. If I remove MessageAssignment component, My projects works perfectly it converts the data and makes a file to my directory. But as I described in image ...
{ "pile_set_name": "StackExchange" }
Q: Use of tag in HTML What is the use of the <bgsound> tag in HTML? A: It is a non-standard tag which instructs the browser to load and play a sound file (famously, at least in the mid-90's, a MIDI file) while the user is browsing your site. Except in a few very special cases, the real purpose is to time how fast ...
{ "pile_set_name": "StackExchange" }
Q: Su -c is not working and ignored It's explained that if we using su with -c parameter it will pass the command to user's shell and execute it. But in my environment, it totally ignore's the -c option and change to user's shell. [root@mftf~]# su - demo -c "ls -la" [demo@mftf~]$ but if I using -c without any comma...
{ "pile_set_name": "StackExchange" }
Q: Character values on a continuous axis in R ggplot2 Is there a way to include character values on the axes when plotting continuous data with ggplot2? I have censored data such as: x y Freq 1 -3 16 3 2 -2 12 4 3 0 10 6 4 2 7 7 5 2 4 3 The last row of data are right censored. I am plotting...
{ "pile_set_name": "StackExchange" }
Q: constant zoom in the Photos app on Mac when switching between photos I am playing with Photos app on my Mac and I would like to have fixed zoom while switching between photos. This is the option in Photos app: Right now, it jumps to 0% every time I switch to another photo. I would like to have it fixed all the ...
{ "pile_set_name": "StackExchange" }
Q: Amazon's Marketplace Web Service inventory not appearing in seller central despite submitting OK I am using Amazon's MWS to submit a product inventory but it doesn't seem to be working despite saying it has. I use "SubmitFeed" to submit my test feed XML, which I've pasted below; <?xml version="1.0" encoding="UTF-8...
{ "pile_set_name": "StackExchange" }
Q: LINQ Query returns no results I am trying to run a linq query using EF on .NET 3.5 and this query should return a result but isn't. I am wondering if I don't have it formatted correctly. lret = IEnumerable<Place> request.Category = long[]{1} lret can have many categories There is a place in the database that is ...
{ "pile_set_name": "StackExchange" }
Q: Python importing (in Flask) I am trying to setup a way that 2 people can work on one flask project without having conflict In flask framework, the url response is like following: in ~/application/urls.py from flask import render_template from application import app from application import views app.add_url_rule('...
{ "pile_set_name": "StackExchange" }
Q: Spring MVC maps parameter to .jsp instead of @RequestMapping I've created a sample spring-mvc app using maven archetype mvn archetype:generate -D groupId=test.tool -D artifactId=test-D version=0.1-SNAPSHOT -D archetypeArtifactId=spring-mvc-jpa-archetype -D archetypeGroupId=org.fluttercode.knappsack I've been try...
{ "pile_set_name": "StackExchange" }
Q: Ruby on Rails: Multiple conditions in rails based in different fields using like I have a entity in my database that have multiple fields. I need search in this entity based if a certain input it's contained in certain fields, by example Entity Car model_name owner I want search like this (a pseudo sql idea) Se...
{ "pile_set_name": "StackExchange" }
Q: How create TRectangle with rounded corners in Firemonkey? I'm building an app for Android using RAD Studio 10.1 and I need to create an TRectangle with rounded corners. There is an easy/native way to create an TRectangle with rounded corners? A: Сhange the XRadius and YRadius of your Rectangle.
{ "pile_set_name": "StackExchange" }
Q: Inner Class with parameter of Outer Class Type I would like to create an inner class parametrized on the type of the outer class. I should say first that I realize there may be a better way to achieve something like my desired result, and I am open to suggestions there, but I'll describe the situation as it stands...
{ "pile_set_name": "StackExchange" }
Q: Windows Server 2008 expanding folders is Slow On several Windows 2008 Server machines I'll log onto, when expanding folders in Windows Explorer with the treeview on the left, at times, it can take forever for the nodes to expand. Oftentimes there'll be some type of animation icon. I'll also usually see a BG prog...
{ "pile_set_name": "StackExchange" }
Q: How to deal with spaces in group names when managing Weblogic roles with WLST? I need to tweak some role assignments in weblogic 12 using WLST. In this case I want to assign a role to all members of a group. Here is a python script that works like a charm, provided said group name doesn't contain spaces ( I know, ...
{ "pile_set_name": "StackExchange" }
Q: How to create a pageable function in PostgreSQL I have two tables: event and location CREATE TABLE location ( location_id bigint NOT NULL, version bigint NOT NULL, active boolean NOT NULL, created timestamp without time zone NOT NULL, latitude double precision NOT NULL, longitude double precision NOT N...
{ "pile_set_name": "StackExchange" }
Q: How to Handle Objects required failures in QTP/UFT Iam testing a web service in UFT using Microsoft XML DOM and HTTP When i trigger the request XML, i get response in two ways Way 1 when it success <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SearchResourceResponse x...
{ "pile_set_name": "StackExchange" }
Q: How to make the header and footer without repeating in print for N pages? I'm struggling to repeat the header and footer on each print page. No problem necessarily be a table, most like it was, someone has any idea how to do? And i dont know how many pages it will be, can be n pages. TRY: jsfiddle.net/7ZGVv/111 ...
{ "pile_set_name": "StackExchange" }
Q: Instagram story scraper: What would the process be? I'm trying to code a web scraping python program that gets stories from users with your login. I thought It would be fun to see if I could even get it working since the 4k Stogram costs money just for more functionality. I logged in successful but I don't know wh...
{ "pile_set_name": "StackExchange" }
Q: Two divs with 50% width while content inside container How to accomplish the look like it is in the image? It is just regular Bootstrap code for columns, but first two columns should be on white background inside .container, while the other two columns on black background and that black background is going right ...
{ "pile_set_name": "StackExchange" }
Q: Align draggable elements in line and generate without overflow or new line I have this script I'm working on. What it should do is generate a new div every time I press a button and I've already done that, but those are not draggable. I think that happens because of the onLoad function but alternative do I have? ...
{ "pile_set_name": "StackExchange" }
Q: How to submit form to an other page using jQuery, Ajax with out leaving my page I want to submit a multipart/form-data form without leaving my page or reloading using jQuery and AJAX. When I submit it with PHP only it does the job well but leaves the page. HTML: <form action="" id="myform" method="POST" class="my...
{ "pile_set_name": "StackExchange" }
Q: Error in Perl modules which are already installed I was using local library and I install the modules in my local library but now when i test my code now its giving following . I tried to install Net Particia again but its giving second error 1st error Can't locate Net/Patricia.pm 2nd error cpan> install Math::R...
{ "pile_set_name": "StackExchange" }
Q: Toggle Auto Format On Save with Prettier in VSCode 99% of the time I want VSCode to auto format my files on save with Prettier. For that 1% of the time is there a way to toggle this to off in a way that's quicker than going into the settings and then manually switching it on and off? I've tried looking for any key...
{ "pile_set_name": "StackExchange" }
Q: Generate JSON Schema for ASP.Net Web API I'm looking to generate JSON Schema for a WebAPI, including documentation from the XML comments. Its primarily so that I can then import that into our API docs (using apiary.io) I've managed to get a workaround solution by adding swagger (and swashbuckle) and then using the...
{ "pile_set_name": "StackExchange" }
Q: Find paths with svn:external properties with certain string? I've a very large subversion repository, it's about 7 GB in size and holds many many files and directories from different projects. Now I did some major change to one project structure which is actually a library and I'm using it in quite a few other pro...
{ "pile_set_name": "StackExchange" }
Q: Strange error while importing jar lib - IntelliJ IDEA 14 I have created a own java lib and build a UTALib.jar file. I copied this lib into my java Project and marked it as compile under Module Dependencies. For testing i created two classes: class1 and class2. I have the following structure: |TestApp | -- src ...
{ "pile_set_name": "StackExchange" }
Q: What does this mean *((int*)(&val) +1) I'm trying to understand this line of code. Can someone help me? Is it saving the result in the variable val or in the address of the variable val? *((int*)(&val) +1)= A*(y) + (B - C) Thank you A: &val take the address of val (int*)(&val) consider this address as a pointer...
{ "pile_set_name": "StackExchange" }
Q: Update frame of UIView with label in it after changing label's contents I have a custom view which contains a label in it (assume the label is pinned to all the edges of the view). The width of the custom view depends on the text property (naturally, the longer the text the longer the view is going to be). However...
{ "pile_set_name": "StackExchange" }
Q: How to run docker-compose up -d at system start up? To let the containers autostart at startup point, I tried to add the command: cd directory_has_docker-compose.yml && docker-compose up -d in /etc/rc.local. but then after I reboot the machine, the containers not work. How run docker-compose up -d at system...
{ "pile_set_name": "StackExchange" }
Q: .htaccess - catch multiple vars from query, write cookie, redir .htaccess and regular expressions is twisting my mind :) I'm trying to catch a variable number of variables from the query string, write them in a cookie and redirect removing query string. I got it working with only one variable but sometimes I need ...
{ "pile_set_name": "StackExchange" }
Q: JQuery Toggle Button I'm new to JQuery, so please bear with me =) I have a "Menu" button that should "slide down" a menu. My problem is that the menu is visible from the start, I want it to be hidden at first and then when clicking on the "Menu" button, should the menu "slide down" and then "slide up" again after ...
{ "pile_set_name": "StackExchange" }