id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23518900 | The Goal:
There are 2 sites in the picture, both I have access to, the first one is a wordpress site which has the rss feed and the other is my localhost site running off of xampp (soon to be a published site when I'm done). I am trying to get the rss feed from the wordpress site and display it on my localhost site.
Th... | |
doc_23518901 | I am getting the error message consistently, although there are times I have been able to get it to run. When I go to run it again though I receive the error message. I have read all of the proposed solutions and nothing has worked including the following:
Restart computer
Rebuild the solution/project. (tried deleting ... | |
doc_23518902 | .separator {
background: url('../images/new/vector_header2.png');
}
As its written in PHP like this:
<div class="separator">
<?php $headline = get_post_meta($post->ID, 'slogan', true); if($headline != '') { ?>
<p>“<?php echo $headline;?>”</p>
<?php } else echo '<p> </p>';?>
</div>
That means for every pos... | |
doc_23518903 |
*
*Today, 6:00pm
*Tomorrow, 12:30pm
*Wednesday, 4:00pm
*Next friday, 11:00am
I'm not sure what to call these - I guess conversational-style, current time sensitive date formats?
A: As best I can tell, there is no native function for this. I have created (the start of) a function to do what you are wanting.
fun... | |
doc_23518904 | a given XML file.
For example, here is a simple example class... Let's say Human
public class Human
{
private XmlSerializer serializer = new XmlSerializer(typeof(Human));
public string name { get; set; }
public int age { get; set; }
public string country { get; set; }
pu... | |
doc_23518905 |
A: you can use variable %username% to get windows userusernameAroly7
| |
doc_23518906 |
userid
lat lon timestamp
lat lon timestamp
userid
lat lon timestamp
lat lon timestamp
lat lon timestamp
etc.
And I want to split the file and then do this type of thing
cat data.txt | sort | awk '{print $1" "$2;}' | uniq -c | sort
so I can get the number of times each unique location appears for each user.
A: ... | |
doc_23518907 | I have a simple Python module with a few functions that I use frequently across different projects, and I also need to share my Jupyter notebooks on GitHub. I use this module there as well.
How do I organize my packages or import them at the beginning of my notebooks so that I store them only in one place and that the... | |
doc_23518908 | <script type='text/javascript'>
var videoSrc;
function CustomVideoClick(url)
{
videoSrc = String(url).replace("watch?v=", "embed/");
$("#customVideo").attr("data", videoSrc + "?
autoplay=1&modestbranding=1&rel=0");
}
</script>
<div >
<object id="customVideo" data... | |
doc_23518909 | public class ListViewModel
{
public ObservableCollection<InfoItem> List { get; set; }
}
public interface InfoItem
{
int Reference { get; }
string Name { get; }
}
The collection is sorted by Name which is being displayed in the UI. I have a scenario where the collection contains a couple of thousand items and ... | |
doc_23518910 | Thanks in advance.
A: In Settings (File --> Settings) go to:
Editor --> General --> Smart Keys
Then there should be a setting called
Insert paired brackets (), [], {}, <>
Switch that off and that should stop the auto-completion of brackets
See the following link for more information on Smart Keys in PyCharm
https:/... | |
doc_23518911 | The question formats vary but the issue is caused with a slider question type.
I run a HTTP request to get the JSON data and assign it to a scope called 'questions'. I then in the view repeat the questions and if (in this case) the question type is 'slider' I output the HTML.
The issue is that the slider uses a plugin... | |
doc_23518912 | js fiddle
jQuery
$(function() {
$('#change').click(function() {
$('#box').addClass('change');
});
});
HTML
<div id="box" class="start"></div>
<div id="button">click</div>
CSS
.start{
height:100px;
width:100px;
background: black;
transition: all 2.0s linear;
-webkit-transition: all 0.8s linear;
-moz-transition:... | |
doc_23518913 | ID, Latitude, Longitude, Crime score
0, x1, y1, z1,
1, x2, y2, z2,
2, x3, y3, z3, .....
I know about various search algorithms that can help me in this such as the A star algorithm which would be the best algorithm for this context and have played with the gmaps library on python, neo4j and OSM but haven't figured ... | |
doc_23518914 | So I'm running the stock Google Map SDK on my iPhone 6 on iOS 8.1 using Xcode 6.1:
- (void)viewDidLoad {
[super viewDidLoad];
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.868
longitude:151.2086
... | |
doc_23518915 | All of the examples I've seen on the web have only two parameters passed into the custom validation.
I have made a workaround to pass an array with the value to compare and the conditional, but this is a bit clunky. My message format outputs the values in the array as well instead of just the otherVal.
For Example:
/*
... | |
doc_23518916 |
A: Fields have a "Locked" property. You can set this to false to allow the fields to be edited e.g.
Text textField = new Text
{
DocumentId = "1",
PageNumber = "1",
XPosition = "15",
YPosition = "15",
Height = "14",
Width = "50",
... | |
doc_23518917 | For example, an application creates a database connection from a data source, then it executes a SQL query which might take 5,15 or even over 60 minutes to return results. This behavior is causing other issues.
What I am asking is regarding this scenario, how can we have the application make the database call and after... | |
doc_23518918 | I can do it using com.fasterxml.jackson.databind.ObjectMapper like so:
public static MyObject load(Map<String, Object> map) throws IOException {
ObjectMapper mapper = new ObjectMapper();
return mapper.readValue(new ObjectMapper().writeValueAsString(map), MyObject.class);
}
I was wondering if anyone... | |
doc_23518919 | 2016-08-19 17:49:27,176 INFO org.apache.hadoop.ipc.CallQueueManager: Using callQueue class java.util.concurrent.LinkedBlockingQueue
2016-08-19 17:49:27,223 INFO org.apache.hadoop.ipc.Server: Starting Socket Reader #1 for port 64859
A: I know it now, it's defined in yarn-site.xml
<property>
<name>yarn.nodemanager... | |
doc_23518920 | Warning CS0436 The type 'BitField' in 'C:\FilePath' conflicts with the imported type
'Typename' in 'LibraryName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Using the type defined in 'C:\FilePath'. LibraryName C:\FilePath 38 Active
I've spent over an hour reading MSDN guides and other posts on this s... | |
doc_23518921 | <plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.12.v20130726</version>
<configuration>
<webApp>
<contextPath>/test</contextPath>
</webApp>
</configuration>
</plugin>
Next, I use nginx to proxify r... | |
doc_23518922 | My input is a text file with 8 rows and 8 columns, filled with values 0 or 1, with a single space character each separating the columns.
I need to check the 4th number in each row, and output false, if it is 0, and true, if it is 1.
My code at the moment looks like this:
param($fname)
$rows = (Get-Content $fname)
fo... | |
doc_23518923 | Let's say for example I did something like this:
pseudo-code:
String value = null;
try {
value = context.lookup("someValue")
} catch (Exception ignored) {}
if (value == null) {
value = "My name is "+currentThread.getName()
context.bind("someValue", value);
}
Now is it possible that the first thread checks on som... | |
doc_23518924 | #!/bin/sh
export TEXT_YELLOW=`tput setaf 3`
export TEXT_RED=`tput setaf 1`
export RESET_FORMATTING=`tput sgr0`
mvn $* | sed \
-e "s/\(\[WARNING\].*\)/${TEXT_YELLOW}\1${RESET_FORMATTING}/g" \
-e "s/\(\[ERROR\].*\)/${TEXT_RED}\1${RESET_FORMATTING}/g"
Problem is the shell within a shell feature my compiler has (mvn cli:... | |
doc_23518925 |
When the following functions return “frame records,” each record is a
named tuple FrameInfo(frame, filename, lineno, function, code_context,
index). The tuple contains the frame object, the filename, the line
number of the current line, the function name, a list of lines of
context from the source code, and th... | |
doc_23518926 | Raku
I am trying to use Raku's NativeCall to talk to libX11.so to print out both my screen and my display:
use NativeCall;
class Display is repr('CStruct') { has Pointer $.DisplayPtr };
# libX11.so --> X11
sub XOpenDisplay(Str $name = ':0') returns Display is native('X11') { * }
sub XDefaultScreen(Display $) returns ... | |
doc_23518927 | I have a bunch of user dirs that make up a part of their url, eg
www.mysite.com/users/USERDIR
When I created the site (and since then), user dirs are created using capitals. I wish I hadn't, but it's done. so if someone types in www.mysite.com/users/userdir - it can't find that dir - it has to be in capitals like www.... | |
doc_23518928 | The APIs and exceptions are listed below -
account.getNetworkStorage() - throws:
SoftLayer.exceptions.TransportError: TransportError(0): HTTPSConnectionPool(host='api.softlayer.com', port=443): Read timed out.
OR
SoftLayer.exceptions.TransportError: TransportError(0): ("Connection broken: error(104, 'Connection reset b... | |
doc_23518929 | from ibapi.client import EClient
from ibapi.wrapper import EWrapper
from ibapi.contract import Contract
from ibapi.ticktype import TickTypeEnum
class TestApp(EWrapper, EClient):
def __init__(self):
EClient.__init__(self, self)
def error(self, reqId, errorCode, errorString):
print("Error: ", re... | |
doc_23518930 | Lets me explain a little more if needed.
When i set sonata_type_collection in this relation i get child properties to edit inline, which is great. The issue I have is that this child entity
has another child type sonata_type_collection and the way sonata admin shows this child is not the best way to edit it. So, I was ... | |
doc_23518931 | this executes successfully ... but I want to add last check constraint in table.. when I add again then this shows an error ..
CREATE TABLE COMPUTER(
SerialNumber Int NOT NULL,
Make Char(12) NOT NULL,
Model Char(24) NOT NULL,
... | |
doc_23518932 | I have been trying to make my C++ TAO (v1.6) client connect to java tnameserv running on JDK1.3.But the C++ TAO client is not able to resolve the naming service. It is throwing the following exception : system exception, ID 'IDL:omg.org/CORBA/UNKNOWN:1.0'
Unknown vendor minor code id (53550000), minor code = 53550004, ... | |
doc_23518933 | var myDatabase = new PouchDB('appData', { skip_setup: true, auto_compaction: true});
myService.addSomething(myDatabase);
myService.getSomething(myDatabase);
or should/can I open the connection on every function without problems like:
myService.addSomething = function(){
var myDatabase = new PouchDB('appData', { skip_s... | |
doc_23518934 | <?php
$xml = simplexml_load_string('<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book>
<title lang="eng">Harry Potter</title>
<price>29.99</price>
</book>
<book>
<title lang="eng">Learning XML</title>
<price>39.95</price>
</book>
</bookstore> ');
foreach ($xml as $value) {
$result = $value... | |
doc_23518935 | Here is my styles array :
styles:[
{
"featureType": "all",
"elementType": "all",
"stylers": [
{
"visibility": "simplified"
}
]
},
... | |
doc_23518936 |
This website is temporarily unavailable, please try again later.
I am using WordPress for designing
error that I receive
| |
doc_23518937 | Now I want to set the width and height of this view object to wrap_content.
This is my code and what I've tried:
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
View view = inflater.inflate... | |
doc_23518938 | I'm not very familiar With iPhone Development or Objective C. I'm thinking since Xamarin compiles to native library then it may boil down to exposing some methods and creating some header files?
*
*Is this possible?
*How? (If you do not have a full answer then maybe you hve some pointers/ideas can help me on my way... | |
doc_23518939 | here is my js countdown timer for events however i need to make it responsive, how can i make the timer responsive. Which works across all browsers, mobile and tablet devices
JS
function startCountdown(dates, elem, format) {
var now = new Date(),
index = 0,
targetDate;
// Returns the next date a specific month... | |
doc_23518940 | public class A {
public static void main(String[] args) {
int[] a;
int[] b = new int[n];
for (int i = 0; i < n; i++) {
b[i] = a[i];
}
}
}
This is my code but I think it's incorrect. Should I use a variable args in my code? And please explain me more about memory all... | |
doc_23518941 | I tried using the provided Makefile: I did "make ocamlrelease" but it aborts with the error
cp: cannot stat `ml_release/build-lib.sh': No such file or directory
I also read the included readme.txt in the ml directory and it says to use SLAM and SDT, but these seem to work only in Windows, not Linux.
How can I compile t... | |
doc_23518942 | alias bashedit='${EDITOR} ~/.bash_profile; source ~/.bash_profile'
It opens .bash_profile in my editor of choice and automatically sources it after I made my changes. However, since I switched to Atom (i.e. EDITOR='atom'), I recognized that the atom CLI is non-blocking. That is, it immediately returns and executes sou... | |
doc_23518943 | Actually nothing happens and it looks like JavaScript is not executed.
Sandbox mode is not set and it doesn't work either when sandbox mode is set to execute scripts.
The JavaScript redirect works outside the iframe very nice
There is the JS code which is inside the iframe:
<script type="text/javascript">self.location... | |
doc_23518944 | but then dissipate.
I was thinking of creating a transparent activity that has a red background and have that pop up for a second then disappear, but the problem with that is the user wouldn't be able to click anything while the transparent activity is active (if that makes any sense).
I guess I'm looking for possibl... | |
doc_23518945 | CCDS Size gene exonCount
10804 NM_001320648_exon_4_0_chr21_44515804_r 50 U2AF1L5 8
9385 NM_018964_intron_9_0_chr21_43967251_f 6921 SLC37A1 21
1253 NM_004540_intron_4_0_chr21_22664562_f 32141 NCAM2 18
5233 NM_203417_intron_1_0_chr21_35893957_r 1878 RCAN1 4
3242 NM_001353691... | |
doc_23518946 | <nav id="sidebar" class="active">
<ul class="menu">
<li> <a href="#">Customer</a> </li>
<li> <a href="#">Sales</a> </li>
</ul>
</nav>
<div>
<button id="sidebarCollapse"> Collapse </button>
Right Content
</div>
my jquery code
<script>
$(document).ready(function () {
... | |
doc_23518947 | <dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.junit</artifactId>
<version>4.12_1</version>
</dependency>
Using this when I tried parsing the excel file I received the following runtime exception:
Cannot load org.apache.xmlbeans.i... | |
doc_23518948 | I am trying to build a c++ code based on this github page. However, when I try to generate lib files in Cmake I get this error:
I don't know what's wrong with lmdb.h file. Should I build lmdb from scratch?
There are 2 error messages:
*
*
CMake Warning (dev) at cmake/Dependencies.cmake:46 (find_package):
Policy CM... | |
doc_23518949 | How to solve " ImportError: No module named mechanize "
i saw these:
import mechanize
ImportError: No module named mechanize
import mechanize
ImportError: No module named mechanize
noobs = mechanize.Browser()
NameError: global name 'mechanize' is not defined
| |
doc_23518950 | I tried changing around the list in line 24, but I'm not sure how
This is my python code:
import tkinter.messagebox
root = Tk()
root.title("Video Equipment Reservation System")
infile = open('CamCSV.txt','r')
for line in infile:
data = line.split(',')
button = list()
for i in range(7):
button.appen... | |
doc_23518951 | spawn sudo apt-get install wine
expect "*?assword: "
send "$passwd\r"
interact
But it does not send password. How can I resolve this ?
A: You can set user as sudoer, it can skip password validation.
| |
doc_23518952 | For example:
url = 'http://rca.yandex.com/?key=rca.1.1.20140120T051507Z.3db118ab435efdff.6c84331313b6b7d66abd191410f72e0e1c3c8795&url=http://endtimeheadlines.wordpress.com/2014/01/17/think-tank-extraordinary-crisis-needed-to-preserve-new-world-order/#comment-36708?utm_source=twitterfeed&utm_medium=facebook[&callback=h... | |
doc_23518953 | In my conjured up scenario, my table, MyData. has 25 columns, and 50,000 rows. I am trying to get all MyData records based on a WHERE.
var myData = _myDb.Entities<MyData>()
.ToList()
.Select(p => new { p.Name, p.Id })
.Where(y => y.DepartmentId = 1)
.OrderBy(x => x.Name);
vs
var myData ... | |
doc_23518954 | I have DOM structure:
<div class="wraper">
<div>
<input type="checkbox" name="field_regions[und][8260]" value="8260" class="form-checkbox">
<label class="option" for="edit-field-regions-und-8260">Europe </label>
</div>
<div>
<input type="checkbox" name="field_regions[und][8260]" value="... | |
doc_23518955 | ||
doc_23518956 | (And I already tried using a .png and .jpg)
This is the code I am using:
<div id='cssmenu'>
<link rel="stylesheet" type="text/css" href="menucss.css" media="screen">
<ul>
<li class='active'><a href='index.html'><span><img src="Imgs/Home-icon.png"></span></a></li>
<li><a href='sh... | |
doc_23518957 | script1.py
import subprocess
from subprocess import Popen, PIPE, STDOUT
def func1 ():
cmd = "python script2.py"
proc = Popen(cmd.split(' '), stdout=PIPE, stderr=PIPE)
(output, error) = proc.communicate()
print output
print error
func1()
print "Done.."
script2.py
import sys
print "ERROR:port not de... | |
doc_23518958 | One of the services which is causing problems:
PlanningPoker.factory('PokerTable', function ($http) {
var baseURL = "/api/pokertable/";
return {
list: function list(playerId) {
return $http.get(baseURL, {params: {playerid : playerId}});
},
save: function save(pokertable) {
return $http.post... | |
doc_23518959 | My question is I want to write a criteria that returns all the Beans that do not have a value in a contained set of elements.
A summary of the hibernate config file for the bean is:
<hibernate-mapping package="com.mydomain.beans">
<typedef class="com.mydomain.dao.util.HibernateAgentOptionType" name="agent-o... | |
doc_23518960 | html:
<!DOCTYPE html>
<html>
<head>
<script src="https://<myserver>/js/jquery.js"></script>
<script src="https://<myserver>/js/jspdf.js"></script>
<script src="https://<myserver>/js/jspdf.plugin.addimage.js"></script>
<script src="https://<myserver>/test/pdf.js"></script>
<... | |
doc_23518961 | The application accesses the other servers with a user who is an admin domain user.
Has anyone encountered such a problem, or have a clue as to what could be causing it?
A: Probably way too late for this thread, but I found the answer to this here: http://blogs.msdn.com/johnbreakwell/archive/2008/07/10/getting-msmq-me... | |
doc_23518962 | In version 2012, which my company has been using for several years, we added a extension
which abled us to modify the filename when the user exports reports to PDF, Excel,...
So instead of having e.g. the filename StudentReport.PDF, we get StudentReport_Student_Name.PDF.
To manage this we added a hidden field into the... | |
doc_23518963 | Also in userStore threads from threadStore has a correct value.
Maybe that because threadStore installed first than userStore?
But how I can get users from userStore in threadStore?
log image
thread.js
import { defineStore } from 'pinia';
import { ref } from 'vue';
import { useUserStore } from './user';
export const u... | |
doc_23518964 | const mainCurrencies: string[] = ['GBP','EUR']
const accounts: AccountDetail[] = [{currency:'GBP',date:'20/06/2022'}{currency:'EUR',date:'20/06/2022'},{currency:'CAD',date:'20/06/2022'},{currency:'ZAR',date:'20/06/2022'}]
I want the currencies that are not main currencies to change from their names to 'OTHER'
e.g {cur... | |
doc_23518965 | So, I was wondering:
Considering that the string resources names are unique across all the files, is there any way to see all the string resources in one place? Or search through all of them?
(Double-Shift search doesn't actually make it easier!)
A: There is a new feature in the latest Android Studio 0.8.7 (only in ca... | |
doc_23518966 | Attached is an example plunkr & conversion code.
The white facebook button should line up with the red plane.
https://plnkr.co/edit/0MOKrc1lc2Bqw1MMZnZV?p=preview
function toScreenPosition(position, camera, width, height) {
var p = new THREE.Vector3(position.x, position.y, position.z);
var vector = p.project(c... | |
doc_23518967 | I am using this Java code for the server-side:
ObjectMapper mapper = new ObjectMapper();
clip = mapper.readValue(request.body(), Clip.class);
while the JavaScript (jQuery) client-side code is:
$.post("/insertClip", { "item": item.value, "value":value.value, "dimension":dimension.value });
When I run the application,... | |
doc_23518968 |
A: try installing latest Xcode 4.0.2 version
| |
doc_23518969 | What I already achieved:
*
*I get the signature of the PDF by reading the bytes defined in
ByteRange in the PDF-File and store it in a variable.
*Then I convert it like this: base64_encode(hex2bin($raw_signature_data));
*After that, I change the formatting to pkcs7:
$zertifikat_formattiert = "";
$zertifikat_format... | |
doc_23518970 | node1 = Node(44)
node2 = Node(220)
node3 = Node(320)
node4 = Node(402)
node2.setNext(node1)
node3.setNext(node2)
node4.setNext(node3)
so if I put in find the last value of node4 it should return 44
A: Your linked list looks like this:
node4 -> node3 -> node2 -> node1
No start, no end, your linked list is in a vacuum... | |
doc_23518971 | ActiveRecord::StatementInvalid: PG::StringDataRightTruncation: ERROR: value too long for type character varying(4)
I have triple-checked this data, and it's always less than four characters long when this happens. There's only one 4-length field, shape, in the table so I'm pretty sure that's the field in question. ... | |
doc_23518972 | using (FileStream destFile = new FileStream(
destinationFilePath, FileMode.Create, FileAccess.Write))
{
using (SqlDataReader reader = await command.ExecuteReaderAsync(CommandBehavior.SequentialAccess))
{
using (StreamWriter writer ... | |
doc_23518973 | When I browse a big file and hit submit, the form waits for 20 seconds and than gives me the "success part" but I am trying to show the progress of the process so the user won't think that it just doesn't work and leave the page before it sends the form to my email:
$.ajax({
url: "/api/s... | |
doc_23518974 | I know it's a query with many subselects but I wasn't able to get the right result another way. In my opinion this belongs to the aggregate functions like avg() and sum().
Here's my query:
Cursor c = readableDB
.rawQuery(
"SELECT DISTINCT t._id , title , strftime('%Y-%m-%d' , starttime , 'unixepoch' , '... | |
doc_23518975 | (p.s. I have big dataset I'm just here giving little example)
I want to find who never wins.
So what I thought was to find unique values of team1 and team 2
and then from unique values, to find which value wont be there in winner list.
team1 team 2 toss_winner
Kolkata kni... | |
doc_23518976 |
A: I'll assume you're using the color picker dialog from API demos.
You could implement the OnColorChangedListener inside the activity so that it changes the color of a ShapeDrawable, that you'll use as drawable in an ImageButton.
| |
doc_23518977 | Maybe there is any other way to bundle Root certificates with C# application?
| |
doc_23518978 | However, when I retrieve the data for the AuthenticationInfo (a JPA entity) in doGetAuthenticationInfo(), I find that I already have the necessary AuthorizationInfo. Alas, there's no apparantly good way to hang onto this data, so I have to throw it out only to perform another JPA lookup when the authorization filter ul... | |
doc_23518979 | private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
FileWriter writer = null;
try {
File file = new File("GPA.txt");
try {
// creates the file
file.createNewFile();
} catch (IOException ex) {
Logger.getLogger(cal.class.getName()).lo... | |
doc_23518980 |
Following is my code:
<div class="row">
<div class="col-md-2">
<div class="form-group has-feedback">
<label class="control-label">Input label</label>
<input type="text" placeholder="Placeholder" class="form-control" />
<span class="form-control-feedback fa fa-spinner fa-pulse"></span>
... | |
doc_23518981 | //payee model
public class Payee {
@Id
private String id;
private String name;
private Photo photo;
//photo model
public class Photo {
... | |
doc_23518982 | Now when I run r.js build with above mentioned errors; build is successful but while running application I am facing issues because of javascript syntax errors.
I have removed following try-catch block in r.js(line number: 24501) file and build started breaking (which is my requirement),
// try {
... | |
doc_23518983 | I first tested the model in Excel and now I want to transform the model in Python code. I'm not that advanced yet in Python and got stuck.
The model is simple. Calculate the rolling 20-day standard deviation of the VIX closing prices. Signals are generated if the Standard Deviation is below 0.86 AND the prior 10 days d... | |
doc_23518984 | <img class="avatar-icon img-thumbnail" style="background-position: -160px -320px; background-image: url('/images/logos/Avatar_0.png')">
It works great. Then I found the avatar is a little bit big in some situation. And I want to stretch the background after it is positioned. In the example above, I still want to displ... | |
doc_23518985 | I have following code
interface ImageDim extends StyledProps {
width: number,
height: number
}
const MediaImage = styled.img`
width: ${props => props.width}px;
height: ${props => props.height}px;
object-fit: contain;
`;
export const BuyingImage = () => {
return (
<CardMedia
alt={'IMAGE'}
/... | |
doc_23518986 | I have created a JS fiddle here http://jsfiddle.net/KLpq7/201/ so you can see my effort so far
My JS Is as follows
function days() {
var a = $("#datepicker_start").datepicker('getDate').getTime(),
b = $("#datepicker_end").datepicker('getDate').getTime(),
c = 24*60*60*1000,
di... | |
doc_23518987 | echo "<td colspan='5'>" . $row['DESCRIPTION'] . "</td>";
When it provides the paragraph of text it includes incorrectly formatted bold tags which look like [B]. What I want to do is replace these with either a <b> tag or a blank space.
Not sure how to do this with PHP.
A: `$row['DESCRIPTION'] = str_replace(array('[B... | |
doc_23518988 | (List[String], String)
An example of two row could be: ([a,b,c], d) and ([d, e], a)
I want to transform these rows then to ([a,b,c], [d,e]) and ([d, e], [a, b, c])
The column names of the dataframe are "src" and "dst".
How can I approach this problem?
What I've tried:
val result = df.map(f => {
if(df.exists(x => x.... | |
doc_23518989 | My functions
/**********************************************************************************/
//USER LOG IN
$('#cSignIn').click(function(){
//Get User name and password
var uname = $('#uName').val();
var pword = $('#pWord').val();
loginRequest(uname, pword);
$('.formList').hide();
$('#in... | |
doc_23518990 |
Someone told me that these handles are enabled automatically in .NET 4.5. I've tried VS 2013 with WPF project and they don't appear. Tried DevExpress controls suite - no luck. I couldn't even find any mention of such thing in google.
So, is it possible to implement in some simple way?
| |
doc_23518991 | describe "My Test Suite" do
# ...
end
feature "My Awesome Feature" do
# ...
end
And I have something similar for FactoryGirl, to write create(:model) instead of typing the full version, FactoryGirl.create(:model)
RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
end
Is it the same for the... | |
doc_23518992 | {
DateTime cd = new DateTime();
string date_str = "";
try
{
if (!isValidYear(dateValue.Substring(6, 4)))
date_str = DateTime.Now.Year.ToString();
else
date_str = dateValue.Substring(6, 4);
cd.Value = date_str + "/" + dateValue.Substring(3, 2) + "/" + dat... | |
doc_23518993 | ||
doc_23518994 | I am using Windows 10, 4GB Ram, and am using the latest version of android studio.
A: may be the ram of your virtual device is higher and makes your PC busy, so you can decrease the ram of your virtual device or download other virtual devices which doesn't take more ram .
Another option is to use GenyMotion , it is a... | |
doc_23518995 | I have a drupal site and am importing data from audible.com via feeds importer. Set everything up a couple of weeks ago, info has imported without issue for the past two weeks. I went in today do a fresh pull and when I click the import button, I got this message:
cURL error (7) couldn't connect to host for
http:/... | |
doc_23518996 | I have been working on a bash script as a small summer project to learn more about UNIX scripting and on using git.
This has been the first time that I have used branches in git, normally I just stick to master.
I was viewing the git log with the graph (git log --graph) when I noticed that my 'develop' branch seemed to... | |
doc_23518997 |
A: You might want to take a look at this.
Seems to be a solution for you problem.
There is a jsfiddle in the accepted answer that shows the result.
To take out the most important function see below. It sets the textareas height equal to its scrollHeight.
function resize () {
var text = document.getElementById('tex... | |
doc_23518998 | I am facing the same issue as Intellij as mentioned above but I am not using android
| |
doc_23518999 | maxQ <- 2
AIC <- matrix(0,nrow=maxP,ncol=maxQ)
BIC <- matrix(0,nrow=maxP,ncol=maxQ)
HQC <- matrix(0,nrow=maxP,ncol=maxQ)
# Save all information criteria
for (p in 0:maxP){
for(q in 0:maxQ){
if (p>0) {ARLags <- 1:p}
else {ARLags <- 0}
if (q>0) {MALags <- 1:q}
else{MALags <- 0}
# Estimate ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.