text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How to deactivate redirect for non-logged in users on specific pages? I created a website wide (wordpress) redirect for non-logged in users by adding the following code to my function.php file:
function admin_redirect() {
if ( !is_user_logged_in()) {
wp_redirect( home_url('/login') );
exit;
}
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36636252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Opensource Webcam Library Is there any opensource library which can be used to decrease frame rate or resolution of webcam on windows platform? I need to limit bandwidth utilized by high resolution webcam connected to USB port.
Thanks.
A: I think OpenCV fullfills your requirements.
See the thread here about decreas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10574203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Objective C Visual Autolayout NSTextField dynamic height I am trying to create a dynamic size NSView using visual auto layout. I am trying to achieve something like the following diagram.
I added following constraints to achieve this.
[self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"|-15-[_ico... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29527082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set password on cronjob So i searched a bit and didn't find answers
I'm trying a cronjob for the first time and i'm trying to push to my Gitlab repository on a determined daily time
I'm trying something like:
10 10 * * * cd/repofolder && git push && login && password
The thing is it works only until the git pus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53659829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does cat-ing this small file cause the Mac terminal emulator to minimize? In hex, the file is
1b 5b 32 74
ie. [ESC] then [2t.
Printing this file's contents to the terminal on mac sends the window to the tray. I can't get the same behaviour anywhere else or find any documentation on this particular escape sequen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44021272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: git diff origin/master@{1} origin/master --name-status throws fatal: Log for 'origin/master' only has 1 entries error I am using git diff origin/master@{1} origin/master --name-status
command to print the previous push details.
But it is throwing fatal: Log for 'origin/master' only has 1 entries error.
I got to know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58023630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unwanted new-line when plugging a string variable into a RichTextBox Im generating a string variable from other string variables that themselves are generated in a button press and take their values from textboxes / user input. Simultaneously, the mass string variable is being loaded into a RichTextBox. While I do p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55739746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Downloading an entire webpage with C: recv() Good evening.
I'm trying to obtain the full contents of webpages (images excepted) through a C application.
After connecting to the desired URL, I use recv(), like so:
char *reply;
reply==malloc(10000*sizeof(char));
recv(socketname, reply, 10000, 0);
This gives me a part... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29991605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to generate datasets dynamically based on schema? I have multiple schema like below with different column names and data types.
I want to generate test/simulated data using DataFrame with Scala for each schema and save it to parquet file.
Below is the example schema (from a sample json) to generate data dynamic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53552983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: how to display CFStringType? Like kABHomeLabel I know that NSString and CFString are toll-bridge, they can convert in such a way.
CFStringRef cfStr;
NSString* anStr=(NSString*)cfStr;
however,when I convert string in such a case when dealing addressbook
NSString* homeLabel=(NSString*)kABWorkLabel;
then homeLabel is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2570962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Issue with digital signature generated using Podofo library I'm using OpenSSL to generate digital signature for a PDF by PoDoFo library.
Here is the logic for signature handler
OpenSSLSignatureHandler.h
#import <Foundation/Foundation.h>
// OpenSSL includes
#include <openssl/err.h>
#include <openssl/evp.h>
#include... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24751957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php pdo search code with multiple parameters Below is my code...
I am trying to create search with multiple parameters in php pdo....with Multiple if else condition...in singlw query...
plz help ...to make this...how can i do this with php pdo...
<?php
$db=new PDO('mysql:host=localhost;dbname=circulation_scheme_pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28991012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: decompiling a .class for struts So initially my goal is to modify MY copy of a network monitoring tool to add to its html an EXTRA option in the navigation menu so I can relocate to html.net for example when someone clicks that menu item. The tool is written in Java using struts and it took me 1 week fo searching th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6985391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF - Hide Selected Item / Text Box portion from Combobox Control I'm looking for a way to hide the Selected Item / Textbox portion of the wpf combobox, leaving only the drop down button so users can still interact with the list.
I cannot find a property to toggle this behaviour, I was curious to know if there is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70420224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: using IDataErrorInfo in asp.net mvc I've got a simple address entry app that I'm trying to use the IDataErrorInfo interface as explained on the asp.net site.
It works great for items that can be validated independently, but not so well when some items depend on others. For example, validating the postal code depend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1511495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: why do I get the error: pygame.error: video system not initialized Like the title says I am confused why I get the error: pygame.error: video system not initialized
As far as i understand this error is raised if you forget to initialize your code with pygame.init() but I did, here's my code and thanks in advance:
im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67448637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Routing rails url contains multiple parameters I am doing a sharing application like facebook ,where user can share a url on their posts
I have a user posts form and I populate the form from url params
the problem I want to route /sharer?urlparams to the sharer action on my controller without removing the url para... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19236977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a dynamic root in Rails 3? I have admins and normal users in my webapp. I want to make their root (/) different depending on who they are. The root is accessed from many different pages, so it would be much easier if I could make this happen in the routes.rb file. Here is my current file.
ProjectMan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11960977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: I want to return response to download CSV file from data frame contains Arabic letters I have encountered a problem while coding using Flask for my website
I have a CSV file that I converted to Dataframe then I want to return it as CSV to the user so they can download it.
however, when I do that the Arabic letters d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71931702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Designing a label with images and text GWT I am current trying to create tab that has a check mark when the I click done and then shows an an "X" when I click cancel. Currently I have my tab written in XML. I am wondering how I would go about implementing this. I am thinking about using two labels and combining them... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17733539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ARKit – Save scene as USDZ? Right now I can save what I created in ARKit as a scene file, and load it back later.
sceneView.scene.write(to: path, options: nil, delegate: nil, progressHandler: nil)
But is it possible to save the scene as USDZ file and load it back?
A: First of all, read the following SO post that i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51059875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ImageList pictures not showing up in ImageIndex or ImageKey I've encountered an annoying problem while creating a new application today.
I was trying to add an image to a TabControl in Windows Forms (vb.net) using an ImageList but for some reason they no longer show up in the ImageIndex or ImageKey properties of con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40638948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get the time a file was last editted in python I've looked around on SO and various other websites and thought I figured this out, but apparently I didn't or I'm doing something wrong. Here is what I have tried:
pre = datetime.fromtimestamp(f)
pre = os.path.getmtime(f)
pre = fromtimestamp(f)
All three return the e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14572927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Binding member function to a member variable Precondition:
Here is a function:
typedef std::function<void (int)> Handler;
void g(const Handler& h) {
h(100);
}
, and a class(original version):
class A {
public:
A(int arg)
: m(arg) {}
void f0(int n) {
std::cout << m + n << std::endl;
}
void f() {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26541667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a tab control with bootstrap in asp.net Here I am implementing bootstrap tab control in asp.net application.
1) On click on next i want to go to next tab.
I want to make tab control working by clicking on tabs of tab control to go to next tab or by clicking on next button.
<form id="form1" runat="server"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37959511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can Amazon S3 bucket permissions be set so every time I save a file read permissions stay public? I'm using the Coda app at add, edit, and save files on my S3 bucket.
The bucket has static web hosting enabled.
Every time I upload or save a file, the permissions automatically change to restrict the "world" from r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23413674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Operator overloading adding two objects error I have no idea why this code should work, but tell me what to do if i want to add two objects
together. please. while you are trying to answer please be more noob specific
sorry for my bad english, I am an Indian, here is my code.
#include<iostream>
using namespace std;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17274913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Concatenate backslash on python I'm new to python so forgive me if this sounds simple. I want to join a few variables to produce a path. Like this:
AAAABBBBCCCC\2\2014_04\2014_04_01.csv
Id + '\' + TypeOfMachine + '\' + year + '_' + month + '\' + year + '_' + month + '_' + day + '.csv'
How do I concatenate this? I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22792113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Undef values from CSV file giving undesirable result I am having a CSV file Sample.csv like below named
Name,Memory,Encoding,Extra 1,Extra 2
,d,,h,b
FUSE_1,36,30,37,15
FUSE_1,36,28,36,31
Name1,1TB,00000001,30,010
Name1,1TB,00000010,52,001
I am parsing this file and want to retrieve some val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55420550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Canvas Responsive - Fabricjs I trying let the responsive canvas following this topic1 and topic2
I'm trying to let the responsive canvas for all devices.
I know it's possible but I'm having a tough time finding the solution.
Following the two topics above I tried to set the width and height for the max canvas size i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34909243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AngularJS: How to toggle element from controller How can I use the following controller to toggle the content inside li tag?
Right now the content is rendered only after that span is clicked, but it won't hide if I click again the span.
Here's my code:
<span ng-click="get_menu_items(folder)>
<i class="fa fa-folder... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36281305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to run tests prerequisite once and clean up in the end in whole unit test run I'm running series of testcases in multiple files, but I want to run the prereq and cleanup only once through out the run, please let me know is there a way to do it?
A: py.test -> session scoped fixtures and their finaliza... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31251808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Elasticsearch Geo_point query not returning results I am trying to fetch all the documents within a radius of a particular location (lat,long).
Here's the mapping with location as the geo_point:
{
"mappings": {
"_doc": {
"properties": {
"color": {
"type": "long"
},
"crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74236396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deserialize from SqlXml to object I have an int value stored in SQL Server as xml type, which is SqlXml when retrieved in C#
The value in database:
<int>1234</int>
How can I deserialize this value to an int with value 1234?
A: Assuming the SqlXml object contains exactly what was mentioned in the question, you migh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26054563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to improve the performance and customize the listview to avoid OMM error in Android I am absolute beginner to Android and now I start using volley HTTP library with Listview. So I created a test project and trying on volley and Android. I am creating a newfeeds viewing app. Example , facebook newfeeds. Data are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34948064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: std::chrono::duration passed as a method parameter I have this method:
string tpToString(const system_clock::time_point &tp)
{
string formatStr { "%Y-%m-%d %H:%M:%S" };
return date::format(formatStr, date::floor<microseconds>(tp) );
}
This method produces a string such as:
2021-02-09 20:53:10.123456
That's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66127149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iCal Eventstore - successful function on completion I have the following function to add a dynamic date to Ical -
-(void)AddToIcal{
EKEventStore *store = [[EKEventStore alloc] init];
[store requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) {
if (!granted) { retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20053026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio never hits break point in Controller Action In troubleshooting AddTagsCollection Action behavior in a controller, I have a strange scenario which I have not encountered before, its not even a multi threaded section. The Visual Studio Debugger enters the function till the first line string alert = ""; a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29880375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FOSRestBundle parse headers I am using FOSRestBundle in order to implement an API. I would like to parse HTTP headers that are sent to me from the client.
How can I access them ?
A: You can get headers from Request object in your controller methods.
use Symfony\Component\HttpFoundation\Request;
public function som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36007066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are sub-selects in a where-clauses executed multiple times or just once? I have a separate table (with no PK, only one row) to store the row count of a certain result. Now, this count is used in a query, like this (just an example):
SELECT * FROM `car`
WHERE `car`.`featured` = 1
AND ( SELECT `count` FROM `carfeature... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38350726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can no longer get response from web request when 400 returned I am having trouble making web service calls in an iOS application built with Xamarin. This EXACT same code, that builds a request and uses HTTPWebRequest GetResponse() to get the response, used to work but now it is crashing when trying to get the respo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55463460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ion-footer not showing when ion-content contains elements The ion-footer is not showing when my ion-content has elements
In this code the footer doesn't appear :
<ion-content>
<div class="text-center">
<p class="text-gray-800 text-3xl font-bold m-0">{{user.name}}</p>
<p class="text-gray-400 mt-2">{{user['c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69826899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to improve performance using multithreading in spring Mvc I am using spring MVC model in my project. In which controller get request from some some thired party application.
Controller get 20 request per sec. Code look like this
@Controller
@RequestMapping("/action")
public class FrontController{
@AutoWired
pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27549156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to extend validation of a subitem of my viewmodel? My model class Animal implements INotifyDataErrorInfo to add validation. My view is bound to a viewmodel with a property SelectedAnimal of type Animal like that:
View
<TextBox Text="{Binding SelectedAnimal.Epc, UpdateSourceTrigger=PropertyChanged,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39659965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending POJO containing XML Document via Spring MVC i try to post a POJO from one Spring Boot&MVC app to another.
This all works fine except for one case, in which the POJO contains a w3c.dom.Document XML attribute.
The POJO is quite simple, all getters and setters are managed by project lombok:
@Data
public class S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56292986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use debugger in android or Java? I am trying to create a simple android application. This is the first time I am coding for android and Java. I have installed android sdk on win 7 machine. I have never used a debugger. I want a resource to learn use of debugger in android from basic. If it is same as Java, Ki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5202235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make first dropdown not render in reactjs and ant design I need to make my current draggable component's dropdown to not render on specific cell (specifically the first Row). However, it will still show the cell just without the dropdown. I tried to search for a way however could not find any. Appreciate any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73396859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't pass array value into Invoke-RestMethod URL String I have the below code snippet that saves a array of ~90 devices to my string $report
$report = Get-ADComputer -Filter * -SearchBase 'OU=Boston, DC=someCompany, DC=com' | Select -ExpandProperty name
Now my issue is when I try to pass this array to my Invoke-Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73130193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which algorithm should be used to find the point? You need to find some unknown, predetermined point in three-dimensional space, in the smallest number of attempts, using only a function that can return the distance from
any point you pass to it to the desired unknown point.
To solve the problem, first implement a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74815070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Search for sentence that may containing different words in Python In python, I have a string sentence as follows:
Change setting to value 50.
I essentially want to search for the sentence in a list of strings and extract the "setting" and "50" values, as they may be different.
I'm not terribly great with regular ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33466181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Decimal arithmetic in shell shows as command not found My intention is to reduce or increase brightness levels using code
The following is my code
BRIGHTNESS=`xrandr --verbose | grep -m 1 -i brightness | cut -f2 -d ' '`
z=$($BRIGHTNESS-0.1)
echo "$z"
I get the error adjust_brightness.sh: line 4: 1.0-0.1: command no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62086496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is there a way to check if the email and password edit text are filled before excecuting the login button intent? I am new to android. i have created a login page with email and password editTexts and a login button. how can i check if the email and password is filled before executing the login button intent? and ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60388637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Query Builder with join and condition in Many to many relation I have a many to many relation with Employee and MembreFamille. And i want to get all MembreFamilles that have an Employee.
This is my query :
class MembreFamilleRepository extends EntityRepository
{
public function getMembres($emp)
{
$q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30461865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert "Select" in dropdown with LInq I have loaded the drop down box from LINQ,
CustomerDataContext customer = new
CustomerDataContext();
ddlCust.DataSource = from cust in customerDC.Customers
orderby cust.CustId ascending
select new {cust.CustId,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4786758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to match dataframe by match column I'm new to pandas. I'm trying to join two datasets as below:
df1:
df1 = pd.DataFrame({'id': [1121, 1122, 1123, 1124, 1125], 'name': ['F.01', 'F.01', 'F.02', 'F.02', 'F.02'], 'description': ['r1', 'r2', 'l1', 'l2', 'l3']})
Looks like:
id name description
1121 F.01 r1
1122 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64736389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WordPress permalinks rewrite on iis7 I spend a lot of time in looking for solution, so you are my last hope before giving up :)
On my localhost iis7 i set custom permalinks http://sitename/%sample-post%/ with rewrite mode installed.
<configuration>
<system.webServer>
<defaultDocument>
<files>
<a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43580324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mouse Down Event not firing (Bubbling events) I am a novice to WPF. I started learning about RoutedEvents in WPF. I tried a sample and i met up with a problem
<Grid Margin="5" Name="Grid" MouseDown="Window_MouseUp">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4497105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Vertically bottom align a linear gradient I have made a jsfiddle = https://jsfiddle.net/wLomyf65/
HTML:
<div class="skeleton-6euk0cm7tfi"></div>
CSS:
.skeleton-6euk0cm7tfi:empty {height: 100px; background-color: #ffffff; border-radius: 0px 0px 0px 0px; background-image: linear-gradient( #676b6f 6px, transparent 0 )... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75024168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: MYSQL - MAX() returns wrong date I have a mysql table like this
+----------+----------+-------------------+
| entrykey | user_key | validfrom |
+----------+----------+-------------------+
| 1 | 3 | 2016-4-1 0:0:0.0 |
| 2 | 3 | 2016-12-1 0:0:0.0 |
| 3 | 2 | 2016-12-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46971081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .htaccess Php rewrite url I try to realize a system of rewriting URLs in .htaccess.
Then here is my goal:
If I have an url of this form: http://localhost/view.php?Id=456
Then I want to transform it to: http://localhost/456
I use this rule in htaccess:
RewriteRule ^ ([a-zA-Z0-9] +) $ view.php? Id = $ 1
Now this works... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41252108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google code downloading source This might be an extremely stupid question, but for the life of me, I cannot figure out how to download this:
http://code.google.com/p/xmppframework/source/browse/#hg%253Fstate%253Dclosed
There is nothing under the "downloads" tab. And when I try to "clone" it using my terminal it says... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6132255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How To classify Read and Unread news in Feed Reader? I am working on a RSS Feed module in WPF Application. I am getting news items in xml document from the httpWebResponse. I want to calssify the unread feeds. How can we identify the user read or Unread the news article ?
A: It depends on how the web pages linked b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26210308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to invert the green channel of an image in Python? How do I invert one channel of an RGB image? In this case my image is a normal map for a 3D engine, saved in an image format like JPEG or TIFF, and I want to invert the green channel — that is, completely reverse the highs and lows in the green band.
A: You can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59293800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP is ignoring code like var_dump(), die(), etc This is a very weird situation like I've never seen in my life.
For some reason PHP is ignoring a lot of code inside a static function.
Here is the example:
static function describe($tableName, $columns = '*') {
var_dump($tableName);
die();
$md5 = ...code.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55724495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using graphql-codegen adds query to query? I'm trying to use graphql-codegen to add types to my graphql queries
I have this in my package.json
"@graphql-codegen/add": "^3.1.0",
"@graphql-codegen/cli": "^2.3.0",
"@graphql-codegen/typescript-operations": "^2.2.1",
"@graphql-codegen/typescript-react-apollo": "^3.2.2",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70460600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Auto Align of button Hi
On our website I have a page where there are Buy Now buttons
https://www.nutricentre.com/m-300-herbs-hands-healing.aspx
The styling that controls this is
.item .price {
color:#8c9c54;
font-size:14px;
font-weight: bold;
/*
position: absolute;
bottom: 48px;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21338306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Autorotate not working after reload view controller I'm trying to make an iPhone app, but i found some issue that auto-rotate is not working after I reload the view controller.
here is the code for loading the app for first run:
//AppDelegate.m:<br />
-(BOOL) application:(UIApplication *)application
didFin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10138412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ExtJS: Ext.Window Prototypal inherited objects cannot be destroy [ExtJS 3.4.0]
I have a class with prototypal intheritance to Ext.Window, something like this:
function Cls_MyWindow() {
.....
var SaveButton = new Ext.Button({...});
var CancelButton= new Ext.Button({...});
.....
Cls_MyWindow.pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23824144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: denormalizing JSON with jq I have JSON that looks like this:
[
{
"fields": {
"versions": [
{
"id": "36143",
"name": "ST card"
},
{
"id": "36144",
"description": "Acceptance test card",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33148557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to test basic example of async function in useEffect I have a simple component, it fetches async list of posts.
export const Posts = () => {
const [list, dispatch] = useReducer(listReducer, []);
useEffect(() => {
fetchList(dispatch);
}, []);
return (
<ul>
{list.map((el) => (
<li k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59197574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Oracle Performance: Partition Split vs Insert Append I am currently refactoring a data loading process in Oracle 12c and am exploring partitioning as a solution. My data is categorised by date and I have ~500k records per date which seems to fit the "minimum optimal" for partitioning, or so I am told. The original p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39360982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails and state_machine gem, when before_transition fails, transition to an error state I am using the state_machine gem to track the status of an object. I have a before_transition process to run and if that has any errors, I would like to set the object's state to "errored" so it is no longer an active object and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41877514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating dynamic order basket using php javascript I am creating an ePos system, that adds any item user clicks to the basket and calculate the total in the end all done without total page refresh.
I tried using $_SESSION and storing as order ( [item] => [price] ) but failed, as i need to refresh.
what I need is:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15328076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using readAllBytes to read a file's bytes, but output is not changing when I change the file If I have a directory called "files" and I have 2 txt files in there. The files have different names, but have the same exact contents. With this code, I am not getting the same byte[] when I readAllBytes. Should I be gettin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66990927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error inserting date and time in SQL Server 2005 datetime c#? Problem saving to SQL Server 2005:
cmd = new SqlCommand("INSERT into survey_Request1(sur_no,sur_custname,sur_address,sur_emp,sur_date,sur_time,Sur_status)values(" + "'" + textBox9.Text + "'" + "," + "'" + textBox8.Text + "'" + "," + "'" + textBox5.Text + ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16062696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Spring, Annotation for Creating Current Date in Hibernate? in my Spring Application using JPA Hibernate Annotions.
In that mysql Database have table and one column called CreateDate
This column value will be added when record is inserted.
So is their any annotation for creating current Date and time?
other wise in o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16230753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make my custom class compatible with For Each? Is it possible to make a custom container class implemented purely in VBScript (no COM objects) work with the For Each statement? If so, what methods must I expose?
A: In short, no
Why? To create an enumerable collection class to get something like
Class CTes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30175464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Contact us form: Mail not received I'm trying to create a contact us form with PHP. The problem is that, I'm not receiving the email in my account. When the submit button is clicked it takes me to the mail.php page where a "thank you" message is shown.
The code is as shown below:
<div class="container">
<div cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52135400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: R: Removing Non-Corresponding Rows in Data Frames I have two data frames - germany_yields and italy_yields. If a specific date that appears in one of germany_yields's rows is not present in any of italy_yields's rows, then I would like to remove this row from germany_yields (and vice versa).
For example, here are f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61429738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Workflow Lookup List view threshold Alert me I have a workflow from a Document Library that copy the file to another Document Library and then "Update Item in" on this other Document Library through lookup. However the workflow won't work because where the file is copied the Document Library has more than 5k files a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34696606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prevent centring on focused input in hidden overflow area It is hard to explain with words so here's a fiddle I made to explain the problem better: http://jsfiddle.net/j2zurbbv/1/. When the first timeout fires the container div is not 'scrolled' which is the behaviour I want. However when the input is outside of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25792441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Index page is not re rendering/refreshing on search in Rails I am making a simple search in rails on the index page. My problem is that on debug I get the correct results but they don't show on the frontend.
def index
if !params[:category].present? and !params[:title].present?
@services = Service.take(4)
else
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58852964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Select statement over multiple columns I have an SQLite database with a table help with columns i_id, issue, url, steps, kw1, kw2, [...], kw12. kw1 - kw12 contain one word and can be null.
When I do:
sqlite> select issue,url,steps from help where kw1='adobe';
I get:
blank popup|blankpopup.html|S
missing pdfs|missin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11743120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TortoiseHg - infinite cloning of repository I've encountered a quite troubling problem. I've tried to clone repository from the server and I was able to start cloning, but it never ends, and no files are being downloaded on my hard drive. I'm using pagaent with my private key. I've tried it on 3 different PC, and it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24292431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running a program in eclipse Each time I try to run a new program, an old program 'client.java' is run by eclipse. How do I change this setting? How do we tell eclipse which program to run? I tried using the arrow beside run button but it dosen't list out my new program.
A:
Right Click To the class -> Run As-> JAV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33266295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Matplotlib ticks sans-serif for all plots I'm trying to achieve sans-serif axes labels and ticks in matplotlib with pgf. I want to control that by rcParams so I have it working for all subsequent plots. Currently, I'm using
"pgf.rcfonts":False,
"pgf.texsystem": "pdflatex",
"text.usetex": True,
"fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51405646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Creating network visualization dashboards I'm a Network Engineer, I want to create a custom data network visualization dashboard that includes interactive charts and graphs with drill down options and such. I'm a bit overwhelmed by the proliferation of languages and different ways of accomplishing this. What are som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28174388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error using Reactive Maps with Google maps Javascript Api I am trying to build and app with ReactiveSearch and ReactiveMaps using some indexed files in Elasticsearch.
The indexed files in Elasticsearch have a field "location", for example:
"location": {
"Lat": 56.746423,
"Lon": 37.189268
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55445547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Creating an array from two data-* and one select array codeigniter I have a table with products where i can add rows dynamically and on each row i add it will be a select and an edit button.
If i press this button,it will display a modal where i can modify 2 data-* of the select.The dependence(dep) and the category.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49778886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get a Google Admin to Fix my Project Console? Short of paying $150/month so I can actually submit a ticket, what can I do to get Google's attention? I've seen other people get help for what appears to be the exact same issue.
I uploaded a new (small) app to Google App Engine (GAE), and the Applications Set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23392122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiply columns of different sheets in power BI I need to multiply the no.of grants into the expected attrition rate based on dates. In image 3 i have the rates and now for image 2, i need to multiply the rates in image based on the date. Im new to power bi and i'm not able to work it out.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/69791684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: React Router: props aren't passed down when directly accessing the URL of child component. Will I need to use the same state in both parent and child? I'm pretty new to React and React Router so apologies if this is a silly question or answered elsewhere - I did a search but couldn't find a similar question.
I'm usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71137413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find largest count using table in a matrix in R Suppose I had the following matrix
m = matrix(c(1, 0, 0, 0, 0, 0, 1, 1, 0), ncol = 3)
> m
[,1] [,2] [,3]
[1,] 1 0 1
[2,] 0 0 1
[3,] 0 0 0
I want to have a count of the values for each of the columns, so
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27096506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does size of a VARCHAR column matter when used in queries
Possible Duplicate:
is there an advantage to varchar(500) over varchar(8000)?
I understand that a VARCHAR(200) column containing 10 characters takes same amount of space as a VARCHAR(20) column containing same data.
I want to know if changing a dozen VARC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13894528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Spring MVC not loading static resources from webapp Issue
Unable to get Spring to add a resource handler for static resources.
Background Information
I have a Spring MVC webapp running in a standalone Jetty instance. My webapp structure is
webapp root/
resources/
css/
images/
js/
WEB-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25440502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Create new database on the fly in Laravel 4 I want dynamically create new database, database user and password with privileges, create some tables in new database on the fly in Laravel 4 for every new user. This is for a multi tenant website.
Whats the best solution?
thanks.
A: This is not your first database conne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25821291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show in Action bar, only if it can fit with text? I am having the following buttons, with some ic_menu icons: Register, Clear.
I want them, in whatever device(smartphone or tablet), to be shown if they can fit, including their text.
If i use on both them: withText|ifRoom, on smartphone they appear both, witho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11536869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is meant by indexing in MongoDB? To be true, After typing the Question title only, i had a look about DB indexing in Wiki.
Now i know something about Indexing in general. But, still i have some questions on MongoDB indexing.
What is indexing in MongoDB? What it will exactly do, If i index a collection?
What i c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4290079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unable to display username from another table I currently am able to view a list of contacts with no issues and would like to be able to view the mentors / tutors for the clients.
The username is stored in another table to the contact information and the mentor ID is stored in the contacts table.
I have followed a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73363210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get my WCF Service constructor called? I'm currently trying to get my head around WCF services for an ASP.NET dev environment, and I believe that I'm doing well save for one thing that has me stumped.
Basically, I've got a WCF service set up (let's take the default, with an added constructor):
public class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4079236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.