Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
2
"Is "The Stack" a feature of the language, a feature of the OS or a feature of the hardware?"
It's a feature of the hardware actually. Most CPU's provide the feature of a stack pointer register, that is used for call instructions. Which part of memory should be reserved f... |
This question already has answers here:
What and where are the stack and heap?
(31 answers)
Closed 8 years ago.
C++ allows the programer to use either stack allocated memory or dyn... | Where is the stack implemented? [duplicate] |
Add a?to the end of the target so that it'shttp://www.example.com/blood/blood-product?This will, however, make it so there's a stray?at the end of the URL in the browser's location bar. The only other way around this is to use mod_rewrite:RewriteEngine On
RewriteCond %{QUERY_STRING} ^start=12$
RewriteRule ^products/10-... | The following redirect results in having "?start=12" appended:RedirectMatch 301 ^/products/10-blood?start=12$ http://www.example.com/blood/blood-productHow can I prevent this from happening? | What is the htaccess syntax for preventing multiple urls from being created ?start= |
Cron expression ideally,should be:To run from midnight to 12 noon every 15 minutes:*/15 00-12 * * *(or)To run from 12 noon to midnight every 15 minutes.*/15 00,12-23 * * *ShareFollowansweredJul 24, 2014 at 6:38ngrashiangrashia9,88255 gold badges4343 silver badges5858 bronze badgesAdd a comment| | Why is my cron task giving me a 'bad hour' error.Below is my cron task(mycron.txt):*/15 12-00 * * * php mycommand.php: bad hour errors in crontab file, can't install.What I want is to run my PHP script every 15 minutes, every day from 12PM to midnight.I'm running my croncrontab mycron.txt | Why am I receiving a 'bad hour' error in my cron task? |
The key here is to keep well in mind that this "special logic" is only an optimization: it makes things faster, here bypassing something so to avoid a stall, but it must still insure that the result is unchanged. Otherwise it would be impossible or at least to difficult to program with this hardware.So, to answer your ... | I am currently implementing a MIPS R3051 in software as part of my university project.I notice in the programmers manual from IDT it specifies that computational instructions can access the results of other computational instructions ahead of them in the pipeline at their RD stage, even though the ahead instruction has... | Query about MIPS R3051 pipeline behaviour (MIPS-I architecture) |
collectstatic skips files if "target" file is "younger" than source file. Seems like amazon S3 storage returns wrong date for you file.
you could investigate [code][1] and debug server responses. Maybe there is a problem with timezone.
Or you could just pass --clear argument to collectstatic so that all files are dele... |
I'm using django-storages and amazon s3 for my static files. Following the documentation, I put these settings in my settings.py
STATIC_URL = 'https://mybucket.s3.amazonaws.com/'
ADMIN_MEDIA_PREFIX = 'https://mybucket.s3.amazonaws.com/admin/'
INSTALLED_APPS += (
'storages',
)
DEFAULT_FILE_STORAGE = 'storages.ba... | Django-storages not detecting changed static files |
You can use Getmetadata activity to get the list of child items and then filter based on the latest modified dt for the latest file and use it as source in copy activity. | I am trying to load data from csv file to Azure SQL DB using copy activity. First I loaded three files from blob storage to Azure SQL DB. Then again Three new files are uploaded to blob storage and now I want to load only newly added file to azure sql db. File name are in this format: "student_index_date" where index a... | How to load only newly added file in Azure SQL DB |
So I have finally found out the problem, it was because of invalid routing my ISP had. | I have a problem connecting to github using ssh.I'm trying to usessh -T[email protected]ssh: connect to host github.com port 22: Connection timed outorssh -T -p 443[email protected]ssh: connect to host ssh.github.com port 443: Connection timed outso editing ~/.ssh/config (like suggestedhere) does nothing for meWhat I d... | ssh: connect to host github.com port 22 and also 443: Connection timed out |
According to issue #322 the installer was created with Inno Setup, so launching it with the /silent or /verysilent parameter should make it run non-interactively. Run the executable with the option /? or check the documentation to see a list of all commandline parameters.
|
I would like to create a script which will download a piece of software, docker, and install it on my PC. I can do it by using dockers installation wizard, but I'm wondering how I can bypass the wizard and just install it. Is this possible?
The wizard accepts a few commands such as selecting main and additional comp... | Bypass Software Wizard and Install with Default Parameters |
In Lumen in.env.exampleyou have by default:CACHE_DRIVER=memcachedSo all you need is to change filename from.env.exampleto.envand setCACHE_DRIVER=fileIf you readCaching in Lumenyou'll see in example:$value = Cache::store('file')->get('foo');sofiledriver is supported by Lumen.If you also readLumen Configurationyou can r... | I'm in Lumen, inside a Controller, and I would like to cache a computation's result in a simple and easy way, without using database or external services, so I was looking for save the cache in the filesystem. InLaravel's documentationthere is cited thefiledriver:By default, Laravel is configured to use the file cache ... | Lumen file cache driver |
You no longer need theactions/github-scriptnor any other special API to export an environment variable. According to theEnvironment Filesdocumentation, you can simply write to the$GITHUB_ENVfile directly from the workflow step like this:steps:
- name: Set environment variable
run: echo "{name}={value}" >> $GITHUB... | Every time we usecore.exportVariablewhich, as far as I know,is the canonical way to export a variablein@action/coreand, consequently, ingithub-script, you get an error such as this one:Warning: Theset-envcommand is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see... | There does not seem to be a good substitute for core.exportVariable in github-script right now |
Not really you can take the andvantages of Premium with private repos. | Github newbie here.If my understanding is correct, there are only 2 visibility modes for a repository: "Public" and "Private". However, neither of these modes satisfy my needs. What I need is something in between.I would like to make a reposearchable, meaning when a user visits my profile, they see that a repo exists, ... | Is it possible to make repo searchable, but not visible to the public? |
) Yes and no. GitHub executes those commands for you behind the scenes. So yes, you can execute the commands, justindirectly. For instance, if you approve a pull request, GitHub executes some form ofgit pullon the repo for you. No, you don't need git on your machine because GitHub is using git that is installed on t... | Closed.This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meetStack Overflow guidelines. It is not currently accepting answers.We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-si... | Execute Git command online (web-based terminal/console) without using desktop software? [closed] |
1
You can provide credentials while cloning a private repo via command line
git clone https://username:[email protected]/username/repository.git
Share
Improve this answer
Follow
answered Nov 22, ... |
I want to be able to clone a private github repository every time I create a new VM. What is the best way to do this?
I have a limitation of using only ssh to clone this repository , since my organization has enforced that upon us. If I create a new ssh key everytime I create the VM I owuld need to register this key w... | Clone gihub repository in a new VM |
I have a project in XCode composed of 2 separate git repositories. One is for the main host app and the other is for a separate number crunching library used by the host app. The split was chosen as it would be nice to share the library as a more lightweight and independent body of code.Just pull the separate library ... | I inherited a codebase from a coworker who left the company. He designed a custom library to use with the code which he put in our company's github account. However, I don't know how to pull this library into the project on MY computer from github. I've managed to connect the project to the main code repository, but I ... | Adding a second Git repository to existing xcode project |
Seems like there is no way to make this happen by using spring's api.I ended up with making 2 schedules with 2 different fixedDelay and both of them execute the same task, e.g: first one with delay of 27 sec while the second has 43 sec, so it looks like the target task being executed with a random delay rather than a f... | I'm fairly new to SpringBoot, and trying to use @Scheduled to execute a certain task with delays.
I know there isfixedDelayparameter that can set to have afixeddelay between two executions in a row.What I need is, is there anyway to set arandomdelay between every two executions? (I mean every delay is randomly set, but... | SpringBoot @Scheduled random delay between every two executions |
If the build in notifications of CodeBuild (CB) or CodePipepline (CP), don't suite you, you can always add extra code to your CB buildspec.yml to send the custom notifications and messages to your slack.
Or create a lambda function which triggers when your CB fails. The lambda would pick up more details and send it to... |
How can I send AWS Code Build test report to slack channel??
I'm trying to build CI pipeline, using by AWS services for rails app. and have found AWS code build and Chat bot.
Ideally I want to send failed test case name to slack channel, but i can only send building status. I'm pretty new to AWS ,Is there any good wa... | How to send AWS CodeBuild's test result to slack |
Remote tracking branches are read-only in git, as they represent remote changes. A Fetch will only update these remote tracking branches. A Pull first executes a Fetch, and then merges the changes with a locally editable branch.
On the source computer there was no need to create this branch, as it was initialized loca... |
I'm using Egit on Eclipse Mac and PC to sync a project that has three branches:
master
dev
rendersystem
I've created the project on the Mac and when I created the two branches dev and rendersystem I've used revs/heads/master as the Source ref and as Pull strategy I've used Merge.
Now I've switched to my PC and import... | Git branching messed up |
The common process to contribute for a github repo as below (assume your team want to contribute to a github repo formasterbranch):Fork the github repo your team want to contribute.Create adevelopbranch for the fork repo.Each developer works in his separate local branch, after finish his work, merge his local branch to... | Our company has started working as a contributer for an open source project. The versioning system used will be Git . We have already forked the project and therefore already have the remote repository. I want a local repository and each develeper should have a separate branch of the local repository . They would make ... | Git workflow architecture for opensource project |
No, you don't need an external registry.
With following command, you should be able to use docker on your host mac/linux machine talking to the docker daemon inside the minikube VM:
eval $(minikube docker-env)
And the image is created in the minikube directly when docker build.
FROM Running Kubernetes Locally via Mi... |
I came across Skaffold, trying to streamline local Docker image development. We basically want to be able to quickly iterate on an image and deploy it using an existing stable helm chart version.
In the documentation it says:
https://github.com/GoogleContainerTools/skaffold#installation
Docker image registry.
Your... | Use of Skaffold using Minikube without registry |
You could useRewriteLogto log rewriting actions to a file -- that would be done by Apache, without invoking PHP.=> Quite fast ; but logs only to a file, not a database ; still, as you said, the log processing can be delayed, and done by a script run from the crontab.See alsoRewriteLogLevel, to configure how verbose tha... | I want a redirect which is as fast as possible. So I decided to use htaccess redirect , because it responses even before the php interpreter is initialized. But I want to log the redirects and write something to the Database.I tried to redirect and call rewritemap just to trigger a php file but, it only throws a 500 e... | Htaccess: Trigger php or write to log |
Ideally you would actually configure the server build before you deploy the 16 instances.
You would launch a fresh Ubuntu server and install all of the software on it with its configuration. Once all software is installed you'd create an AMI. When you go to launch the 16 servers you'd go ahead with launching them from... |
I created multiple (say 16) AWS EC2 ubuntu instances such as:
I want to keep these instances to have the same settings for later jobs. My question is how I could manage them jointly. For example, how could I install Docker in all of them at once and so that I can use docker swarm?
| How to install software on multiple aws ec2 instances? |
Firstly, try to usestdout outputinstead of amazon_es to check if you are able to create some events at the logstash level, then probably you gotta check for the logs at the amazon instance for the access or firewall issues. | I'm trying to create index in ElastisSearch with index as per following logstash configuration. Unfortunately, it was not creating index in ElasticSearch at all. Please let me know did I miss something to configure it. thanks.output {
if "my-service-1" in [tags] or "my-service-2" in [tags] {
amazon_es {
hos... | Logstash cannot create index in ElasticSearch |
Not sure if this will work for you, but what I have done is use images.weserv.nl service:
https://images.weserv.nl/?url=avatars.githubusercontent.com/u/65769327?v=4&h=300&w=300&fit=cover&mask=circle&maxage=7d
You can adjust the height and width. It will generate something like this:
Markdown:
 |
The documentation says that the pattern is a Perl-compatible regular expression, so you should be able to use a negative lookahead assertion:RewriteCond %{QUERY_STRING} ^(?!.*_wpnonce=1234567890).*(menu|mod|path|tag)\=\.?/? [NC,OR]though it might be clearer to put it in a separateRewriteCond, provided you can get all t... | I'm trying to filter all clients (using .htaccess) who try to access addresses containing for instancepath=\in the URL, but not those URL's that contain_wpnonce=1234567890.The logic is: block all but those who also have the _wpnonce
parameter.The blocking, without testing if it contains the substring looks like this:... | How to filter all Apache URL containing string but not containing a substring |
Most heap implementations will get you the lowest key in your collection in O(1) time, but there's no guarantees regarding the speed of random lookups or removal. I'd recommend pairing up two data structures: any simple heap implementation and any out-of-the-box hashtable.
Of course, any balanced binary tree can be us... |
I'm implementing something like a cache, which works like this:
If a new value for the given key arrives from some external process, store that value, and remember the time when this value arrived.
If we are idle, find the oldest entry in the cache, fetch the new value for the key from external source and update the ... | Data structure to store key-value pairs and retrive the key for the lowest value quickly |
There is aphp_sapi_name()function for that | This question already has answers here:How to determine if a PHP file is loaded via cron/command line(4 answers)Closed6 years ago.Is there any way I can detect if my script is being run via a Cron Job or via Browser? Is there any specific cron job http header or user agent?Edit:I am just trying to make a script which c... | PHP - How to know if PHP script is being run via a Cron [duplicate] |
25
ECS by default sends a SIGTERM:
StopTask
Stops a running task.
When StopTask is called on a task, the equivalent of docker stop is
issued to the containers running in the task. This results in a
SIGTERM and a default 30-second timeout, after which SIGKILL is sent
... |
I am having some docker container which listens on RabbitMQ and process the message received. I have a code pipeline which kicks off the rebuilding of the image and updating the tasks when there is a code commit.
My problem here is the container will be killed abruptly during the message processing is there any way wh... | Gracefully stopping ecs container |
AWS::CloudWatch::Alarmrequires an ARN forAlarmActions, but you exported the topic name. The value of your output should be the ARN.Outputs:
AlarmSNSTopic:
Description: Arn for SNS topic related to alarms
Export:
Name: AlarmSNSTopic
Value: !Ref MyAlarmSNSTopic | In one Cloudformation template, I create an SNS topic and export it. Note that you cannot export an SNS topic'sArnbecause that attribute is not available toGetAttondocs.BaseStackOutputs:
AlarmSNSTopic:
Description: Arn for SNS topic related to alarms
Export:
Name: AlarmSNSTopic
Value: { "Fn::GetAtt... | How to export SNS topic to be used in different stacks in Cloudformation |
2
Depending on the kind of DMA you're using, you need to allocate the buffer with dma_alloc_coherent(), or use standard allocations and the dma_map_* functions.
(You must not use __pa(); physical addresses are not necessarily the same as DMA bus addresses.)
To map the buffe... |
I have an SoC which has both DSP and ARM cores on it and I would like to create a section of shared memory that both my userspace software, and DSP software are able to access. What would be the best way to allocate a buffer like this in Linux? Here is a little background, right now what I have is a kernel module in w... | Allocating a physical memory buffer in linux |
Of course$ git pushworks,and its not depend ifTravisis integrated to your project or not.Notice, thatTravisgives you feedback, and now it is your decision:1. merge this changes to master branch2. create a pull request if your project is a forkor3. fix your code, failing tests, other bugs and then back to 1. or 2.I see,... | I have integratedTravis CI toolinto myDjangoproject.The problem is that mypushto origin works even Travis testing has failed.Here is my commit log :* c5c9e57 (HEAD -> feature/init, origin/feature/init) Update requirements(dev) : selenium
* 2c8f6ee Install Travis in slack
* 75c8ccb Init travis.yml
* 54fa188 Create Makef... | Git push succeeded even Travis failed |
Yes, checkthe spring MVC documentation, section17.15.6 Configuring Serving of Resources | Does Spring MVC support versioning of static assets (css, js and images )
by appending the last-modified-date to the asset file names which effectively serves,
caches, and invalidates the assets automatically ?Rails supports this by using the asset_tag helpers.I want to add the last-modified-date attribute of a file as... | Does Spring MVC support versioning of static assets (css, js and images ) |
You can:
run your own docker registry,
use one of the private registry services available out there,
move images around with docker save and docker load,
build images locally each time (not recommended, but eh!)
|
I'd like to build my own layer on top of a public Docker image. Fine, I know how to do that. However, my layer will contain proprietary code that I can't share in a public docker image. I do, however want to be able to share it among servers inside my organization.
Is my only option to run my own instance of docker... | Docker: use private layers without running instance of registry |
I've used rsync just fine with moving files around and using them on other boxes. I've never done it with the MYSQL running live, but i've restored from the files in /var/lib/mysql before with no problems. It's a good way to "copy" over databases for your "development" box. I suggest shutting down mysql, moving th... |
I've usually use mysqldump to export a database. However, when the database is really large, it seems much faster and less intensive to just gzip the database files directly without involving the MySQL deamon and copying that to the other database.
eg:
tar -czvf {db_name}.sql.tgz /var/lib/mysql/{db_name}
Is this a ... | Best way to do a MySQL large database export |
Use braces around the variable name:${variable}_totalaccuracy_total | I'm trying to use a variable at the start of one of my PromQL queries so I can return data based on the variable. Not sure if this is possible or not.$variable_totalaccuracy_totalExpected to return the totalaccuracy for the variable but get backerror:"parse error at char 1: unexpected character: '$'" | Using Grafana Variable in Prometheus Query |
In order to clone a repository with a fine-grained token the account must first be granted the write role as a member of that repository through the repository settings.Then you can create a fine-grained PAT with read-only contents scope to allow cloning of a repository and prevent writing.This is bizarre from GitHub, ... | I'm trying to use Fine Grained Personal Access Tokens (PAT) as this seems to the recommended approach but running into difficulties. Steps I have followed are:Configured organizational access to allow users to access reports based on PATCreated a Fine grained PAT in my user account (initially keeping to default setting... | Github Fine Grained PAT: remote: Write access to repository not granted |
Should I create a C++ program to handle these with threads? Or can I get away with an easier method.. thanks!Keep in mind that just by creating a second thread, you don't magically get more cycles out of your box. If your box is being taxed, the best you can do is force your email "thread" to a lower priority. It will ... | Was wondering what the best way to handle an expensive web task?I have an email scheduler that sends a large number of emails at any given hour. Currently the system is getting a list of emails, constructing them, and deploying them. However, this is starting to get very expensive as the list grows.. Is there a way whe... | Need an asynchronous web task for email scheduler -- many factory method loops |
Well, it's a matter of choice. I've seen some services which use embedded tomcat in production and some services which rely on standalone tomcat container which is directly provided by the platform. Some platforms might not have a java runtime, in such scenarios you're bound to use embedded containers for tomcat or jet... | Can embedded tomcat or any such embedded server be used for microservices in production environment? How, embedded server is different wrt the normal standalone full fledged server (performance . reliability wise)? Is the embedded server light weight compared to standalone? What are the features that embeded servers do... | Microservices : Embedded tomcat vs standalone tomcat : Difference |
try to userTensorflow-gpu=2.0.0andKeras=2.3.1this will solve your problem. | I install the tensorflow gpu firstpip install tensorflow-gpu.
pip install kerasbut when I;m running the gpu task. it does not run with the gpu.It run with CPU.import keras
import tensorflow as tf
print(keras.__version__)
print(tf.__version__)
2.3.1
2.1.0 | My keras backend tensorflow does not use the gpu? |
New day, fresh brain...
It seems that this makes that I want:- name: node_memory_MemAvailable_bytes absent for old kernels
rules:
- record: rule:node_memory_MemAvailable_bytes
expr: node_memory_MemAvailable_bytes or ( node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes )Rule writesn... | I want to get Time Series Vectornode_memory_MemAvailable_bytesfrom node-exporter.
It works fine on RHEL7, but this data is absent on RHEL6, due to it is absent in /proc/meminfo on old kernels.So no problem, Prometheus gives me the possibility to count this Time Series Vector via its rules.I want to sumnode_memory_MemFr... | Conditional rules for synthetic series in Prometheus |
1
It turned out that the changed files were .class files generated by eclipse. I stopped eclipse, deleted the local repo, cloned it once again, added the target directory to .gitignore and started eclipse after that. Finally, I pushed the change to the github repo.
... |
I cloned a git repo. I didn't make any changes on that repo locally, but when I run git pull this message shows up:
error: Your local changes to the following files would be overwritten by merge: ....
I do git reset --hard head and I can see in Github Desktop app that the changes are reverted.
But when I run git pul... | Reset changes in git comes back |
It turns out that each step in the SFN has access to the original input, but you have to explicitly state insert them usingParameters. All the input is available in$$.Execution.Input.When usingParameters, you are overriding all other input, so you willalsohave to define what you want to pass along from the previous ste... | I have an AWS Step Function that consists of a"Map"(looping over an Array in the input), and then a number of tasks carried out in sequence with all the results. However, in the last step I'dalsolike to be able to access some of the original input data, that was not used in the intermediate steps. How should I best do ... | Pass data across loop in AWS Step Functions |
SeeHow to Hide The Fact That You’re Using WordPress | Ben Word• Cleaning up the output of wp_head and removing the generator from
RSS feeds• Hiding /wp-content/ by rewriting static theme assets (CSS, JS, and
images)• Cleaning up the output of navigation menus with a custom walker• Root relative URLs | I don't like that WordPress sticks its branding everywhere, like withhttp://example.com/wp-admin. I would much prefer a debranded version likehttp://example.com/admin. Is this possible with a .htaccess rule? Is this a bad idea from a security and/or accessibility point of view? | Debranding wp-admin with htaccess |
As stated previously, the fit_transform method doesn't pass y off to transform. What I've done previously is implement my own fit_transform. Not your code, but here's an example I wrote recently:class MultiColumnLabelEncoder:
def __init__(self, *args, **kwargs):
self.encoder = StandardLabelEncoder(*args, **... | I tried to transform the column 'X' using values in column 'y' (this is a toy example, just to show usingyfor transformation) before fitted by the last linear regression estimator. But whydf['y']is not passed toMyTransformer?from sklearn.base import TransformerMixin
class MyTransformer(TransformerMixin):
def __init... | Use pipeline with custom transformer in Scikit Learn |
proxy_interfaces = 1.2.3.4
because 1.2.3.4 is the proxy
mail mail go to mail2 and you will have to fetchmail it.
|
I have 2 mail server
mail1.domain.com 1.2.3.4
mail2.domain.com 1.2.3.5
I want mail2 to be proxy for mail1 and mail2 to be backup mx for mail1
Is this possible ?
I found in the postfix man the following :
proxy_interfaces (default: empty)
The network interface addresses that this mail system receives mail on by ... | postfix backupmx and proxy_interfaces |
<div class="s-prose js-post-body" itemprop="text">
<p>There's no magic solution here: permissions inside docker are managed the same as permissions without docker. You need to run the appropriate <code>chown</code> and <code>chmod</code> commands to change the permissions of the directory.</p>
<p>One solution is to hav... | <div class="s-prose js-post-body" itemprop="text">
<p>I am running my application in a Docker container as a non-root user. I did this since it is one of the best practices. However, while running the container I mount a host volume to it <code>-v /some/folder:/some/folder</code> . I am doing this because my applicatio... | How to give non-root user in Docker container access to a volume mounted on the host |
docker build -t myAccount/myImage https://github.com/myAccount/docker-myImage.git#development
See docker build command reference for more options.
|
Is it possible to build an image from a non-master branch on a Github repository?
For example, I have the repository //github.com/myAccount/docker-myImage with a branch development that I would like to use for my image. Unfortunately, the following command only seems to allow building from the master branch:
docker bu... | Docker: how to build an image from a non-master branch on Github repository |
1
Ignite does introduce some overhead to your data and half of a GB doesn't sound too bad too me. I would recommend you to refer to this guide for more details: https://apacheignite.readme.io/docs/capacity-planning
Share
Improve this answer
... |
I am using Ignite to build a framework for data calculation. One big problem is the memory usage is a little more than expected. The data using 1G memory outside Ignite will use more than 1.5G in Ignite cache.
I turned off backup and copyOnRead already. I don't use query feature so no extra index space. I also counted... | Ignite uses more memory than expected |
nginx directive add_headers only work for a short list of status code, in which 201 it's not in..
Adding the headers_module and using it instead, allows to add custom headers to responses with 201 status
|
I'm setting up an app with some REST webservices, that respond with 200 or 201 according to the result of the request.
On the other hand, i'm developing a javascript web application that has to use this webservices, so i'm dealing with CORS in the server-side with nginx adding the proper headers to the response.
The ... | Response status 201 not accepted in CORS requests |
No, there is no easy way to separate jobs into different data sources. The proper way imo you can handle it is to create a dashboard variable for the job_name which can be dynamically scraped, and have 1 dashboard which you can chose to show either job's metrics by adding {job="${variable}"} filter.
If you don't want t... | We have a Prometheus, a Grafana service and multiple exporters. This isprometheus.yamlconfig:scrape_configs:
- job_name: app1
scrape_interval: 30s
scheme: http
static_configs:
- targets: ['x.y.z.10:7380']
- job_name: app2
scrape_interval: 30s
scheme: http
static_configs:
-... | Every Prometheus job as a data source in Grafana |
The specific error you got on import is because by default it will try to create the table, not just the data in it. You can use the IGNORE=Y flag to avoid that problem. But it will try to insert all the users that existed, not just the one you deleted, which might cause you other problems. Or, it could fail for those... |
I have a table in Oracle for users. I am going to install new schema and want to backup all users with passwords and other fields.
I tried exp and int utilities, but imp doesn't recover anything.
I created temporary user in USERS table. Then I did backup with command:
exp user_owner/password file=file.dmp table=USERS ... | How to backup and restore records in database (Oracle 10) |
There are multiple strategies to go around this problem. A strategy is already explained. Another could be
Commit your changes (git commit -am <message>)
Do a git pull (git pull -r)
Resolve conflicts if any
Also, you can keep your changes separate in a separate branch. Here is what else can be done:
Create a separ... |
I recently downloaded an open-source project from github into my server using
$ git clone www.github.com/project_url
Then I added comments and descriptions inside the multiple files here and there.
When I went to the github repository of the original project github page,
many of the files were updated. But I'm hesit... | How to update personal cloned github? |
I can only help with number 3.If you want to force the swarm to get a new image version with the same tag, you can force this by using the RepoDigest of the new image.docker pull myimage:tag
docker service update \
--image $(docker inspect -f '{{index .RepoDigests 0}}' myimage:tag) \
my-container --for... | I'm playing around with github, travis ci (build manager), digital ocean (cloud), docker hub, docker cloud to createcontinuous deployment.I have successfuly integrated github with travis ci and with docker hub so new image is created after every pull request to one of my branches (development).Docker cloud doesn't supp... | Does a swarm can be configured to auto check for newer image with the same tag? |
Meantime there is a solution as describedhereBasically there was a confusion between the mapped folders and the paths in the config. Also grafana has a provision mechanism whereetc/grafana/provisioning/...should be used.Thegrafana documentationis not clear about that. | this part of a docker compose file worksversion: '3.8'
services:
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
volumes:
- ./gr... | Docker compose is not allowing a persitent dashboard folder |
git can operate on a variety of different protocolshttp(s)likehttps://github.com/project/repo.gitIt uses the port 443 (or 80 for http), it allows both read and write access, password for auth (like on github it allows anonymous read access but asks a paasword for write).and Firewall friendly (it does not require any in... | I've recently attempted building a project which had various dependencies declared as Github links. The links were a mixture of links to public Github repositories and private Github Enterprise repositories of my company.Some of the links were in formathttps://github.com/project/repo.gitAnd some were in format[email pr... | Difference between[email protected]:... and https://github.com/...? |
No, it will not.Reset moves the HEAD to specified commit. Moving HEAD to HEAD does nothing.You can reorder commits using interactive rebase (git rebase -i) and then you can push the specific commit (which includes all commits that precede, but not those that follow) rather than the complete branch to github. | I have a bunch of commits I don't want in my pull request, but I do not want to loose my work from previous commits. Will git reset --soft HEAD reset my commits to the beginning? | git reset --soft HEAD |
if you run$ git remoteby itself you should get a list of remotes that are setup.then you can do:$ git remote rm originto remove the origin remote.$ git remote --helpWill give you more information about the "git remote" command | im trying to delete this "origin" thing so i can actually run the tutorial code from this websitehttp://www.railstutorial.org/book#sec:githubthis is the code im trying to run$ git remote add origin[email protected]:delinquentme/first_app.gitand im getting this returned:fatal: remote origin already existsproblem is thou... | github "origin" deletion |
The alignment of each individual member is what matters. Consider the alignment requirements of each type. For an int, in your case, it is 4 bytes. For a char, it is naturally 1. How about a short? Well on your architecture it seems to be 2 bytes. We want to have each member aligned based on its own alignment requirem... |
A tutorial on data padding says that the char c following int i in the C struct below needs 1 padding byte.
struct test2
{
int i;
// 4 bytes
char c;
// 1 byte
// 1 padding byte. <-- question here
short s;
// 2 bytes
};
I would like to understand why it is not 3 bytes padding instead, given... | Why is there only 1 padding byte for a char (on a 32-bit machine)? |
Disclaimer: as of this writing containerd didn't replace Docker, you caninstall containerdseparately from Docker, and you can point theKubernetes CRIto directly talk to the containerd socket.So, when you install Docker it does install together with containerd and theDocker daemontalks to it. You'll see a process like t... | Since K8S v1.11 Runtime was changed from dockerd to containerd.
I'm using Jenkins over kubernetes to build docker images using Docker outside of Docker (dood).When I tried to switch to use the socket file from conatinerd (containerd/containerd.sock was mapped ad /var/run/docker.sock) with the regular docker client a go... | Running docker inside Kubernetes with containerd |
PromQL provides a function for joining multiple labels into a single label -label_join. For example, the following query joinscluster,namespaceandpersistentvolumeclaimlabels into a single one -combined_labelwith the;delimiter between original pabel values:label_join(..., "combined_label", ";", "cluster", "namespace", "... | I'm trying to aggregate some promql queries for my Grafana dashboard that should give me some information about the persistent volume claims within my Kubernetes cluster. The problem is, that these queries don't have a unique identifier (the combination of the labelscluster,namespace,persistentvolumeclaim) can be used ... | Grafana prometheus outer join for multiple values with same name |
I know this is an older question, but I wanted to post an answer for users with the same question:
curl -H 'Cache-Control: no-cache' http://www.example.com
This curl command servers in its header request to return non-cached data from the web server.
|
Is there a way to tell cURL command not to use server's side cache?
e.g; I have this curl command:
curl -v www.example.com
How can I ask curl to send a fresh request to not use the cache?
Note: I am looking for an executable command in the terminal.
| How to call cURL without using server-side cache? |
This has meanwhile been addressed in the AWS team response to the identical question asked in the AWS forum, seeEC2 reports AMI: Unavailable:This is an AWS owned AMI that is no longer publicly available as it is
deprecated. This will not affect your currently running instance.
Additionally, if you create an EBS AMI... | I'm running two EC2 instances, (Linux and Windows) on AWS, which initiated based on AMIs provided by Amazon. Everything works fine, but since a couple of weeks, I noticed that on Windows Instance, under "Description" tab, it says that "AMI: Unavailable (ami-f0c9ff84)".I have not performed a reboot on that EC2 for more ... | What does (EC2) 'AMI: Unavailable' mean and how should I handle it? |
0
I would not rely on file size. Use the date stamp and keep a rolling set of backups so you always have the last 5 days' worth of backups. rsync is what I would use.
Share
Improve this answer
Follow
... |
I have written a shell script that creates a backup of my MySQL database. The script performs the following functions:
Creates a Backup of the MySQL database
Compresses the Backup
Copies the Backup to a Remote Server
Send an E-Mail displaying the size of the Backup
Removes any left over files on the source ser... | Compare File & Copy Replace if Successful |
It will just bring me back to the last screen I was at and also trigger didbecomeActive & willenterforeground notifications.Right, if your app was not terminated in the background.I won't be getting any other callback.Not necessarily true. If you were summoned to the front by a local notification, for example, you'll a... | I’m putting an app into background.Assuming that I’mnotdoing anything to keep the app alive in the background, then the app goes through suspended state in a matter of 5 seconds. Right?What happens if I then tap on the app icon? That’s not suppose to trigger adidFinishLaunchright? It will just bring me back to the last... | Questions about app state after tapping on app icon after apps enters suspended state |
This question seems to be mostly about semantics, so let's start atWikipedia.... a thread of execution is the smallest sequence of programmed
instructions that can be managed independently by a scheduler ....That is pretty much describes exactly what s thread in CUDA is -- the kernel is the sequence of instructions, an... | By definition, a thread is a path of execution within a process.
But during the implementation of a kernel, a thread_id or global_index is generated to access a memory location allocated. For instance, in the Matrix Multiplication code below,ROWandCOLare generated to access matrix A and B sequential.
My doubt here is... | Thread index as an memory location index in CUDA |
3
There are several things that one could do in this situation:
Configure the Java EE application server to produce a heap dump on OOME. This feature is available via a JVM parameter since the 1.5 days. Once a dump has been obtained, it can be analyzed offline, using tools... |
I have a situation here at work where we run a Java EE server with several applications deployed on it. Lately, we've been having frequent OutOfMemoryException's. We suspect some of the apps might be behaving badly, maybe leaking, or something.
The problem is, we can't really tell which one. We have run some memory pr... | Memory Profiling: How to detect which application/package is consuming too much memory |
It has nothing to do with the DataOutputStream (which maintains no data whatsoever) and everything to do with your underlying stream conn.getOutputStream(). now, you haven't show the relevant code there, but i'm going to guess "conn" is an instance of HttpURLConnection. i believe the outputstream for HttpURLConnecti... |
I have the following code which produces an OutOfMemory exception:
byte[] buf = new byte[10240];
int len = 0;
DataOutputStream dataOS = new DataOutputStream(conn.getOutputStream());
while ((len = _inputStream.read(buf)) > 0) {
System.out.println("len : " + len);
System.out.println("Going to write buf into data... | Unable to write into DataOutputStream beyond a specific size - OutOfMemoryError |
Will I be able to use the Free Tier of Dynamo DB for the same?
Yes, dependent on the size of the data you want to be inputting & the rate at which you want to input.
Amazon DynamoDB offers a free tier with the following provisions, which is enough to handle up to 200M requests per month:
25 GB of Storage
25 provisi... |
I am new to DynamoDB, and I have a small in house application, which will be used by my parents for their small business. I just have to keep records of 10 - 20 rows daily, and will have a few edits close to 5 - 10 at max.
WIll I be able to use the Free Tier of Dynamo DB for the same?
I am using Heroku to host my LWC ... | AWS Dynamo DB Free Tier Limits |
17
This will remove all your docker logs in macOS.
echo "rm /var/lib/docker/containers/*/*.log" | nc -U -w 0 ~/Library/Containers/com.docker.docker/Data/debug-shell.sock
Share
Follow
answered Jan ... |
I want to get rid of huge container log files on my docker env.
I have problem finding them when running native Docker on a Mac. I am not using docker-machine (virtualbox) thing. My docker version is 1.13.1.
When I do
docker inspect <container-name>
I see there is
"LogPath": "/var/lib/docker/containers/<container-id>... | Clear logs in native Docker on Mac |
IDE have status bar showing what is not pushed... but that can be ignored.Your idea was suggested for IntelliJ IDEA:IDEA-151612, but is still pending.Message about outgoing not pushed commitsIt would be a great feature if I could have an option in settings to enable warning when I close IDE, if I have some not pushed c... | I have a bunch of team-mates, who change their code in their respective code editiors but often forget to commit and push throughGit. Is there anyway to send notifications to them upon code change, inorder to notify them to commit and push via Git.We useGitlabandSourcetreeas GUI client for Git. | Notification to commit/push upon code change |
You can check this out Josh:http://openvpn.net/index.php/access-server/cloudmachines/513-access-server-amazon-vpc.htmlThe AMI isn't currently available in US-WEST-2, so if you want to control resources in that region you'll have to hand build. But if you're running in US-WEST-1, then you can use this very easily, also,... | I have been google-ing around for the answer to this for that last hour or so but can't find anything on it. I would like to have pre-configured ami for AWS EC2 that will let me spin up an instance and ssh in and set user/pass for people to VPN though the instance. Of course my dream would be some sort of web interface... | Pre-configured EC2 VPN AMI |
My Oracle password was in grace period and when I changed it the issue disappeared. | My data is stored in Oracle table MY_DATA. This table contains only 2 rows with 7 columns. But when I execute step:proc sort data=oraclelib.MY_DATA nodupkey out=SORTED_DATA;
by client_number;
run;the following error appears:ERROR: The SAS System stopped processing this step because of insufficient memory.If I commentno... | Insufficient memory error in proc sort |
Try:umount /tmp or umount overflowrestart serverIf still problem occurs then please restart you machine once.ShareFolloweditedJan 3, 2017 at 12:30fedorqui281k105105 gold badges566566 silver badges608608 bronze badgesansweredJan 3, 2017 at 11:25Jyoti mishraJyoti mishra59744 silver badges1616 bronze badges1just restarti... | I am using Whenever gem for scheduling jobs. But when my job get executed it raisesJan 3 16:05:01 Ubuntu-1604-xenial-64-minimal CRON[17544]: (CRON) error (create tmpfile)this error. | Cronatab -e raises this error: /tmp/crontab.JS8BKY: No such file or directory Creation of temporary crontab file failed - aborting |
Assuming your .sh files are bash scripts or some approximate equivalent then you can't currently configure your SonarQube server to analyze them because there's no plugin that handles such scripting.Sept 2018 UpdateThere's now a plugin in the Marketplace to read in i-Code CNES reports. i-Code CNES covers two flavors of... | Closed.This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meetStack Overflow guidelines. It is not currently accepting answers.We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-si... | How to analyse sh files in Sonar? [closed] |
ELK can auto-create your Elasticsearch index mapping by looking at the first indexed document. This is a very convenient functionality, but it comes with some drawback.For example, if you have a field that can contains numbers or strings, if the first document contains a number for this field, the mapping will be creat... | I have setup logging like described inhttps://quarkus.io/guides/centralized-log-managementwith an ELK Stack using version 7.7.My logstash pipeline looks like the proposed example:input {
gelf {
port => 12201
}
}
output {
stdout {}
elasticsearch {
hosts => ["http://elasticsearch:9200"]
... | Indexing Errors when using quarkus logging-gelf extension and ELK stack |
25
In my case it actually had nothing do with the PyTorch/CUDA/cuDNN version. PyTorch initializes cuDNN lazily whenever a convolution is executed for the first time. However, in my case there was not enough GPU memory left to initialize cuDNN because PyTorch itself already ... |
I am trying to run a simple pytorch sample code. It's works fine using CPU. But when using GPU, i get this error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forwar... | RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED using pytorch |
You need to have an ingress controller deployed on your cluster for an ingress resource to actually take effect. Here is the installation guide of Nginx ingress controller.An example ingress to serve static content would look like below.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: web-ingress
anno... |
I'm currently trying to setup a react SPA as a deployment/service on kubernetes. Like the backend services I have running currently, I want to be able to hit it behind an Ingress.
Because the SPA is just a bunch of static files, I'm exposing the files through nginx. The container that runs in the deployment has nginx... | Serving a static react application behind a Kubernetes Ingress |
I've lost the better half of a day on this issue, likely digging through the same threads as you. This thread held the answer:https://twittercommunity.com/t/twitter-card-error-fetching-the-page-failed-because-other-errors/112895/6Enabling AES128 as an ssl cipher will allow the Twitterbot to connect. This can be done ... | Our website is running on Laravel Forge with 'Let's encrypt SSL,' and HTTPS is OK in the browser.
We added FB, Twitter meta tags for having branded FB and Twitter cards when sharing on these media.Following 'ERROR: Fetching the page failed because of other errors. ' is raised when trying to display Twitter card in twee... | Twitter: "Fetching the page failed because other errors", on Forge NGINX server with SSL |
If your project is located in thelinkfolder, you need to include that:RewriteRule ^link/([1-9a-z]*)$ /link/index.php?u=$1 [L]By the way, you don't need to escape the question mark in the second part of the rewrite rule | I have to change url with .htaccess.htaccess is stored in link folder.My .htaccess file isOptions -Multiviews
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([1-9a-z]*)$ index.php\?u=$1 [L]when i open this'http://example.com/link/index.php?u=3ujkzf'url it works.But when I open'http://example.com/link/3ujkzf' s... | unable to change url with .htaccess in godaddy hosting |
Ok, if these are just your thoughts, I would recommend to look into this annotation:externalTrafficPolicy=localis an annotation on the Kubernetes service resource that can be set to preserve the client source IP. When this value is set, the actual IP address of a client (e.g., a browser or mobile application) is propag... | I have the following need:
There is API that may be accessed only from allowlisted IPs. I'd like to make this API available publicly.
I thought about the following solution:Create a service of typeServiceName:kind: Service
apiVersion: v1
metadata:
name: my-svc
spec:
type: ExternalName
externalName: restricted-api... | Does ExternalName service act as a reverse proxy? |
%5c represents a \ character. Since you are seeing %5c%22 that is the equivalent of \" which is the way that a " would be escaped in a php program if it occurred within a string quoted with double quotes. I suspect that whatever is creating the urls has an incorrectly escaped character (maybe the string is quoted with ... | A joomla site without sef url is showing %5C%22 between most of the url as per webmaster. Due to this the webmaster showing duplicate urlDuplicate url as showin in webmasterhttp://www.xyz.com/%5C%22/index.php?option=com_newcar&view=price&Itemid=2
http://www.xyz.com/%5C%22/index.php?option=com_newcar&view=details&Item... | Webmaster showing duplicate urls with %5C%22 parameter |
Since it's a Shopify Site it's using the Shopify style CDN by default. Since it's a CDN the css files are not going to be found in your project directory but rather on Shopify's website. An example of a style CDN can be foundhere, this one is for bootstrap.It uses a URL to access style options that are stored on their ... | I'm using Chrome's Lighthouse audit to make some performance improvements to a website and there are some styles under the "Remove unused CSS' section that I cannot locate anywhere on the site.The ones I am questioning are the 2 lines starting html, body etc.They look a bit like reset styles but aren't the ones I have ... | What is this mystery css that lighthouse is flagging up? |
I highly discourage this approach.Parsing logs is an old task, and there are many tools out there that are more than capable of doing this in an efficient way.For me personally, I had success withFluentd - Open Source Data Collector, but there are more tools, depending on your specific needs.The community, e.g, the amo... | There is nginx web server, that serves API calls from different User-Agents. I want to parse nginx logs and collect statistics about API calls from different User-Agents.I'm going to write python script to parse nginxaccess.loglike thishttps://gist.github.com/sysdig-blog/22ef4c07714b1a34fe20dac11a80c4e2#file-prometheus... | Collect NGINX access.log statistics to Prometheus |
3
I recently made ground with this.
I followed these steps from the link Amazon sent me https://aws.amazon.com/blogs/ses/handling-bounces-and-complaints/
Set up the following AWS components to handle bounce notifications:
Create an Amazon SQS queue named ses-bounces-que... |
I have configured Laravel to send mails via SES smtp and it's working fine. I want to increase my email quota for 24 hours hence the handling bounces and complaints part. Currently, my quota is 200 mails per 24 hours and the mail sent are only for registration confirmation and password reset.
I need help with this, pl... | Handling bounces and complaints in AWS SES with Laravel |
A prioriRUN echo "installing this"should work and display something. However it would be somewhat bad practice to have aRUNlayer with only a single echo command.Indeed as mentioned in the pagedev-best-practices:If you need to use a version of Docker that does not include
multistage builds, try to reduce the number of... | I am building a Dockerfile and I would like to display some help messages while building it.I also triedRUN echo "installing this"but as expected, it doesn't work.So, How do I display help messages and if possible while running thedocker buildcommand in quiet mode. | displaying help messages while docker build |
I found the solution to be the following:AsPipelineAccessTokenis a pipeline variable it should be encased in brackets.Furthermore, as I keep a PAT within that variable I have to enclose it in quotes so it gets piped as a string toaz devops login.Finally the solution is this:"$(PipelineAccessToken)" | az devops loginSha... | I'm trying to create a release pipeline that will use Azure CLI to update a variable defined in Pipelines-> Library within a variable group.I can update the variable directly from my computer using a PAT(saved within $PipelineAccessToken) I generated from my user account.This it the script the Agent executes during the... | F400813: The user '' is not authorized to access this resource |
I think it is drawing your attention to the fact that aassignis being used, as opposed toretainorcopy. Since anNSStringis an object, in a reference-counted environment (ie without Garbage Collection) this can be potentially "dangerous" (unless it is intentional by design).However, the difference betweenassign,retainand... | I'm declaring an NSString property in a class and objective-c is complaining that:NSString no 'assign', 'retain', or 'copy' attribute is specifiedIt then casually lets me know that "assign is used instead".Can someone explain to me the difference betweenassign,retainandcopyin terms ofnormal C memory managementfunctions... | NSString no 'assign', 'retain', or 'copy' attribute is specified |
0
Following the alibabacloud guide, my best guess is that you should use only charset utf-8 and you should also check that all filenames are in UTF-8 format or convert to UTF-8 otherwise (only filenames, not the content).
Share
Improve this answer
... |
Environment: Windows 10 + nginx/1.8.0. The files in the mysql directory are all in UTF-8 encoding, and all HTML files in mysql contain <meta charset="utf-8" />.
My configuration file for file nginx.conf:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default... | Why can't I show CJK characters normally in nginx? |
The real client IP is available in$proxy_add_x_forwarded_forvariable i.e.X-Forwarded-Forheader. It will have "," separated entries. The very first value is the real client IP.To log the real client IP in Tomcat's access logs, modify the pattern value in the AccessLog Valve as:%{X-Forwarded-For}i %l %u %t "%r" %s %b | I have Nginx in front of a Spring Boot 1.3.3 application with Tomcat access log enabled, but the logging always write the proxy IP address (127.0.0.1) instead of the real client IP.Is the X-Real-IP header used to get the real client IP?Is this header used by tomcat to write the IP address in the access log?I have this ... | How to log the real client IP on embedded Tomcat access log on Spring Boot application with Nginx as reverse proxy? |
Unfortunately, as Ryabchenko Alexander said, docker configs cannot be updated, see moby issue.
In one approach you can remove the services that use the new configs, with the command docker service rm service_name.
Then remove the config with docker config rm config_name and redeploy the stack to update the config and ... |
I have
Error response from daemon: rpc error: code = InvalidArgument desc = only updates to Labels are allowed
when redeploying stack
docker stack deploy -c docker-compose.yml --with-registry-auth monitoring
| Error response from daemon: rpc error: code = InvalidArgument desc = only updates to Labels are allowed |
0
It might not be what you want, but why would you use TeamCity, if you could have done that using a simple pre-receive hook?
See this for more details.
Share
Improve this answer
Follow
edited May 23, 2017... |
I'm looking at maybe setting up a teamcity CI server for use with a git (github) repo.
I'd like to have teamcity build each branch that gets pushed to the main repo and it seems like TeamCity supports this now.
When a branch gets pushed I'd like to create a new IIS website/app pool etc for it all, and it seems like I ... | teamcity action on branch delete |
As a general rule, egress traffic leaves your SDN from the Node hosting your Pod. The Node would NAT it, using its own IP on your underlay network.Now, if by Egress you mean "anything that leaves my Pod" / regarding communications that stay within the SDN. Bearing in mind that:the SDN has two subnets (pod network, serv... | I am trying to understand about egress traffic controlling inKubernetes-Operator. If I implement Kubernetes operator in my k3s setup, how the egress traffic flow happens in the operator?I want to understand that what pathway/gateway and routing happens with egress traffic flow happens in the Kubernetes operator (journe... | How traffic routing happens in Kubernetes operator - Journey of Egress traffic |
You can pull a specificimage by digestby using the following syntax:docker pull ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2If you need to find the hash, it is output when pushing/pulling the image. Some automated builds output it at the end. I tried looking for the hash withdocker i... | I would like to always pull a specific version, rather than just the latest.A random example:https://registry.hub.docker.com/u/aespinosa/jenkins/builds_history/9511/I am doing this because I only want to deploy versions that I have audited. Is this currently possible? Or am I forced to fork them and make my own? | Docker: How do I pull a specific build-id? |
You aren't using a valid endpoint.s3-us-west-1b.amazonaws.comisn't valid.S3 endpoints are at the regional level, not the availability zone level.You're probably looking fors3-us-west-1.amazonaws.com.http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region | I am trying to copy a file from my aws ec2 instance to S3 bucket folder, but i am getting errorHere is the command sampleaws s3 cp /home/abc/icon.jpg s3://mybucket/myfolderThis the error i am gettingupload failed: ./icon.jpg to s3://mybucket/myfolder/icon.jpg HTTPSConnectionPool(host='s3-us-west-1b.amazonaws.com', port... | HTTPSConnectionPool(host='s3-us-west-1b.amazonaws.com', port=443): Max retries exceeded with url |
0
Sparse matrix is costly operation. Using Spicy, it is very difficult to create large sparse matrix and your system memory might not support.
I suggest to use Spark libraries. So that your data set will run on different clusters (RDD). below is the sample code,
from pyspa... |
I'm trying to use a sparse matrix in my regression since there are over 40,000 variables after I add dummy variables. In order to do this, I believe I need to feed the model a sparse matrix. However, converting my pandas dataframe into a matrix isn't possible using code found here:
Convert Pandas dataframe to Sparse N... | Creating a sparse matrix from a large dataframe in Python |
The derobbins version is the version I believe most people are using (and the one used here on Stack Overflow).
There are also a number of forks off of the derobbins version that add some additional functionality (ajax loading for example) or other fixes if you're interested, including mine (MarkEdit) which is a jQuer... |
I read that the original wmd-editor is no longer maintained so there was an effort to reverse engineer it, hosted on github. However this version is not ready because it references a number of undefined functions, for example:
processHeadings is not defined
/static/js/lib/plugins/wmd/showdown.js
Line 66
There is... | which wmd-editor repository to use |
There is no direct option to select backup failed alerts in Alerts blade as of now however as an alternative you can follow below options to achieve Backup Alerts.
To create the rule, navigate to App Service --> Monitoring --> Alerts.
Click on New alert rule
Resource will be automatically selected and can edit too.
N... |
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily use... | How to create App Service Backup Alerts for Failed Backups? [closed] |
Sounds like you want to fork your own project. In that case, you can simply make a local copy of your git repository and push it to a new github project.
Create a new github project, name it whatever
Make a copy of project A's directory on your computer, name it B.
In the local copy of your git project, (directory ... |
I completed a project. We'll call it "A". I've pushed it to the master using
git push origin master .........."the final A version"
I have a customer who wants to use "A", but with their branding. Of course these have no association.
How does one handle that? I have created a new app on Github first called "B". Is th... | Github New Project but using same existing project |
That error means that the GKE node is not authorized to push to the GCS bucket that is backing your repository.This could be because:The cluster does not have the correct scopes to authenticate to GCS. Did you create the cluster w/--scopes storage-rw?The service account that the cluster is running as does not have perm... | I'm trying via Jenkins to push an image to the container repository. It was working at first, but now, I got "access denied"docker -- push gcr.io/xxxxxxx-yyyyy-138623/myApp:master.1
The push refers to a repository [gcr.io/xxxxxxx-yyyyy-138623/myApp]
bdc3ba7fdb96: Preparing
5632c278a6dc: Waiting
denied: Access denied.th... | Google Cloud Jenkins gcloud push access denied |
3
Most likely your application simply cannot handle the load, there are too many possible reasons.
The most obvious could be:
Lack of resources (i.e CPU or RAM). I would recommend setting up the monitoring of baseline health metrics on the application under test side so y... |
I am setting up a Django server with Nginx, Gunicorn and Django. I follewed this link (https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04). My server starts working correctly as when I hit my services with Postman or Browser, I am getting response. My... | Connect To Sock file failed. Resource temporarily unavailable |
0
If you are using a SP, you can do something like:
CREATE PROC sp_createATable
@name VARCHAR(20) AS
CREATE TABLE @name
...
do your insert
Or, if you want to, w/o SP:
DECLARE @name varchar(20)
SET @name = 'tblName' + SELECT CONVERT(VARCHAR(8), GETDATE(), 112)... |
I have a SQL Server table called "tblProducts".
Sometimes I backup this table by making a copy of it with this simple query:
SELECT *
INTO [test01].[dbo].[tblProducts_20141206]
FROM [test01].[dbo].[tblProducts]
Every time when making a backup, the date is included in the table name.
I would like to create a SQL Job t... | How to SELECT * into a SQL table incremntally by date? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.