id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23515300 |
If the socket sockfd is of type SOCK_DGRAM then addr is the address to which datagrams are sent by default, and the only address from which datagrams are received.
The following C program seems to reveal an error in the Linux implementation of connect/recv on UNIX domain sockets, as it receives a message from an addr... | |
doc_23515301 | I'm probably missing something really stupid and ask that someone point me the right way:
void resize (String pdfIn, String pdfOut, float x, float y, float scale) {
PdfReader reader = new PdfReader(pdfIn);
List <HashMap <String, Object>> bookmarks = SimpleBookmark.getBookmark ( reader ) ;
// landscape letter:
Document ... | |
doc_23515302 | ||
doc_23515303 | an example of what I need would be so but it doesn't work
ffmpeg -i irregular.mp4 -i intro.mp4 -i outro.mp4 -filter_complex "[0]scale=1080:610:force_original_aspect_ratio=increase[scaled];[scaled]crop=1080:610[cropped];[cropped]setdar=16/9[a];[2]scale=1080:610:force_original_aspect_ratio=increase[scaledIntro];[scal... | |
doc_23515304 | <%= f.input :cases, collection: 0..500, label: "Number of new cases of ILD per month (approx)", class: 'form-control' %>
The data type in the DB is integer. Is there a clever Rails/Ruby way of creating ranges in the select such that......0-50, 51-100, 101-150 etc. with the database set up as it is? My users are asking... | |
doc_23515305 | Update:
I played around with this and managed to get the code below to work. However, it's a bit clunky for several reasons:
*
*It's using a lot of casting. It would be much neater to declare a struct and use this.
*I can only show the IPv6 groups as hex with the '0x' header which makes the address a bit messy.
*I... | |
doc_23515306 | <img blabla ng-src="{{test.bla.path }}">
I printed out the test.bla.path and did this:
<img blabla ng-src=" and I copied the text that top scope returned in here ">
and it worked. O.O
The image displays but I do things with this image after it loads but this just seems to not work on IE 11 if I do it like I did in fi... | |
doc_23515307 | I created a project on my desktop and i added android platform to the project but when i try to add IOS platform using the command-
cordova platform add ios
Iam gettting error shown in the image
I am not able to get what the problem is. Please help !!!
Project name is CorwiV1.
A: First You need MAC os and Develope... | |
doc_23515308 | Without the decimal places, suppose if I want to deduct 2% amount from original (where 2 is the rate), this is how I am accomplishing it:
let original = token_value[0].amount;
token_value[0].amount = original * Decimal::percent(98);
What if I want to also define the decimal places in rate and then make the deduction... | |
doc_23515309 |
table#demotable {
table-layout: fixed ;
width: 100% ;
border-collapse: collapse ;
border: 1px black solid ;
}
table#demotable td {
width: 50% ;
border: 1px black solid ;
padding: 10px ;
height: 60px;
}
table#demotable caption {
font-style: italic ;... | |
doc_23515310 |
Above says: "Do you want to leave this page? You have unsaved data, do you want to conitnue without saving your changes?"
It works well and is a lot of functionality in very little code:
<script>
$(function() {
// Set the unload message whenever any input element get changed.
$(':input').on('change... | |
doc_23515311 | x = 1:100;
I would like to form a single data structure "bin" as shown below:
bin(:,1) = x(1:33); % copy 33 elements into 1st bin
bin(:,2) = x(34:66); % copy another 33 elements into 2nd bin
bin(:,3) = x(67:100);% copy remaining 34 elements into 3rd bin
However, matlab will not allow for the last 34 elements to be... | |
doc_23515312 | Thanks
A: One way to achieve this would be to just use a wrapper. For example you could use code like this:
HTML
<div id="wrapper">
<!-- Your Code Here -->
</div>
CSS
#wrapper {
height: 80%;
}
So simply you would just put that #wrapper around all of your code (of course after the body), and it would make the... | |
doc_23515313 | My html template looks like this:
<div class="brick"
*ngFor="let iteration of numberOfBricks; let lastBrick = last"
[ngClass]="{ongoingTimelineEventView.getEventClass(), 'no-margin':lastBrick}"
[ngStyle]="{'width.px':brickPropotion.width,'height.px':brickPropotion.height}">
</div>
However that doesn't work and I get ... | |
doc_23515314 | IntelliJ has it's .idea/ folder and it's .iml files.
Eclipse has its .classpath and .project files.
Eclipse Maven integration used to need a m2e-lifecycle configuration in the pom.xml (not sure if this is still the case)
I've seen projects in the past,
*
*where Eclipse artifacts (.classpath, .project) have been sto... | |
doc_23515315 | Joann 15
Maria 13
Peter 19
My CSV gives me 1 row and 6 columns as shown below:
Joann 15 Maria 13 Peter 19
Here is the code I am using.
row_lines=[]
for i in list_people:
info = inspect.getmembers(i)
name = info[1]
row_lines.append(name)
age = info[2]
row_lines.append(age)
with open('test... | |
doc_23515316 | The contents of /home/myuser/somedir are:
blah.txt
fizz.gif
buzz.jpg
widget.log
...from a template like so:
The contents of <%dir%> are:
<%contents%>
I read the excellent Vogella tutorial on FreeMarker, but not really sure how to put this all together: once I query the directory for its contents, ... | |
doc_23515317 | After asking my lecturer if that was a mistake he said no. After showing him the C90, C99 and C11, where it is clearly written that a character constant has type int he still didn't say it was a mistake.
So before asking him again I wanted to assure myself that I got it the right way, and why it is that way, because it... | |
doc_23515318 | For instance, the compiler would know I am constructing a float here: std::make_shared(5f), but I have to do make_shared<float>(5)
| |
doc_23515319 | GRAVE: StandardWrapper.Throwable
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pessoaController': Unsatisfied dependency expressed through field 'pessoaService': Error creating bean with name 'pessoaService': Unsatisfied dependency expressed through field 'pessoaReposi... | |
doc_23515320 | Thanks in advance.
A: What you are likely referring to is a state variable, which is generated on page A and passed back on page A+1. You will need to handle this with manual correlation.
Automation in correlation is not meant to replace manual correlation, only to improve the efficiency of the developer when the pa... | |
doc_23515321 | I have tried 2 different methods.
First URL is
https://api.softlayer.com/rest/v3/SoftLayer_Dns_Domain_ResourceRecord/getObject.json?objectMask=mask[domain]&objectFilter={"resourceRecord":{"host":{"operation":"dsn-p01"}}}
This returns RC 500, MSG "Internal Server Error", CONTENT '{"error":"Object does not exist to exe... | |
doc_23515322 | The x-axis shows the time but I am not sure about the y-axis. Is it amplitude ?
spf = wave.open('Sound.wav','r')
plt.figure(5)
signal = spf.readframes(-1)
signal = np.fromstring(signal, 'Int16')
plt.title('Initial Conversation')
plt.axis('on')
plt.plot(sign... | |
doc_23515323 | Sub Not_Planned()
Sheets("All Data").Select
RowCount = Cells(Cells.Rows.count, "a").End(xlUp).Row
For i = 1 To RowCount
Range("M" & i).Select
check_value = ActiveCell
If check_value = "not planned" Then
ActiveCell.EntireRow.Copy
Sheets("Not Planned").Select
RowCount = Cells(Cell... | |
doc_23515324 | grep -A 7 "Input orientation:" test.log | grep -A 5 "C" | awk '/C/{print "structure number"}1' | sed '/--/d' > test.out
This helped me to grep all the input coordinates and insert a line with "structure number". So now I have a file that contains a pattern which is being repeated in a regular fashion. The file is li... | |
doc_23515325 | This is the client:
while(strcmp(sir,"0")!=0)
{
printf("Text number %d:", i);
i++;
scanf("%s",sir);
printf("\n");
sirLen=strlen(sir);
for(j=0;j<sirLen;j++)
{ c=sir[j];
printf("%c",c);
sendto(sock, &c, sizeof(char), 0, (struct sockaddr *)&ServAddr, sizeof(ServAd... | |
doc_23515326 | But I'm now finding possibility to move Azure SQL but it says CLR Assembly is not supported.
Is it sure that Azure SQL doesn't support CLR Assembly and no way to do it?
Msg 10341, Level 16, State 100, Line 5
Assembly 'MyProject.SQLCLR' cannot be loaded because Azure SQL Database does not support user-defined assemblies... | |
doc_23515327 | I have the latest Windows 8.1
Thanks for the help!
Here's a screenshot:
A: Funny. The path caused it. The shortcut contained a parameter, the location of the installation. That path had a whitespace in it. It was within "-s but somehow the XDK couldn't load it. Reinstalled it to an another path (simply D:\Intel\XDK) ... | |
doc_23515328 | Now i am facing the problem is that i am unable to hide the scrollbar. When i tried to hide scroll bar a black splitted image appear
If TypeOf (sender) Is VScrollBar Then
Dim scrollBar As VScrollBar = CType(sender, VScrollBar)
If TypeOf (scrollBar.Parent) Is KryptonExtendedGrid Then
... | |
doc_23515329 |
A: You could do what you want in your own validationrule.
If you look at:
https://msdn.microsoft.com/en-us/library/system.windows.controls.validationrule%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
else
{
// show a message box or something
return new ValidationResult(true, null);
}
You may well find there... | |
doc_23515330 | My question is on how to restrict some of the rules in the resultant security group that gets created by the aws_directory_service_directory resource. How do you remediate this using terraform on a resource that is a by-product of another?
| |
doc_23515331 | import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Label;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTabbedPane;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.ButtonGroup;
import javax.swing.JCo... | |
doc_23515332 | $nic1IP=[string] $args[0]
$nic1Mask=[string] $args[1]
$nic1GW=[string] $args[2]
if ( ("$nic1IP" -ne $null) -and ("$nic1Mask" -ne $null) )
{
$wmiList=[Array](get-wmiobject -class win32_networkadapterconfiguration -filter ipenabled=true -computername .)
foreach ($nicItem in $wmiList)
{
$nicItem.Ena... | |
doc_23515333 | Below is the code and would like your help to make it better if its correct and correct it if its not correct way of doing it.
Code Snippet:
table1 = self.browser.find_element_by_id('user-list-table')
trows = table1.find_elements_by_tag_name('tr')
for trow in trows:
tcols = trow.find_element_by_tag_name('td')
f... | |
doc_23515334 | If input does not begin with "BR", Remove "L" suffix.
Constraints:
Formula can only use the following functions (no Regex):
*
*if
*right
*left
*mid
*or
*and
*len
Possible input value patterns/examples:
*
*BR3L
*BR40L
*BR500L
*BR600L
*0L
*5L
*60L
*700L
*8000L
What I've figured out so far:
Formula tha... | |
doc_23515335 | $html_body .= 'Lorem Ipsum is simply dummy text of the printing and typesetting industry';$html_body .= 'Lorem Ipsum is simply dummy text of the printing and typesetting industry';
i just want to break page so that both the paragraph appear on different page.
Please help me out.
Thanks
A: If you are using embedHT... | |
doc_23515336 | Middleware code
const PPStrategy = require('passport-paypal').Strategy;
passport.use(
new PayPalStrategy(
{
clientID: 'My Paypal clientID',
clientSecret: 'My PayPal secret Id',
returnURL: 'localhost:4000/paypal/callback',
... | |
doc_23515337 | myTextView.setText(largText);
myTextView.getViewTreeObserver().addOnGlobalLayoutListener
(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
Layout layout = myTextView.getLayout();
int numOfLines = layout.getLineForVertical(myTextView.get... | |
doc_23515338 | java.lang.NoSuchMethodError: org.wso2.carbon.um.ws.api.stub.RemoteUserStoreManagerServiceStub.addAnonymousOperations()V
i'm using the latest .jar file version.
My jar file version is 5.2.0 and my WSO2 identity server version is 5.2.0
they are the same but still im getting this error. i can't continue to other tutoria... | |
doc_23515339 | How would I accomplish this? (I am an amateur programmer and I would really appreciate some help and guidance)
Example:
*
*Using this spreadsheet: https://docs.google.com/spreadsheets/d/1aNxCQhpagiO9hTWH_joeQncG3mDCh8I21puf9r0EQcY/edit?usp=sharing
*Assuming the prefix for the bot is an exclamation mark (!)
When t... | |
doc_23515340 | @DonMag Solved this, see @DonMag's comment
So I'm very new to this. I have no background in coding. I'm an automotive repair technician (fancy term for mechanic).
This is my first attempt.
I built a simple calculator with a UITabBarController.
Every single thing I wanted the app to do, I googled and learned how to do i... | |
doc_23515341 | The new generation MMORPG games are trying to bridge their trading post (auction) systems on webserver, so the players can use it without any hassle even from their mobile phones.
The last example of it is Guild Wars 2. Basically, the system works like this:
1. You login a locally running client.
2. Open up the auction... | |
doc_23515342 | So far, I ended up using https://github.com/L-Briand/ShadowLayout most of the time.
Although it works fine for static views of any shape, it bugs a lot in any animation.
I'm looking for a better or easier way. Any suggestions?
My UIs have lot of irregular shapes (not just rounded rectangles) also it has to be at least... | |
doc_23515343 | QFile fileHandle("c:/file.txt");
if(!fileHandle.open(QFile::ReadOnly|QFile::Text))
return;
QTextStream fileContent(&fileHandle);
fileContent.setCodec("UTF-8");
fileContent.setGenerateByteOrderMark(false);
ui->plainTextEdit->setPlainText(fileContent.readAll());
fileHandle.close();
A: I haven't work too much with r... | |
doc_23515344 | I can read the image once its downloaded by doing docker images --digests which gives me a hash I can use, but I do not know where I can find something to compare to on docker hub
docker images --digests
REPOSITORY T... | |
doc_23515345 | So, i am trying to request a submites value using request as below:
HTML
<input type="text" id="turma_nome" name="turma[nome]" required="required" maxlength="10">
PHP
$request->get('turma[nome]')
But it doesn't work.
How can i request do it please?
A: You probably are using POST to send the data.
$request->query->ge... | |
doc_23515346 | This is our Android code:
static final String NAMESPACE = "https://services.ostara.com/StellarService/";
static final String URL = "https://services.ostara.com/StellarService/StellarService.svc";
static final String SOAP_ACTION = "https://services.ostara.com/StellarService/getNextBagNumber";
static final String METHOD_... | |
doc_23515347 | I have a file that contais filenames and their acls.
For example,
/home/file1.txt
attributes: SUID
base permissions:
owner (frank): rw-
group (system): r-x
others : ---
extended permissions:
enabled
permit rw- u:user1
deny r-- u:user2, g:group1
permit rw- g:user... | |
doc_23515348 | The error happens here:
socket = new Socket(SERVERIP, SERVERPORT);
I have the following permission in the manifest:
<uses-permission android:name="android.permission.INTERNET" />
LogCat:
09-24 12:06:43.000: E/ClientSocket(21999): C: Connecting...
09-24 12:06:43.020: E/TCP(21999): C: Error
09-24 12:06:43.020: E/TCP(21... | |
doc_23515349 | My test is as follows:
/// <reference path="../typings/tsd.d.ts" />
/// <reference path="../dist/ngJwtAuth.d.ts" />
var expect = chai.expect;
describe('Service tests', () => {
var $httpBackend:ng.IHttpBackendService;
var ngJwtAuthService:NgJwtAuth.NgJwtAuthService;
beforeEach(()=>{
module('ngJ... | |
doc_23515350 | SELECT e.emp_no,e.last_name FROM employees e,dept_emp d
WHERE e.emp_no = d.emp_no
AND d.dept_no = (SEELCT dept_no FROM dept_emp WHERE emp_no =
(SELECT emp_no FROM employees WHERE first_name = "Margareta" AND last_name = "Markovitch"));
A: This the answer for the above query :
Select E.Emp_No,E.Last_Name From Em... | |
doc_23515351 | "determine how many scores are above or equal to the average and how many scores are below the average."
Can anyone give some idea how to get the output as required
eg: Enter number of quiz scores to process: 5
Score 1: 10
Score 2: 8
Score 3: 9
Score 4: 2
Score 5: 4
Results
=======
Average is 6.6
Number of scores above... | |
doc_23515352 | mysql> select host, metric, value from tmp_c limit 2;
+----------+----------+--------+
| host | metric | value |
+----------+----------+--------+
| host1 | % | 86 |
| host2 | Kbs | 6529 |
+----------+----------+--------+
mysql> select * from hostID limit 1;
+----+--------------+
| id | ... | |
doc_23515353 | <script>
function initialize() {
var mapOptions = {
zoom: 10,
center: new google.maps.LatLng(48.545936,-122.765734),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var bermudaTriangle;
var marker1 = new google.maps.Marker({
map: map,
position: new google.maps.LatLng(48.3544181, -123.138301),
draggable:... | |
doc_23515354 | CREATE TABLE Games(
Player_1 VARCHAR NOT NULL,
Player_2 VARCHAR NOT NULL,
Winner VARCHAR NOT NULL,
Primary KEY(Player_1, Player_2)
)
How do I make sure each Winner is either the Player_1 or Player_2 from that same line?
Is Winner a foreign key?
Thank you
I tried this:
CREATE TABLE Games(
Player_1 VARCHAR N... | |
doc_23515355 | In that application, it is possible to get a list of available audio input devices for that PC. Currently, the application already lists Xbox NUI Sensor Analog 4-channel Input as one of the audio input devices, as does ubuntu sound settings application. I have also checked if the Kinect Input audio device supports aud... | |
doc_23515356 | Pipeline1 :: Pipeline2 :: Pipeline3 ...
I have experimented with a few ideas so far. Some work and some don't. But none of them seems to completely get rid of boilerplate code. The following is the closest I've got.
First define the Pipeline and Source abstract class:
// I is the input type and O is the output type of... | |
doc_23515357 | This is the exact error message as displayed in the unity console:
ArgumentOutOfRangeException: Index was out of range. Must be
non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException
(System.ExceptionArgument argument, System.ExceptionReso... | |
doc_23515358 | @interface NotNull {
boolean value() default false;
}
@interface Type {
Class<?> value();
}
and then I use them with an enum:
public enum KeyMap implements IMapEnum {
@Type(Integer.class)
@NotNull
USER_ID("user_id", "userId"),
@NotNull
USER_HANDLE("user_handle", "userHandle"),
@NotNull
USER_EMAIL... | |
doc_23515359 | gingerlu
A: global variable won't be problem.
In [1]: def recap():
...: global pos
...: pos = 100
...:
In [2]: def main():
...: recap()
...: print(pos)
...:
In [3]: main()
100
The main reason is that you use a local varible pos in you main() function, it's not global.
| |
doc_23515360 |
A: You can create an array of words then loop through the array index with setInterval and use jQuery slideUp - slideDown for the animation.
html:
<p>Build and cultivate your own community of</p>
<div id="word">customers</div>
script:
var words = ['followers', 'fans', 'members', 'customers'];
var index = 0;//start wi... | |
doc_23515361 | Related topic was discussed in earlier thread(transactional write).
Use case is following:
if writing to log file is failed,that appropriate DB transaction shoud be rolled back.
So the writinig to file should be performed in transactional way.
I've chosen Apache Commons Transaction lib.
And have issue,that doesn't let ... | |
doc_23515362 | in my js file I have:
document.addEventListener('DOMContentLoaded', function() {
var backOverlay = document.createElement('div');
backOverlay.id = "BackOverlay";
backOverlay.style.cssText = 'position:absolute;width:100%;height:100%;opacity:0.7;z-index:100;background:#000;top:0;left:0;display:block';
docum... | |
doc_23515363 | which is shown below in the table.
Creating table: Test_1
CREATE TABLE Test_1
(
ColumnA varchar,
ColumnB varchar
);
Insertion of records:
INSERT INTO Test_1 values('A101','B101'),('A102','B102'),
('A103','B103'),('A104','B104'),
('A105','B105'),('A106','B106'),
('A107','B107'),('... | |
doc_23515364 | GeoPoint point = new GeoPoint(234120, 4885693);
I changed the properties of the project and included Google APIs. This is my manifest file:
<application
android:name=".Test"
<uses-library
android:name="com.google.android.maps"
android:required="true" />
<activity
... | |
doc_23515365 | Here the first query with loop would be
(Name of the first Node).loop(1){it.loops<100}{true}.has('name', (Name of the second node)).path{it.name}
converting which in java has taken a lots of code !
but in case of the above there is a loop which looping for 100 nodes. If I try to traverse through any big number of no... | |
doc_23515366 | My json file has some data which I want to pass into the filter() function and want that function to generate text fields where user can write and submit it.
So far, I tried to use a map function to read the json file.
I want to read the line from the map function then check the datatype of the column and make a text... | |
doc_23515367 | Here is the code :
public void OnCLickButton(){
Animator menu = myMenu.GetComponent<Animator>();
menu.SetBool("open",!isOpen);
Vector3 newPos = camPos.position;
cam2.transform.Translate(newPos);
}
A: Maybe You're handling button the wrong way!
I never heard of the meth... | |
doc_23515368 | Something like this would be perfect but I dont know how to set it to check user roles
<?php
if (roles->getUserRole(reports)) { echo "<li><a href='/page5'>Reports</a></li>"; }
?>
I am wanting to show/not show a menu item based on the user role in the database. I have it set in the databse up as
(Admin) Role - 1 o... | |
doc_23515369 | SPNEGO login failed: An invalid combination of parameters was specified.
Full error log is
Initilizing SMB Context... 0xf2bb20
Using netbios name SUMAN
Using workgroup WORKGROUP.
Initilizing SMB Context is successfull: 0xf2bb20.
Opening directory... smb://192.168.140.128/smbshare
parsed path: fname='smb://192.168.140... | |
doc_23515370 | ...
render(
(
<ApolloProvider client={client}>
<Provider store={store}>
<ConnectedRouter history={history}>
<App />
</ConnectedRouter>
</Provider>
</ApolloProvider>
),
document.getElementById('root'),
);
And here is the store
import { createStore, applyMiddleware, co... | |
doc_23515371 | It's working fine on local machine but when I push it to gitLab, I get
Expected status code 200 but received 500.
Failed asserting that false is true.
I've other similar tests too, but those tests are working fine.
The error I'm getting is against edit url.
<?php
namespace Tests\Unit;
use App\Models\ACL\Permission;... | |
doc_23515372 |
I receive this error:
Failed to authenticate the user NT Authority\Anonymous Logon in Active Directory (Authentication=ActiveDirectoryIntegrated).
Error code 0xCAA90002; state 10
WSTrust response does not have recognized SAML assertion. (.Net SqlClient Data Provider)
The following are true:
*
*I am the Active Direc... | |
doc_23515373 | How would I go about finding where that string is and what it says, given that I do not know what the string is supposed to say (only that it's in English, and not completely random text)? I can use a dictionary of English words.
A: Build the dictionary into a trie and traverse the file. O(n) time in size of file (I b... | |
doc_23515374 | Basically the function searches lines of the file and when it finds one I want to output to a separate file, adds it into a list, then also adds the next five lines following that. This then gets output to a separate file at the end in a different funcition.
What I've been trying to do following that is jump the loop ... | |
doc_23515375 | The end result I am looking for is something akin to this (https://screencast.com/t/qXzrGNFuf)
Because of the highly variable nature of the formats of these messages, uses of substring_index and regexp (as much as my amateur familiarity with REGEXP has taken me), I can't seem to get anything going
SELECT LEFT("first_mi... | |
doc_23515376 | Various ways I've looked at:
*
*Using a table. Would be a lot clunkier to do this way.
*CCS3 multi-column: Could work but also is not really like a stack panel.
I'm open for using modern browser capabilities (does not have to support old IE's).
A: You can usually get a similar effect using inline-block elements... | |
doc_23515377 | However, with visual studio running under a non-privileged account, I am able to attach to some processes runing under the same account and debug them. Why is this possible? Shouldn't the operative system prevent this?
Thanks in advance and cheers
A: for access say memory space of any other process we need open proces... | |
doc_23515378 | I've tried:
<#list ${modelattribute.listField} as thing >
<tr><td>${thing}</td></tr></#list>
</#list>
But Freemarker is not expecting the escape sequence
Encountered "{" at line 108, column 43 in things/search.html.
Was expecting one of: ...
How should I reference this value?
A: You should do something like thi... | |
doc_23515379 | I have attached a Jsfiddle.
http://jsfiddle.net/Dwdqg/
function totalPrice(ticketCount,priceAmount)
{
if (tickets.selectedIndex != 0 && price.selectedIndex != 0) // if the price and tickets is not 0 or not selected
{
tickets.onchange = ticketCount; //when tickets is c... | |
doc_23515380 | Thank you.
A: I've done exactly what youre trying to do and its actually very easy
Start with something similar to this on the CSS of the image (The transitions will allow for a really smooth animated transition without a library like jQuery doing custom variable changes like opacity and size which can slow load time)... | |
doc_23515381 | Right now I am able to draw one overline using text-decoration:overline :
Not(A) = <span style="text-decoration:overline"> A </span>
But it doesn't work if I want multiple overlines. For example the following equation :
Not(A or not B) = <span style="text-decoration:overline"> A or <span style="text-decoration:overli... | |
doc_23515382 | slider.stop().animate({
opacity: 0
}, 1000, function() {
$(this)
.css({
'background-image': 'url(' + slider_bgs_array[array_item + 1] + ')'
})
.animate({
opacity: 1
}, 1000);
});
what does this do - changes wrapper background image. But the effect is fade... | |
doc_23515383 | This is an MVC project i am using an hard-coded
ViewBag.Origin = new List<SelectListItem>
{
new SelectListItem { Text = "Born", Value = "Born"},
new SelectListItem { Text = "Donated", Value = "Donated"},
new Sel... | |
doc_23515384 |
is there any data structure similar to HashMap where I can add duplicated keys
For Example
USA, New York
USA, Los Angeles
USA, Chicago
Pakistan, Lahore
Pakistan, Karachi
etc
A: What you need is called a multimap, but it is does not exist in standard Java. It can be simulated with a Map<String, List<String>> in your ... | |
doc_23515385 |
A: Try to call Refresh before render menu or sitemap.
<% var sm = Html.MvcSiteMap();
((MvcSiteMapProvider.DefaultSiteMapProvider)sm.Provider).Refresh(); %>
....
<%: sm.Menu(0, 1) %>
A: In MvcSiteMapProvider v4, the cache can now be extended or replaced with your own implementation. Have a look at the following blog ... | |
doc_23515386 |
The next step would be to get all contour points, which are stored in a vector<Point>, between S and E and likewise on the opposite edge (where the Contour arrow is pointing at). I've no clue how to extract those points, would be nice if you could help me out here.
Thanks in advance!
Edit:
Points S and E are not prio... | |
doc_23515387 | {
"variables": {
"aws_access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"aws_secret_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
... | |
doc_23515388 | var datastring = 'ptcid='+ value
$.ajax({
type: "POST",
url: "filldropdown.php",
data: datastring,
success: function(responseText){$("#ptscid").html(responseText);},
error : function { (alert("error"); )}
});
}
this is the code of select option which is dependent... | |
doc_23515389 | Where do I find the documentation for the WinSDK and how should I go about including it in GCC?
I couldn't find any explanations in the release notes or anything. However, if you can find something that explains it, feel free to give me a link.
A: This might sound weird to you, but you didn't need to download any sep... | |
doc_23515390 | I have created a simple plunker where the states url property looks like this: url: '/root?firstParam'
What I want then is to populate $stateParams.firstParam with whatever I write in the url of the browser for that queryParameter.
Plunker, plunkerWithParameter?firstParam=foo
I would imagine that $stateParams.firstPara... | |
doc_23515391 | #ifndef TEST
#define TEST
#include <unistd.h>
#include <stdio.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <time.h>... | |
doc_23515392 | I set up a block of code in my main file to print the user's latitude coordinate to the log, but it does not print anything to the log when I run the app.
Why won't the NSLog print to the console?
Here is the snippet of code that is supposed to be printing the location to the log once the app launches and the user allo... | |
doc_23515393 | graphviz.backend.ExecutableNotFound: failed to execute 'dot', make sure the Graphviz executables are on your systems' PATH
However, I have to install this package using a .yml file dependency. I am pretty new to yml files and how they work. Does anyone know how I would add the graphviz package to the following .yml fi... | |
doc_23515394 | package com.example.classfinder;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
public class MainActivity extends AppCompatActiv... | |
doc_23515395 | My code looks like this:
def scatterplot(value):
try:
global graph
global bar_chart_df
global clean_df
global correlation
correlation = clean_df.groupby(['FACILITY ZIP', 'FACILITY NAME'])['VIOLATION DESCRIPTION'].count().reset_index(name='No. Violations').sort_values(by='No. ... | |
doc_23515396 | This is my code:
CREATE OR REPLACE FUNCTION FIND_TOTAL
(CUSTOMER_ID_IN IN VARCHAR2)
RETURN NUMBER IS
ORDER_QTY_IN NUMBER;
UNIT_PRICE_IN NUMBER;
TOTAL_COST_OUT NUMBER;
CURSOR C1 IS
SELECT od.ORDER_QTY
FROM ORDER_DETAILS od JOIN ORDERS o
ON od.ORDER_ID = o.ORDER_ID
WHERE CUSTOMER_ID = CUSTOMER_ID_IN;
CURSOR C2 IS
SELEC... | |
doc_23515397 | I am using fread for this. However something goes wrong.
My code is:
FILE * in = fopen("in", "rb");
_in = new unsigned char [length_in];
fread(_in, sizeof(char), length_in, in);
When debugging i can see that _in = unsigned char * "Asdfghjkl\x1f \x10" .
When rebuilding the program, the part \x1f \x10 changes randomly ... | |
doc_23515398 | The form's name is frmSearch
The subform's name is SearchResults
I've tried
Private Sub Command38_Click()
Me!SearchResults.Form.Requery (or)
Me.SearchResults.Form.Requery
End Sub
My form & subform look like this:
To be clear, I'm using the "Search" button to create a string which contains the textbox and combobox v... | |
doc_23515399 |
*
*Content-Encoding: gzip
*Accept-Encoding: gzip
Moreover, the response also need to be decompressed by GZIP as well.
Becuase we are using .Net core, so I have to use HttpClient to send the request and get response.
Does anyone who have experience in dealing with this issue?
private string GetString(Uri ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.