id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_30100 | 1 form has 2 input fields, Vechile Type and Pricing, the other form has 3 input types, Vechile Type Pricing and Coverage Region
if ($_POST['vehicleType'] == 'lgv' && $_POST['pricing'] == 'fixed' ) {
// Query
}
else if ($_POST['vehicleType'] == 'lgv' && $_POST['pricing'] == 'pump' ) {
// Query
}
else if ($_POS... | |
doc_30101 | Sum from i = 1 to N of X_ijk = W_jk for all values of j,k
Heres what I've tried
N = 10
W = [11 12 13 14 15 16 17;
9 14 21 21 12 15 16;
14 21 15 13 12 17 17]
for i in 1:N
@constraint(m, sum(x[i, j, k] for j in 1:3, k in 1:7 ) >= W[j, k])
end
But i keep getting an error telling me that j and k are not... | |
doc_30102 | class retrofit
class ApiClient {
companion object {
val BASE_URL = "https://refahshahrvand.com/wp-json/"
private var retrofit:Retrofit? = null
private var client:OkHttpClient? = null
fun getClient() : Retrofit {
client= OkHttpClient.Builder()
.readTimeout(100,TimeUnit.SECONDS)
... | |
doc_30103 | public Startup(IHostingEnvironment env)
{
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
.AddEnvironmentVariables... | |
doc_30104 | What should I do to let the user enter after the login window without a refresh?
Explaining the above problem step-by-step:
*
*User enters username and password (if both are correct).
*User is logged in.
But:
*
*User enters username and password (if either of them is wrong).
*Refresh window.
*User enters corre... | |
doc_30105 | I want it to wait till the animation finishes.
A: In this case you just want the first argument of .stop() to be true, like this:
.stop(true)
The first argument clears the queue, the second one jumps to the end, if you just want the queue cleared, leave off the last true :)
| |
doc_30106 | Thanks!
Edit: It seems that re.findall('b(?=(b))','bbbb') returns ['b', 'b', 'b'] like I would expect, but I am still confused as to what re.findall('(?=(b))','bbbb') does.
Edit 2: Got it! Thank you for the responses.
A: The problem is that the capturing group is inside the lookahead.
To do what you want you have to c... | |
doc_30107 |
A: Selenium2Library provides Choose File keyword for the same.
It takes two arguments, first is locator for the button and second is path to the file which needs to be uploaded.
e.g.
Choose File xpath=.//div/input ${TEMPDIR}${/}file_pa.csv
A: If you're using a dialog or input that WebDriver can interact with, then... | |
doc_30108 | # Sample makefile for several modules
#
FC = gfortran
final.x: subs.o func.o maina.o
gfortran -o final.x subs.o func.o maina.o
subs.o: subs.f90
gfortran -c subs.f90
func.o: func.f90
gfortran -c func.f90
maina.o: maina.f90
gfortran -c maina.f90
after running this, my maina.f90 was delete... | |
doc_30109 | The implementation is relatively straightforward: I have a empty div in my page named reportContainer, and use the powerbi.embed(reportContainer, config) provided by PowerBI.js to embed the report.
And it works fine. I can see my report rendered.
I also need to remove the report in some cases. And embed it back if the ... | |
doc_30110 | Here is an example of my code
num = 1
while num < 10:
num = str(num)
'Time' + num = input('Whats the time?') #I need help on this particular line of code
num = int(num)
num += 1
How do I solve the problem?
A: If I understand your question correctly, you want to end up with different variables time1, ... | |
doc_30111 | dynamic parameters = new ExpandoObject();
if (!string.IsNullOrEmpty(action.Post.PictureLocalSource))
{
var pictureTracking = GetNextPhotoFromFolder(action.Post.PictureLocalSource);
if (pictureTracking != null)
{
// action.Post.Picture = pictureTracking.FBPictureRef; // org
action.Post.... | |
doc_30112 | This is what I want to achieve
*
*User presses my extension ison
*Popup appears with two buttons, 'run function a' and 'run function b'
*When they press a button it runs the function in my own js file, that I have injected.
*Function a for example, could be to count the number of elements of a certain type in th... | |
doc_30113 | NOT (topic_id = '123' AND post_id <= '456')
I tried the following - it works but doesn't look like the most elegant solution:
-(@topic_id:[123 123] @post_id:[-inf 456])
topic_id and post_id are NUMERIC and SORTABLE
Thanks for your help!
A: Chris,
Your query looks perfectly valid, the only simplification I would appl... | |
doc_30114 | @Entity
@Table(name = "participantespresentes", catalog = "tagit")
public class Participantespresentes implements java.io.Serializable {
private ParticipantespresentesId id;
private Evento evento;
private Usuario usuario;
private boolean status;
public Participantespresentes() {
}
public ... | |
doc_30115 |
Uncaught (in promise) SyntaxError: Unexpected token 'Y', "You can li"... is not valid JSON
This is in relation to by express ratelimit message parameter:
const addLikeLimiter = rateLimit({
windowMs: 1000, // 1 second
max: 1, //Limit 1 like per one second
message: 'You can like once per second.',
stand... | |
doc_30116 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
if (selected)
[self.imgSelected setImage:[UIImage imageNamed:@"listing-gradient-hover.png"]];//Image that i want on Selection
else
[self.imgSelected setImage:[UIImage imageNamed:@"listing-gradient.png"]... | |
doc_30117 |
2014-08-03 08:04:27,952 FATAL
org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed
for block pool Block pool BP-1086620743-xx.xy.23.162-1407064313305
(Datanode Uuid null) service to
server1.mydomain.com/xx.xy.23.162:9000
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.pr... | |
doc_30118 | Dim fng As Range
Set fng = Range("$AA$1")
If Not Intersect(Target, fng) Is Nothing Then
If Target.Value > 1 Then
MsgBox "You already entered this barrel -- Enter another barrel over the duplicate. If no more barrels, change Grade to X, amounts to 0, and Producer to Z ZZ", vbOKOnly, "OOPS!"
End If
End If
In ... | |
doc_30119 | Somary for below: I need to deserilize A<B<C>> from json with Java Gson library
I have an api that response in this templete (Json):
{code:string, message:string, data:(any json type/object/array)}
In Java I define a class to read results:
public class ApiResult <DATA> {
public String code;
public String mess... | |
doc_30120 |
A: You should use /cygdrive/c/Program\ Files/android-ndk-r8/ndk-build
There is ls command to see what is the contents of folder. So try executing these commands to better understand folder hierarchy:
ls /cygdrive
ls /cygdrive/c
ls /cygdrive/c/Program\ Files
...
| |
doc_30121 | ftmax <- tablemax %>% head() %>% as.data.frame() %>% add_rownames("Stock") %>% flextable()
ftmin <- tablemin %>% head() %>% as.data.frame() %>% add_rownames("Stock") %>% flextable()
ftmax <- set_caption(ftmax, "Greatest positive deviation from distribution")
ftmin <- set_caption(ftmin, "Greatest negative deviation fro... | |
doc_30122 | This is error log.
GC_FOR_ALLOC freed 88K, 9% free 2645K/2884K, paused 73ms, total 89ms
threadid=1: stack overflow on call to Lcom/example/ikmantest2/MainActivity;.getInf later:L method requires 8+20+4=32 bytes, fp is 0x4364f31... | |
doc_30123 |
I get the following [Errno 2] No such file or directory with flask.
see
How can I tell Flask to look in the right place?
See my app.html
from flask import render_template, jsonify, Flask, redirect, url_for, request
from app import app
import random
import os
from keras.applications.resnet50 import ResNet50
from kera... | |
doc_30124 | after making @import 'ico/*.png'; have an error:
Protocol error - /vagrant/tmp/cache/assets/development/sass/33b03b948d3279e6e66ff345db8da54afe7f01c3/*.pngc
How can I fix this?
A: I'm having this same issue and have tried a few different fixes, currently there's an open issue on the Compass Github for it. https://gi... | |
doc_30125 | I optimized the ORM (propel) queries and the database requests are now very fast. What remains is the symfony controller and the twig template rendering engine.
Is there a way to speed up rendering (e.g. switching to php templates?)
Can I get more detailed profiling information than from the symfony profiler?
Here's an... | |
doc_30126 | The test checks configurations on another pc, so I'm using fabric for the ssh connection.
I need to execute a script:
run("cd somepath && ./execute_script.sh")
The problem is that my script needs a sudo to run, but changing the command to this:
sudo("cd somepath && ./execute_script.sh")
does not work since "cd" doesn... | |
doc_30127 | if (top.location.pathname === '/' || top.location.pathname === '/Tickets/Sell/' || top.location.pathname === '/Contact/') {
!function ($) {
The problem is since I have added this statement my Jquery will only work on the pages listed above.
i.e the following statement which is in the on the master page will only r... | |
doc_30128 | Is there a simple way to do this with jQuery, and how does jQuery know what to animate the height to when you do .slideDown() ?
A: You can get the full height of an element with "display: block";
So in case you have a hidden element, you can set it's position to absolute, position it out of the screen and grab it's d... | |
doc_30129 |
*
*Code will check how many entries there are on Sheet1 that need to be checked
*Loop 2: For every value in Column C/Sheet1 with a match in Column A on Sheet 2 it will then copy over the corresponding data from Column B,C,D,E.
*Since there are multiple matches possible by value/Sheet I am limiting the data pull to ... | |
doc_30130 | I would like to capture this traffic in Fiddler, but I'm assuming that Apache is opening another port to perform that communication so Fiddler doesn't know about it.
How should I configure Fiddler to know about that communication?
A: To capture curl traffic use the following line before making any curl calls:
curl_set... | |
doc_30131 | <script type="text/javascript" language="JavaScript">
function HidePart(d) {
document.getElementById(d).style.display = "none";
}
function ShowPart(d) {
document.getElementById(d).style.display = "block";
}
function CheckboxChecked(b,d)
{
if(b) {
ShowPart(d);
}
else {
HidePart(d);
}
}
</script>
<input type="... | |
doc_30132 | The following is emacs's erlang's skeleton codes, it is created by by erlang's plugin for emacs.
When trying to writing the first elixir's gen_server, I can't find this skeleton function is vscode's elixir plugin.
So I wonder whether it is necessary to do the same routine as before? If not, why, if yes, how?
-module(**... | |
doc_30133 | <div id="xyz">
<svg>......</svg>
<img>....</img>
<div id = "a"> hello </div>
<div id = "b"> hello
<div id="b1">I m a grand child</div>
</div>
<div id = "c"> hello </div>
</div>
I want to get all the children with tags as "div" of the parent element with id = xyz in a javascript variable.
Such that m... | |
doc_30134 | Furthermore, I want to use the following lines of code:
Public Sub main()
'Dim CodeModuleSoure As Variant
Dim CodeModuleDestination As Variant
With Application.VBE.ActiveVBProject.VBComponents
'Set CodeModuleSoure = Nothing
Set CodeModuleDestination = .Item(.Count)
CodeModuleDestination.codemodule.addfromstring "Pri... | |
doc_30135 | def exe_run():
os.system(r'"test.exe"')
return
def main_run():
#some code read from arduino serial port
#...
while True:
data = ser.readline()
print(data)
count += 1
if count % 3 == 0:
exe_run() #run def exe_run every 3 times of arduino signal
... | |
doc_30136 | I tried this also =IIF(Globals!RenderFormat.Name="EXCELOPENXML","Arial","HiraginoKaku") still no luck.
I have used Arial as default while creating report.
Please help me how to get this font thing done.
A: I think you might be having a similar issue found in this question below:
Custom font in SQL Server 2005 Reportin... | |
doc_30137 | jQuery(document).ready(function (jQuery) {
jQuery('.open-window').click(function () {
var NWin = window.open(jQuery(this).prop('href'), '', 'scrollbars=1,height=400,width=400');
if (window.focus) {
NWin.focus();
}
return fals... | |
doc_30138 | I have built UI using codename one designer.
help me to solve this issue?
Thanks in advance
A: It seems to be a regression triggered by a previous fix to a different regression. I committed a fix for it here: https://github.com/codenameone/CodenameOne/commit/98754e015c2a462dceb7bafbf4cd292ec9d73ed2
We should push out... | |
doc_30139 | <string name="Name" value="Áý¾µ º£ÍõÔ¤¸æÆ¬-01.wav"/>
The resulting name should be 慢镜 海王预告片-01.wav
How would I turn these back into the correct name?
A: It looks like text encoded in the GB18030 encoding has been interpreted as Lati... | |
doc_30140 |
stuff =' 57107 1 1589 1 2201-1 1 1 1-1 111-1-1-1 3991555 1 2 1 1 695 0A65 -1 1 1 1 2-1-1 24546-1-1 -1 -1-1-1-1-1-1 2 1-155- 1 2 1 2 6 240 1 8 9 1 1-1 1 1 1 2 1 2 57 57 57 1 0 0 2 1 1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1 2-170-1-1 70-1-1-1-1 2-1 14080-1 80-1 697 2 5 5-1 2 3 5 2-1-1-1-1-1-1 -1-1-1-1-1-1-1-1-1-1-1-1-1... | |
doc_30141 | tbl_user
id username
1 kanda01
2 kanda02
3 kanda03
4 kanda04
5 kanda05
tbl_post
user_id post_id
1 1
3 2
1 3
1 4
2 5
1 6
I would like to make a single query to get data as below
user_id num_post
1 4
2 ... | |
doc_30142 | I'm trying to find out how to make multiple select boxes at different width with the same image (with different widths)?
Anyone know how to do this?
Thank you.
A: Hey Erik, I have used this little script all the time, here is what I do to get this effect it's all css.
Below is an example and a photo of the output. Wh... | |
doc_30143 | Is this even possible?
Example:
- Vehiculs (not selectable)
-- Car (selectable)
-- Boat (selectable)
- Computers (not selectable)
Entity Category
/**
* @ORM\OneToMany(targetEntity="Category", mappedBy="parent")
**/
private $children;
/**
* @ORM\ManyToOne(targetEntity="Category", inverse... | |
doc_30144 |
*
*Should Start with either X or Y.
*Followed by an even number (3 digits max).
*And if the password started with an X, it should end with either an A or a B.
Can anyone help me, please?
A: Try this. This is Java but the expression is pretty much vanilla regex
*
*\\d{0,2} 0 to 2 digits
*[02468] is an even ... | |
doc_30145 | *
*Can somebody explain, why do we have to implement hashCode() and equals() method everytime we write a new class? Its a good practice to write hashCode() and equals() for a new class?
*How Does hashcode() works in hashMap?
*Why does TreeSet sort like?
Entries
"102. Hello one o two"
"12. Hello twelve"
"1. Hello ... | |
doc_30146 | Here is the function which is supposed to handle the login:
const handleLogin = useCallback(async (credentials) => {
if (!credentials.email) {
return setError('email is missing')
}
if (!credentials.password) {
return setError('password is missing')
}
try... | |
doc_30147 | Some say in terms of performance - there is hardly any difference as quoted here by Greg Beech's analysis
in calling a method two billion times you could save yourself around 5ms by making it static, which is a saving of approximately nothing for each method call
But if I understand the concept of static methods corr... | |
doc_30148 | I'm asking for any nice examples or solutions providing server and client-side code (Android client & backend for both the Android & iOS).
I know services such as pushwoosh. They didn't work for me since my company has its own game server and would like to send notifications from it.
I guess it's not something unique ... | |
doc_30149 | public class Maze {
int[][] grid;
private final int TRIED = 2;
private final int PATH = 3;
public Maze(String fileName) throws IOException {
BufferedReader in = new BufferedReader(new FileReader(fileName));
String s;
String [] aux= new String [2];
int x=0;
aux... | |
doc_30150 | df_example = pd.DataFrame({'colA': [10, 20, 30], 'colB': [40, 50, 60]})
print(df_example.head())
output:
colA colB
0 10 40
1 20 50
2 30 60
I need to retrieve multiple subsets from colA based on boolean masks.
For example, assume we want to extract 5 subsets from colA. Then we have 5 boolean mask... | |
doc_30151 | The installation details are as follows:
Installation Path :
C:\apache-maven-3.0.4
Environment Variables are:
M2_HOME C:\apache-maven-3.0.4\apache-maven\src
JAVA_HOME C:\Program Files\Java\jdk-1.7.0_04
Path variables added are:
%M2_HOME%\bin;%JAVA_HOME%\bin;
In the command window it shows it like this:
C:\>jav... | |
doc_30152 | let result = {};
let miles = ['5','10','15','25'];
let i = 0;
while (i < miles.length) {
Shops.find({ 'shopInfo.address':{ $geoWithin:{ $centerSphere: [ [ 75.83183541365247, 30.902146005639267 ], miles[i] / 3959 ] } } }).then(response=>{
if(i==4){
result[miles[i]] = response.length;
... | |
doc_30153 | Eg. In the sentence I want to replace à with a and è with e I want to replace à with a and è with e both in same query.
If I use replace simply it doesn't work in SQL Developer 21.2.
Oraccle database: 12 c
I took dump of the problem character:
select dump('é', 1016) from dual
Result:
Typ=96 Len=2 CharacterSet=AL32UTF8:... | |
doc_30154 | The result I want to see is that one black div block contains a blue div block and display five times. But the result is five blue div blocks all in one black div block. Can someone tell me why?
function createDiv() {
for (let i = 0; i < 5; i++) {
let newDiv = document.createElement("div");
let myDiv = docu... | |
doc_30155 | Potential problems described below ................................................................................ Error: Could not connect to the configured hostname/IP address #https:/myserver.com/ #If your BigBlueButton server is behind a firewall, see FAQ.
Trying to open this URL with my Browser works perfect.
Out... | |
doc_30156 | How to accomplish global notification in GetX.
A: You should declare the value you want to show across your app to be observable so the controller can keep track of it
String sameValue = "same value".obs;
and the way you want show it on the UI is like
Obx(() => Text("${your_controller.sameValue}"))
| |
doc_30157 | Traceback (most recent call last):
File "/Users/admin/Desktop/week6/question_7.py", line 87, in <module>
File "/Users/admin/Desktop/week6/question_7.py", line 79, in do_stuff
print (display_grade(user_in))
TypeError: int() argument must be a string, a bytes-like object or a
number, not 'NoneType'
I am having... | |
doc_30158 | class Main {
public static void main(String[] args) {
int count=0;
String str = "corresponding";
for(int i=str.length();i>=0;i--){
if(i=='a' || i=='e' ||i =='i'|| i=='o'|| i=='u'){
count +=1;
if(count==2)
System.out.println(i);
... | |
doc_30159 | returned Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'add'). The class 'form-control' is on all inputs
const forms = ".form-control";
if (device.name === "Panel") {
await page.evaluate((s) => {
let dom = document.querySelectorAll(s);
dom.classList.add("_has_erro... | |
doc_30160 | list_names = [
{"name":"Jullemyth","seat_number":4,"category":"Student"},
{"name":"Leonhard","seat_number":1,"category":"OFW"},
{"name":"Scarion","seat_number":3,"category":"Businessman"},
{"name":"Jaguar","seat_number":2,"category":"Animal Manager"},
{"name":"Cutiepie","seat_number":10,"category":"... | |
doc_30161 | https://github.com/TheF1rstPancake/airflow-salesforce
When I try to import the plugin
from airflow.operators import SalesforceToFileOperator,
I get the error message stating ImportError: cannot import name 'SalesforceToFileOperator'
How do I import this plugin on Airflow?
Current Directory Structure
DAGS
salesforce... | |
doc_30162 | <TABLE border="1" width="100%">
<TR class="row0">
<TD style="width: 30%"><strong>TITLE</strong></TD>
<TD style="width: 40%">UNIQUE</TD>
<TD style="width: 15%"><strong>BU Assigned</strong></TD>
<TD style="width: 15%">REMOVED</TD>
</TR>
<TR class="row1">
<TD style="w... | |
doc_30163 |
A: Maybe you can try these :
*
*Store your program name in hashed format, so instead of www.mywebsite.com/programs/paint.exe maybe it's better in something like this www.mywebsite.com/programs/ca63ff966ff272da14e4fc2e73fcd399. You atleast have store your paid programs in a table and that table should provide its ha... | |
doc_30164 | $("#myid").keydown(function() {
event.preventDefault();
if (event.ctrlKey) {
if (event.keyCode == 65) {
alert("Hi Team")
}
}
})
Now,I need to restrict both default action of "ctrl+A" event and also to restrict my own code to display alert message also.
How to achieve this?
A: Try this:
$("#myid").... | |
doc_30165 | Step1 : I downloaded the qtbase source code from the git hub https://github.com/qtproject/qtbase.git
Step2 : After the qtbase was downloaded i just went inside the folder qtbase and ran a command (am using mac mini-osx 10.10.4 yosemite)
./configure -xplatform macx-ios-clang -release
Step3 : then am running
mak... | |
doc_30166 | The iPhone 4S uses the latest update. However, when I try it on iPhone 6s or 7 it doesn't play for some reason.
What could be the reason for this breaking behaviour in newer iOS devices?
| |
doc_30167 | <div style='width: 700px; border: 1px solid red;'>
<table border="1" style='table-layout: fixed;'><tbody>
<tr>
<th style="" colspan="3">Group 1</th>
<th style="" colspan="5">Group 2</th>
<th style="" colspan="4">Group 3</th>
</tr>
<tr>
<th styl... | |
doc_30168 | <?php
$ref = $_SERVER["HTTP_REFERER"];
echo "Referrer = $ref";
?>
What is wrong with code? All it displays is "Referrer = "
A: When you clicked from another link $_SERVER["HTTP_REFERER"] can initialize.
| |
doc_30169 | Is it possible to append video file?.
I use this code:
ffmpeg()
.input(filePathTMP)
.on('error', function(err) {
console.log('An error occurred: ' + err.message);
})
.on('end', function() {
console.log('Merging finished !');
})
.mergeToFile(filePath, filePathBase + 'temp');
This... | |
doc_30170 | Here's what I have in my ViewController so far, which is the delegate for many CollectionView cells:
override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
// Get the indexPath by visible card
var visibleCurrentCellIndexPath: IndexPath? {
for cell in self.collectionView.visib... | |
doc_30171 | [{
"outdoor": {
"location": {
"type": "Point",
"coordinates": [
-92.41151,
35.11683
]
}
},
"geoHash": "dr72jwgnbbst", "status":"Active","customerId":"8047380094","locationId":"A0"
... | |
doc_30172 | I am using a with , each one with a unique data-row and data-column. The pieces are stored in a two dimensional array that holds their initial position. aPosit[[1,1]]="♖" *White Fortress*. Each <td> also has an onclick function (that reads its id and stores it in a variable elemId1) and an onwheel function that c... | |
doc_30173 | (Source: https://docs.swift.org/swift-book/LanguageGuide/TypeCasting.html)
I think an anonymous function is added to the collection and later gives it a name in the switch statement to work with it...
A: things is an Array that has no constraint on what it can contain...
var things: [Any] = []
And it contains all sor... | |
doc_30174 | This is my code:
int main(void)
{
int userInput, substitutionsNum = 0;
printf("please enter your input:\n");
while ((userInput = getchar()) != '#')
{
if (userInput == '.')
{
userInput = '!';
++substitutionsNum;
}
else if (userInput == '!')
... | |
doc_30175 | I can not believe that threejs has a problem with GIF animations. Is it really hard to implement?
I only want to add to my space rocket prepared to fire from my graphic designer.
Any clues? Please I'm run out of the ideas.
A: You can't directly use an animated GIF in three.js as a texture. You have the following opti... | |
doc_30176 | My load-time-weaving Aspect is working for some classes in the same package as the class i'm really interested in. So I think I am hitting the problem that the bean class has been eagerly loaded before it can be loaded in the TomcatInstrumentableClassLoader
I've seen warnings about this in questions such as:
(a) Aspec... | |
doc_30177 | Which CSS selector will select only the word "bar" for styling?
<p class="a">foo, <span class="a">bar</span></p>
*
*span.a
*p .a
*.a span
*All of these
The answer given was (4).
(1) is obvious because only bar (and not foo) can affected by a span selector with class a, but (2) and (3) are less obvious. Would ... | |
doc_30178 | I am looking for a generic solution, so I just write a method & reuse everywhere else.
The Generic solution I have decided is to iterate the request bean object & through reflection iterate over its methods & check each value for Baltic characters.
Another solution I had is to iterate HttpServlet request parameters & c... | |
doc_30179 | - api/Item
- api/Item?name=test
- api/Item?updated=2016-10-12
- etc
I've defined the methods as:
- get() //returns all items
- getName([FromUri] string name)
- getUpdated([FromUri] string updated)
My issue is - if parameter doesn't exist (let's say the call was api/Item?test=test), the get() method is called ... | |
doc_30180 | -[CFNumber intValue]: message sent to deallocated instance 0xc4bb0ff0
I am not releasing these buttons anywhere in my code. I haven't set them to autorelease or anything like that. I'm just wondering why they are doing this on the click.
The button click event:
- (IBAction) ButtonClick: (id) sender
{
HouseholdVie... | |
doc_30181 |
I'd like to find out how many rows exist in the table per day so I crafted this SQL query:
select timestamp_trunc(datetimecreated,DAY),count(*)
from `p.d.t`
where datetimecreated > '2000-01-01'
group by 1
order by 1 desc
I was hoping that BigQuery would be able to return the results rapidly because this is basically ... | |
doc_30182 | Please find error message below:
There were problems with your submission.
Invalid or non-existent app url
What is strange... when I provide an address for any website (not linking to Google Play application), followed by http://, there is no problem at all!
Has anyone of you also encounter such a bug on AdMob website... | |
doc_30183 | I have a ContainerFragment in which there is a ViewPager. CameraFragment is being shown in this viewpager. The shutter button is in ContainerFragment and I'm using an interface to receive callback in CameraFragment when shutter button is clicked in order to click picture. When callback is received then I try to capture... | |
doc_30184 | When calling the GUI I decalare Results struct so contain all results from the analysis and I want to store it .mat file with all the data created during the analysis (stress-strain curves, dimensions, etc.)
The Results.whatever is declared when GUI is started to be nan and proper value is set in callbacks. When I make... | |
doc_30185 | df= pd.read_csv('data.csv')
df['dates'] =pd.to_datetime(df["notification_date"], dayfirst=True)
df['dates'] = datetime.datetime(df['dates'], format = '%d/%m/%Y')
| |
doc_30186 | <?xml version="1.0" encoding="UTF-8" ?>
<response success="true">
<struct>value</struct>
</response>
while parsing i am getting following error as
Root element is missing.
the code which i used was
foreach (XElement carselement in xdoc.Descendants("response"))
{
String ... | |
doc_30187 | Button.jsx file:
import styled from 'styled-components';
const Button = styled.Button`
display: flex;
align-items: center;
justify-content: center;
height: 50px;
width: 300px;
background: ${(props) => {
let bg;
if (props.disabled) {
bg = props.theme.colors.disabled.background;
} else i... | |
doc_30188 | My Test::Unit tests started returning the error below. The relevant line seems to be:
`load_missing_constant':
Expected /Users/ethan/project/mtc/webcalendars/app/models/calendar.rb
to define Calendar (LoadError)
The file mentioned, calendar.rb looks fine. I can't find any errors in it. I tried removing the unit ... | |
doc_30189 | a little box. And now i want the other around by clicking
the icon then shows up a label for short description. How to achieve this in the code.
Hope anyone could help me here just to start with.
<script type="text/javascript">
var map = new google.maps.Map(document.getElementById('map-canvas'),{
center:{
... | |
doc_30190 | const testdataurl = 'https://api.data.abs.gov.au/data/ABS,RES_DWELL/3.3GBRI.Q';
async function getData() {
const response = await fetch(testdataurl);
data = await response.text();
console.log(data);
}
getData()
You can see the API endpoint in the code above if you want to have a look at the XML. ... | |
doc_30191 | public class ThoughtsProvider extends ContentProvider {
private static final String AUTH = "com.bi.thoughts4u.ThoughtsProvider";
public static final Uri THOUGHTS_URI = Uri.parse("content://"+AUTH+"/"+DbHelper.TABLE_NAME);
final static int THOUGHTS = 1;
SQLiteDatabase db;
DbHelper dbHelper;
private final static UriMat... | |
doc_30192 | namespace Model
{
public class Person
{
public int PersonID { get; set; }
public string Name { get; set; }
}
}
namespace Domain
{
public class Person
{
public int PersonID { get; set; }
public string Name { get; set; }
}
}
namespace Presenter
{
public class ... | |
doc_30193 | So in mouselistener, I know, I can use getX() and getY(). After that, how can I say in which row and column I clicked? Should I divide the panel to little areas? I hope the question was understandable. I read questions here, like this, but I do not really found answer...
Up to now I wrote this:
public void ... | |
doc_30194 | The command looks like this
java -jar liquibase.jar update --classpath=mypath ...
The sl4j jar is present in the lib package of my liquibase.
What should I do to solve the error.
The error log is as follows:-
Exception in thread "main" java.lang.NoClassDefFoundError:
org/slf4j/LoggerFactory at
liquibase.loggin... | |
doc_30195 | i dont know whats the problem maybe i'm overlooking,
can u pls tell me i have i gone wrong.
if you need the html code let me know
suggestions on how to improve this code would be gratefully appreciated :)
PHP CODE:
<?php
function clean($str)
{
$str = mysql_real_escape_string($str);
$str = htmlspecialchars($str);
$str =... | |
doc_30196 | Basically, I want to find the pages that have the 4 little black squares in the corners (see examples at the end of the question). I am sure that the separators are the only pages with those black squares.
I'm trying to use python and opencv to obtain this result, but I don't think I understand it well enough. I also t... | |
doc_30197 | Goal: Code Coverage Report that excludes test project code to later be converted to a .coveragexml for reporting to SonarQube 5.1.
Annoyance I wouldn't even know of this parse error without adding the /verbose switch to the command. My only indication of a failure was the .coverage file was no longer being generated w... | |
doc_30198 |
A: I've never used the Test Suites feature before, but when I tried to reproduce your issue I found that saving and then opening a test suite was enough to break it. I was never able to get it to run again. Apparently this is a known issue:
http://jira.openqa.org/browse/SIDE-191
The depressing part is that the bug lin... | |
doc_30199 | A = array([2,3,5,4]).reshape(2,2)
b = array([4,3])
P,L, U = lu(A)
And the results for L and U
L:
array([[ 1. , 0. ],
[ 0.4, 1. ]])
U:
array([[ 5. , 4. ],
[ 0. , 1.4]])
Result for L*U
dot(L,U):
array([[ 5., 4.],
[ 2., 3.]])
So instead of ((2, 3),(5, 4)), I'm getting (( 5., 4.),( 2., ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.