Id int64 2.49k 75.6M | PostTypeId int64 1 1 | AcceptedAnswerId int64 2.5k 75.6M | Question stringlengths 7 28.7k | Answer stringlengths 0 24.3k | Image imagewidth (px) 1 10k |
|---|---|---|---|---|---|
30,144,467 | 1 | 30,148,579 | Following is attempt to launch cluster with ten slaves.
'''
12:13:44/sparkup $ec2/spark-ec2 -k sparkeast -i ~/.ssh/myPem.pem -s 10 -z us-east-1a -r us-east-1 launch spark2
'''
Here is output. Note that the same command had been successful with the February Master code. Today I had updated to latest 1.4.0-SNAPSHOT
'''
S... | The issue is that the python-2.7.6 installation on my yosemite macbook appears to have become corrupted.
I reset the PATH and PYTHONPATH to point to a custom homebrew installed python version and then the boto - and other python commands including building spark performance project - work fine. | |
18,233,899 | 1 | 18,234,991 | How can I swap/switch between two 'ActionBar' items?
I currently have two items in my action bar as indicated in the first image below - see the "grid" and the "timeline" icons.
I want to show only one and when the user touches it, it should swap out with the other one. So say the grid item is showing, and the user tou... | Thanks for your answer tyczj, but I solved my problem by toggling the items' visibility like this:
'''
@Override
public boolean onCreateOptionsMenu(Menu m) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.actionbar, m);
menu = m;
itemTimeline = menu.findItem(R.... | |
23,392,642 | 1 | 23,392,768 | I'm trying to get an outer container element to expand vertically to encompass the inner elements, but it doesn't seem to want to. In that screenshot I've got an outer div (I used jumbotron in that example but it does the same thing no matter what the class), with a video and some text inside it, but it doesn't expand ... | '''
<div class="jumbotron clearfix">
'''
And you should be fine.
Fiddle:
<URL> | |
31,019,627 | 1 | 31,033,361 | I have the need to do JSON schema generation within a T4 template, and found Newtonsoft's new Schema class more than adequate for the purpose at hand (within a console application, tested), however, I cannot seem to make it play ball with the rest, as the instance to Newtonsoft always returns null.
T4 declaration:
'''
... | T4 templates do not use the reference path defined in the project. T4 does support some variables inside Visual Studio:
'''
<#@ assembly name="$(SolutionDir)\MyProjectin\Debug\SomeLibrary.Dll" #>
'''
There is an <URL> about this.
If you are referencing the .dll and it is being copied into the output directory you shoul... | |
51,510,485 | 1 | 51,510,955 | This is my first question here on stackoverflow, but I can't figure this out for the life of me. I am using Xcode and Swift 4.
I want to read a certain child level from Firebase to make a tableView based on the results there. Below is my Firebase data:
<IMAGE>
I want to make a tableView that lists Bill and Josh which i... | To get an array with just the keys under 'subNames', you'll need something like this:
'''
refHandle = ref?.child("Users").child(FBuid).child("subNames").observe(.value, with : { (snapshot) in
let mynamesArray = [String]()
for child in snapshot.children {
mynamesArray.append(child.key)
}
print (mynamesArray)
})
''' | |
25,982,011 | 1 | 25,982,588 | I have a select HTML control like the following:
'''
<select name="width-dimension-inches" id="width-dimension-inches" data-bind="value: widthWhole,jqmSelectMenuRefresh :true, options: widthDimension.dimension.getDimensionsWhole()">
</select>
'''
I created a custom knockout binding called jqmSelectMenuRefresh because w... | Every time you invoke 'selectmenu()' function the new instance is created.
'''
$(element).selectmenu().selectmenu('refresh', true);
'''
The above line of code will create two instances which ends up with two visible elements.
My suggestion is to initialize plugin, store the instance in variable and then invoke function... | |
54,210,414 | 1 | 54,210,904 | I would like to have 2 donut charts side by side,
currently, I have a pie chart and donut chart side by side.
Donut chart
<IMAGE>
here is my code, would I need a loop?
'''
recipe = "flour","sugar","egg","butter","milk","yeast"
fracs = [15, 30, 45, 10]
data = [225, 90, 50, 60, 100, 5]
fig = plt.figure()
ax1 = fig.add_ax... | Yes, you can do it with loop + using 'wedgeprops' as Cristiano Kohler suggested in another answer:
'''
import matplotlib.pyplot as plt
recipe = "flour", "sugar", "egg", "butter", "milk", "yeast"
fracs = [15, 30, 45, 10]
data = [225, 90, 50, 60, 100, 5]
fig = plt.figure()
for i in range(2):
ax = fig.add_axes([i/2, .1, .... | |
20,377,482 | 1 | 20,377,653 | I have a box '#box' with width: 100%, height: 100%, padding: 5px, margin: 5px; border: 5px;
I need in HTML5 layout correctly display that.
Now i have that:
<IMAGE>
But i need fit block in body area.
Code:
'''
<!DOCTYPE html>
<style>
body,html {
width: 100%;
height: 100%;
margin: 0;
}
#box {
width: 100%;
height: 100%;
b... | The browser does excacly what you are telling him to do :)
However I think you don't like the overflow it has.
What happens is that your '#box' expands because of your border and padding. You can make these properties inset, so it does not expand your element. You can do this with 'box-sizing':
'''
#box {
width: 100%;
... | |
12,058,624 | 1 | 12,058,836 | I am loading 'http://www.google.com' url in the the WebView.
But, even though I am loading it from the device/simulator, the content of the webview is not getting adjusted based on the device dimensions.
<IMAGE>
If you see, Google page is not getting set properly according to the dimensions of the WebVie. But, if I ope... | You need to change the user-agent to make it not load mobile sites.
---
Try this
'''
<WebView android:id="@+id/webView1" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_alignParentBottom="true"
android:layout_below="@+id/button1" android:layout_centerHorizontal="true" />
''' | |
29,038,250 | 1 | 29,043,491 | How would you go about having tags already being preselected in their selectbox at the time the page loads? Here's my code so far:
HTML:
'''
<select class="selectBox operatingSystems" multiple="multiple">
<option>Windows</option>
<option>OSX</option>
<option>Linux</option>
</select>
'''
JS:
'''
$(".operatingSystems").s... | You can select an existing option by setting the 'selected' property.
'''
<select class="selectBox operatingSystems" multiple="multiple">
<option>Windows</option>
<option selected="selected">OSX</option>
<option>Linux</option>
</select>
'''
Would pre-select the OSX option in the select box. This isn't specific to Selec... | |
15,351,422 | 1 | 15,352,141 | This might explain my question a bit better:
I need one child div positioned on top of the other so that the last-child is only showing around the edges, but the two child divs need to scroll together and keep the background of the first-child div static. This mesa that the viewport would be the first-child, but the co... | You don't need a lot of the css that's there -- for example the .container. If I understand correctly (and I'm not 100% sure I do) you'd like a image on the .text div which remains fixed while the rest of the page -- bars and text scroll.
You cannot put the image on the text div as it will scroll; rather, I suggest put... | |
27,097,967 | 1 | 27,524,199 | Today morning I build and run my xcode project. When simulator launched I saw this:
<IMAGE>
The screen is , I see only are .
Did anybody faced with same problem? The issue happens in , also in .
I tried to Clean project, switched to , , the same problem.
Also, this happens with my other iOS projects. | I why this bug appears at and not at :)
Because at work external display (), but at home (DELL, non-retina off course)
If you want this bug not to appear, just connect your macbook to external non-retina monitor. Then you may work fine, run simulator in macbook retina display, also in external monitor display, while Ap... | |
64,929,913 | 1 | 64,930,167 | The <URL> mentions the following in the " Reactivity > Updating arrays and object " chapter:
<IMAGE>
The documentation mentions updating references to 'obj.foo.bar' but the 'foo' variable is a separate copy of 'obj.foo'. So I can't see how doing 'obj=obj' would update reference to 'obj.foo.bar', as 'bar' is declared as... | Take a look at this REPL that will help with understanding why the reassignment is necessary. <URL> | |
19,678,978 | 1 | 19,679,090 | The confusing question is best asked through an example. Say we have the following result set:
<IMAGE>
What I want to do is count how many times one number appears from both columns.
So the returning data set might look like:
'''
ID Counted
0 4
1 2
9 1
13 1
'''
My original thought was to do some sort of addition betwee... | You can do this with a subquery, 'GROUP BY', and a 'UNION ALL', like this:
'''
SELECT ID, COUNT(*)
FROM(
SELECT ID1 AS ID FROM MyTable
UNION ALL
SELECT ID2 AS ID FROM MyTable
) source
GROUP BY ID
ORDER BY ID ASC
''' | |
18,850,099 | 1 | 18,852,422 | I need to make Bootstrap 3.0 Carousel to display a slide of thumbnails. How can I do this?
This is an image of what I'm looking for:
<IMAGE>
This is a working example for Bootstrap 2, but I need this for Bootstrap 3.0.: <URL> | A multi-item carousel can be accomplished in several ways <URL>.
This can be done using the grid inside each carousel item.
'''
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<div class="row">
<div class="col-sm-3">..
</div>
<div class="col-sm-3">..
</div>
<div class... | |
27,028,132 | 1 | 28,186,908 | I saw a site that embedded an interactive Google trend chart on the page: <URL>
When I inspected the element, the chart was embedded with the code:
'''
<script type="text/javascript" src="http://www.google.com/trends/embed.js?hl=en-US&q=danbo%20robot,danbo%20amazon,danbo%20yotsuba&content=1&cid=TIMESERIES_G... | Include the Google trend result in an iframe and you are done.
'''
<iframe scrolling="no" style="border:none;" width="640" height="330" src="http://www.google.com/trends/fetchComponent?hl=en-US&q=danbo+robot,danbo+amazon,danbo+yotsuba &cmpt=q&content=1&cid=TIMESERIES_GRAPH_0&export=5&w=640&h=330"></iframe>
'''
See <URL... | |
6,260,067 | 1 | 13,968,433 | I am trying to remove status bar from particular View Controller but still it shows blue line when i tried to Hide it so please give some suggestions for that.<IMAGE> | '''
[[UIApplication sharedApplication] setStatusBarHidden:YES];
''' | |
57,074,704 | 1 | 57,074,809 | I am currently working with some telematics data where the trip id is missing. Trip id is unique. 1 trip id contains multiple of rows of data consisting i.e gps coordinate, temp, voltage, rpm, timestamp, engine status (on or off). The data pattern indicate time of engine status on and off, can be cluster as a unique tr... | Use <URL>:
'''
test=test.assign(tripID=test.Ignition_Status.eq('OFF')
.shift(fill_value=False).cumsum().add(1))
'''
---
'''
Ignition_Status tripID
0 ON 1
1 ON 1
2 ON 1
3 OFF 1
4 ON 2
5 ON 2
6 ON 2
7 ON 2
8 ON 2
9 OFF 2
10 ON 3
11 OFF 3
''' | |
7,669,754 | 1 | 7,669,784 | I'm trying to implement dynamic array in C using realloc(). My understanding is that realloc() preserves old contents of the memory block the old pointer points to, but my following testing code suggests otherwise:
'''
#include <stdio.h>
#include <stdlib.h>
int DARRAYSIZE=5;
typedef struct dynamicArray{
int size;
int *... | You forgot 'sizeof(int)' in your 'realloc()', so you keep shrinking your array.
You also need to keep track of the number of items in use and the amount of space allocated in the dynamic array structure; these are two separate measures, and both are needed. But you can't use a global variable (currently DYNARRAYSIZE) t... | |
29,823,843 | 1 | 29,823,976 | I have HTML page which have multiple check boxes and individually they can be checked. I have button 'select', so what I am suppose to do is. When I click on select all the check boxes should get selected, and deselected.
'''
<html>
<head>
<script src="jquery.js"></script>
</head>
<body>
<script>
$(document).ready(func... | '#selectAll' is a button, it doesn't have a 'checked' property, but one could emulate that with a data attribute instead.
Secondly, '.btn-chk' isn't a checkbox either, so it can't be checked, you have to target the checkboxes
'''
$(document).ready(function() {
$('#selectAll').click(function(event) {
var checked = !$(th... | |
26,442,000 | 1 | 26,865,125 | I added a <URL> in my gcloud panel last couple of days today I notice a new permission in my admin console for the gae project.
<IMAGE>
I*m in good faith assuming the account '...xxx@developer.gserviceaccount.com' is good and a service account for real since I added a gcloud identity service or something else that is n... | *@developer.gserviceaccount.com are Google APIs service accounts. Project editor permissions are granted automatically upon creation and are listed under <URL>. project-id@appspot.gserviceaccount.com are App Engine service accounts added automatically upon project creation. | |
21,212,812 | 1 | 21,212,925 | I'm making a Java game. I have a Board class which extends JPanel, and have painted a node 'jim', which is an object instance of Ball class, to the screen using the 'paintComponent(Graphics g) {'. I can move the Ball object around on the JPanel using arrow keys.
Instead of representing the Ball object as a red square, ... | 1. Don't compare Strings with ==, use equals if (imgType == "jim") ==>> if ("jim".eqauls(imgType))
2. You should be reading from a URL and not a File object. A URL can be obtained by using getClass().getResource(). e.g. jimImg = ImageIO.read(
Ball.class.getResource("/resources/Jim.png"));
3. You should use a try/catch ... | |
73,290,527 | 1 | 73,295,979 | I'm trying to make a drop-down list in my spreadsheet, my spreadsheet has a couple of sheets but the main two sheets are "Master" and "Sheet3".
I have made the drop-down list using the -> as shown in the below screenshot:
<IMAGE>
And in the "Sheet3" sheet there is a big table (1000 columns) of data that I want to make ... | - 'Sheet3''Master'
<URL>
## Solution
> - Transpose 'Sheet3' to use it as a source of Data validation.
'''
=TRANSPOSE(Sheet3!A1:999)
'''
<URL>
> - Go to Data validation and set the range to '='Sheet3 Transposed'!1:1' as soon as you click save it automatically changes to '='Sheet3 Transposed'!$1:$1' with a abslout refren... | |
11,772,676 | 1 | 11,772,850 | I know here is lot of question on "start/stop timer".But i am looking for format of
timer. I am developing one recording application which show record time.
I able to show time in second format like 1 2 3 4 5. but i need to show this time like
. I need some hint or reference. here is image which i need to show. <IMAGE>... | <URL> is the very nice tutorial of simple countdown timer. Go through it and you will be able to achieve what you want.
Or <URL> is the efficient way to implement the stop watch type app from developer.android.com and yes it uses the format you required. | |
68,886,587 | 1 | 68,886,651 | I'm working on two cells, one in and the other in . (see the image below).
For the column , I used '=if(REGEXMATCH(I2,"Grade 7"),REPLACE(I2,1,9,""),"")' as a formula so it means that the cell is not empty, right? So, the goal is to have cell T17 return blank when cell P17 has no value or returns as blank.
<IMAGE> | I already figured it out.
The formula that I used for cell T19: '=IF(P17="","","2021-2022")' | |
29,365,353 | 1 | 29,365,733 | I've added a menu context item to the TreelistEx. This menu item sends a messages that I later catch in a HandleMessage method.
In this method i create a new item ( template type and parent item are given in the source of the treelist field ).
All i need now is a way to ask the user for a name. But i haven't been able ... | I don't know which version of Sitecore you use but what you can try is 'SheerResponse.Input' method.
You can use it like this:
'''
using Sitecore.Configuration;
using Sitecore.Globalization;
using Sitecore.Shell.Applications.ContentEditor.FieldTypes;
using Sitecore.Web.UI.Sheer;
void IMessageHandler.HandleMessage(Messa... | |
43,576,423 | 1 | 43,576,497 | I'm attempting to add each track number of the 'main track'. As you can see there are alternate versions that need the main track number listed in column R.
It would be great if column R could populate itself with the correct track number.
Any advice on how to solve this would be greatly appreciated.
<IMAGE> | A formula that would achieve this would be:
'''
=IF(Q2="Y","",IF(Q1="Y",P1,R1))
'''
This should be placed in R2 and copied down. | |
20,138,651 | 1 | 20,138,951 | I had created a sample HTML for Table where I have 3 columns and 2 rows.
'''
<!DOCTYPE html>
<html>
<body>
<table border='1' width='400px' cellspacing="0" cellpadding="2" height='100%' style='color: black;'>
<tr style='color: #fff; background: black;'>
<th>column1</th>
<th>column2</th>
<th>column3</th>
</tr>
<tr>
<td><... | You can fix this by defining exact border style for both table as well as td tags, by doing this you prevent browser from applying its own styling. Remove 'border='1'' and define
'''
table {
border: 1px solid #3C2610;
}
td {
border: 1px solid #3C2610;
}
'''
The cell dosn't exist in some IE's unless it's filled with som... | |
28,982,176 | 1 | 29,514,637 | I try to display some text at the right side of a navbar. The docs state that such text must be inside a 'p' tag and the classes 'navbar-text' and 'navbar-right' should be applied to this tag. I did this, but the text floated too far to the right. There is no space left to the right.
This is what my browser displays:
<... | This happens because of a bug, that was introduced in Bootstrap 3.3.0. There is already an <URL> at GitHub. | |
20,934,801 | 1 | 20,934,889 | I'm building a users system plugin for a framework but the way I've currently set it up does not satisfy me. When the 'remember me' box is checked I create a cookie
'''
setcookie('rmb', md5('salt'.$id), ...);
'''
There are a few things I don't like about this. When I recreate a session from this cookie I do the followi... | I think you can just create a 'challenge' that the client should send as a cookie in subsequent requests. When the user logs in:
'''
setcookie('username', put_username_here, ...);
setcookie('challenge', long_random_char_sequence, ...);
// UPDATE users SET challenge = ... WHERE username = ...
'''
When the user connects ... | |
11,548,524 | 1 | 11,548,755 | I want to center (automatically) the navbar on <URL>. Also, I need to have a 1px border-top and 1px border-bottom that extends roughly 70% of the nav area.
It should look like this mockup once it's done:
<IMAGE> | Remove the floats on your li tags, and on your #navigation, add 'text-align: center;'. Your floats are making your parent have a height of 0, which will in turn not allow you to have your borders. This fixes both those issues. From there, just add 'border-top: 1px solid white; border-bottom: 1px solid white;' to your u... | |
13,130,439 | 1 | 13,131,312 | I'm really not sure what information is relevant to include here, so I'll be generous. On the top of my page, I have a horizontal line. Now, on top of this line, in the bottom right, I want to place my meny which consists of three gif images. The images align to the right nicely but won't go all the way down to the bot... | If you want that to stick to the bottom of your container div (grid_8) you'll have to adjust its height to be aproximatelly the height of your buttons like so:
'''
<div class="grid_8 container">
<ul>
<li><a href="cv.html">HEM</a></li>
<li><a href="arbete.html">HEM</a></li>
<li><a href="index.html">HEM</a></li>
</ul>
</... | |
22,330,491 | 1 | 22,331,147 | i have a problem with texture in SpriteKit game:
in 'touchesBegan' i do:
'''
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInNode:self];
SKNode *node = [self nodeAtPoint:location];
if ([node.name isEqualToString:@"worm"]) {
[nod... | Like suggest from @user867635 '[SKAction setTexture:resize:]' is available from 7.1 .. so I found another solution to this problem:
when init the scene:
'''
_texture = [SKTexture textureWithImageNamed:@"worm2"];
[_texture preloadWithCompletionHandler:^{}];
'''
and after in 'touchesBegan' call this texture as above, 'pr... | |
23,891,258 | 1 | 23,891,437 | Is there a solution to debug a browser on specific state ?
Introducing an example:
I want to use 'typeahead.js' along with twitter bootstrap 3, but there are no styles available for that plugin. So I wish to style it by using a .
When I start typing, there is a floating block which appears with suggestions, i want to d... | yes you can right click on the element in the DOM tree and force the element state.
<URL>
you could also set a dom breakpoint:
<URL>
you could also place a breakpoint in the code:
<URL>
or a js breakpoint:
<URL> | |
21,771,474 | 1 | 21,771,713 | I have the following array of given shape:
'''
print sph_pos_count.shape
(250,7)
print sph_pos_count[:3]
[[ 30. 1.94421493 2.26455071 689.30568152 434.85076648
718.60031987 211. ]
[ 60. 1.94421493 2.26455071 671.44480704 456.32674497
707.65630274 160. ]
[ 90. 1.94421493 2.26455071 653.58393256 477.80272345
696.71228561... | Check your data, especially the last row, your code itself should work fine:
'''
a=np.random.normal(size=(250,7))
a[:,0]=np.arange(250)*1.0
plt.plot(a[:,0], a[:,6], c = 'r', marker= '1')
'''
<IMAGE>
As expected, you have repeating values, so this should do the trick:
'''
a=np.random.normal(size=(250,7))
a[:,0]=np.array... | |
26,409,885 | 1 | 26,410,293 | I'm trying to make a 'JComponent' opaque in the right border.
I want make a object with my specific characteristics so i'm using a 'JComponent' that can be opaque
this is because I will make a library, and I don't want to use 'JPanel' or 'JLabel'
'''
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
imp... | My suggestion for general ease of solving your problem: use a JPanel. Until you show good reason for not using this as the basis for your class, it remains in my mind the best solution for your problem. Otherwise, you'll need some code like:
'''
JComponent bordede = new JComponent() {
private static final long serialVe... | |
26,497,132 | 1 | 26,504,697 | Using SublimeText 2.0.2 with Python 3.4.2, I get a webpage with urllib :
'''
response = urllib.request.urlopen(req)
pagehtml = response.read()
'''
Print => 'qualite">
<META HTTP'
I get a "e" character within the unicode string!
The header of the pagehtml tell me it's encoded in ISO-8859-1
('Content-Type: text/html;char... | > I'm getting an UnicodeEncodeError (that's why I was encoding in 'utf-8') ! I should mention I'm running my code within SublimeText. It's seems to be my problem. Any solution ?
don't encode manually, print unicode strings instead.
### For Unix
Set 'PYTHONIOENCODING=utf-8' if the output is redirected or if locale (LANG... | |
10,383,860 | 1 | 10,384,675 | I need to show two different markers in my Google map. I am using rails 3 and Gmaps4rails gem.
I my controller I have
'''
@marker1 = User.find(1)
@marker2 = User.find(2)
@json = [@marker1,@marker2].to_gmaps4rails
'''
In view file
'''
<%= gmaps({
"map_options" => { "zoom" => 12, "auto_adjust" => false, "center_latitude"... | I have simply one answer: it's explained in the <URL>, within the 'Customize each marker' section.
There is also some alternative to add the styles in a block from your controller instead of model level. | |
29,910,356 | 1 | 29,942,501 | Not sure if the is achievable using the Core Plot framework, wondering if anyone has an idea on this? What I want is to have a bar chart with the X-axis having different labels to give additional info as the image below!
<IMAGE> | Core Plot can display attributed strings in titles and labels. Create custom axis labels and set the 'attributedText' on the label text layer. | |
17,257,157 | 1 | 17,261,713 | Please help me removing the price for bundled product options on the shopping cart page, checkout, etc. Here is a pic.
<IMAGE>
What do i need to do? | To remove this edit:
'''
Mage_Bundle_Block_Checkout_Cart_Item_Renderer
'''
Look for the _getBundleOptions() method and at around line 77 change it as follows
'''
//$option['value'][] = $this->_getSelectionQty($bundleSelection->getSelectionId()).' x '. $this->htmlEscape($bundleSelection->getName()). ' ' .Mage::helper('c... | |
24,601,802 | 1 | 24,645,002 | I want to create a manufacturer (brand in my case) filter using the layered navigation block and place this next to my default sorting
in ps 1.5 i did this by inserting this code at my category.tpl
'''
{include file="./modules/blocklayered/blocklayered.tpl"}
'''
<IMAGE>
So now my problem is when i do this step at prest... | i found the solution here, this error occurs because there were no values that is pass on to our page.. in order to include the blocklayered.tpl to work .. what i did is i transplanted the layered nav into my left column and display it to none.. in this case .. the values are pass to our page by the blocklayered.php | |
17,916,260 | 1 | 17,916,448 | Hi i write some code for images to be put side by side.I use Imagick library for that purpose.This is my code.
'''
$im = new Imagick();
// session contain image path like upload/my.jpg
$im->readImage("http://localhost/wordpress3.5/".$_SESSION['imgname']);
$im->readImage("http://localhost/wordpress3.5/".$_SESSION['preim... | You should use an image tag with the 'src' tags containing the direct or base64 version of the image.
First example would be direct:
'''
echo '<img src="http://localhost/wordpress3.5/'.$_SESSION['imgname'].'">';
'''
Second would be using base64 with the <URL>:
'''
echo '<img src="data:image/png;base64,'.base64_encode($... | |
10,166,128 | 1 | 10,166,160 | When I include my Application Bar's icon URIs, I have them in the folder...but it still shows the default "X" icon instead of mine. Here is my code:
'''
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
<shell:ApplicationBarIconButton IconUri="/Images/help.png" Tex... | Pay attention to how to compile the project. In particular check that the icon to include has this property: | |
21,313,575 | 1 | 21,314,740 | I have tried to create a drawable (ninepatch) and in textfieldstyle done this
'''
greenTextFieldStyle.cursor = getSkin().getDrawable("textFieldCursor1");
'''
But I can't see any cursor...
This is the current cursor image, I have also tried a 1 * 20 image without success.
<IMAGE>
it's basically a 3 * 3 image, with a + i... | Use 'getSkin().newDrawable("textFieldCursor1",Color.green)' and add a min width to it 'greenTextFieldStyle.cursor.setMinWidth(2f);'
here a compleat Skin inclusive "selectionframe":
'''
Skin skin = new Skin();
skin.add(
"background",
new NinePatch(this.game.manager.get("hud/ninepatchframe.png",
Texture.class), 5, 5, 5, ... | |
8,904,851 | 1 | 8,905,466 | I have a copy of my db in Supporting Files folder. I need update a couple of tables and I am trying to use method to make writeable copy of db.
'''
- (void) createEditableDatabase
{
BOOL success;
NSFileManager *fileManager = [NSFileManager defaultManager];
NSError *error;
NSArray *paths = NSSearchPathForDirectoriesInDo... | You copy the file even if the file already exists in the Document, I think NSFileManager copyFileAtPath: will return NO if file already exists at destination, hence failing your check and raising your NSAssert
'''
success = [fileManager fileExistsAtPath:writableDB];
if (success)
{
return;
}
'''
So the file isn't copied... | |
20,834,434 | 1 | 20,834,798 | ::
<IMAGE>
'''
public class BreakfastLunchDinnerIndividualListOfItems extends TabActivity implements OnTabChangeListener{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.breakfast_lunch_dinner_indiv... | '''
spec = tabHost.newTabSpec("Starters").setIndicator("Starters").setContent(intent);
spec = tabHost.newTabSpec("MAIN_COURSE").setIndicator("Main Course").setContent(intent);
'''
here 'Starters' and 'Main Course' are the titles of tabs. The easiest way to send this strings to bounded activities is to send them through... | |
6,489,182 | 1 | 6,489,270 | I am developing an IPhone cocos2d app with a scene like the the one depicted in the following image (I hope you can see that):
<IMAGE>
On the right there is a vertically scrollable menu contained in a separated layer (menulayer) which is itself contained in the main scene's layer. On the left there is a back button con... | You need to check you selectors. calls selectors from proper controls. check it carefully.Your problem shows your menu item 8 th selector bind with 4th same for others. some mis binding of selectors is present in your code so check them properly. | |
16,564,007 | 1 | 16,564,265 | I am trying to style the output of 'wp_list_categories' using CSS to put commas in between items. However, there is a whitespace appearing before the comma and I seriously cannot comprehend where it is coming from!
I have made a <URL> to demonstrate and compare.
Screenshot:
<IMAGE>
HTML:
'''
<ul id="category-listing">
... | The white space is appearing because it is there in your HTML code.
The closing '</li>' tag is on a new line. Carriage returns are counted as white space in HTML, and therefore you have white space at the end of the list item element.
The reason it is showing up is because you're using 'display:inline'. When usign 'inl... | |
9,122,640 | 1 | 9,123,413 | Here is the problem I'm trying to solve for my game.
I have this scenario:
<IMAGE>
I'm trying to solve for the position and size of the green rectangle. The circle is at 50%, 40% of the screen and its radius is proportional to the height of the screen.
The green rectangle must always be 10 pixels away from the bottom. ... | The thing to do in these situations is to describe the constraints mathematically, and see if it simplifies. This is an essential skill for geometric processing.
Let's assume the bottom left corner of the image area is (0,0). That puts the bottom-left corner of the rectangle at (10,10); we'll call the top-right corner ... | |
9,809,934 | 1 | 9,810,073 | The problem in my case is I can dynamically add / remove input boxes, but the problem is when I manually add a set of input box and remove button instead of press add button to create one, it can not remove it.
Is it possible to have 3 sets of input boxes but 2 remove buttons?
Thank you for any kind of help.
<URL>
<IMA... | Try setting the remove button actions when the document is loaded.
<URL> or use the code below.
'''
<script>
$(document).ready(function() {
$('.remove').click(function(){
$(this).parent().remove();
});
$("#add").click(function() {
var intId = $("#buildyourform div").length + 1;
var label = $("<label>Field Name</label>"... | |
14,262,744 | 1 | 14,263,666 | It was my assumption that the finally block always gets executed as long as the program is running. However, in this console app, the finally block does not seem to get executed.
'''
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleAppl... | When you get the "ConsoleApplication1" has stopped responding, you have two choices.
<IMAGE>
If you press cancel, the unhandled exception is allowed to continue until eventually the application is terminated. This allows the 'finally' block to execute. If you do not press cancel then <URL> halts the process, collects a... | |
25,193,126 | 1 | 25,196,053 | The JS fiddle is listed here:
<URL>
HTML section====
'''
<ul class = "trackAccordion">
<li class = "proTrack">
<a href="#">PROFESSIONAL TRACK</a>
</li>
<li>
<a href="#"><span class = "accoTrack"> CERTIFICATION TRACK </span> </a>
<ul class = "tracks" id = "cert_Track">
<li>DJ Certificate Program</li>
<li>Music Productio... | I think the problem is with the 'height' in the css below:
'''
.trackAccordion {
margin: 50px auto;
background-color: #2d2d2d;
height: 790px; //Check by commenting the height.
width: 296px;
border-radius: 5px;
color: white;
font-family: 'Helvetica';
font-weight: bold;
padding-top: 30px;
font-size: 1em;
text-align: cent... | |
16,643,899 | 1 | 16,645,158 | Hello Everyone i am trying to play video based on URL that i am getting through API but i am getting Error like Access Denied.
The reason why i am playing video in 'UIWebView' is because Video is not the Primary feature in my Application its just for Show Tutorial to the User so i have not used 'MPMoviePlayerController... | Add below method to your :
//This method should get called when you want to add and load the webview
'''
- (void)loadUIWebView
{
UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:currentURL]]];
[self.view addSubview:webView];
... | |
12,510,571 | 1 | 12,510,595 | I am creating a application for android, in which i am retrieving the name of sms gateway using the spinner. I have used api for sending sms, but my primary api is not supporting one website which other api support so i implemented validation to use the second api in case the user selects the website not supported by p... | Use '.equals()' to compare Strings in java.
'==' compares String Refrences(Memory Location)
'.equals()' compares Strings values.
'''
if(gateway_name.equals("ultoo")){
}
'''
- <URL> | |
72,320,072 | 1 | 72,321,330 | I am extremely inexperienced with Android Studio - and am having an issue with my imports. I'm trying to build an app that creates music from an 'ArrayList' of "note" objects (I've made this class - it has info on). I am trying to import midi driver (<URL> to play my music, but I keep getting an error when I try to wri... | You should add it in 'MyApp/app/build.gradle' like this :
'''
dependencies {
....
implementation 'com.github.billthefarmer:mididriver:v1.24'
....
}
''' | |
27,814,482 | 1 | 27,815,318 | I want to have a box in HTML such as this one:
<IMAGE>
Particular thing, I need to do this using only HTML (no PHP or particular langage requiring server, or particular installation).
The reason for this is that it is meant to be used for HTML pages that will be opened from a USB key, not a website, and it has to be us... | Think about not using a Form, but just using a Javascript function.
I'm not sure if this probably is not possible due to security reasons, but it could be a solution...
'''
function redirect() {
var input = document.getElementById("stuff");
window.location = input.value;
}
'''
'''
<span>NOM:</span>
<input type="text" i... | |
29,350,867 | 1 | 29,487,343 | I'm working on MATLAB on some regions inside an image. I'm at a point in which I would like to be able to separate regions which exhibit some kind of regularity (e.g., being circle-ish or square-ish) from regions which does not resemble any known figure and which for my application are mere noise. I'll illustrate this ... | I went for the easier road as suggested by @Mikhail in comments.
I found out 'regionprops' has a really helpful tool called <URL>. Quoting docs,
> Returns a scalar specifying the proportion of the pixels in the that are also in the region. Computed as Area/ConvexArea.
Convex hull is defined as the smallest convex polyg... | |
19,808,908 | 1 | 19,809,400 | I have a database generated by Entity Framework 6 code first.
When I run the following query from Visual Studio Express 2012 for Windows Desktop
'''
select * from calibrations
'''
Visual Studio changes it into:
'''
SELECT Id, CertificateNumber, Slope, Offset, Correlation, Covariance, Anemometer_Id, ApprovedBy_Id, Batch... | OFFSET is a reserved word, as documented here (with spelling mistake) <URL>, and enclosing in brackets solves the problem. Not sure why "This does not help" for you, as I cannot repro. | |
68,152,887 | 1 | 68,153,136 | I need to sum values in c3:c15 if v3:v15 is between 8am and midnight.
<IMAGE>
<URL> | try:
'''
=INDEX(SUM(IF((TIMEVALUE(V3:V15)>=0.33)*(TIMEVALUE(V3:V15)<=0.999), C3:C15, )))
'''
<URL> | |
8,083,401 | 1 | 8,095,833 | I ran into an issue when adding two navigation properties of the same type in a model, giving me this error :
'''
System.Data.SqlClient.SqlException:
Invalid column name : 'Createur_IdUtilisateur'.
Invalid column name : 'Proprietaire_IdUtilisateur'.
'''
This is the code (broken) that I have :
'''
public class Billet
{
... | Shortly after asking I realized my mistake, this is how I fixed it :
'''
public class Entities : DbContext
{
...
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
...
modelBuilder.Entity<Billet>()
.HasRequired(b => b.Createur)
.WithMany()
.HasForeignKey(b => b.IdUtilisateurCreateur);
modelBuilder.E... | |
35,185,083 | 1 | 35,196,764 | I am developing a component for Communique 5 (CQ5, now AEM) using JSP, HTML and JavaScript; and I found some trouble when trying to create two dropdowns for which the values of the second one will depend on the values on the first one.
In the component dialog (dialog.xml) I have two 'select' similar to these ones (simp... | You can try something like:
- - instead of nodes-options use optionsProvider for you component with colors:'''
function(path, record) {
return [{
text:"Dark Blue",
value:"dark-blue"
},{
text:"Light Blue",
value:"light-blue"
},{
text:"Dark Green",
value:"dark-green"
},{
text:"Light Green",
value:"light-green"
},{
text:"... | |
23,686,405 | 1 | 23,687,749 | I'm trying to mock a backend for an app that I'm building using Angular JS.
I have the following code to mimic a successful request to log in:
'''
// Login
$httpBackend.when('PUT','/v1/token/',{
'domain' : 'farmers',
'username' : 'user',
'password' : 'test'
}).respond({
'token' : 'lalskdfjlskadjfklsadjf'
});
'''
Of cou... | I think that your continuing problems stem from what you're returning from your 'response' method. This worked for me:
'''
$httpBackend.when('PUT','/v1/token/')
.respond(function(method, url, data, headers) {
var validLogin = {
'domain' : 'farmers',
'username' : 'user',
'password' : 'test'
};
if ( data !== JSON.stringi... | |
27,094,723 | 1 | 27,095,133 | I have the following graph in Matlab:
<IMAGE>
I have tried using ''xTick'' and ''yTick'' to make the axis on each subplot the same, but it's not accomplishing what I would like it to. I also want the both axes of each subplot to share the same range so that I can easily compare the graphs. (i.e. ranging from 0 - 20, in... | If you want the axes limits to stay linked as a user interactively zooms or pans, you can also use the 'linkaxes' command...
'''
subplot(1,2,1)
% your plotting code here...
ax = gca; %get the handle to the current axis
subplot(1,2,2)
% your plotting code here...
ax(end+1) = gca; %get the handle to the current axis
link... | |
16,774,781 | 1 | 16,777,679 | While using the <URL> the fragments is always wrapped in a .
This is my :
'''
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="mainActivityRoot" >... | It seems like you are using the support v4 library and you forgot to put and id to your fragment xml tag :), so:
>
It comes from <URL> where you can see this:
'''
f.mView = NoSaveStateFrameLayout.wrap(f.mView);
'''
The reason for this is backwards compatibility and it is better explained in the comment header of 'NoSav... | |
64,023,822 | 1 | 64,024,099 | yaml.parser.ParserError: while parsing a block mapping in "./docker-compose.yml", line 1, column 1 expected , but found '' in "./docker-compose.yml", line 2, column 3
please help me find the error
'''
version:"3"
services:
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSW... | Your indentation is off, version and services need to be on the same level. And you're missing a space between 'version:' and '"3"'.
'''
version: "3"
services:
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
web:
build: .
command: python manage.py runserver ... | |
28,825,277 | 1 | 28,825,683 | I installed iReport-5.6.0 on my system. I have jadk - 1.6.0_37 installed on my machine.
When I double click on iReport icon on my desktop, initially it shows loading cursor for 1-2 seconds and then disappeares. After that there is no responce.
I am not getting exactly what happening or what do I need to configure.
I ed... | I got the solution :)
I replaced installation directory from to and updated my jdk path in . Now its working fine. | |
44,931,576 | 1 | 44,932,200 | I have a code like this:
'''
<div class="article-container">
<div class="article">
<h3>title1</h3>
<p>article1</p>
</div>
<div class="article">
<h3>title2</h3>
<p>article2</p>
</div>
<div class="article">
<h3>title3</h3>
<p>article3</p>
</div>
<div class="article">
<h3>title4</h3>
<p>article4</p>
</div>
</div>
'''
and ... | Nothing wrong with flexbox for this layout.
There's no need to use a pseudo-element.
'''
.article-container {
display: flex;
flex-wrap: wrap;
}
.article {
flex: 0 0 50%;
padding: 10px;
}
* {
margin: 0;
box-sizing: border-box;
}
'''
'''
<div class="article-container">
<div class="article">
<h3>title1</h3>
<p>article1</p... | |
26,283,135 | 1 | 26,284,544 | I have successfully followed this thread
<URL>
But it seems like it cannot scan Qr Code. Here is the screen shot from phone:
<IMAGE>
I have tried scanning a barcode image and it works fine. But not with QR images.
Any idea?
'''
var scanner = cordova.require("com.phonegap.plugins.barcodescanner.barcodescanner");
scanner... | Copying from my comment as it seems to be the answer: That QR code does not have a margin, which is probably why it won't scan. | |
3,528,427 | 1 | 3,528,484 | I ve applied a background to my page like this,
'''
body
{
background:#FFFFFF url('images/color.png') repeat top left;
color:#666666;
font-family:Arial,Helvetica,sans-serif;
font-size:80%;
font-style:normal;
font-variant:normal;
font-weight:normal;
white-space:nowrap;
margin:0 auto;
height:100%;
}
'''
This seems to wor... | IE6 hates pngs..:) leave alone rendering them in background..! you will need some sort of PNGFix for this.. I usually use <URL> | |
19,046,070 | 1 | 19,047,540 | In io7,the status bar on top a view is a nightmare.Fortunally i managed to make it work so it will be placed above the view.I did it like this:
'''
- (void)viewDidLoad
{
[super viewDidLoad];
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
self.view.backgroundColor=[UIColor colorWithRed:(152/255.0) g... | I have same problem... and solve my proble...
Add The key in .plist file
'''
'View controller-based status bar appearance' and set to NO.
'''
And add in appDelegate.
'''
[application setStatusBarHidden:NO];
[application setStatusBarStyle:UIStatusBarStyleDefault];
'''
Note:- change the '**setStatusBarStyle**' according ... | |
26,443,917 | 1 | 26,444,467 | I am creating an adder and accumulator using structural only. Below is what I have do far:
'''
module adder_and_accum(add, clb, clc, iac, x2, in, acc, carry, carrynot, qn2, qn3, qn4, qn5);
input add, clb, clc, iac, x2;
input [3:0] in;
output [3:0] acc;
output carry, carrynot, qn2, qn3, qn4, qn5;
wire adder1in2, adder2i... | Switching to the built in flip flop in xilinx fixed the issue:
'''
FDRE FDRE_inst (
.Q(acc[0]), // 1-bit Data output
.C(x2), // 1-bit Clock input
.CE(ce), // 1-bit Clock enable input
.R(clb), // 1-bit Synchronous reset input
.D(sum4) // 1-bit Data input
);
'''
I was able to just use a wire to tie the outputs of the fli... | |
24,156,557 | 1 | 24,156,697 | I'm working on android mobile app.(I'm new to this field )<IMAGE>
I'm having trouble in creating listing screen with image, (as in image) any help would be appreciated. Thanks in advance
Below is my code
'''
<ImageView
android:id="@+id/img"
android:layout_width="wrap_content"
android:layout_height="match_parent"
androi... | Actually there is a lot going on so I recommend you to check this tutorial <URL> | |
43,438,115 | 1 | 43,438,311 | I created a small network topology in Omnet++ and the red pointer(cMessage) is working normally from device to another device etc , but I want to modify for example Router device that (if cMessage come in to Router device from its input interface01 , send cMessage or emit cMessage from its output interface02 to another... | One can use 'getArrivalGate()' to determine a gate on which message arrived. An example:
'''
cGate * gate = msg->getArrivalGate();
if (gate->isName("interface01")) {
// do something
}
''' | |
61,788,288 | 1 | 61,795,566 | I am trying to achieve a cut off border on two points of the browser. top left and top right. I am trying to get the black borders not to scale. Meaning the parts always remain the same width / height while also leaving the extra 7% vh at the bottom. currently I am using a clip-path. Im trying to do this without using ... | You can try mulitple background like below:
'''
.box {
margin:10px;
height:300px;
background:
linear-gradient(to top left,transparent 47%,#000 50%) top /100% 10px,
linear-gradient(to bottom left,transparent 47%,#000 50%) left /10px 100%,
linear-gradient(to top right,transparent 47%,#000 50%) right /10px 100%;
backgroun... | |
23,559,185 | 1 | 23,579,455 | I have a table in sqlserver with 55k geometry points. Each point are 5 meters apart and have a value assigned to them. My task is to draw these points in a google map.
Early I concluded that google maps could not handle drawing the 55k points. So I figured I had to group the points by value (10% intervals, 1-9,10-19 et... | "Each point are 5 meters apart and have a value assigned to them."
That sounds a lot like you can treat the point set as a sparse 2D (boolean) matrix. You can use this to remove redundant points in the center of the shape. This could be applied to alpha shapes as well, but it only works well when the points are tightly... | |
13,524,772 | 1 | 13,524,811 | I have simple JS loop
'''
jQuery('#checkbox-counter').live('click', function(){
jQuery.get('index.php?option=get_site_list=true',
function(data){
console.log(data[1]);
for(var index in data[1].id){
console.log(data[1].id[index]);
console.log(data[1].name[index]);
}
},
'JSON'
)
});
'''
The problem is shown in the screen... | The 'data[1].id' and 'data[1].name' properties you are looping through are arrays, so you should use a conventional 'for' loop rather than 'for..in':
'''
for(var index = 0; index < data[1].id.length; index++){
console.log(data[1].id[index]);
console.log(data[1].name[index]);
}
'''
When you use 'for..in' it gives you ot... | |
20,626,687 | 1 | 20,626,959 | Some times I see a black-dotted border like line around text or content when clicked. That mostly happen with Firefox. I tried to set 'border: none;' to get rid of it with no success.
<IMAGE>
Here is the sample code:
'''
<div class="main">
<div class="sub">
<button>Show</button>
</div>
</div>
<span>
<button class="styl... | I have faced similar issues in the past and it's usually been a simple trick to stop this dotted line syndrome from appearing on your content. This is how I do it:
'''
outline: 0;
border: 0;
''' | |
64,409,332 | 1 | 64,412,524 | I dont really know how to ask this question but I will do my best to explain. I have a project on arduino with a gps, I transfere the geo point via serialdata on my pc. I can read it without probleme, but where I need help is how I can draw a path of that point. for the moment I use this:
'''
void MainWindow::paintEven... | You can use 'QTransform' to scale and move the polygon. 'QPainter' scaling will increase the width of the drawing line.
Use 'QPolygonF::boundingRect()' to get the original points' size and scale from there.
'''
#include "mainwindow.h"
#include <QPainter>
#include <QPolygonF>
#include <QDebug>
MainWindow::MainWindow(QWi... | |
22,089,951 | 1 | 22,090,095 | I am transforming image2 with respect to image1 using 'warpperspective' function of opencv.
the ourput image is as below. Can anybody tell me how I can know the co-ordinate corner pointed below in the image?
the code for warprospective is as follows -
'''
std::vector< Point2f > points1,points2;
for( int i = 0; i < matc... | In order to find the coordinates of the corners of the warped image, you can do the following:
'''
cv::Mat_<float> p(3,1), c_topleft, c_topright, c_botleft, c_botright;
p(0)=0; p(1)=0; p(2)=1;
c_topleft=H1*p; c_topleft/=c_topleft(2); // Top-Left corner
p(0)=input2.cols-1; p(1)=0; p(2)=1;
c_topright=H1*p; c_topright/=c_... | |
29,343,959 | 1 | 29,344,005 | I am applying Wavelet decomposition of 4 Level but <IMAGE>while reconstructing the same RGB image its coming in 3 parts. code is as below
'''
fullRecon = cAA{nLevel};
for iLevel = nLevel👎1,
fullRecon = idwt2(fullRecon,cHH{iLevel},cVV{iLevel},cDD{iLevel},'db1');
end
figure, imshow(uint8(fullRecon)),title('Full Recont I... | Try
'''
fullRecon = reshape( fullRecon, size(fullRecon,1), [], 3 );
''' | |
19,151,309 | 1 | 19,151,434 | I have implemented a navigation item with a left button, a title view, and a right button. The back button is set to "hides".
On some left transitions, a blue ellipsis appears momentarily.
<IMAGE>
Any ideas as to what this is and how to get rid of it? | I made it go away by setting the tint colour to transparent:
> self.navigationBar.tintColor = [UIColor clearColor]; | |
27,667,057 | 1 | 27,667,098 | In my android application I have categories that stored in categories table of database. And I want to assign icons for each category. Category table looks like:
<IMAGE>
The problem is that I am not able to use drawable constants that defined in R file because they are not static and will be changed from build to build... | Why don't you simply use the ?
You can , for the given resource name and type.
Add this method to your code:
'''
protected final static int getResourceID
(final String resName, final String resType, final Context ctx)
{
final int ResourceID =
ctx.getResources().getIdentifier(resName, resType,
ctx.getApplicationInfo().p... | |
8,770,299 | 1 | 8,776,670 | I just installed MonoDevelop, but I cannot refresh the add-in repositories (see picture)
<IMAGE>
Version info: | Removing the last revision part of the repository url fixes the problem:
'''
http://addins..../2.8.5.1 > http://addins..../2.8.5
''' | |
30,480,765 | 1 | 30,481,299 | I am interested to implement a window taskbar notification function similar to what skype has, whereby there is a small circle is pinned on the bottom right side of the taskbar with the number when there is a incoming message.
<IMAGE>
But however I don't know what to search for. Please help. | AWT provides an API for system tray (note that not all platforms are supported): <URL>
If you want to change the image (e.g. showing the number of incoming messages), then you can provide a new image using: <URL> | |
22,010,225 | 1 | 22,010,307 | I don't know how to create layout on the following image. I mean "white boxes with 3-dot menus".
Preview:
<IMAGE> | There are quite a few OS libraries that help you implmenting the classic Google/Android Card UI.
- <URL>
those are the most common, you can either use them or import into your code the resources that you need | |
18,828,748 | 1 | 18,829,036 | I am having a great deal of trouble tracking down a syntax error that rails keeps telling me is in my code but for the life of me I cannot see it!
I get the following error:
'''
syntax error, unexpected keyword_ensure, expecting end-of-input
'''
at the line 'render :action => "modal", :layout => false'
and whatever I d... | view error:
I think you have to check out your view code. I think you misunderstand your error. I think the error is in your view template and not in the controller action. In your screenshot at the top of the image the following sentence shows you the place of your error: "SyntaxError at app/views/appointments/new".
T... | |
8,449,500 | 1 | 9,296,978 | '''
XamlParseException: [Line: 0 Position: 0]
StackTrace
at MS.Internal.XcpImports.CheckResult(UInt32 hr)
at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.Mea... | Thanks Borislav! The project was silverlight but there was no Silverlight 5 involved unfortunately. The problem was resolved after updating the telerik controls and now I have ran into it again. If I comment out all of the telerik controls it loads the design view in Blend again. I'd really like to know if anyone else ... | |
11,206,876 | 1 | 11,295,676 | i want to integrate jsf2.0 and spring 3.1 and hibernate 4.1. but tomcat has error 404:description The requested resource (/jsfspringhiber/page/default.jsf) is not available.
what is wrong?
<IMAGE>
following is my web.xml:
'''
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-in... | i use maven. the correct answer is <URL>
the structure is:
<IMAGE> | |
22,415,849 | 1 | 22,415,919 | I'm working with the billing part of my system and I put an event in my 'TextBox' using javascript and I have two textboxes. First is the 'cashonhand' and 'change' textboxes. But what I'm wondering is why the comparison between two textboxes is not giving me the right answer. Here is my code:
'''
$(document).ready(func... | You're comparing alphabetically instead of numerically.
Note that '.toFixed()' <URL>:
> > A string representation of number that does not use exponential notation and has exactly digits after the decimal place.
You'll want to do this comparison you call '.toFixed()'
'''
var cash = parseFloat(Number($('.cashonhand').val... | |
30,982,296 | 1 | 30,982,407 | I am trying to make the text stay on the right of the jQuery UI accordion icon.
This is how it is rendered.
<IMAGE>
Here is the markup, I' m using bootstrap as you can see
'''
<div class="panel" id="accordion">
<div class="panel-heading">
<span class="panel-toggle">
2015
</span>
</div>
<div class="panel-body">
<table c... | have you tried to apply style 'display : inline-block;'
to the accordion icon and to your text block ? | |
19,947,266 | 1 | 19,947,333 | <IMAGE>
I have an interesting problem I'm trying to solve. I have this donate button that's created using the following the css.
'''
#donate-button {
width: 211px;
position: absolute;
background: #FFBC2F;
color: #FFF;
left: 1140px;
right:1340px;
z-index: 30;
top: 0px;
transition:width 2s;
transition:left 2s;
transition... | '''
transition:width 2s;
transition:left 2s;
transition:bottom 2s;
'''
You are the 'transition' property here two times, so that only the last value finally "survives".
You have to put all three values you want to animate into 'transition' property,
'''
transition:width 2s, left 2s, bottom 2s;
''' | |
7,184,037 | 1 | 7,184,072 | I have some question regarding fb app ticker, I already ask this question on facebook development forum but its been a few days now and to no avail. You see, I have develop my very first facebook app called <URL> but every time I use it, my app ticker on the top right corner of my screen is showing a different name. I ... | I would suggest using the Facebook Linter to refresh the cache on your application and see if it helps.
<URL>
Also make sure that you are using the correct appid and secret in your app. | |
28,940,053 | 1 | 28,943,698 | I have been trying to add custom fonts and custom sizes in select boxes provided with the 'RichTextArea' of Vaadin.
<IMAGE>
How do I do this? | There is no "server-side" way to handle this (up to including Vaadin 7.4). As the <URL> states:
> 'RichTextArea' inherits 'TextField' and does not add any API functionality over it. You can add new functionality by extending the client-side components 'VRichTextArea' and 'VRichTextToolbar'.
So now have a look at the so... | |
15,444,418 | 1 | 15,444,993 | I've been an old project. I found when the old programmers tried to use the 'SetFocus()' of 'TWinControls' they surrounded them in try/catches with empty catch blocks. Thus swallowing the exceptions.
The default behavior of the program is to set the focus if the control is enabled. In order to do that I created a funct... | Thanks goes out to @KenWhite for his suggestions in question ( <URL>
His suggestions in that question lead me to the answer. Below is the code others might be interested in:
'''
#include "winuser.h"
...
void SafeSetFocus(TWinControl *Control)
{
THandle* hWnd = (THandle *)(Control->ParentWindow);
bool parentIsVisible = ... | |
19,411,104 | 1 | 19,444,018 | I developed a webview based android app , tested it - worked fine , uploaded to Google Play , and when I go to see the app I get This app is incompatible with all of your devices - I had wildfire and now I have Media Pad 7 inch tablet.
This is my manifest file
'''
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:... | It seams that the problem is in fact that in my country Serbia , payed apps can be bought only by using some phones that have installed new versions of Google Play app . This seems to be the problem since other users abroad using same types of phones are allowed to use the app. | |
70,894,683 | 1 | 70,895,192 | My window function is not capturing the first row with "Rate" = null. As there is only one country code there should be single window right?
The expected output should be 20.519 for column "New" in all rows.
'''
from pyspark.sql.functions import first
from pyspark.sql.window import Window
W = Window.partitionBy(DF.Coun... | This is because the frame of the windows is assumed implicitly by Spark as 'RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW' (see <URL> hence, for 'Date' '202201' 'New' is null. Since no row before it has a non-null 'Rate'. Explicitly defining the frame will resolve the issue.
'''
data = [("202201", "MXN", None,),
("... | |
54,085,531 | 1 | 54,085,669 | In Eclipse (2018-09) Problems tab, I have thousands of warnings, but it display only 100 warnings,
I follow <URL> suggestion:
> In your Eclipse IDE Preferences (whether its Eclipse, Flex Builder or Adobe ColdFusion Builder), any Eclipse based IDE, you will find this setting under Java->Compiler->Building.
<IMAGE>
But I... | This applies to eclipse neon, on problems view click on triangle pointing down on top-right corner. Then select "Configure Contents...". Under "Number of items visible per group" enter the value what you want. | |
74,776,587 | 1 | 74,776,860 | I am trying to convert numeric values into times and dates. I am working with a data set so it would be appreciated if you should show an example using a dataset.
Here are some examples, converting 93537 into 09:35:57 (HH:MM:SS). Additionally, I need to convert 220703 into 22-07-03 (YY:MM:DD).
I will add an example of ... | Use chron 'times' class to get the times or if a character string is wanted use as.character on that. Use 'as.Date' to get a 'Date' class object. The 'sub' puts colons between the parts of the time after which we can convert it to 'times' class. The 'sprintf' pads the date with 0 on the left if it is only 5 characters ... | |
27,314,818 | 1 | 27,316,916 | I have created a custom subclass of UIView along with a xib file and declared IBOutlets and IBActions within the custom class.
'''
@interface ContactUsView : UIView
@property (nonatomic, weak) IBOutlet UIButton *displayCloseButton;
- (IBAction)callButtonPressed:(id)sender;
- (IBAction)emailButtonPressed:(id)sender;
- (... | > * Files owner = to my custom class
Wrong. Files owner should be empty. The view itself is files owner. It means that you should connect all actions and outlets with 'ContactUsView' in your xib.
> [[NSBundle mainBundle] loadNibNamed:@"ContactUsView" owner:self options:nil]...self = (ContactUsView *)object;
After you p... | |
11,119,333 | 1 | 11,119,423 | <IMAGE>So, I'm almost done with the functionality part for the app I'm developing and now the graphic designer gives me a png image I have to match the xib to. The image has a 'search agent' section with select country,region,language,type of property and two textfield. Originally in my xib I had separate buttons for e... | It really depends on what you want, often people like to use tableviews simply because they group the elements nicely, this is very common in login screens for instance.
But that does not mean one is better than the other is really just a design choice. That being said having buttons inside tableviews can create issues... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6