text
stringlengths
175
47.7k
meta
dict
Q: using an image for a button on php I have a php script which creates its own button, as I am using an open source framework. What I want is to use an image to create a button instead of a the link the is created. Here is the line for which I need the button: <td class="main button_marg"><?php echo tep_draw_button(...
{ "pile_set_name": "StackExchange" }
Q: How difficult are the plate-based wort chiilers to clean? Do they require filtration before the wort goes through them? I'm considering getting one of those "Therminator" style wort chillers as an upgrade to the coil. I plan on gravity feeding the wort through and pumping back into the kettle until my wort is nic...
{ "pile_set_name": "StackExchange" }
Q: ASP.NET Development Server I have a solution that contains a number of projects. One is an asp.net project, and is set-up to use the asp.net development server. The other projects have nothing to do with asp.net: for example, some are windows services written in unmanaged c++, others are c# console applications. M...
{ "pile_set_name": "StackExchange" }
Q: Nonconvex optimization problem I have a nonconvex optimization problem with a linear objective function, a set of linear constraints and a set of nonlinear, non-convex constraints. Is this problem NP-hard? If so, how can I prove this? A: In general, you can show that a class of problems is NP-Hard by taking a kn...
{ "pile_set_name": "StackExchange" }
Q: Reloading an iframe in GWT I am currently working on a GWT project where I am displaying an HTML file within an iframe in my application. This HTML file is actually being written to as it is getting displayed, and I am hoping to be able to reload the frame so that the changes made to the HTML file are reflected o...
{ "pile_set_name": "StackExchange" }
Q: MS Deploy task failed DeploymentBaseOptions does not contain a definition for UserAgent I am having trouble running a Team Foundation 2013 build with MS Build parameters for deployment and I am getting an error : C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (4255...
{ "pile_set_name": "StackExchange" }
Q: How can I initialize a default value of QComboBox without to click it? How can I initialize a default value of QComboBox without to click it? I tried with ui->combBox->setCurrentIndex(1); but when I read the value at first I get unfortunately a -1 and only after the QComboBox was clicked its value become 1. A: ...
{ "pile_set_name": "StackExchange" }
Q: How to pass an additional parameter to CascadingDropDown ServiceMethod? I have two chained CascadingDropDowns. Both are working fine. The thing is that in the underlying web methods which are supplying values for DropDwonList I need read one additional parameter. This parameter is needed for setting up the default...
{ "pile_set_name": "StackExchange" }
Q: Create Invisible Window in GTK#? I'm looking to create an invisible window for the processing of certain X events (sort of like NativeWindow in Winforms). Is this possible in GTK#? Or do I need to manually create such a window using P/Invoke to the X libraries? A: I'm not quite sure I understand what you're try...
{ "pile_set_name": "StackExchange" }
Q: Image button inside a Data table I'm facing a scenario that i need to add image button inside a datatable. Is it possible to add an image button control inside a datatable. I'm using Framework 3.5 and C# language. Thanks In Advance! Regards, Ranga A: I think you are trying to work with a user interface control l...
{ "pile_set_name": "StackExchange" }
Q: Why can't armrests be raised on window and aisle seats? I noticed that armrests on all the flight's I've taken recently can't be lifted on aisle and window seats (the edges of a row). Last time I flew, I got lucky: I was alone on my row and as such I was able to lay down to sleep. However, it was hard to make myse...
{ "pile_set_name": "StackExchange" }
Q: How to find Intersection of Two Collection in monogdb? Let say, I have 2 collection first one :- db.product_main { _id:123121, source_id:"B4456dde1", title:"test Sample", price: 250 quantity: 40 } which consist approx ~10000 objects (Array) and unique field is source_id. Second :- db.product...
{ "pile_set_name": "StackExchange" }
Q: H2o with predict_json: "Error: Could not find or load main class water.util.H2OPredictor"? I tried to use the H2o predict_json in R, h2o.predict_json(modelpath, jsondata) and got the error message: Error: Could not find or load main class water.util.H2OPredictor I am using h2o_3.20.0.8. I searched the document...
{ "pile_set_name": "StackExchange" }
Q: Functions satisfying $g(1 - g(x)) = x$ I need to find all functions with $g(1 - g(x)) = x$ and $x\in \mathbb{R}$. I must also provide a specific example of such function. My first attempt was to invert the expression yielding $g(x) = 1 - g^{-1}(x)$ and inverting again $x = g^{-1}(1 - g^{-1}(x))$. But this doesn´t ...
{ "pile_set_name": "StackExchange" }
Q: ng-include vs. ui-view for static content I'm populating my index.html via angular, as per usual. I have an index that looks something like: <body> <nav ng-include="'app/partials/navbar.html'" ng-controller="NavBarController"></nav> <main> <section ui-view="donate"></section> <section ng-include="'app/...
{ "pile_set_name": "StackExchange" }
Q: Problem with htaccess redirect (looping) I worked to do this for 2 hours but finally I gave up. I have 2 conditions: 1. If user request a php file redirect cms/index.php?request=$1 2. If user request something different from php (png,css,jpg) redirect cms/website/$1 First rule works but I couldn't apply second rul...
{ "pile_set_name": "StackExchange" }
Q: How to detect when drag input is end in libgdx I don't know how to detect when the user drag event is end or not so I decide to do like this protected class Input extends DragListener{ boolean dragging=false; @Override public boolean touchDown(InputEvent event, float x, float y, int pointer, int butto...
{ "pile_set_name": "StackExchange" }
Q: Android - what is the good-practice way of handling button clicks on the header of an app I am working on a header for an app. The header will have 4 buttons. Each button will have a listener and some code to send it to the home of that button. The Java code for the buttons will be the same so I am wondering wha...
{ "pile_set_name": "StackExchange" }
Q: How to make emacs execute function only a specific dir/file doesn't exist I want Emacs to execute a function if and only if a specific directory or file under .emacs.d doesn't exist. What should I add to init.el? Suppose that the dir or file name is dir, and the function name is fun. A: I am a beginner Lisp prog...
{ "pile_set_name": "StackExchange" }
Q: PHP: Using html_entities correctly. Want all/any characters to be returned in error message I'm having trouble returning certain characters in my error message. The setup is as follows: Whatever the user enters into the textfield (if incorrect), should be returned in the error message. Whether it's a letter, a com...
{ "pile_set_name": "StackExchange" }
Q: Library not loaded: @rpath/libmysqlclient.21.dylib Reason: image not found Django migrate error using mysqlclient DB driver and MySQL 8 with macOS While changing to a MySQL database from the default SQLite one that Django uses by default, I ran into this tricky error while trying to run python manage.py migrate --...
{ "pile_set_name": "StackExchange" }
Q: Error when deploying web app on Glassfish I'm using Eclipse + Glassfish 4.0 When I deploying a simple project, following error appears : cannot Deploy Testmart deploy is failing=Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: o...
{ "pile_set_name": "StackExchange" }
Q: Remove escape from string c# I have a path in my network who I can use in File Explorer without problems: \\MyNetwork\Projects\16000 Now I want to access it using Directory.Exists as: var normalFolderPath = @"\MyNetwork"; var number = @"\16000" var a = Directory.Exists($@"{normalFolderPath}\{number}"); But this...
{ "pile_set_name": "StackExchange" }
Q: Add form to html tabel cell I want to add an input form to an HTML table cell when a checkbox is selected. When I add some form of text field or number field to the table cell to create a form, the text box doesn't show. only the text of my label shows. <td> <label class="collapsible"> <input type="checkbox" /> <s...
{ "pile_set_name": "StackExchange" }
Q: Did the USS Olympia go forward in time? DS9 "The Sound of her Voice": LISA [OC]: My name's Lisa Cusak. Until a couple of days ago, I was the commanding officer of the Olympia. SISKO: The Olympia. LISA [OC]: We left the Federation over eight years ago for a long range exploration of the Beta Quadrant. SISKO...
{ "pile_set_name": "StackExchange" }
Q: Нужно чтобы бот правильно отвечал пользователю который вводит число. Я создал список из таких чисел, но бот все равно не отвечает Я поместил в список числа, при вводе которых пользователем, бот понимал, что ответить. Но по какой то причине ничего не получается. Бот ничего не отвечает P.s Я новичок в python #main.p...
{ "pile_set_name": "StackExchange" }
Q: Tricky for Loop I am bothered by a question of for loop in C language. when i write: #include<conio.h> #include<stdio.h> main() { int i = 0; for( ; i ; ) { printf("In for Loop"); } getch(); } Output: NOTHING PRINT. Code get executed, but printf statement didn't print due to condition. ...
{ "pile_set_name": "StackExchange" }
Q: Perl oneliner might be a runaway multi-line ++ message I am trying to reformat the date for MySQL. This Perl one-liner give me below error message. I would like understand why it's giving this error message. echo 'Dec 2 04:08:40 EST 2012' | perl -lane ' my @abbr = qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov De...
{ "pile_set_name": "StackExchange" }
Q: Не срабатывает псевдокласс :hover Здравствуйте. При наведении на картинку, она затемняется и сверху появляется блок с информацией, в которой есть в том числе и ссылка. Тут проблем не возникло. Но захотел выделить ссылку при наведении, hover почему-то срабатывает, только если навести на ссылку резко. Из за чего это...
{ "pile_set_name": "StackExchange" }
Q: How to count rows efficiently with one pass over the dataframe I have a dataframe made of strings like this: ID_0 ID_1 g k a h c i j e d i i h b b d d i a d h For each pair of strings I can count how many rows have either string in them as follows. import pandas as pd impo...
{ "pile_set_name": "StackExchange" }
Q: Firebase Google authentication error in ionic3 auth.ts signInWithGoogle(): firebase.Promise<any> { return this.afAuth.auth.signInWithRedirect(new firebase.auth.GoogleAuthProvider());} login.ts loginGoogle() { this.authData.signInWithGoogle().then(() => { this.navCtrl.push(TabsPage); }, error => { this.prese...
{ "pile_set_name": "StackExchange" }
Q: SAS - Kolmogorov-Smirnov Two Sided Critical Values I am trying to compute the critical values for the two-sided Kolmogorov-Smirnov test (PROC NPAR1WAY doesn't output these!). This is calculated as c(a) * sqrt( (n+m)/(nm) ) where n and m are the number of observations in each dataset and c(a) = 1.36 for for confide...
{ "pile_set_name": "StackExchange" }
Q: ajax json object doesn't update in IE8 I'm working on a project with an heavy use of Ajax & Json and I tend to refresh the data every second. Everything works great, Json Parse works well in Google Chrome, but at IE8 my object does not updates from its initial state, forcing me to clear the browser cache in order...
{ "pile_set_name": "StackExchange" }
Q: How to hide/remove a picture in footline on title slide only, as a template using beamer class I am designing a latex template for presentation slides for my company. I use beamer class. I made the following codes to show a footline on every slide. It is a image on the left, and some words on the right, and the wo...
{ "pile_set_name": "StackExchange" }
Q: Change Play Dist snapshot number Using Play 2.0 framework, when I run play dist I always get: xyz-1.0-SNAPSHOT.zip How can I increase that number, or specify it manually with each build? End result would be: xyz-1.1-SNAPSHOT.zip A: Change the appVersion and/or appName in project/Build.scala file. It will creat...
{ "pile_set_name": "StackExchange" }
Q: Random table name generator I am trying to write a script that will randomly generate a "name", and use the variable assigned as the table name. However i am not able to create the table i get the error "table was not created:". I listed my code below. Thanks for any help you can give me. $con = mysqli_conne...
{ "pile_set_name": "StackExchange" }
Q: Using PyMC3 to fit a stretched exponential: bad initial energy I am trying to change the very simplest getting started - example of pymc3 (https://docs.pymc.io/notebooks/getting_started.html), the motivating example of linear regression into fitting a stretched exponential. The simplest version of the model I tri...
{ "pile_set_name": "StackExchange" }
Q: How to tame the X on the JOptionPane Dialog boxes? Also, right now whenever I click the 'X" button on top right, the dialog boxes behaves as if I clicked OK (on messages) or YES (on questions). When the user clicks the X, I want DO_Nothing. In the code below, when i click on the X on the dialog box, it pops out t...
{ "pile_set_name": "StackExchange" }
Q: TYPO3 rte didn't render tag in extension output view I have some problem with rte in my extension. In tables I set field text area with rte. In BE TYPO3 generating rte view and when I formatting text everything is ok. The only problem is when I have some paragraphs - in BE I have <p> tag, but in frontend in HTML ...
{ "pile_set_name": "StackExchange" }
Q: Web authentication using desktop ldap Problem: I want users from my corporate client to authenticate with my web server by using their local LDAP credentials. Users have a local desktop client that can authenticate with the local LDAP server. My server and the LDAP server do not talk to each other. I know it is po...
{ "pile_set_name": "StackExchange" }
Q: Draw points all over my form i want to draw 1px points allover my form example: 1pxBlack 1pxwhite 1pxBlack 1pxwhite 1pxBlack 1pxwhite 1pxBlack 1pxwhite 1pxBlack 1pxwhite 1pxBlack 1pxwhite 1pxBlack 1pxwhite 1pxBlack 1pxwhite 1pxBlack 1pxwhite A: you can use setPixel example: Dim bmp As New Bitmap(Me.Width,...
{ "pile_set_name": "StackExchange" }
Q: Can a form submit be disabled if a HTML file input field is empty? In a form which contains only a <input id="fileInput" name="BugReport" type="file" /> input field, I would like to disable the Submit button if the file input is empty (no file was chosen yet). Is there a recommended way to do this? A: Add the ...
{ "pile_set_name": "StackExchange" }
Q: Xamarin.Forms Carousel Page Swipe Event Page Changing I'm using the Carousel Page that ships with Xamarin Form (2.5.0) and would like to be able to detect when a page is about to change. Each Page has some validation and if this fails I want to prevent the user from moving to the next page. Currently the only eve...
{ "pile_set_name": "StackExchange" }
Q: Symfony3 + Assetic : ParameterNotFoundException I'm working on a Symfony 3.4 application. Assetic bundle wasn't installed, so I made : $ composer require symfony/assetic-bundle and add it in the appKernel.php : new Symfony\Bundle\AsseticBundle\AsseticBundle(), It worked perfect. Then, in my app/config/config...
{ "pile_set_name": "StackExchange" }
Q: SSRS 3.0 Report Map + Map Report Part change position when run I have created a simple geographic map using Report Builder 3.0. In order to have a sub-section of the map to zoom in on, I published a report part from a different report and included it on my map like so: However when the report is run it moves th...
{ "pile_set_name": "StackExchange" }
Q: Can I launch app from my app for google home? I have a problem i want to launch playlist of a music streamming application (spotify, deezer, ...) from my custom app for google-home (I think we call that action) but I doesn't find how to do that. I have already try to play some sound with the tag but with that you...
{ "pile_set_name": "StackExchange" }
Q: Waterline - Where with sum of fields I've got the following model Test module.exports = { attributes: { a: { type: 'number' }, b: { type: 'number' } } } I would like to build a query that allows me to put sum of fields a and b in where statement. SQL...
{ "pile_set_name": "StackExchange" }
Q: Is there an inbuilt function to expand ipv6 addresses? I'm working on a project where I need to expand IPv6 addresses. Is there an inbuilt function in Go? What I'm currently doing is ipv6 := "fe80:01::af0" addr := net.ParseIP(ipv6) fmt.Println(addr.String()) but this still prints fe80:01::af0 What I actually nee...
{ "pile_set_name": "StackExchange" }
Q: How to extract all rows from a large postgres table using python efficiently? I have been able to extract close to 3.5 mil rows from a postgres table using python and write to a file. However the process is extremely slow and I'm sure not the most efficient. Following is my code: import psycopg2, time,csv conn_str...
{ "pile_set_name": "StackExchange" }
Q: Android licence for app Please clear up something for me. For my own interest I want to write an Android app to use on my phone, by me alone. Maybe written in Mono, or perhaps something else. It has been suggested to me that I will need to pay a license fee for this. The Android licensing documentation hasn't clea...
{ "pile_set_name": "StackExchange" }
Q: Django Admin :: HTML Input In Django's admin panel: how do I add a form field that users can add unescaped HTML into? A: Use a standard TextField, the data gets saved unescaped. However, by default any data that is outputted in a template is automatically escaped. You can circumvent this by either disable autoes...
{ "pile_set_name": "StackExchange" }
Q: Logical error: Unable to determine the cause of segmentation fault for (i = (routeVector.size () - 1); i >= 0; i--) { cout << "Connected to -> " << routeVector[i].exitPoint; for (j = (routeVector.size () - 1); j >= 0; j--) { if (routeVector[i].selectedBranchesVector.size...
{ "pile_set_name": "StackExchange" }
Q: Cannot invoke an expression whose type lacks a call signature. Type 'typeof ""' has no compatible call signatures React TypeScript I'm trying to convert three scripts from Javascript to TypeScript. The scripts can be found in this gist. I do however have one error left that I can't get rid of. Please note that thi...
{ "pile_set_name": "StackExchange" }
Q: Trouble inserting dates into Oracle 11g Database I'm getting a missing comma error message which I can't seem to fix. My code is below. CREATE TABLE Customers ( C_Id int NOT NULL PRIMARY KEY, DOB date Age int, FirstName varchar(255), LastName varchar(255), City varchar(255), MemberSince int ); INSERT INTO Cus...
{ "pile_set_name": "StackExchange" }
Q: how to extends and override array methods in typescript now I want to implement an array proxy. here's my code class ArrayProxy<T> extends Array<T> { constructor(data: T[]) { super(...data); } push(...items: T[]): number { var res = super.push(...items); console.log("push invo...
{ "pile_set_name": "StackExchange" }
Q: can't rebuild solution after entering a pre-build command line I have just upgraded my visual studio to the 2015 edition. I have a solution with just two project. I can rebuild the solution and run the code fine. However I have an issue when I enter a parameter in the Properties > Build Events > Pre-build event co...
{ "pile_set_name": "StackExchange" }
Q: How exactly does the Web spell work? A player in my group plays a Wizard who favors terrain controlling spells. One such spell that he uses is Web. Up to this point he would cast Web and it would spread on the ground, with it's effects as normal. Now after reading the spell myslf, I'm not so certain if it's suppo...
{ "pile_set_name": "StackExchange" }
Q: What is proper way to stream media with Spring MVC I have a controller method that simply streams bytes for media (images, css, js, etc.) to the client. I first tried something like this: @RequestMapping(value="/path/to/media/**", method=RequestMethod.GET) @ResponseBody public byte[] getMedia(HttpServletRequest re...
{ "pile_set_name": "StackExchange" }
Q: Linear Interploation using two arrays I have the following arrays: List_CD = [2410.412434205376, 2287.6750893063017, 2199.2602314650626, 2124.4647889960825, 2084.5846633116403, 2031.9053600816167, 1996.2844020790524, 1957.1098650203032, 1938.4110044030583, 1900.0783178367647, 1877.6396548046785, 1868.2902104714337...
{ "pile_set_name": "StackExchange" }
Q: recursively traverse multidimensional dictionary and export to csv I've have a complex multidimensional dictionary that I want to export some of the the key value pairs to a csv file as a running log file. I've tried the various help with exporting to cvs functions and hacked away at most of the code example in st...
{ "pile_set_name": "StackExchange" }
Q: Can the javascript .bind go up multiple levels? I have a piano Keyboard object in JavaScript and JQuery, like so: function Keyboard(name, size, xPos, yPos, octaves) { this.name = name; this.size = size; this.setDimensions = function (){}; this.highlightKeyboard = function (){}; ... etc. }...
{ "pile_set_name": "StackExchange" }
Q: image map software for coordinates using magic wand Quick question... there are lots of ways to create an image map (old school, I know!) for a web page, but I have a requirement for one. I want to have an interactive map showing UK counties. I have the map, I have "mapspinner" (also dreamweaver) to do the polymap...
{ "pile_set_name": "StackExchange" }
Q: Force a browser's visibility setting to true I'm trying to set up some specs against a real (not headless) browser but some of the javascript on the target page only runs if the browser is visible (it doesn't need to be the active app). I've been perusing the W3C Page Visibility API docs and [MDN's] too but I can'...
{ "pile_set_name": "StackExchange" }
Q: Trying to get a count of labels used in Gmail using Gmail API I am trying to go one level deeper with the demo code that utilises labels to extract the count of each label used within my inbox. e.g label1 = 5, label2 =10 etc and with a date. Any suggestions? Demo code: function listLabels() { var response = Gmai...
{ "pile_set_name": "StackExchange" }
Q: How to use HoC with React Native I have an listing app where users can add items for multiple categories, when they want to add new record, there are 3 related screens with this particular feature. All of those screens have <Header/> component, so i thought HoC would be nice here so that i can reuse it across 3 sc...
{ "pile_set_name": "StackExchange" }
Q: IE reading inherited font size from computed style (currentStyle) is incorrect I've put a little test case together here: http://jsfiddle.net/D4sLk/2/ Basically I have the following font sizes set: * (everything): 12px container: 20px test element: inherit The DOM hierarchy is: container > test element. In IE9, ...
{ "pile_set_name": "StackExchange" }
Q: Trouble posting a JavaScript object with an array of Key Value Pairs to Web Api I have an object (mockup below) I've populated client-side with JavaScript and I need to post it to my server. There's a corresponding type of object defined in a class server-side that I'm expecting to receive. When I attempt to post...
{ "pile_set_name": "StackExchange" }
Q: @InitBinder in spring boot not working with @RequestBody If I use @InitBinder without limiting it,it is working fine with @RequestBody to validate my objects. @InitBinder private void initBinder(WebDataBinder binder) { binder.setValidator(validator); } @RequestMapping(method=RequestMethod.POST) public Custome...
{ "pile_set_name": "StackExchange" }
Q: How to split a page in six equally sized sectors? I'd like to split an A4 page into six equally sized sectors. I want that page to be in landscape. Each sector has a body of text and a caption. I don't really have an idea where to start. I know I can split a page in to columns, but I need like six minipages, all e...
{ "pile_set_name": "StackExchange" }
Q: VB.NET [Cross-thread operation not valid: Control 'txtIncomingText' accessed from a thread........] I'm a beginner in VB.NET, please bear with me. I've downloaded a multiclient TCP-IP Socket Server-Client application in VB.NET. The Server listens pretty well, but the Client encounters below exception: "Cross-threa...
{ "pile_set_name": "StackExchange" }
Q: Mediawiki: how to allow users to edit their User pages (but not other pages) Is there a permission in Mediawiki that allows a user with username A-User to create and edit pages A-User, A-User/A-new-page etc but not to edit other pages? A: Not by default. You can find the list of permissions here, and the permiss...
{ "pile_set_name": "StackExchange" }
Q: Gallerific .selected Element I'm having a problem with the selected element in Galleriffic. When an image is selected it is not highlighting the correct thumb, it's highlighting the previous one. Edited to remove a soon to be dead link of the website. JS: <script type="text/javascript"> jQuery(document).r...
{ "pile_set_name": "StackExchange" }
Q: Keeping XML in Memory between Webservice Calls First, I don't want to use a database or a local file. Is it possible to store variables in memory so they don't have to be created each time the webservice is called? The problem is that FullCompanyListCreateXML(); takes about 1 Minute to create the XDocument. So ...
{ "pile_set_name": "StackExchange" }
Q: Set limits for add content in text file with PHP I need to create a list of last logged members in my website, but i don't wanna user MySQL. i did some search in stackoverflow and Google and wrote this code: ////////////CHECK LIMIT $storage = "engine/data/write.txt"; $readz = file_get_contents($storage); $listz = ...
{ "pile_set_name": "StackExchange" }
Q: Value not showing for input field using one way binding angular2 Objective: Get a collection of values based on the dropdown selection and place them in hidden input fields to be included in my model; The relative html: <select class="selectFoo" (change)="onSelect($event.target.value)" name="FooName" ngModel> ...
{ "pile_set_name": "StackExchange" }
Q: Switch flooding when bonding interfaces in Linux +--------+ | Host A | +----+---+ | eth0 (AA:AA:AA:AA:AA:AA) | ...
{ "pile_set_name": "StackExchange" }
Q: Compile PHP on Linux or use apt-get / yum? I have been compiling PHP for years with the configuration options I want. I compile extensions I use from source. Is there an advantage to doing this versus installing it from a package manager like apt-get or yum. I assumed it would also give me a leaner binary. I n...
{ "pile_set_name": "StackExchange" }
Q: How to stop sending $_FILES['name'] if nobody provides thefile? I Have a multipart/form-data form but I not require from users to send me the picture. I am changing the name of the file to random number and the put the path to MySQL. Whenever somebody doesn't put the file, in my database a new recor is beeing crea...
{ "pile_set_name": "StackExchange" }
Q: Can I make my desktop background active? I want my desktop background to look like the Chrome extension, Currently. How would I accomplish this? A: I can give you similar conky script but no 100%. You need to change the font, alignment and icon set. Result Step 1. Install conky sudo apt-get install conky Ste...
{ "pile_set_name": "StackExchange" }
Q: Woo Commerce - Offer to register at checkout (don't force) As the title says, is there anyway I can allow a customer to register at checkout. The ideal situation would be to get their shipping and billing address included in the registration at the same time they enter it for the actual purchase. However, I don't...
{ "pile_set_name": "StackExchange" }
Q: ms-access: query (concat multiple records into one) here's a glimpse of the original table: Occurrence Number Occurrence Date 1 0 Preanalytical (Before Testing) Cup Type 2 0 Analytical (Testing Phase) 2 0 Area 3 0 Postanalytical ( After Testing) 4 0 Other Practice Code Comments 1477 2/5/2010 1....
{ "pile_set_name": "StackExchange" }
Q: Infinite word size abstraction I was reading the java doc of BigInteger, they mentioned "infinite word size abstraction" more than one places. what are they referring to? https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html A: They are referring to word as processing unit for a computer processor...
{ "pile_set_name": "StackExchange" }
Q: sed command to be used to modify the file name I am able to use the sed command for a simple things but I have a question which for me is complex to find the solution by my own, so if some one can help me it would be a great favour. example: how shall I modify the following file as following? orig_file_name = OBIE...
{ "pile_set_name": "StackExchange" }
Q: UltraDateTimeEditor - MinDate set to future date results in odd behavior If you set the MinDate on an UltraDateTimeEditor to a date that is today or in the past and then type in a date that is before the MinDate, the control clears the date (desired outcome). If you set a MinDate that is in the future and type in ...
{ "pile_set_name": "StackExchange" }
Q: insert duplicate keys to hash map I have created hash map and when I debug it I saw that I have duplicte keys. I didnt override the hashCode() & equals(Object obj) in the key - Object1 and i wonder how will it affect the performance of the map search? private HashMap<Object1,Object2> map = new HashMap<Object1,Obje...
{ "pile_set_name": "StackExchange" }
Q: Printf waiting for enter int kr=0; int ss =0; while ((kr=getchar()) != EOF){ if(kr != '\n') { ss++; } printf("%d\n",ss); } With this code , printf is waiting until i press enter then printing all the sequential ss values at the same time like in this . Can somebody explain this...
{ "pile_set_name": "StackExchange" }
Q: How to pass record id from row to Test method? I delete 1 record from table. How to pass into test method selectedMR(this record Id) and cover in test method from controller below? VF PAGE: <apex:repeat value={!mrItems} var="mrItem"> <apex:column> <apex:facet name="header">Deleting</apex:facet> ...
{ "pile_set_name": "StackExchange" }
Q: HTML5 - Can it do this? Today? In HTML 5 is there any support for things which are really easy to do in Silverlight? For example, ripping a file (chosen by the user) into an array of bytes that can be base64 encoded and passed up to a web service? Or, creation/reading of an image and being able to manipulate the p...
{ "pile_set_name": "StackExchange" }
Q: memory leak discovered MKMapView I have NSAutoreleasePool leaked object on a MKMapView. should I be concerned about this? I can't seem to get rid of it. I also noticed that the same leak occurs in apple's CurrentAddress sample code app link text A: If it depends from Apple's library do not be worried about it (p...
{ "pile_set_name": "StackExchange" }
Q: Count multiple values with jquery I am trying to create counting function with jquery. I have multiple sets of inputs with numbers determined, something like: <input class="price" type="hidden" name="price" value="4"> <input class="count" type="text" name="count" maxlength="4"> I want to create script that will ...
{ "pile_set_name": "StackExchange" }
Q: Replace string in a database file with an input file list - Terminal I'd like to replace some file extension in an SQL file when I match strings from an input file using terminal. I have an input.txt containing a list of file paths. /2014/02/haru-sushi_copertina_apdesign-300x300.png /2014/02/haru-sushi_copertina_...
{ "pile_set_name": "StackExchange" }
Q: Generic of type RawRepresentable is misinterpreted as self it seems To use NSCoding with Swift's Enum type I made an extension on NSCoder: extension NSCoder { func encodeEnum<Enum: RawRepresentable where Enum.RawValue == String>(value: Enum, forKey key: String) { self.encodeObject(value.rawValue, forKe...
{ "pile_set_name": "StackExchange" }
Q: Does Vow of Peace's calming aura affect the caster? Are you affected by your own calming aura? I would think the answer is "no" since you cannot re-enter the area (so maybe you were affected by it initially, but that only lasted until someone took a swing at you). A: Technically yes, but only once upon taking th...
{ "pile_set_name": "StackExchange" }
Q: What's the simplest way to extend a numpy array in 2 dimensions? I have a 2d array that looks like this: XX xx What's the most efficient way to add an extra row and column: xxy xxy yyy For bonus points, I'd like to also be able to knock out single rows and columns, so for example in the matrix below I'd like to ...
{ "pile_set_name": "StackExchange" }
Q: How can you quickly check if you package.json file has modules that could be updated to newer versions? How can you quickly check if you package.json file has modules that could be updated to newer versions? For example, a quick way to check if either express or nodemailer has an available update? { "name": "s...
{ "pile_set_name": "StackExchange" }
Q: Configure apache for system passwords? I know I can use htpasswd to create a password file for apache, but how do I configure it to use valid users or groups from the system? A: You'll need to use an appropriate authentication module. Here's an example with mod_authnz_external: http://blog.innerewut.de/2007/6/26...
{ "pile_set_name": "StackExchange" }
Q: Attach debugger (using eclipse) to play framework failed I am using Scala to write a web on top of Play framework with eclipse IDE. I am trying to debug my app but hit debug attach failure. I tried to switch using Java instead of Scala,but I got same error. This is what I do. Create a project and run play clean ...
{ "pile_set_name": "StackExchange" }
Q: Linux bash thing I try to create a little bash script, with which I have no experience. I try to do something like: #!/bin/bash statut="na" if [ $proc = 0 ]; then statut = "closed" else statut = "opened" fi but I receive: ./test.sh: line 4: statut: command not found Can you give me a hint? On Google I cou...
{ "pile_set_name": "StackExchange" }
Q: Achieving dark matte background in studio I've been trying to achieve a dark matte background (maybe with some texture on it) in a studio, but i have a limited experience with backdrops and so far i haven't been able to produce satisfying results. Here's what i do: i hang a black seamless paper backdrop i put a v...
{ "pile_set_name": "StackExchange" }
Q: How to build rpm package correctly? I'm trying to install the new version from ganglia, which provides a tar.gz. My procedure was uncompress the tar.gz file, enter in the folder and then makes rpmbuild -ba ganglia.spec, a warning message is given saying about the dependencies libraries missing, then I install them...
{ "pile_set_name": "StackExchange" }