id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_39400 | I have 10 QR-Codes, every single one represents one URL.
*
*QR-Code ID:1 URL:http://paperchase.heroku.com/qrs/4975
*QR-Code ID:2 URL:http://paperchase.heroku.com/qrs/2368
*QR-Code ID:3 URL:http://paperchase.heroku.com/qrs/2317
*QR-Code ID:4 URL:http://paperchase.heroku.com/qrs/2369
*QR-Code ID:5 URL:http://pape... | |
doc_39401 | Now if i try:
Person p=new Person("dan","lala");
ReqSingUp reqSingUp=new ReqSingUp(p);
String s = gson.toJson(reqSingUp,ReqSingUp.class);
Object o = gson.fromJson(s, Object.class);
if (o instanceof ReqSingUp) {
System.out.println("it's ReqSingUp");
}
if (o instanceof Person ) {
System.out.println("it's person"... | |
doc_39402 | But I am not able to get the data of the second conditional/dependent drop down box with Scrapy.
Assuming the following procedure is the way to go, how does step 2 work? The values never appear so far...
*
*Get list entries of first drop down box
*Select 1st value of first drop down box.
*get all dependent drop do... | |
doc_39403 | def get_smith_listings
Listing.joins(:spec).where('specs.broker ilike ?', '%smith%')
end
@listings = Listings.all #actually a built query
@listings.sort_by { |item| item.get_smith_listings? ? 0 : 1 }
=> EXPLAIN for: SELECT "listings".* FROM "listings" INNER JOIN "specs" ON "specs"."listing_id" = "listings"."id" WH... | |
doc_39404 | When I am trying to access it, found it as "null".
The code is:
@Service("tempService")
public class TempServiceImpl {
public void getData(String userName) {
System.out.println("Data get for the user is => "+userName);
}
}
JavaDelegate class is:
@Component
public class DataService implements JavaDeleg... | |
doc_39405 | I want to exit after 60 seconds, but the result takes 62.369 seconds. What's wrong?
bool istimeout = false;
boost::chrono::milliseconds span(60 * 1000);
int cnt = 0;
high_resolution_clock::time_point start = high_resolution_clock::now();
boost::unique_future<void> executegetaction = boost::async(boost::launch::async... | |
doc_39406 | Im making a new Wordpress theme. Im using version 3.3.1. I've read that for making menus I should use the "Menu" section of each theme:
http://awesomescreenshot.com/01atql42e
But when I activate my own theme I CREATED, that option is not present.
http://awesomescreenshot.com/0f0tqmhc6
What am I missing?
A: Wordpress c... | |
doc_39407 | In the dynamic definitions portion of the gem documentation it says that I should be able to do this by replacing code like this below with a data source.
def transitions
[
{:parked => :idling, :on => :ignite},
{:idling => :first_gear, :first_gear => :second_gear, :on => :shift_up}
# ...
]... | |
doc_39408 | Method tried so far by me:
*
*Created a process by using the Process option given in the Blue Prism, though it works but when there is an exception it terminates.
So how to design Scheduler runs all individual process continuously, one after another. Even the outcome of a process is Terminated it should run the next... | |
doc_39409 | var casper = require('casper').create();
casper.start('https://accounts.google.com/Login?hl=EN', function() {
this.evaluate(function(username, password) {
this.echo(this.getTitle());
document.querySelector('input#Email').value = username;
document.querySelector('#next').click();
document.query... | |
doc_39410 | I have to use the result of a query in an other in the same button, when I execute this code I have: There is already an open DataReader associated with this Command which must be closed first.
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
SqlCommand cmd = con.CreateCommand... | |
doc_39411 | I know this can be done natively with Swift, but no idea if that's possible on Electron. Any ideas?
A: You can use this package from npm. it has all global event key and mouse listeners.
| |
doc_39412 |
*
*In development: my secrets are stored unencrypted in my secrets.yml file. The secrets.yml file is not commited to Github and
stays on my computer.
As per AWS reccomendations I have roles that allow me to have development specific keys. This allows to restrain my development keys to certain functions that have a... | |
doc_39413 | To implement the equivalence function, I was going to put all the equivalent strings into tuples and then all the tuples into a list. Then for each input string pair, check if they both exist inside the same tuple and return true if so. Can anyone suggest a more elegant way to do this?
Thanks,
Richard
EDIT: To clarify... | |
doc_39414 | <section>
<h1 style="margin-left: 10%;">Blah, blah</h1>
<img src="_images/some.jpg" style="margin-left: 10%; width: 60%;" >
<section style="margin-left: 45%; margin-top: -35%; background-color: #FFF; padding: 1em; width: 20%;">
<p style="font-size: 2em; margin-top: -5%;">More bla... | |
doc_39415 | import java.io.*;
class main {
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
InputStreamReader istream = new InputStreamReader(System.in);
BufferedReader bufRead = new BufferedReader (istream);
boolean sleepInDay;
boolean sleepInDayV;
System.out.println("Please ... | |
doc_39416 | I'm able to run all ASP.NET pages with no problems.
Only when a page create an exceptions, instead of visualize any error message and details.
I get only an IE windows saying
Do you want open or download file ....
I already tried, in web.config customerror="off" and in IIS / ASP / Debugging > send error to browser bu... | |
doc_39417 | 17:10:39 2.039 26.84 4.6371E-9 -0.7$R200$O100
17:10:41 2.082 27.04 4.6334E-9 -0.4
17:10:43 1.980 26.97 4.6461E-9 0.3
17:10:45 2.031 26.87 4.6502E-9 1.0$R200
17:10:47 2.090 27.09 4.6296E-9 0.1
...
18:49:40 1.930226.34 2.8246E-5 7.1
18:49:42 2.031226.04 2.8264E-5 8.2
Now I did fix this all by h... | |
doc_39418 | SHORTDIR=${${${PWD##*/}//./_dot_}//:/_colon_}
This is basically a short/efficient version of basename $PWD | sed -e 's/\./0/g' -e 's/:/1/g'.
What's the syntax for stringing together variable expansions?
A: I was hoping that there'd be a better way than
SHORTDIR=${PWD##*/}
SHORTDIR=${SHORTDIR//./_dot_}
SHORTDIR=${S... | |
doc_39419 | $.ajax({
data: {id: 1,status: 1},
success: function(data){
Collection.success_res();
},
error: function(data){
Collection.error_res();
}
})
Here is my conroller
def update_status
@post = Post.find params[:id]
if @post.update_attributes params[:status]
respond_to do |format|
... | |
doc_39420 | if (preg_match('/^\d{7}-\d{1}$/', $user_input)) {
list($num, $control) = preg_split('[-]', $user_input);
// Add leading zeros if number is < 7
$num = str_pad($num, 7, 0, STR_PAD_LEFT);
$controlSum = 0;
$controlSum += (int)substr($num, 0, 1)*7;
$controlSum += (int)substr($num, 1, 1)*9;
... | |
doc_39421 | My HTML:
<div class="test">
<nav class="nav">
<ul class="navtabs">
<li>
<a href="showMe/1">
<div class= "inside">
<div class="delete">
<i class="fa-times-circle"> </i>
</div>
</div>
</a>
</li>
</ul>
</nav>
</div>
My CSS:... | |
doc_39422 | We are using following steps -
*
*Authentication
Created a app
Using 3-Legged Token
*Data Management API
We are using 'Download a File' tutorial to get URN of a file form A360 drive. Link - https://developer.autodesk.com/en/docs/data/v2/tutorials/download-file/
At fifth step we are getting file URN with version -
$... | |
doc_39423 |
... is not a supported wheel on this platform
As far as I can tell, the platforms in system A and B are the same in the relevant details. I could not find comprehensive documentation on the subject via google. So my questions:
*
*For a given machine, what is the best way to get the string that describes the platfo... | |
doc_39424 | if(Path.GetExtension(fileupload1.FileName).ToLower() == ".png" || Path.GetExtension(fileupload1.FileName).ToLower() == ".jpeg")
but is there any way to do this like i wnats to do something like that=>
if((Path.GetExtension(fileupload1.FileName).ToLower()) == ".png" || ".jpeg")
but it gives me error.can anybody help m... | |
doc_39425 | the task in my gulpfile.js looks like this:
gulpfile.js
var sourceLess = './app/assets/stylesheets/less';
var sourceJs = './app/assets/javascripts';
var targetCss = './public/css2';
var targetJs = './public/js2';
// Compile my-bootstrap-theme
gulp.task('css', function() {
gulp.src(sourceLess + '/custom/edgc-styl... | |
doc_39426 | number < R_PosInf == true
A: Easy enough to try!
Code
#include <Rcpp.h>
// [[Rcpp::export]]
bool compToInf(double x) {
return x < R_PosInf;
}
/*** R
compToInf(.Machine$double.xmax) ## largest representable double
compToInf(Inf)
*/
Demo
R> sourceCpp("/tmp/so50229770.cpp")
R> compToInf(.Machine$double.xmax) #... | |
doc_39427 | I'm trying to think of situations in which I would want a transaction that is not serializable, other than to possibly increase performance in situations where I'm willing to give up a little data integrity.
Can anybody provide an example of a situation in which "read uncommitted", "read committed", and/or "repeatable ... | |
doc_39428 |
A: The GridLayout forces all UI components to fill their cell completely, so the actual checkbox only gives the illusion that it's smaller than the cell it occupies. The solution here, as with many other more complex UI designs, is to use multiple layouts nested inside one another.
In your case, try putting all your c... | |
doc_39429 | head_only[head_only.BasePay > 70000]
I applied the condition on the data frame
head_only[head_only > 70000]
attached images of my observation, could anyone help me understand what is it that's happening ?
A: Your second solution raise error if numeric with strings columns:
df = pd.DataFrame({
'A':list('abcde... | |
doc_39430 |
A: If the problem is that you run out of memory, then I suggest you use the for line in file syntax, as this will only load the lines one at a time:
bigFile = open('path/to/file.dat','r')
for line in bigFile:
processLine(line)
If you can construct your system so that it can process the file line-by-line, then it ... | |
doc_39431 | var map = document.getElementById('map'),
svg = d3.select('#map')
.call(d3.behavior.zoom().on("zoom", function () {
svg.attr("transform", "translate(" + d3.event.translate + ")" + " scale(" + d3.event.scale + ")")
}))
.append('g');
But at this moment it gives... | |
doc_39432 |
.container {
border: 1px solid;
height:200px;
}
.first {
display: inline-block;
font-size: 30px;
background-color: darkcyan;
border: 1px solid;
margin:50px 0 0 0;
}
.second {
display: inline-block;
border: 1px solid;
background-color: red;
font-size:30px;
margin:0;
}
<div class="container">
... | |
doc_39433 | This is standart WCF CahannelFactory .
ChannelFactory<T> channelFactory = new ChannelFactory<T>(myBinding, myEndpoint);
Now I want to get T From string variable which is located in the database.
Mean :
Instead of this : ChannelFactory
I want to to make something like reflection or any other way to pass T by name name... | |
doc_39434 | More specifically request.uri was invalid !!!
My aim is to redirect all requests to the https://example.dev
*
*http://example.dev successfully redirects to the https://example.dev
*http://www.example.dev successfully redirects to the https://example.dev
*https://www.example.dev fails when redirecting to the https:... | |
doc_39435 |
*
*Happy
*Sad
*Happy + Sad
Id Code
1 03FJ
1 03JO
3 03PR
4 03OY
4 036X
4. 03JX
When the code is like '%03J' but doesn't have any other '%03' values then it is happy.
When the code is like '%03' but doesn't have any '%03J' values then it is sad.
When the code is like '%03' and has other '%03J' values th... | |
doc_39436 | void SomeMock::f(int) { ... }
NiceMock<SomeMock> someNiceMock;
void runCycle(int n) { someNiceMock.f(n); }
Now if in test I will do the following
EXPECT_CALL(someNiceMock, f(2)).Times(AtLeast(1));
runCycle(1);
runCycle(2);
::testing::Mock::VerifyAndClearExpectations(&mock);
I'm getting an error that f(int) was assume... | |
doc_39437 |
*
*SQL Azure Database to store relational data.
*Azure Blobs to store images and videos.
*Azure Web Role to host WCF services (Available internally and as an external API)
*Azure Web role to host a web application.
Little bit lost on what I need to manually backup? Can someone point me in the right directio... | |
doc_39438 | foo = Foo.all().filter('bar =', baz).get()
#baz is unicode, bar is a StringProperty
#Foo inherits from db.Model
This works for most entities, but for some value of baz, no entity is returned, even though the entity certainly exists, as can be verified at https://console.cloud.google.com/datastore/entities/ The cause ... | |
doc_39439 | And echo %PATH% returns a line containing C:\Python27 and C:\Python27\Scripts.
Edit: I was using Python 3.4 as default, but changed my environment variables so that I am now using Python 2.7 as default. Could this be a possible issue?
| |
doc_39440 |
A: Not being an expert on this...
It depends on what the customer wants. Have a set of quality attributes agreed on before you start the test.
Use this
http://en.wikipedia.org/wiki/Usability
as starting point where I suggest you can make up questions from the paragraph "Useability Considerations".
And have a look at ... | |
doc_39441 | from string import ascii_letters
class simplecalc:
print('This is only a simple calculator! Enter two numbers pls!')
num_1 = input('Enter no.1: ')
num_2 = input('Enter no.2: ')
operator = input('What operation do you want to do?: ')
if operator == '+':
calc_result = float(num_1) + flo... | |
doc_39442 | I would like consumers of those dependencies to specify which dependencies from the container they use.
I am using this approach to make it easier for testing and to avoid having an excessive number of parameters on my functions.
pseduo code:
// Container with all the dependencies
type app struct {
GetNewsFeed() *New... | |
doc_39443 | (It is implemented based on some algorithm discussed in Donald Knuth, The Art of Computer Programming, Volume 3, Section 3.2.1.), but the article is too technical for me to understand)
Is there an inverse function of it?
That is, given a sequence of numbers, would it be possible to mathematically determine what the see... | |
doc_39444 | Module.cs
return (
from m in objDB.Modules
orderby m.ID
select new
{
ID = m.ID,
Name = m.Name,
Status = DB_Function.Convert.ToInt32( m.Status )
}
);
PS: Status is a boolean type
DB_Function.cs
[System.Data.Entity.DbFunctionAttribute( "Business.Database", "ToInt32" )]
public ... | |
doc_39445 | public function show(Company $company)
{
$authUser = JWTAuth::parseToken()->toUser();
$userFriendIds = $authUser->friendslist()->pluck('id')->toArray();
$profile = $company->where('id', $company->id)
->with(['subcategory', 'activities' => function ($query) use ($authUser) {
$query->with(... | |
doc_39446 | I've done it, but my function (below) returns None..
If I change return clause to print - it's work properly.
But I want returning here!
What's the problem?
def my_bin(num, result = ''):
if num == 0:
return result[::-1]
else:
result += str(num%2)
my_bin(num//2, result)
my_bi... | |
doc_39447 | android:layout_height="100dp"
android:layout_width="wrap_content"
android:scaleType="fitCenter"
android:adjustViewBounds="true"
What I see is that if I set an image that has as dimensions (based on the info of my pc) 1280px854
If I open it in my pc the image looks huge.
The same image is small in my ImageView a... | |
doc_39448 | this.ModalPopupExtender1.Show();
PlaceHolder1.Visible = true;
PlaceHolder2.Visible = false;
The modal popup opens. When I have code like this:
this.ModalPopupExtender1.Show();
PlaceHolder1.Visible = false;
PlaceHolder2.Visible = true;
The modal popup doesn’t open. How... | |
doc_39449 |
*
*37823782
*37823782
*37823782
*38478934
*90003922
And another table with prefixes:
*
*378
*3847
*384
*001
I want to find all numbers matching the longest prefix. I succeded with this code:
$result = mysql_query("SELECT numbers FROM table1 GROUP BY numbers") or die ("Query error code 1");
while($... | |
doc_39450 | db engine: InnoDB
index already set:
ALTER TABLE `tbl_name` ADD INDEX( `user_id`);
My query:
ALTER TABLE `tbl_name` ADD FOREIGN KEY (`user_id`) REFERENCES `<db_name>`.`user`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;
but im still got error:
#1215 - Impossible d'ajouter des contraintes d'index externe
In mysql do... | |
doc_39451 |
A: Firstly, there's no official way to add the iOS 4.3 simulator. You may be able to hack it somehow but I don't know how and I wouldn't recommend it.
Secondly, if you really want to support iOS 4.3 you need an actual device to test it on. The Simulator is not 100% accurate and it certainly doesn't mirror the performa... | |
doc_39452 | Here is an example of what I'm trying to do:
import java.util.*;
public class Test{
public static void main(String[] args) {
ArrayList<String> Array1 = new ArrayList<String>();
// Array 1: [0][1][0][0][1]
Array1.add("0");
Array1.add("1");
Array1.add("0");
Array1.add("0");
Array1.add("1... | |
doc_39453 | When using MSSQL server profiler, I noticed 2 queries which we taking the bulk of the data retrieval time. One query gets the data for the given load size, and another which gets the total page count. The one getting the page count is very slow for large sets of data, much slower than getting the data itself!
So my que... | |
doc_39454 | my_values.push('0','1','2','3','4','5','6');
column1 = ['0','1','2','3','4','5','6'];
var docDefinition = {
content: [
{
layout: 'lightHorizontalLines', // optional
table: {
//headers are automatically repeated if the table spans over multiple pages
// you can declare how many rows should be tre... | |
doc_39455 | <div style="width: 15%" data-toggle="popover" data-placement="top" data-trigger="hover" data-html="true" role="button" data-original-title="" title="" data-content="<i>15%</i><b>Web Design</b>" class="grid custom_popover"></div>
How to extract the 15 from this linedata-content="<i>15%</i><b>Web Design</b>"
The selecto... | |
doc_39456 | It's the first time I worked with bluetooth connections.
The application communicates with a Arduino over a bluetooth module.
It will send a command and get a response.
For example, the response should look something like this:
100,200,300,400
This is what I get:
1
and if I get another response (also if it should look ... | |
doc_39457 |
A: Put this in your .vimrc:
if !exists('g:lasttab')
let g:lasttab = 1
endif
nmap <Leader>tl :exe "tabn ".g:lasttab<CR>
au TabLeave * let g:lasttab = tabpagenr()
Then, in normal mode, type \tl to swap to the tab you viewed last.
A: Fix the potential issue when a tab is closed:
" Switch to last-active tab
if !exists... | |
doc_39458 | I am now trying to return rows, but it returns this error:
Undefined index: Version in [FilePath] on line 62
<?php
$sql = "SELECT @@VERSION AS [version]";
$stmt = sqlsrv_query( $conn, $sql);
if($stmt === false) //if the query returns no rows
{
die(print_r(sqlsrv_errors(), true));
};
//... | |
doc_39459 |
A: git status usually shows you the options, e.g.
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: someFile.txt
modified: someDir/someOtherFile.txt
So if you want to unstage all files just do what git proposes
git reset HEAD
EDIT
Since Git 2.23 you can use ... | |
doc_39460 | I have this class
@Entity
public class QuestionList {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String name;
@ManyToOne
private UserEntity user;
@OneToMany(cascade = CascadeType.ALL)
private List<QuestionUnit> units = new ArrayList<QuestionUnit>();
... | |
doc_39461 | What is the most straight forward, and rails-like way to ensure that only one vat_rate can be the default one at any time?
I'm not really bothered if there are no defaults, just that there are no more than one.
A: You could add a custom validation method like this and return an error if another vat_rate is selected as... | |
doc_39462 | My field value
private boolean turnon = false;
and then my method to turn on the the lights
public void turnon() {
turnon = true;
}
Basically what I want to avoid is to not call the method every single time I wanna add a new House, basically once I turn it on it turns on for every instance of the class.
House... | |
doc_39463 | The problem is that the images in this gallery can be different. They can be bigger/smaller - with different ratio.
In this example a .carousel div has height: 450px. To be RWD friendly I want use max-height, but images in this carousel must be 100% to entire div with keeping ratio. Even if some image will be overflowi... | |
doc_39464 | The mapping looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false">
<class name="FcoLib.FcoTransportation, FcoLib" table="FCO_TRANSPORTATION">
<composite-id>
<key-property name="ID"/>
<key-property name="FK_EventID"/>
</composite-... | |
doc_39465 | | WebContent
- | resources
- - | Foobar.java (The file I need to read it's lines)
- jspfile.jsp (Where I'm running the code)
My code:
String.join("\n", (String[])Files.readAllLines(Paths.get(getServletContext().getResource("/resources/Foobar.java").toURI()), Charset.defaultCharset()).toArray());
Whenever I try to... | |
doc_39466 | https://binarytotext.net/decimal-to-binary/ & https://www.rapidtables.com/convert/number/decimal-to-binary.html
https://www.binaryhexconverter.com/decimal-to-binary-converter
I would appreciate any help.
The code i found on stackoverflow:
var xx = document.getElementById("input").value;
var xy = parseInt(xx);
var xz ... | |
doc_39467 | <display:column property="discountAmt" titleKey="DiscountAmt"
total="true" format="<%=currency_format%>"/>
<display:column property="orderGrandTotal" titleKey="GrandTotal"
sortable="true" format="<%=currency_format%>" class="numeric"
total="true"/>
In table, the... | |
doc_39468 | I was only able to import a payment voucher against an Account but not Against a Reference (Particular bill).
Here is the XML Request:
<ENVELOPE>
<HEADER>
<VERSION>1</VERSION>
<TALLYREQUEST>Import</TALLYREQUEST>
<TYPE>Data</TYPE>
<ID>Vouchers</ID>
</HEADER>
<BODY>
<DESC>
<STATICVARIABLES>
<SVCURRENTCOMPANY>Test Company... | |
doc_39469 | Thanks!
A: Look at the PEAR's library Net_DNS2 : http://pear.php.net/package/Net_DNS2
You can specify which nameserver you want to query to.
| |
doc_39470 | In javascript document, it says
npm install waveform-playlist --save on cli
and to use this line in code.
import WaveformPlaylist from "waveform-playlist";
So, for now I write this script in template.html
<script>
import WaveformPlaylist from "waveform-playlist";
</script>
this error comes.
Cannot use import statemen... | |
doc_39471 | Expect:
*
*1,2,3
*4,5,6,7,8,9
Result:
*
*4,2,3
*1,5,6,7,8,9
*1,2,3
*4,5,6,7,8,9
*4,2,3
*1,5,6,7,8,9
*1,2,3
*4,5,6,7,8,9
*1,2,3
*4,5,6,7,8,9
*1,5,3
*4,2,6,7,8,9
*1,2,3
*4,5,6,7,8,9
*5,2,8
*1,4,6,7,3,9
public static TransformBlock<int, string> tbInt = new TransformBlock<int, string>((i) =>
{
re... | |
doc_39472 | But Now I created another branch called branch2 in repo1 and repo2 that is a copy of branch1 of both repos. Now my module1 in branch2 of repo2 still points to module1 of branch1 in repo1. But it should refer to module1 of branch2 in repo1.
Is there any way were we can change svn:externals automatically when we do a SVN... | |
doc_39473 | Here is the code.
export const OrderScoreCell = (props) => {
const { orderDetail } = props;
const [isOpen, setIsOpen] = useState(false);
const handleCellClick = (e) => setIsOpen(true);
return (
<>
<TableCell onClick={handleCellClick} lign="left">
<LightTooltip
title={`Risco ${order... | |
doc_39474 | Second problem regards how to iterate with openMP on a maps a predefined number of times. Here is the code, I'm using g++-5 on Clion.
else if (PERF_ROWS <= MAX_ROWS && function_switch == false)
{
int array_dist_perf[PERF_ROWS];
int array_dist[MAX_ROWS];
multimap<float, int> temp_map;
#pragma omp paral... | |
doc_39475 | Example:
If I do:
SELECT convert(datetime, 53691) as Calc
OR
SELECT cast(53691 as datetime)
I get: 2047-01-01 00:00:00.000
What I need is that If I do:
SELECT convert(datetime, -53691) as Calc
OR
SELECT cast(-53691 as datetime)
I should get something like:
1753-01-01 00:00:00.000
A: -53690 would be 1753-01-01. ... | |
doc_39476 | <Graph seriesEffect="SE_NONE" graphType= "PIE"><LegendArea visible="true"
automaticPlacement="AP_NEVER" position="LAP_BOTTOM"/>
<LocalGridData colCount="1" rowCount="{count(.//DOLP)}">
<RowLabels><xsl:for-each select=".//DOLP"><Label><xsl:value-of select="DOL"/></Label>
</xsl:for-each></RowLabels>
<DataValues><xsl:f... | |
doc_39477 | Say for example that I have 4 classes
One
Two
Three
Four
The first time that I release this software, it will be labeled as version 1.0.0
In my java doc comment, for all classes, I have it as
@version 1.0.0
So now test sends it back with a bug in class Two
I update class Two and now have to release version 1.0.1
Do I... | |
doc_39478 | #!/usr/bin/env bash
export PATH='/usr/local/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
I've tried the following but it does not work : (
if [[ $0 == "bash" ]]; then
export PATH='/usr/local/bin:$PATH' >> ~/.bashrc
elif [[ $0 == "zsh" ]]; then
export PATH='/usr/local/bin:$PATH' >> ~/.zshrc
fi
# ... more commands ...
i... | |
doc_39479 | The plan:
An old Laptop connected to a monitor and a USB keypad. The laptop boots up (win 7 or 10) and starts skype or zoom ( some form of Kiosk). The senior can only accept a call with on big green button. The senior can call people with a push of a button.
The Problem:
I could not find any way to make a call (zoom or... | |
doc_39480 | for file_name in filelist:
tar_file = tarfile.open(file_name)
tar_file.extractall("./" + "location")
For a particular file I am getting this error immediately after the tarfile.open call:
$ file file_name.tgz
file_name.tgz: gzip compressed data, from Unix, last modified: Mon Dec 16 16:33:34 2013
Traceback (most ... | |
doc_39481 | I need to style them in ways that are not possible with select elements so I would like to convert them to ul elements.
Any help would be appreciated - here is a starter jsFiddle with the jquery-ui datepicker https://jsfiddle.net/GeekOnGadgets/wra3pcsv/
A: The following code may help you. You can see the result in th... | |
doc_39482 | Is there a way, a tutorial, an example, etc that accomplishes this?
Setting the connection as a JNDI Datasource is preferable but not required
A: Have a look at jackcess. I have not tried it (yet) myself, but it's a 100% pure java solution, no need for specific JDBC-like drivers
A: I don't know much about Mac and ODB... | |
doc_39483 | I am following this guide, but I seem to be having trouble finding all the components of the SFML library. I downloaded SFML from the download page and put it in usr/local.
If anyone has gotten SFML to work with a different IDE or method, I would definitely be willing to try that as well.
A: If you follow this tuto... | |
doc_39484 | I understand HTML and I have an reasonable understanding of PHP, SQL and CSS. I've created a sub-theme based on Genesis, but I'm feeling a bit out of my depth.
In your opinion, based on my level of skill, is it best to create a theme from scratch, or should I continue to develop my Genesis sub-theme?
Thanks,
Mike
A: A... | |
doc_39485 | using MainProjectNamespace;
to the top of it.
When I go to NUnit, any tests I have that don't reference the main project work. These are tests I setup just to get used to NUnit, and are pretty much useless. When NUnit runs the real tests the test throws this exception:
TestLibrary.Test.TestMainProject:
System.IO... | |
doc_39486 | I'm trying to get a special paragraph of a wikipage using the npm mediawiki module for node.js! I get the paragraph using the pre-defined function as following:
bot.page(title).complete(function (title, text, date) {
//extract section '== Check ==' from wikipage&clean string
var result = S(text).between('== Ch... | |
doc_39487 | id: {
id: "108662",
absoluteUri:"abc.com",
devicedisplayId: "045551"
}
devicename: "Printer"
}]
var columnDefs = [
{
headerName: 'Device Id', field: 'id',filter:
'agTextColumnFilter',sortable: true,
filterValueGetter : function(params) {
return par... | |
doc_39488 | mfoc -O my_dump.mdf
Then I used the following command to write the dump into a blank card:
nfc-mfclassic w A my_dump.mdf blank.mdf f
Result:
NFC reader: ACS / ACR122U PICC Interface opened
Found MIFARE Classic card:
ISO/IEC 14443A (106 kbps) target:
ATQA (SENS_RES): 00 04
UID (NFCID1): a0 b0 ... | |
doc_39489 | LINQ generated files are making a use of generics and reflection to map LINQ generated classes to the SQL objects (tables and views in our case).
Please see the example of the existing accessor. This method resides in the partial class that contains custom constructors, accessors and mutators:
public clsDVD getDVD(int ... | |
doc_39490 | here is my template.
A: This might help you
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {box-sizing: border-box}
.mySlides1, .mySlides2 {display: none}
img {vertical-align: middle;}
/* Slideshow container */
.slideshow-container {
max-width: 1000px;... | |
doc_39491 | private void loadPuzzleButtons()
{
if (active_puzzle != null)
{
int devider = 5;
int count = 0;
JToggleButton puzzleButton[] = new JToggleButton[active_puzzle.getNumberOfPieces()];
for(int row = 0; row < active_puzzle.getRows(); row++)
{
for(int column = 0; co... | |
doc_39492 | ( void ) startDownLoading
{
NSLog(@"Inside start downloading") ;
dispatch_async( dispatch_get_main_queue(), ^
{
//Code do download my file
} ) ;
}
The "Inside start downloading" log is printed. I put some break points and found out that the whole dispatch_async block is being skipped.
Any help is ap... | |
doc_39493 | This changes my navbar breakpoint. But when I click menu button it shows menu list an instantly collapse back. So menu doesn't stay open after button is clicked.
How can I do to menu stay open after button is clicked?
@media (max-width: 990px) {
.navbar-header {
float: none;
}
.navbar-toggle {
... | |
doc_39494 | the current return data is
{
"errors": [
{
"message": "Some Errors",
"extensions": {
"reason": "",
"category": "custom"
},
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"to the path"
],
"trace": [{... | |
doc_39495 | fatal: failed to read object 12786e6d70d76ce47ecf69c30e4d0f994d1e2fc3: Invalid argument
fatal: The remote end hung up unexpectedly
I tried doing git cat-file -t 12786e6d70d76ce47ecf69c30e4d0f994d1e2fc3 but that returns 12786e6d70d76ce47ecf69c30e4d0f994d1e2fc3: bad file
How do I see which file is the bad one and how ca... | |
doc_39496 | However, the names of my files are pretty long and look like this:
2018_09_03_abcdef_ghijkl_mnopqr_stuvwx_yz.txt
When I want to change the name of these files, I use the command mv and a shortcut** that permits me to paste the first word/argument (the current name of the file). This gives me the following command:
$ mv... | |
doc_39497 | I then wanted to use lapply to generate a lm matching the rows of
Years Species Farmland
There were two ways of me wanting to do this;
1. To take the lm of one variable name i.e. Starling values across all years (1994:2013)
2. To take the lm of all variables names I.e. Starling, Skylark, Lapwing .... Farmland value... | |
doc_39498 | for m in db.col.find():
db.col.update(
m,
{'$set': {'NameOld': m.get('Name', '')}},
multi=True)
However, when I run
db.col.find({'NameOld': {'$exists': false}})
there are a number of documents that appear without the NameOld field. How is that happening, and how can I make sure it works f... | |
doc_39499 | For example, suppose I have this unapplySeq:
object MyObject {
def unapplySeq(money: String): Option[List[Char]] = {
val amount = money.trim.toList
if (amount.isEmpty) None
else
Some(amount)
}
}
And I try the following match:
"12.15 €" match {
case MyObject('$' , last @ _*) => s"${last.mkSt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.