id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23503800 | Let me explain.
I have class called Bank.
In that class there are 4 methods called
1. Deposit ()
2. Withdraw ()
3. Check balance()
4. DoEverything() which basically calls the methods 1,2,3 one after the other sequentially.
Let's hope for now, All the first 3 methods are independent, ie they won't call other methods.
... | |
doc_23503801 |
Unexpected character sequence. Expected a property name for the
" : " declaration
I haven't found out a concrete way to get the errors to stop, VS2008 just seems to stop caring after a while. I found this article, but I am unsure of how to edit the files properly so this "error" (since it is legal syntax) will not... | |
doc_23503802 |
This has been asked before, and the answers are basically: System icons are for system styles. You cannot change the icon of a system item. Okay, but the System Item is set to Custom, and the Image field is there for a reason. How can these system images be used?
| |
doc_23503803 | struct CreditDetailsView: View {
@EnvironmentObject var session: Session
@StateObject var transactionsModel = TransactionsModel(token: session.token)
The code above will not work (understandably) because:
cannot use instance member 'session' within property initializer; property initializers run before 'self' is a... | |
doc_23503804 | Column F cell will collect the 20 value from a formula in Column E cell E2.
So in Column F i want use a formula like : B(E2). this formula will collect the value from B20 to the F column cell.
I am working with multiple sheets with more than thousand data.
It would be a great help.
Please help.
A: Try this formula... | |
doc_23503805 | This page uses a redirect to pass data to other php scripts.
EDIT: 1:05am
A: I assume that you meant 1:05am.
Use .getMinutes() and .getHours().
var currentDate = new Date();
if(currentDate.getHours() == 5 && currentDate.getMinutes() == 5) {
// run some code
}
A: Using a cron you could add something like this... | |
doc_23503806 | Applying the same method with pymeshlab, loading the object applying the filter compute_selection_by_self_intersections_per_face does not return any selected faces. How can I get the faces that the filter have selected.
At the end of the next example when I call ms.current_mesh().selected_face_number() it returns zero
... | |
doc_23503807 | <a href="#" class="slider-1-prev">prev</a>
<a href="#" class="slider-2-prev">prev</a>
How do I make it both click if I click any of it ?
If I click .slider-1-prev, at the same I click .slider-2-prev
If I click .slider-2-prev, at the same I click .slider-2-prev
How to make it by javascript ?
A: As well as triggering t... | |
doc_23503808 | And here is coding example.
class Parent{
String name
static hasMany = [childs:Child]
static constraints = {
}
}
class Child{
String name
static belongsTo = [parent:Parent]
static constraints={}
}
Problem is as soon as I get the parent object the child objects associated with parent class wer... | |
doc_23503809 | Is it possible to restore the drag-n-scroll behavior of the ScrollViewer?
<Window
x:Class="CustomCalendar.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"
Width="500"
Height="400"
>
<Window.Resources>
<Style x... | |
doc_23503810 | myBelongings = [
0: {value: 0, label: "Pen"}
1: {value: 1, label: "Handbag"}
2: {value: 2, label: "Notebook"}
2: {value: 3, label: "Laptop"}
];
let result = myBelongings .filter((item)=>{ item.value== 'Notebook'});
However the result turns out to be an empty array. Could you help me find the fix?
A: Your variable m... | |
doc_23503811 | The output is simply all possible permutation from elements in A which can be done by single transposition (single flip of two neighbouring elements) operation. So the output is :
[3,2,4,1],[ 2,4,3,1],[2,3,1,4],[1,3,4,2]
Circular transpositioning is allowed. Hence [2,3,4,1] ==> [1,3,4,2] is allowed and a valid output.... | |
doc_23503812 | api.js looks something like this:
var express = require('express');
var router = express.Router();
router.post('/', function(req, res){
res.end(req.body);
});
module.exports = router;
I'm using Postman chrome extension to post to this route. The response is empty {}.
The question is: as long as I have in my a... | |
doc_23503813 | the third column in the file is a link. I need to add a String (ex.: "/ref="04" ") at the end of every Link and then safe it.
file looks like this
Products--------Description-------Link
Apple-----------blablabla---------http://www-anylink.com
Banana----------blablabla---------http://www-anylink.com
Should look like t... | |
doc_23503814 | Now I'd like to make that list complete and totally awesome! :)
My raw data(Excel 2010) looks like this:
Time Wagons Delete DayType Plate trainnumber RowId
05.28 1 1 0901-046 2 38676
08.20 2 1 0901-003 2 18676
05.25... | |
doc_23503815 | # check mob collision
for mob in mobs:
temp_sprites.add(mob)
mobs.remove(mob)
collision = pg.sprite.groupcollide(temp_sprites, mobs, True, True)
for col in collision:
# score is just for the game
score += col.size
else:
mobs.add(mob)
all_sprites.add(mob)
temp_spr... | |
doc_23503816 | User calls
php scriptName --setAppName [new name]
on the command line and as a result, a directory is renamed.
To begin with, the default name of the folder will be 'App Name'. I obviously do not want to hard code this because once changed I want to retain the functionality of the script.
So is there a way for this... | |
doc_23503817 | When i fill my fields in one form, after pressing button, all forms are reloading without saving, and every field in every form must be filled out so they're treated like a one part how to avoid it ?
Additional info ( Info is my main modal with news, it's joined with Com modal)
index.ctp Form
<br><h5>Add comment:</h5><... | |
doc_23503818 | Here, the question is sizes of these two instances (master & slave) should be same? or we can have different configurations for master and slave? if possible could you please share the documentation link?
Note: I looked at this best practices, but didn't find the information which I am looking for
Many Thanks,
Suresh.
| |
doc_23503819 | How do I do this, as per my knowledge the spring displaytag does not support Map.
Please help
Code:
below is the formBackingObject function, how do I display this in the jsp form?
public class ABCListingController extends SimpleFormController {
@Override
protected Object formBackingObject(HttpServletRequest request)
... | |
doc_23503820 | I have another Excel file that need to be filled with information coming from the Excel file Database.
Is it possible for the Excel Database file to populate lists into my other excel file ?
Thanks a lot
A: Under the Developer tab in Excel you can select 'Insert' and then 'Listbox'. Create your list box in excel, t... | |
doc_23503821 | {
"info": {
"_postman_id": "ac691afd-f987-47ca-82d3-dae2a367e3df",
"name": "ParseGo",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Gogo",
"request": {
"method": "GET",
... | |
doc_23503822 |
A: Since GWT still compiles down to Javascript you can make HTML5 widgets by either using JSNI or DOM Manipulation setting Attributes for HTML5 Properties.
If you wanted to do vector drawing (canvas) you can use: http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas
A: GWT 2.2 adds support for canvas.... | |
doc_23503823 | I know that there is a method compile, which is defined in Behaviour class, but this one adds the new method I want to the class Instance methods. Is there a way to compile it to the class methods (so it will be a method which is defined for the class, and not for an instance of the class).
Thanks,
A: As every class i... | |
doc_23503824 |
A: Usual java.io.File Java API does not work on BB.
See BB API documentation for javax.microedition.io.Connector and javax.microedition.io.file.FileConnection.
You will need to do something like:
FileConnection fconn = (FileConnection) Connector.open("file:///CFCard/newfile.txt");
// If no exception is thrown, then t... | |
doc_23503825 | Traceback (most recent call last):
File "njlispendens.py", line 482, in <module>
File "selenium_stealth\__init__.py", line 45, in stealth
File "selenium_stealth\utils.py", line 8, in with_utils
File "pathlib.py", line 1132, in read_text
File "pathlib.py", line 1117, in open
FileNotFoundError: [Errno 2] No suc... | |
doc_23503826 | My program doesn't print characters from 0 to 32. Otherwise, it works.
Code:
#include <stdio.h>
int main(){
int i;
for(i=0; i<=127; i++){
if(i%10 == 0){
printf("--------------------\n");
printf(" Dec Char \n");
printf("--------------------\n");
... | |
doc_23503827 | <?xml version="1.0" encoding="UTF-8"?>
<Reporting>
<Selection>69</Selection>
<MonthEndDate>9/30/2016</MonthEndDate>
<Email>
<Name>abc</Name>
<Address>abc@gmail.com</Address>
</Email>
<Request>
<Port_id_list>
<Port_id>1901</Port_id>
<Port_id>1902</Port_... | |
doc_23503828 | Property 'theme' does not exist on type 'MenuListComponentProps<{}>'. TS2339
Relevant code:
import { CSSProperties } from "react";
import Select, { MenuListComponentProps } from "react-select";
<Select
...
styles={{
menuList: (base: CSSProperties, state: MenuListComponentProps<{}>) => ({
"::-webkit-scr... | |
doc_23503829 | I'd like to have
... 1 n, 1 µ, 1 m, 1, 1 k, 1M, 1 G, ...
instead of scientific format
... 1E-09, 1E-06, 1E-03, 1, 1E+03, 1E+06. 1E+09, ...
Perhaps adding an unit like V (volts), F (farad) etc.
I would be perfect, if the cell would still contain the number and not a string, so it can easily be changed to another forma... | |
doc_23503830 | curl -u testclient:testpass http://mybackend.somedomain.com/token.php -d 'grant_type=client_credentials'
Now I try to translate this to my angularJs (ionicframework) frontend.
(The php-backend is on a different server, so this might maybe have something to do with CORS, too, though I don't know how)
In my frontend I t... | |
doc_23503831 | The code is here:
char *word = ".gz" ;
char *word2 = ".";
char *word3 = "..";
DIR *directory;
struct dirent *dir;
directory = opendir("/var/log");
if (directory) {
while ((dir = readdir(directory)) != NULL)
{
if((strstr(dir->d_name, word) == NULL) && (strstr(dir->d_name, word2)... | |
doc_23503832 | transition: opacity 1s
will be faster than this
transition: all 1s
?
| |
doc_23503833 | function update_counter() {
const channels = fs.readFileSync('./channels.json', {"encoding": "utf-8"}); //doesn't work
channel_count_template.channel_count = 0
channels.forEach(channel => {
channel_count_template.channel_count += 3000;
fs.writeFileSync("channels-count.json", JSON.stringi... | |
doc_23503834 | this is my service code
this.getProjectFunction = function (options) {
$http.get(rootUrl + $routeParams.projectName)
.success(options.success)
.error(options.error);
};
And this is how my test looks like
describe('App Service', function(... | |
doc_23503835 | So if I am exchanging messages with user1, user2, user3,
instead of showing all their messages in the inbox like this:
user2 - message 6
user3 - message 5
user2 - message 4
user1 - message 3
user1 - message 2
user1 - message 1
I only need to show in my inbox the latest message from each one of them like this.
user2 -... | |
doc_23503836 | The problem I am having I believe is getting the correct API key authentication. The images that are uploaded are images that are considered public but only public to the users of my app so reading Authorize Requests documentation says that I do not need to provide an OAuth key for public data and I can just send an AP... | |
doc_23503837 | // Note: the first block below generates no error's with the compiler, but the data
// in the structurer is wrong.
// the 2nd block give warning, but the data is correct... why??
// NMEA2000.c:289: warning: missing braces around initializer
// NMEA2000.c:289: warning: (near initialization for 'static_can_fi... | |
doc_23503838 | C:...\Inventory\bin\Debug\NServiceBus.Host.exe
Notice it specifically points to the debug directory. So basically even though I’m in release config it’s firing up the host in the debug directory which I think is then using the dll's in the debug directory (which is why my changes didn't get picked up).
I tried to come... | |
doc_23503839 |
*
*allows to paint text in different font types, sizes and colors
*allows to select previously drawn text and copy it
*paints images on a given coords, gif support would be nice
*its very fast in terms of CPU usage
I need this component as a main chat window. I don't want to use it as a text editor.
I've tried... | |
doc_23503840 | I'm tracking how people are feeling, so my model is called TrackMood It just has a column called mood and the timestamps.
If I do
TrackMood.where(mood: "good").group("hour(created_at)").count
I get something like
{11=>4, 12=>2, 13=>2, 15=>1}
I've got 2 issues here
1 How do I add the day into this so it doesn't ju... | |
doc_23503841 | Below the template helper 'findClientLiason' is called twice (it's output logged 2x in the console). The first time the user will show up as 'undefined' the second time the correct user object will come through the way I expect it to. Both times the 'clientLiason' will output correctly.
The most interesting thing to me... | |
doc_23503842 | index.php
$.ajax({
url: 'array.php',
type: 'GET',
complete: function(data) {
$('#div').html(data.responseText);
}
});
array.php
$arr = array('red', 'blue', 'green');
echo $arr; //echo it?
As you can see, I'm trying to load $arr into a div on index.php. Is this possible?
A: You can't get it as a P... | |
doc_23503843 | Description: from machine A(source machine) i trying to get http response from machine B(10.13.0.69).
Important part: machine B(target) is located behind VPN tunnel.
Machine B is reachable from machine A. I have no problems, if i try to access this URL from machine A OS (with curl for example):
[root@Test-LAPP01 test]#... | |
doc_23503844 | Is there a solution to broadcast a message when my app is launched across multiple workers - for example using hypercorn?
I'm currently launching my app like this:
$ hypercorn -b 127.0.0.1:8000 -w 4 wsgi:app
But the documented solution is to keep the connected clients in memory, with no way to broadcast to others that... | |
doc_23503845 | Regards
Edit:
private void globalGif() throws FileNotFoundException{
FileInputStream fis = openFileInput("frog");
GifMovieView gmv = new GifMovieView(getApplicationContext(), fis);
setContentView(gmv);
}
I use this code but it shows this error. divide by zero fis haven't gif file.
A: you can find the path... | |
doc_23503846 | I generated Model and CRUD with GII and modified it just a little to get risk_value column in my GridView widget.
Here is my Strategy.php
<?php
namespace backend\models;
use Yii;
use yii\db\ActiveRecord;
use yii\helpers\Url;
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\db\Expression;
/**
* This is the... | |
doc_23503847 | Yesterday, I added a new subproject to our build, and almost all builds fail now on the out of memory issue. It looks like adding subprojects also adds to the amount of memory used for our build.
I've tried several things to reduce our memory load:
*
*Add _JAVA_OPTIONS: "-Xms512m -Xmx2048" to circle.yml as described... | |
doc_23503848 | I try to forbid access to a route (view-router) through a role.
For roles, I use the spatie/laravel-permission package.
I set up view-auth rolesVar like this:
const config = {
rolesVar: 'roles',
…
}
Here is an example of a user in json
{
"status":"success",
"data":{
"id":1,
"first_name":"John"... | |
doc_23503849 |
A: A code running in any given thread cannot be stopped at an arbitrary point without corrupting the state of the shared data structures in your code and/or the C/C++ runtime or any other libraries that are used.
The code can only stop at well-defined points.
If your thread runs an event loop (i.e. usually if you don... | |
doc_23503850 | I want to pass data from CountryDropDown (and from FieldDropDown class which looks almost same, and from DateSelector class but thats maybe later) class to Restrictions and then to UserOffers (with updating List by tapping a button).
For now I can only define variable in Restrictions class and pass it like this. All on... | |
doc_23503851 | I have a persistence.xml file, and everytime I want to query the database, I'm doing this:
EntityManagerFactory emf = this.getEntityManagerFactory();
// Surely using persistence.xml to set up the factory
EntityManager em = emf.createEntityManager();
...
Where do I build the bridge between my external connection pool ... | |
doc_23503852 | {"id":12345, "title":"Huawei: Sv�?e?ka optick�ch vl�ken"}
The same string I have in my app and I don't know how to parse it. It is czech diacritics.
The code of my method is here:
public static String getJSONString(String url) {
String jsonString = null;
HttpURLConnection linkConnection = null;
try {
... | |
doc_23503853 | let rec merge (l: 'a list, m: 'a list)=
match l,m with
|[],[] -> []
|[],mi::mf -> mi::mf
|li::lf,[] -> li::lf
|li::lf, mi::mf -> if li<mi then li::merge (lf,mi::mf)
else mi::merge(li::lf,mf)
let split (l: 'a list)=
let n= l.Length
if n%2=1 then
... | |
doc_23503854 | function cleanUpNames() {
var currentSheet = SpreadsheetApp.getActive().getSheetByName('Sheet1');
var currentSheetLastRow = currentSheet.getLastRow();
//Range of cells in the third column, that are just names
var firstNames = currentSheet.getRange('C2:C' + currentSheetLastRow);
//Range of cells in the fourth column
... | |
doc_23503855 |
*
*When changing tabs, where a tab is a particular screen, screens should not refresh, but the state of each screen should be maintained
*It must be possible to change tab using both the BottomNavigationBar or Navigator
I am trying to build a proof of concept (on GitHub) considering the above but it is not working ... | |
doc_23503856 | class HomeViewController: UIViewController {
@IBOutlet weak var accountButton: UIBarButtonItem!
override func viewWillAppear(_ pAnimated: Bool) {
super.viewWillAppear(pAnimated)
self.accountButton.title = User.current!.firstName
}
@IBAction func accountButton(_ pSender: UIBarButtonItem) {
... | |
doc_23503857 | Module Module1
Sub Main()
Dim strInputString As String = String.Empty
Dim lstPermutations As List(Of String)
'Loop until exit character is read
While strInputString <> "x"
Console.Write("Please enter a string or x to exit: ")
strInputString = Console.ReadLine()
If strInputString ... | |
doc_23503858 | I'm planning to deploy the application to a apache2 server now. This is how it looks right now.
I have a httpdocs folder on the server which is accessible from the web. If I copy all files into this directory some files might be accessible that shouldn't. The public folder contains the files that have to be accessible... | |
doc_23503859 | [Serializable()]
public class ReadCache : ISerializable
{
protected ArrayList notifiedURLs;
// Default constructor
public ReadCache()
{
notifiedURLs = new ArrayList();
}
// Deserialization constructor.
public ReadCache(SerializationInfo info, StreamingContext ctxt)
{
//... | |
doc_23503860 |
A: I implemented a quick example in python:
import numpy as np
import matplotlib.pylab as plt
num_cyc, n_samples = 10, 401
x = np.linspace(-np.pi, np.pi * num_cyc, n_samples)
y = np.sin(x)
y_ = np.convolve(y, np.ones(num_cyc*20)/(num_cyc*20), mode='same')
thres = 0.01
y_sq = [1 if n >= thres else -1 for n in y_]
p... | |
doc_23503861 | public class MyTreeNode : System.Windows.Forms.TreeNode
{
[Localizable(true)]
public bool Foo { get; set; }
}
I try to clone the node:
MyTreeNode myTreeNode = new MyTreeNode();
myTreeNode.Foo = foo;
//
//And here is the problem, all fields have been copied to the new node but Foo
//
MyTreeNode newNode = (MyTre... | |
doc_23503862 | Also, When the video is seen there is a cross button. It should close the video on clicking but with CSS only. I tried to do this using the checkbox CSS hack but it doesn't work.
body {
background: #000;
}
.play {
position: absolute;
bottom: 50px;
left: 100px;
display: inline-flex;
justify-content: flex... | |
doc_23503863 | We moves files from this collection folder into a processing folder. The problem is that a lot of the times we problem is that there could be a 10 minute lag between the time one file is deposited and the companion file.
Since I'll be fairly sure that all necessary files will be deposited in 30 minutes, I'm trying to c... | |
doc_23503864 | is it possible to filter a dict more shortly than
>>> a={1:'a',2:'b',3:'c',4:'d',5:'e'}
>>> filterlist=[1,3,5]
>>> b=dict((key,value) for key,value in a.iteritems() if key in filterlist)
>>> b
{1: 'a', 3: 'c', 5: 'e'}
the filtering(sorting) might be based on values or keys
EDIT1 :as mentioned in the below comments its... | |
doc_23503865 | We struggle with the following: Suppose we have an A entity with one-to-many relationship to B entities. When mapping we would like to convert the field produktId (e.g. 1234) in B entity to a modified value in B Dto (e.g. 00001234).
Is it possible to have objects converted in a list while mapping from list to list?
cl... | |
doc_23503866 | What I have now done is changed our entire build process so that nothing is manual anymore and I am now using the build workflow with TFS/VS 2010 which is nice.
But TFS automatically puts everything in read-only mode when it deploys the code.
Is there a way to programatically (at any step in the process), change the a... | |
doc_23503867 | I only get half of the href like this
"institutions-detail.php?city=51I&institute=721_institute-of-space-technology-islamabad"
import requests
from bs4 import BeautifulSoup
from fake_useragent import UserAgent
ua = UserAgent()
header = {'user-agent':ua.chrome}
response = requests.get('https://www.eduvision.... | |
doc_23503868 | I've used SharedPreferences before for saving local strings but is this possible with objects as well, or should I look into SQLlite?
Edit: Also, if SQLlite is needed, a little steer in the right direction would be appreciated.
A: You can still use preferences to save your objects but you need to serialize them into ... | |
doc_23503869 | user@host /tmp
$ git clone https://github.com/zandev/shunit2.git /tmp/shunit01
Cloning into '/tmp/shunit01'...
remote: Counting objects: 1219, done.
emote: Total 1219 (delta 0), reused 0 (delta 0), pack-reused 1219
Receiving objects: 100% (1219/1219), 308.20 KiB | 0 bytes/s, done.
Resolving deltas: 100% (657/657), done... | |
doc_23503870 | During my investigation I tried:
$allStoryByTeller = Story::all();
dd($allStoryByTeller);
and it returns:
Collection {#344 ▼
#items: array:10 [▼
0 => Story {#345 ▶}
1 => Story {#346 ▶}
2 => Story {#347 ▶}
3 => Story {#348 ▶}
4 => Story {#349 ▶}
5 => Story {#350 ▶}
6 => Story {#351 ▶}
... | |
doc_23503871 | Thanks! :)
private void LoadFromLocalStorage()
{
using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
{
string[] fileNames = store.GetFileNames();
foreach (string s in fileNames)
{
TextBlock txt = new TextBlock() { Text = s };
con... | |
doc_23503872 | I've tried the following code:
[actionsheet showFromTabBar:self.tabBarController.tabBar]; but it doesn't reflect.
Note: I've set Tab Bar controller as Root Controller of my App.
A: If you want to show action sheet above tab bar then just use below code
[actoinsheet showInView:[[[UIApplication sharedApplication] deleg... | |
doc_23503873 | "testing string testing string X testing string testing string Y testing string testing string test Z". And i programmatically replace X with some string, then i replace Y with next some string, etc.
How do i scoll to place, where i replace text:
first: to X
second: to Y?
i try addTextChangedListener() to myEditText an... | |
doc_23503874 | dataset =
data.table(
Key1 = c("p","q","r"),
Key2 = c("a","b","c"),
a_pre = c(3,2,6),
b_pre = c(2,6,3),
a_post = c(1,2,3),
b_post = c(1,4,2)
#etc.
)
dataset[,a_compare := a_pre/a_post]
dataset[,b_compare := b_pre/b_post]
#etc.
The problem is that the number of quantities I have is much more than just a and b, and is ... | |
doc_23503875 | public function store(Request $request){
$validated = $request->validate([
'title' => 'required|unique:posts|max:255',
'file' => 'mimes:application/zip,application/x-rar-compressed,application/x-7z-compressed'
As soon as I add $request->validate() I always get CORS error:
Access to XMLH... | |
doc_23503876 | Here is the code I've tried:
let pickup = CLLocationCoordinate2D(latitude: 34.043480, longitude: -118.467621)
let destination = CLLocationCoordinate2D(latitude: 34.051230, longitude: -118.458780)
LyftDeepLink.requestRide(kind: .Standard, from: pickup, to: destination)
A: Having the same issue. It seems that it's rela... | |
doc_23503877 | The problem is that when a search is done, it's possible to click on an item to display details in an UITableViewController. In this UITableViewController, I make the NavigationBar transparent, but when the view is dismissed, I have troubles with the searchBar and statusBar appearance even if I reset the NavigationBar ... | |
doc_23503878 | When I try to add a reference to it, while creating a C# client, I don't see the COM object listed in Add Reference -> COM tab. If I manually browse to the DLL and try to select it, it says that the DLL is not a valid assemlby or COM component.
Now, I can use tlbimp tool to generate an interop DLL and use that to add a... | |
doc_23503879 | For example, lets say our string was: "Mr. X did so and so. Blah blah blah."
I want to be able to split at the end of a sentence period but not at a title for a person.
A: I think something like this should work for you
string input = "Mr. and MRS. X did so and so... blah blah blah.";
var tokens = Regex.Split( input,... | |
doc_23503880 | how i can identify the directory where the file is trying to be stored.
i am getting the following error.
[com.keenan.oacommon.forms.services.FormServiceImpl] [checkFileDtlPathCreateIfNotExists] - strFileMstPath is not valid
[INFO ] [java.lang.Class] [processListFiles] - strFinalUploadPath []
[INFO ] [com.keenan.oaco... | |
doc_23503881 | <?php
$query="SELECT * FROM `safa_offers` ORDER BY id DESC ";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_assoc($result))
{
echo "Offer Name\n".$row['offer_name']. " \n \n "."Start Date :\n".$row['offer_start']."\n \n"."End Date \n"... | |
doc_23503882 | What I did:
using (SpreadsheetDocument spreadsheetDocument = SpreadsheetDocument.Open(fileName, false))
{
WorkbookPart workbookPart = spreadsheetDocument.WorkbookPart;
WorksheetPart worksheetPart = workbookPart.WorksheetParts.First();
Cell cell = new Cell();
... | |
doc_23503883 | here it shows the bug
and here is how my array looks:
0
:
{id: 0, title: "1", ready: false}
1
:
{id: 1, title: "123", ready: false}
2
:
{id: 2, title: "123", ready: false}
3
:
{id: 0, title: "123", ready: true}
I get why it is not working because I am using a counter to assign the id, which resets to 0 when rel... | |
doc_23503884 | Here a template declaration:
<ControlTemplate TargetType="{x:Type Button}" x:Key="TemplateImageButtonSmall">
<Grid>
<Image Name="img" Source="/PSCommonUI;component/Images/Buttons/ButtonMinus_normal.png"/>
</Grid>
</ControlTemplate>
Then I have a user control in the class library, containing:
<Button He... | |
doc_23503885 | Here is my code i tried looping through the whole question and nesting my loop to add 1 to sum if the option checked is correct
<!-- HTML CODE--->
<ol class="question">
<li id="question1">
<input type="radio" name="grp1" id="grp1" value="1"> Okeke </input>
<input type="radio" name="grp1" id="grp1" value=... | |
doc_23503886 | & , > , < , SPACE (e.g " ")
The delimiters are written like this : char delimiters[] = " &<>"; , and I use them with the strpbrk command.
I need to add the delimiter ">>" to this group . How can I do this ?
If I just write : char delimiters[] = " &<>>>"; , the compiler doesn't treat the >> accordingly .
Any idea how ... | |
doc_23503887 | I am new to AdminLTE and part of the requirements is to translate the pages content, but I had no idea of how to create such menu.
The idea is to come to this:
A: Here I want explain how I got there. It took me some hours to understand how this works so I think someone else could benefit from my work.
I am assuming y... | |
doc_23503888 | DB tables:
pipeline_instances
instance_id int
pipeline_id int
event_id int
pipeline_triggers
id int
pipeline_id int
deleted_at timestamp
pipeline_trigger_events
event_id int
trigger_id int
go-pg Models:
type pipelineTriggerEvent struct {
tableName struct{} ... | |
doc_23503889 | I am trying something like below on Snowflake.
select * from Table where S_date <= DATEADD(DAY, -3, current_date-1) .
But it is also including current date too.
Please help.
A: In Standard SQL, the syntax would be:
where S_date >= current_date - interval '3 day' and
S_date < current_date
This works in some dat... | |
doc_23503890 | conditions:
Maintain the array in the state object which contains the employmentType of the checked checkbox input elements
1.Whenever the employment type input checkbox is checked, that respective employment type id should be present in the array
2.And whenever the employment type input checkbox is unchecked, that res... | |
doc_23503891 | I'm using
*
*stack 2.7.5 with resolver lts-18.28
*cabal 3.6.2.0
*GHC 8.10.7
*HLS 1.7.0.0
My stack.yaml in the parent package:
resolver: lts-18.28
packages:
- .
- sub-package
extra-deps:
- ... (omitted)
allow-newer: true
EDIT: Minimal example: git repo
file details:
parent stack.yaml
resolver: lts-18.28
p... | |
doc_23503892 | Openxml spreadsheet attributes
How can I read the cells in this file?
The error occurs whether the workbook is opened as read_only or not, and when referencing cells different ways because they all call openpyxl.worksheet._reader.parse_row()
I can't share the excel workbook, but the python code is very simple.
wb = loa... | |
doc_23503893 | I've tried using sed, ssed, and perl all without success. This regular expression is locating the problem quotes, but when I plug it into sed to replace them with a single quote my output still contains the double quote.
sed "s/(\?<\!\t|^)\"(\?\!\t|$)/'/g" test.txt
I'm on Mac, if this looks a bit odd.
The regex is va... | |
doc_23503894 | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Home Page</title>
<link type="text/css" href="menu.css" rel="stylesheet" />
</head>
<body style="background: black; text-align: center">
<header class="menu">
<ul>
<li><a href="HomePage.aspx">Home</a></li>
<li><... | |
doc_23503895 |
A: You should be looking in your application for the cause, not in the kernel.
Usually a process receives SIGABRT when it directly calls abort or when an assert fails. Finding exactly the piece of the kernel that delivers the signal will gain you nothing.
In conclusion, your code or a library your code is using is cau... | |
doc_23503896 | The original dataframe looks like this:
Name Age Select activity Profession
0 Ann 25 Cycling, Running Saleswoman
1 Mark 30 Nothing, just walking Manager
2 John 41 Cycling, Running, Swimming Accountant
My code looks like this:
df_new = df.l... | |
doc_23503897 | I've hacked away at this for a while now and I've had no success. I'm not even getting any exceptions. I'm going to post the entire code and hopefully someone can help me work out what I've done wrong.
I'm aware there are likely to be problems in the xsl I have in terms of selects and matches, but I'm not fussed abou... | |
doc_23503898 | Hi there,
I have a question about how to display parameter base on the first parameter selected value.
for my case , the first parameter Search by has 2 values are
1. CustomerId =1,
2. LastName =2
*
*When user select customerId the parameter customerId text box will display for user to enter customerId
*W... | |
doc_23503899 | Note: when running npm i and/or npm init I do not get the same errors
*
*uninstall/reinstall node program from machine(windows 10)
*delete any and all traces of node from programs, folders and pathing's
*add environment variable path
*shutdown and restart terminals
*using gitbash terminal as well as the command p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.