Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
I think you have DNS resolving problem. There is two ways you can use your website's locahost instead of the external domain name. 1. If you have your own server / VPS / Dedicated server, Add entry in vim /etc/hosts for 127.0.0.1 website.net or try to fetch the content with localhost(127.0.0.1). 2. If you are using ...
I have some code to convert a PHP page to HTML: $dynamic = "http://website.net/home.php"; $out = "home.html" ; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"$dynamic"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $file = curl_exec($ch); file_put_contents($out, $file); This works perfect in localhost but it tak...
How to fetch the url content using php curl or file_get_content on the same server?
If those files are already committed, you need to remove them from the index before seeing your .gitignore file work. git rm --cached *.xcuserstate # or git rm -r --cached project.xcworkspace
I can't exclude user interface state file from commit. Every time I'm trying to push to github it asks me to commit first and insert user interface state file into the changes (even if I didn't move the mouse or interface at all it still is shown to commit!). I tried different methods, described in other similar topic...
Can't exclude user interface state from commit in xcode
AWS usedefault settingauto_minor_version_upgrade=trueand tries to update your database. You can do following to solve itMethod 1Set flag to false explicitly usingauto_minor_version_upgrade = falseMethod 2Useonly first octetin version numberengine_version = "11"For more informationhttps://registry.terraform.io/providers...
I'm learning how to use Terraform to manage my AWS Infrastructure.Monday I created it all from scratch based on my Terraform Apply.Tuesday (the next day) I wanted to update my app with some code changes (nothing that would affect the rest of the infrastructure, just my image in ECS) and got this error message in my ter...
AWS RDS Database Version is different than Terraform version
The more efficient way is rebasemy_branchon the top ofupstream/masterbranch, then pushmy_branchon your fork repo, and finally create a PR to mergemy_branchinto the real repomasterbranch. Steps as below:git checkout my_branch git pull upstream master --rebase git push origin my_branchIf you also want to update originmas...
I am beginner in git and contributing to a project in github. What have I done is:Made my own fork of the repo.Added it as origin and added the real one as upstream.Created my own branch from origin master.Been working on it, but upstream/master has moved along.Now my branch is ahead of origin master and origin master ...
Git merging with upstream master - confusion
I suspect you have a bottleneck somewhere (like in this githubissue) -- you have some operation which doesn't have GPU implementation, so it's placed on CPU, and the GPU is idling because of data transfers. For instance, until recentlyreduce_meanwas not implemented on GPU, and before thatRankwas not implemented on GPU...
I am using Nvidia Digits Box with GPU (Nvidia GeForce GTX Titan X) and Tensorflow 0.6 to train the Neural Network, and everything works. However, when I check theVolatile GPU Utilusingnvidia-smi -l 1, I notice that it's only 6%, and I think most of the computation is on CPU, since I notice that the process which runs T...
Tensorflow 0.6 GPU Issue
Try following codeimport org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.support.CronSequenceGenerator; import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; import java.util.Date; '''' '''' @PostConstruct public void init() { CronSequen...
I am using cron expression for spring scheduler and the value of expression is dynamically provided by the spring bean using spel.@Autowired private PurgeProperties purgeProperties; @Scheduled(cron = "#{@purgeProperties.cronExpression}", zone = "#{@purgeProperties.zone}") public void purgeData() throws UnknownHostExc...
How to log when Spring Scheduler will run
0 To avoid any future issue, you should create a new repository in an organization, because there: you can fork a fork (in an organization): if that new repo is no longer (later on) the active one, you can fork it. you can make it depend on a theme, represented by the or...
There is a github php library which is used quite a lot, but the problem is the original author seems to have gone AWOL and despite myself and other members of the dev team (who themselves are not particularly active due to time constraints) trying to contact him many times over a long period (several months now) he h...
How to properly fork an unmaintained github package?
Useclearstatcacheaftertouching file to get proper value of modification time.Because you have usedfilemtimebefore, result for it was cached, and on second call, result is pulled from that cache instead of checking file directly.ShareFolloweditedJun 29, 2013 at 13:27answeredJun 29, 2013 at 13:22dev-null-dwellerdev-null-...
So I'm trying to get the file's last modified date and then update it to the current time, but when I look at the result I get the SAME timestamp in both $oldtime and $newtime$file = 'test.txt'; $oldtime = filemtime($file); touch($file, time()); $newtime = filemtime($file); echo '<h1>old</h1>'; print_r(getdate($oldtim...
changing the file's last modified time through touch() and getting the result with filemtime()
I am not sure if there is an official best practice, but I have always preferred to separate environments using namespaces for the following reasons: It allows you to use the exact same YAML files for your deployments, services, etc in all three environments. To switch environments, all you have to do is add --namesp...
Like most applications we have three distinct running environments: Production Staging / QA Development These are all basically configured through ENV variables. How is it best to run all the services/pods/containers in our environments? Through labels? or namespaces?
Kubernetes: managing application run environments
You can do it like this:iptables -A INPUT -p tcp --dport 80 -m string --algo bm --string "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" -j DROP
I need to block packets from any source that includes some special User agents using IPTables. But I don’t want to manage it via.htaccessor Apache. Is there any way?
How can I block some special User-agents Via IPTables
0 It will work fine, but it is rather inefficient. I've done it with timecapsule and this just works. You can also create a "bare" repository on the stick and regular push your work to it. This is a lot smaller than the original, but you will not have all your branches (unl...
What is the most simple way to backup my project? Can I just copy XCode project (with hidden .git) directory to USB stick and copy it back when needed?
Xcode 4 / Git - backup
Read the whole answer prior to doing anything, preferably make a backup of the git repo (the whole project folder) if you feel unsafe using possibly destructive commands.If you haven't pushed your changes after the bad merge:If you typegit reflogyou should get a revision that marks your history just before the erroneou...
I mistakenly merged my git repo with one of its own remotes. I have tried to reverse this as outlined inthis questionbut I only get the response:$ git revert -m 1 <commit id> On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory cleanHow do I fix this?
How to revert pushed merge without any changes?
11 On Linux/OSX: Edit or create the file ~/.theanorc. The file should contain: [global] floatX = float32 device = gpu0 [nvcc] fastmath = True [cuda] root=/usr/local/cuda-5.5/ # On a mac, this will probably be /Developer/NVIDIA/CUDA-5.5/ You need to add cuda to the $LD_...
I am having quite a bit of trouble setting up Theano to work with my graphics card - I hope you guys can give me a hand. I have used CUDA before and it is properly installed as would be necessary to run Nvidia Nsight. However, I now want to use it with PyDev and am having several problems following the 'Using the GPU'...
Getting Theano to use the GPU
Sadly you can't. The Cloud Builder image have each time their own sandbox and only the/workspacedirectory is mounted. By the way, all the environment variable, binaries installed and so, doesn't persist from one container to the next one.You have to use the shell script each time :( The easiest way is to have a file in...
I want my Cloud Build to push an image to a registry with an incremented tag. So, when the trigger arrives from GitHub, build the image, and if the latest tag was1.10, tag the new one1.11. Similarly, the1.11value will serve in multiple other steps in the build.Reading the registry and incrementing the tag is easy (in ...
How can Cloud Build take dynamic parameters to increment a registry tag?
I think the problem is a missing space in the command line:..../bin/sonar-scanner-Dsonar.project....Should be:..../bin/sonar-scanner -Dsonar.project....
Hello this is my first question in stackoverflow i guess i dont know how to use it now. What i wanted to ask is i am facing problem while running sonar scanner through jenkins and i haveprovided the screen shot. Any help would be appreciated.
Facing problem with Jenkins and Sonarqube
Can't use docker run -it --link [...] when running from cron - I use docker run --link [...] now.
I try to make automated (every night at 4) backups from a postgresql database running inside a docker container. #!/bin/sh CONTAINER=`docker ps|grep name_of_container|awk '{print $1}'` USER='postgre_user' PASSWORD='changed' BUDIR='/some/path/backup/' docker run -it --link $CONTAINER:db -v $BUDIR:/backup/ -e "PGPASS...
run "docker run" from crontab
Unless I'm missing something, it appears the only option is to clone the GitHub repository locally, copy my modified files over the newly created repository, and then check in my changes. Of course, I lose all my comments and iterations since the last check in to GitHub. And care had to be taken not to delete the .git...
I have several Visual Studio solutions that have both a local repository and one on GitHub. I've already made many changes and successfully pushed those changes to GitHub. But now Visual Studio has forgotten that one of my local repositories is associated with a GitHub repository and I can't seem to figure out how to ...
Push current code to existing GitHub repository
If you are trying to run Mac OS as the base system in a Docker container, unfortunately there is no way to do it.Docker container need to use the host machine's Linux Kernel, since Mac OS family is Unix-based operating system, currently Docker cannot simulate a Mac OS in Docker container. Here isa link to explain how c...
I am using Docker for Mac and wish to create Docker image running a Mac El Capitan with my development env.I am not finding any resources on this. All I see is Linux installations.On Linux I saw things as simple as:FROM sciensa2/docker-java8 RUN apt-get update RUN apt-get install -y wget unzip libgtk2.0-0:amd64 libxtst...
Docker image running a Mac OS X installation
KInesis would not be the right tool to upload files, unless they were all very small - and most videos would almost certainly be over the 1MB record size limit:The maximum size of a data blob (the data payload before Base64-encoding) within one record is 1 megabyte (MB).https://aws.amazon.com/kinesis/streams/faqs/
My client has a service which stores a lot of files, like video or sound files. The service works well, however looks like the long-time file storing is quite a challenge, and we would like to use AWS for storing these files.The problem is the following, the client wants to use AWS kinesis for transferring every file f...
Using AWS Kinesis for large file uploads
In the case of abind mount-vor--volume: Consists of three fields, separated by colon characters (:).The fields must be in the correct order, and the meaning of each field is not immediately obvious.In the case of bind mounts, the first field is the path to the file or directory on the host machine.The second field is t...
In Dockerfiles and docker-compose files I often stumble across two notations.Example docker-compose:volumes: - ./app/:/usr/src/app/Example DockerfileCOPY ./Pipfile /usr/src/app/PipfileThe second one means, take the file/folder from my machines directory ./Pipfile and Copy it to the image in the directory /usr/......
Dockerfile filepaths: what does the colon mean?
2 There are a couple different options. If the etag is generated based on the content (a bad idea), then it's more difficult. In our solution, we generated a different tag (a ptag) that we updated when properties changed, and you could query it with a PROPFIND, and we retur...
I'm using WebDav to put metadata on the files and folders of a server, along with a cache to avoid unnecessary requests to the server, based on the ETag property of the files. Basically, I send a HEAD request and check whether the ETag matches the one I have in local. If it doesn't, then I send a larger, slower PROPF...
Renewing a HTTP ETag
It seems that the problem lay with Mongo's handling of my $options array. $options = array( 'replicaSet' => false, 'persist' => false, 'connect' => false, 'username' => false, 'password' => false ); $mongo = new \Mongo('mongodb://localhost:27017', $options); Crashes the process while the followin...
I am having a problem with my PHP process crashing whenever I try to connect to MongoDB from inside PHP. $options = array( 'replicaSet' => false, 'persist' => false, 'connect' => false, 'username' => false, 'password' => false ); $mongo = new \Mongo('mongodb://local...
PHP & MongoDB = 502 Nginx response and no error log entry
Do you mean affecting how the compiler generates PTX or a library that tweaks generated PTX? In either case, I don't think any such tools are available.You can insert inline PTX into a kernel with theasmkeyword.
I am wondering if there is something to manipulate PTX, as easily as like LLVM and its library to manipulate LLVM IR.
Any tools or library to manipulate CUDA PTX code?
You may try these recursive rules in your site root .htaccess:Option 1:RewriteEngine On RewriteRule ^(search/label/\S+)\s+(\S+\s.*)$ /$1-$2 [N,NC,DPI] RewriteRule ^search/label/(\S+)[-\s]+(\S+)$ /tag/$1-$2 [NE,NC,L,R=301] RewriteRule ^search/label/(\S+)$ /tag/$1 [NE,NC,L,R=301]Option 2:RewriteEngine On RewriteRule ...
Trying to changehttps://www.example.com/search/label/my%20search%20termtohttps://www.example.com/tag/my-search-termPer the answer from @anubhava below, Option 2 works:RewriteEngine On RewriteRule ^search/label/(\S+)[-\s]+(\S+)$ /tag/$1-$2 [NE,NC,L,R=301] RewriteRule ^search/label/(\S+)$ /tag/$1 [NE,NC,L,R=301] RewriteR...
Forward one path to another AND convert spaces to hyphens along the way
kubernetes.io/ingress.classannotation is officiallydeprecated:Before theIngressClassresource was added in Kubernetes 1.18, a similar concept of Ingress class was often specified with akubernetes.io/ingress.classannotation on the Ingress. Although this annotation was never formally defined, it was widely supported by In...
I am setting up an ingress service following some k8s documentation, but I am not able to understand the following annotations:kubernetes.ip/ingress.class:nginx.ingress.kubernetes.io/rewrite-target:Do you know what these annotations do?Thanks in advance.
kubernetes ingress service annotations
3 Both of the string in the first snippet is not null terminated. They are just character arrays, not null terminated string literals. printf with %s specifier expects a null terminated string as its argument. Passing wrong type of argument will invoke undefined behavior. ...
This question already has answers here: How does C identify end of character array when there's no null terminator? [duplicate] (3 answers) Closed 7 years ago. How is an array stor...
How is an array stored in memory in this program? [duplicate]
Yes, look at the scratch keyword (docs): You can use Docker’s reserved, minimal image, scratch, as a starting point for building containers. Also you may find useful using multi-stage builds. An example: FROM scratch ADD hello / FROM fedora RUN yum -y update && yum clean all RUN yum -y install nginx
To install my microservice binaries I need a centos. And since I have 20 microservice I'm trying to find a way to optimize the images size so I'm wondering if there's a way to create a docker image without os and at the moment of deployment Docker takes the OS Layer from cache to put it in all the images.. I'm a begin...
Is it possible to create a docker image whitout OS?
4 Your problem sounds very similar to this open issue on the Docker for Mac repo. Unfortunately, there doesn't seem to be a known solution, but the discussion in there may be useful. My personal guess at the moment is that the bug lives near the hyperkit virtualization bein...
I'm having a problem with sluggish network performance between Docker containers and host's network. I asked this question on the Docker's forum but have received no answers so far. Problem Set-up: two Macs on the same local network; the first runs an MQTT broker (mosquitto); the second runs Docker for Mac. Two C++ pr...
Very slow network performance of Docker containers with host's network
The fact that the source IP for the RST packet is10.5.8.30doesn't mean that it really came from10.5.8.30.There are firewalls and various other intermediary devices thatforge such packets. Try capturing on both ends to check whether10.5.8.30did, in fact, send the RST. It doesn't make sense for a client to send a TCP Syn...
The question is we have the following setup and we have noticed sometime client sendsRSTpacket to terminate initial TCP handshake connection and application gets a timeout.[10.5.8.30]------[Linux FW]-------[10.5.16.20]Wireshark:You can see in Wireshark RST packet, I thought its FW sending RST but in capture packet comi...
TCP strange RST packet terminating connection
MySimpleClass inherits NSObject, hence it is a Foundation Object, so it can be managed by ARC.
In Book I found a sentence that tells me that ARC releases only Object from Foundation. Is this true? So if i have: MySimpleClass *objectFromMySimpleClass = [MySimpleClass alloc] init]; I should release objectFromMySimpleClass? How can i do that? When i'm try [objectFromMySimpleClass release]; I see unactive "releas...
ARC works for all objects?
Yes you can but only if only don't run out of resources or you don't exceed thiscriteriaregarding building large clusters.Usually you want to limit your jobs in some way in order to better handle memory and CPU or to adjust it in any other way according to your needs.So the best practice in your case would be to:set as...
I have a Kubernetes cluster and I have tested submitting 1,000 jobs at a time and the cluster has no problem handling this. I am interested in submitting 50,000 to 100,000 jobs and was wondering if the cluster would be able to handle this?
What is the maximum number of jobs that you can submit to a kubernetes cluster?
The solution is to usehelm rollbackto restore your previous revision:helm rollback <name> <revision>
I am usinghelm upgrade xyz --installcommand and my release were failing due to other helm issues. So no successful release is done yet.Then one time when the above command was in progress, I pressedctrl+ccommand. And since then it is showingError: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progr...
Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress
Simply implement a listener to awebhook(see "Creating a Webhook"). Set it up to ball your listener at each push event.You can then do a pull when called by the webhook, and get a fresh updated copy of the repo locally.For other repos you don't have any control or whose owner is in your team, that webhook approach is no...
Is there any way to have the full source code repo after each commit?I mean for example usinghttps://api.github.com/repos/highcharts/highcharts/commitswould give me a list of commits, but I want to realize what was the effect of that commit to whole repo (I want to check whether any code duplication is added to whole p...
github API code repository state after each commit
Cited from here:https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.htmlImportantIn your system, always store the entire queue URL exactly as Amazon SQS returns it to you when you create the queue (for example,http://sqs.us-east-2.amazonaws.com/123456789012/queue2)...
I have an SQS URL which includes region as well. I am using official Go SDK to perform operations on this SQS which require AWS region to initialize the session. Currently, I have written a utility function to parse the URL and return AWS region.Sample URL:https://sqs.us-east-1.amazonaws.com/774557911234/my_sqs_nameSam...
Is it okay to fetch AWS region from SQS url?
3 I tried to understand GIT API page but Im really not sure where from I start the work. You're probably better off using a library to talk to Github in your language of choice rather than starting from scratch. There's a lot of little nuances to the Github API like pagin...
I've a requirement that I have to pull the list of issues in my GitHub repository and make a chart out the data. But, I'm stuck at pulling the list of issues from my GitHub repository. I tried to understand GIT API page but Im really not sure where from I start the work. If anyone has done such things before, pleas...
How to export the 'issues' data from github and process it?
You can create multiple AWS accounts, and link them. You will have to do this with the master account root credentials, not an IAM account.Full details arehere:Update, Q1 2017:AWS has introduced Organizations, which lets you create a new account linked to your payer account. Organizations is also supported by the AWS...
I have a parent IAM account and I have multiple clients. I want to have multiple child account in AWS. I dont want the child account to see the resources in parent account and other child account.How can I implement this?Thanks
Creating multiple sub accounts in IAM AWS
1 Eclipse Neon with Mylyn Github connector 4.4. Tested with 2-factor access token. Anonymous rate limit successfully exceeded on a public repository with hundreds of issues. I did not test with simple login but it should work. Share Follo...
I'm using the very cool Github Mylyn Connector for Eclipse Indigo. However, since I use it for many projects on GitHub, I run very quickly into the 60 requests per second rate limit enforced on unauthenticated requests against the GitHub v3 API. The Symptom is that refreshing any query (however small — again, the limi...
How can I make the Mylyn GitHub Connector for Eclipse run authenticated requests?
Based on your comments your are using kops to deploy a cluster. In kops case, you need to add the following lines to disable the --basic-auth-file flag.kops edit cluster --name <clustername> --state <state_path> spec: kubeAPIServer: disableBasicAuth: truespecandkubeAPIServeris probably already present in your cl...
I am trying to find a way to disable--basic-auth-fileon my cluster.Can someone help me?
How to disable --basic-auth-file on kops? Kubernetes
kind is using Docker containers tosimulateKubernetes nodes. So when you are creating files on your host (your ubuntu machine) the containers will not automatically have access to them. (This gets even more complicated when using macos or windows and docker is running in a separate virtual machine...)I assume that ther...
I've created the manifest file, that looks as follows:apiVersion: v1 kind: Pod metadata: name: kuard spec: volumes: - name: "kuard-data" hostPath: path: "/home/developer/kubernetes/exercises" containers: - image: gcr.io/kuar-demo/kuard-amd64:1 name: kuard volumeMounts: - ...
Why the path does not get mount?
I can confirm that this is indeed a bug. The quick description of what's going wrong here is as follows: In CallBaz, there is a single callsite that is invoked three times. That callsite is an InvokeMember, because that's the best guess the compiler can make given the C# syntax, despite that it could, in actuality, re...
There is some strange behavior with the C# 4.0 dynamic usage: using System; class Program { public void Baz() { Console.WriteLine("Baz1"); } static void CallBaz(dynamic x) { x.Baz(); } static void Main(string[] args) { dynamic a = new Program(); dynamic b = new { Baz = new Action(() => Console.WriteLin...
Is something wrong with the dynamic keyword in C# 4.0?
Istio haveipBlocksandremoteIpBlocks.You can use it to allow or block access from single IPs, or IP ranges.For exampleapiVersion: security.istio.io/v1beta1 kind: AuthorizationPolicy metadata: name: ingress-policy namespace: istio-system spec: selector: matchLabels: app: istio-ingressgateway action: ALL...
we have an application that allows only paid IP I have to redirect not paid IP into 403 pages. For each ingress, I have to provide a list of IP ranges. Have to find the way to redirect if a user is not whitelisted to the provided URL with 403 error. Is anyone has an idea how I can perform this task? Thanks! GKE kuberne...
How to Redirect traffic into 403 error not wide-listed traffic on kubernetes cluster
They changed graph menu to insight menu. Check it.
I used to be able to do Graphs menu > Network to see a great graph of branches and transactions. But now it's gone.I'm still a novice at github.
Graphs menu missing on github
5 You should specify: - rolearn: arn:aws:iam::<aws_account_id>:role/<federated_user> username: '{{SessionName}}' groups: - system:masters Please note that <aws_account_id> is the ID of the AWS account in which the EKS cluster is created, and <federated_user> is t...
I deployed a EKS cluster via a IAM user and need to give full cluster permission to other aws sso users. I followed this instruction https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html but still can't make it work. I got below error when run this command by a sso user: $ kubectl get pods error: You mus...
How can I grant eks cluster permission to aws sso user?
I think this would do:RewriteRule ^(.*)_fixedsuffix(.*)$ /$1$2 [R=301,L]$1 is whatever comes before the_fixedsuffix, and $2 is whatever comes after.You might want to use something likehttp://htaccess.madewithlove.be/to test your rules.And there is also a whole lot of articles and resources on line explaining those conc...
How would I redirect:http://www.mydomain.com/dynamicname_fixedsuffix.someimageextensionTo:http://www.mydomain.com/dynamicname.someimageextension?Thank you!
301 redirect from url with suffix to url without suffix
Inside that specific folderyou can create a .htaccess with this rule:RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ /public/ [L]
I'm trying to rewrite all requests in a folder like this:https://www.test.com/banana/apple(or whatever) goes tohttps://www.test.com/publicbut in the url is stillhttps://www.test.com/banana/apple.How can I do this?
Rewrite ALL requests to a folder with .htaccess file
You simply have to copy your current nginx server configuration and change the server_name property to server_name example2.com and change the proxy_pass target accordingly. It will look like something like this : # example.com server/proxy server { listen 80 default_server; listen [::]:80 default_server; s...
Hey guys I have a Rasberry Pi 4 and I wish to host multiple node.js websites using Nginx, right now I have one instance that runs well and is connected to Cloudflare. Current 'default' file below server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; ser...
Hosting multiple node.js instances on nginx
Is this not just a question of code cleanliness? If you want array2 to point to array, and you're going to be doing some work with array2, then I'd explicitly retain it: NSMutableArray *array = [[NSMutableArray alloc] init]; NSMutableArray *array2 = [array retain]; [array release]; [array2 release]; This way, if some...
For example say I have: NSMutableArray *array = [[NSMutableArray alloc] init]; NSMutableArray *array2 = array; [array release]; is this legal? Do I just leave array2 dangling since I already released the object that was taking memory?
Objective-C: Memory-wise, what do I need to do with other pointers to a released object?
This just appears to be a nuance of the particular Markdown implementation in use at Bitbucket.From theofficial tutorialLists can be embedded in lists. List items may consist of multiple paragraphs. Each subsequent paragraph in a list item must be indented by either4 spaces or one tabSee also theMarkdown Syntax Guide
I have a CHANGELOG.md with the following content:## 🐛 Bug Fixes - `commithash` enable main automatic pipeline - Author: committer - Date: 01/08/2024 20:15:08The markdown renders good in github and preview of visual studio code / other tools, the result should be:But instead in bitbucket you get this result:How c...
Bitbucket markdown is not displayed correctly
SetcompileSdkVersion 23or21 or abovein yourbuild.gradlefile.The Log say : no resource found that matches the given name "TextAppearance.Appcompat.Body1"This is because you might not have imported AppCompat Library to your Eclipse Project.The Author say this material project can run on API 2.x -> 4.x , but why it ne...
I research material design project for 4.x API, It seem too many problems in style values, always style.... (in v-21) not found. I think v-21 is only build with api 21. But I want to build for 4.x API, do anyone know problem?Here is some project in Github i found:https://github.com/wasabeef/awesome-android-uihttps://gi...
import project for low api, stylev21 not found
I had the same question. It seems to be in bytes. You can confirm this by writing a simple java program that repeated add stuff to a list, then run it with "java -Xmx2m -XX:+HeapDumpOnOutOfMemoryError" to max its heap usage to 2M, and dump the heap when it becomes full, then load the hprof file into the tool to verify.
I am getting numeric value of 1294736 in 'retained Heap' column when I use Memory Analyzer in Eclipse-Helios, what is the unit of this numeric value ? is it bytes or kBytes?Same query for shallow heap value.
Unit of retained heap in eclipse?
the apache image can be directly exposed, whereas the fpm image needs another web server that then connects to fpm to put it into perspective - the following docker-compose are almost identical (the second one requires a vhost to be added but I think you get the idea): php with apache: services: php: image: ...
At the PHP Docker hub, there's 7.3-apache-stretch and 7.3-fpm-stretch, what's the difference? Which one is suited for a webapp?
Difference between apache vs fpm in PHP Docker image?
I figured it out, the problem was that I still had services running that were using the image.You either can't delete an image in use, or minikube is adding the in use image back into the list faster than I can run commands.So if you want to do a local hotswap of your image on minikube, you need to:1. kubectl delete 2....
$ minikube image ls ... docker.io/library/crasher:latest ... $ minikube image rm crasher crasher:latest docker.io/library/crasher:latest $ minikube image ls ... docker.io/library/crasher:latest ...It looks like minikube rm doesn't remove the image from minikubes internal cache. I would like to be able to remove one o...
How can I remove an image from minikube?
UnfortunatelyENVwon't work, because windows environment variable work a little differently than linux.more infoAs of now the only way to do this is throughRUNBut you don't need to create a separate file to do this. This can be done by the following much simpler one line command:RUN setx path "%path%;C:\Foo\bin"
I need to append to the PATH within a Windows Docker container, and I've tried many permutations.ENV PATH=%PATH%;C:\\Foo\\bin ENV PATH=$PATH;C:\\Foo\\bin ENV PATH="%PATH%;C:\Foo\bin" ENV PATH="$PATH;C:\Foo\bin" RUN "set PATH=%PATH%;C:\Foo\bin"None of these work: they don't evaluate the preexisting PATH variable.What is...
Appending to PATH in a Windows Docker container
Give this a spin:BEGIN TRY BACKUP LOG @v_DatabaseName TO DISK = @v_BackupFileLocation WITH NAME = @v_BackupFileName, SKIP, STATS = 10 END TRY BEGIN CATCH Set @v_ErrorMailSubject = 'Transaction log backup failure in database '+@v_DatabaseName Set @v_ErrorMailText = 'An error occured in transaction log backup for databas...
I'm going to run via aSQL Joba backup which will back up 4 databases. What I want to do is to be able to send an email via myDatabase Mail profileif any of the backup's fail.Now I know there is a very obvious way of doing this on the job itself but my boss doesn't want it done like that.What we want is within theT-SQL...
how to send an email alert if backup fails via SQL Job
0 I think that you have compiled (or you installed already compiled package) tensorflow with CUDA support, but not with support all instructions available for your CPU (your CPU supports AVX2, AVX512F and FMA instructions that tensorflow can use). This means, that tensorfl...
I'm training a neural model with keras and tensorflow as backend. The log file starts with the following message: nohup: ignoring input 2019-02-12 17:44:29.414526: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA ...
Am I training with gpu?
You have 2 ways to delete a project:If you are an admin of the project, you can delete it from its configuration actions=> See"Deleting a project" in the "Project Administration" documentation pageIf you are a SonarQube administrator, then you can also delete a project from the "Project Management" page=> See"Project M...
Does anyone know how to delete a project from a SonarQube server?Thanks, Ronen.
Delete a project from SonarQube
After replacing cudnn 7.2.1 with 7.0.5, I am now able to train Mask-RCNN using 1080ti gpu without a resource exhausted (OOM) issue.
Help needed for Mask RCNN Resource Exhausted -H/W - i7-8700, 32G RAM, single ASUS ROG STRIX 1080ti (11GB)Virtual env setup - tensorflow-gpu==1.5.0, python==3.6.6, Cuda==9.0.176, cudnn==7.2.1image resolution - maximum width=900 pixels, maximum height=675pixels, minimum width=194 pixels, minimum height=150 pixels, 11 ima...
Mask RCNN Resource exhausted (OOM) on my own dataset
I've come across a fix for this. I've used the default names of the parent directories here.I went intoactions-runner/_work/_PipelineMapping/[user]/[repo]/PipelineFolder.jsonI changed the value forworkspaceDirectoryfrom[repo]/[repo]to just[repo].
I have set up a self-hosted runner on my Windows server and I have set up the necessary workflows needed to auto deploy/build my repo on the server. While setting up the runner, I configured the work folder to be a folder calledreposin the same directory.What I want is for the folder structure of my runner to be:C:\dep...
GitHub self-hosted runner creates Repo folder twice
Sincekubernetes 1.16there is a feature gate calledHPAScaleToZerowhich enables settingminReplicasto 0 forHorizontalPodAutoscalerresources when using custom or external metrics. It has to be explicitly enabled as it's disabled by default.Additionally you can use KEDA for event-driven autoscaling. It enables you to scale ...
I have setup a standard Kubernetes cluster which includes ReplicaSets, Deployments, Pods etc ... I am looking to save costings around this as it is just constantly running and it is a Pre Production environment.I was wondering if there is a feature in Kubernetes to say that if a Pod has not been used in the last 60 min...
Scale down Kubernetes pods to 0 replica until traffic on site
I have contacted firebase support to get some answers about this. And I was forwarded to this part in the documentation.https://firebase.google.com/docs/hosting/functions#create_an_http_function_to_your_hosting_siteYou can use your own domain with the firebase-cloud-functions. The way to do it is by using the firebase-...
Is there a way to use a custom domain for firebase cloud functions http hooks.The default url for cloud functions looks something like this:https://us-central1-my-awesome-app.cloudfunctions.net/ios-oauth/AndI would like to make it look like this:https://myawesomeapp.com/ios-oauth/I looked around if there was some other...
Use custom domain for firebase function http calls
AWS Lambda logs are written to CloudWatch Logs. Here's how to access them: select your Lambda function in the AWS console click the Monitoring tab choose View logs in CloudWatch If you prefer to retrieve CloudWatch Logs outside of the AWS Console, then there are numerous CLI options: awscli: aws logs get-log-events...
When you do a console.log('Loading function'); in an amazon lambda function, where does that go? My setup api gateway lambda function nodejs6.10 curl https://n2tredacted.execute-api.us-east-1.amazonaws.com/prod/redactedFunc
How do you look at console.log output of the amazon lambda function
0 Unless you consider your configuration data to be super-secret, it might be easier to just set up a post-receive hook in your central repo that exports the data to a URL that doesn't require authentication. Share Improve this answer ...
I am working on an iPhone game and would like to set it up to download configuration data so I can put up a build and then I or my teammates can make changes and just rerun the game rather than rebuild (and for non-programmers, redistribute the build). This is basically an easy thing to do, I can set it up to download...
How To Download iOS App Configuration File From GitHub Private Repository
You can integrate Jenkins with both Sonarqube andJMeterscripts so results from JMeter will be sent to Sonarqube. You can see live project example,JMeter buildexecute both in Jenkins.ShareFolloweditedJun 5, 2019 at 4:33answeredJan 20, 2018 at 7:49Ori MarkoOri Marko57.5k2323 gold badges142142 silver badges247247 bronze ...
Since the Jmeter plugin is deprecated now, how to post results on to Sonarqube. Kindly quide us in integrating jmeter results with Sonarqube.
How to integrate Jmeter test results on to Sonarqube?
14 I just come across this issue right now, it is caused by permissions, please make sure that you current account has the permissions of git pull and git push,in your case , maybe you create a private repository in Github, and not add this account as Manage Collaborators, ...
I'm trying to clone an existing github-repository (Git for Windows) to an empty folder using git clone https://github.com/di98jgu/D0016E---Digitalt-projekt.git but keep getting the error message: fatal: https://github.com/di98jgu/D0016E---Digitalt-projekt.git/info/refs?service=git-upload-pack not found: did you run ...
git-upload-pack not found
You can add tags to all resources that are created using serverless. In serverless.yml, add the following under provider section - provider: name: aws runtime: {your runtime} region: {your region} stackTags: ${file(config/tags.yml):tags} tags: ${file(config/tags.yml):tags} Note - 1. tags - will add tags ...
I am adding tags using serverless and my service also using other resources e.g. kinesis. Is there any way to add tags in kinesis through serverless?
Is there any way to tag all resources through serverless?
Does Cognito guarantee that the request is coming from mywebsite.com? No. Cognito is agnostic of your domain. All it cares about is user authentication/management. Is there a secure way to implement the any "' * '" Access-Control-Allow-Origin response header? Well yes and no. As you said in your post, Cognito will aut...
I have a web client making requests to AWS Lambda via the AWS API Gateway. I'm using AWS Cognito, alongside Auth0, to authenticate users. My question is related to the CORS response headers from the AWS API Gateway endpoint, specifically the Access-Control-Allow-Origin response header that is set to any "' * '". This ...
AWS Cognito and CORS Security Concern
When I need to pull a single table from an sql dump, I use a combination of grep, head and tail.Eg:grep -n "CREATE TABLE" dump.sqlThis then gives you the line numbers for each one, so if your table is on line 200 and the one after is on line 269, I do:head -n 268 dump.sql > tophalf.sql tail -n 69 tophalf.sql > yourtabl...
What's the easiest way to get the data for a single table, delete a single table or break up the whole dump file into files each containing individual tables? I usually end up doing a lot of vi regex munging, but I bet there are easier ways to do these things with awk/perl, etc. The first page of Google results brings ...
Manipulating giant MySQL dump files
You can add appsettings that are pumped into your application after it's been pushed to appharbor. These can be used for just about anything.When looking at your Application on Appharbor.com, there will be a "Configuration Variables" on the left hand side. In that area you can add whatever AppSettings you need, and the...
What are possible patterns around solving this problem on aAppHarbor-app that gets pushed to every time a push is done on it's opensourceGitHub-project?Say I have sensitive passwords stored in myAppSettings.configand I exclude the file in my.gitignore-file. How do I get multiple passwords, that are server-specific, to ...
How to protect passwords on a AppHarbor-app, with service-hook to GitHub
Base64 converts each 3 bytes into 4 letters. That means you can read your data in chunks and decode it in the same way as you would decode the whole file. Try this: File file = new File(filePath); FileInputStream fileInputStreamReader = new FileInputStream(file); StringBuilder sb = new Strin...
This question already has answers here: How to deal with "java.lang.OutOfMemoryError: Java heap space" error? (31 answers) Closed 4 years ago. I have a file with size of 32 MB, I h...
How to fix java.lang.OutOfMemoryError: Java heap space error? [duplicate]
So basically you can return two things from theAWS::Serverless::Functioncustomresourceoutput: Value: !GetAtt creates3bucketlambda.Arn -> arn of lambda functionandcustomresourceoutput: Value: !Ref creates3bucketlambda -> name of lambda functionMore details about serverless function outputshere.If you...
I wanted to output a value I get form an CloudFormation Custom Resource. I'm definitely returning the value, but I wasn't sure how to reference it in an outputThis is mytemplate.yml:Outputs: customresourceoutput: Value: !GetAtt creates3bucketlambda.myvalue Resources: creates3bucketlambda: Type: AWS::...
AWS CloudFormation, Output value from Custom Resource
It means your script file has MSWin line endings. Usedos2unixorfromdosto fix them.
This question already has answers here:./configure : /bin/sh^M : bad interpreter [duplicate](15 answers)Closed5 years ago.I create start.sh file and wont to start,but retruned me./start.sh: /bin/bash^M: bad interpreter: No such file or directorythis is my start.sh file content#!/bin/bash cd /home/test/Desktop node cron...
What it means /bin/bash^M: bad interpreter? [duplicate]
cacert.pemis a bundle of CA certificates that you use to verify that the server is really the correct site you're talking to (when it presents its certificate in the SSL handshake). The bundle can be used by tools like curl or wget, as well as other TLS/SSL speaking software. The bundle should contain the certificates ...
In my PayPal Pro payment page I use the cURL functioncurl_setopt_array() with the following option :cUIn CURLOPT_CAINFO => dirname(__FILE__) . '/cacert.pem'.Works fine, however even after some research I don't understand what exactly iscacert.pemfor. I don't understand the concept of "verification against" that is ment...
What exactly is cacert.pem for?
To delete directories in /TBD older than 1 day:find /TBD -mtime +1 -type d | xargs rm -f -r
so I have looked at every single script on here regarding deleting directories older than 14 days. The Script I wrote works with files but for some reason it is not deleting the directories. So here is my scripts.#!/bin/bash find /TBD/* -mtim +1 | xargs rm -rfSo this code successfully deleted the FILES inside TBD but i...
Delete directories older than X days
Place this rule in/admin/.htaccess:RewriteEngine On RewriteBase /admin/ RewriteRule ^$ login [L]
quick question:Using tutorials I have been able to redirect my domain name to point to a different page other than the index.phpHowever I cannot find any tutorials or reference material to help me in changing the default page for a particular sub-directory.For example, I want www.url.com/admin to redirect to www.url.co...
.htaccess Set Default Page for each Sub-Directory
Haproxy does not fully support keep alives yet. It is scheduled to be fully implemented when 1.5 becomes "stable". Having said that, I have been using the 1.5 branch in a very large production environment for almost a year with no issues.I would suggest using http-server-close which will only close the haproxy server t...
I use Haproxy as a Layer7 http proxy to transfer a client's requests to one server. As one long connection, before transferring every request to the server, I need to replace some url string to another. For example:reqirep ^([^\ ])\ /test/(.) \1\ /serverfault/\2I traced and found HAProxy will only process the first req...
Does Haproxy can deal with any request for one long connect?
subtree split TL;DR; subtree split will "split" your content into branches Long answer Split the main branch (whole content) by "folders" into branches. Create submodules from the new branches (add,commit & push) into new git repo How? git subtree split <path> -b <branch> and then add remote for each submodule and p...
I have github repo with 2 folders: client/server. I need to make separate repositories from these folders, but so that the commit history for each repository is not lost. After that, the main repository must be deleted. I came across the filter-repo utility on the Internet, but I didn't really figure out how it works....
How can I split github repo into two?
Emperor mode is for handling multi-application environments. It basically monitors the directories you specify for new apps & events you want it to respond to.Pros:You can gracefully reload a site when you update your code by touching the vassal file.Apps respawn on crashes & reboots.Scales very nice if you need to add...
I am doing multi-application nginx+uWSGI setup and I wonder if I should use dynamic mode of uWSGI as documentedhere(under Dynamic apps) or theEmperor mode. I am slightly more inclined to use the emperor mode but maybe it is not the best choice. What are pros/cons of each?
nginx+uWSGI: dynamic vs emperor mode
Each core has its own set of registers, MMU, TLB, level 1 caches (data and instruction), level 2 cache (this depends on processor) etc. Cache Coherency is supported across cores via "QPI" and in the case of high end Core 7 and server-based processors like Xeon, Cache Coherency is supported across processors on a multi-...
Looking at this Intel core i7 nehalem micro-architectureit seems that each core has its own private Register File. So I have a couple of short questions, because I thought that there is only 1 set of registers not dependent on the number of cores.Does each core have its own private set of registers? (RAX, RBX, RSP and ...
Does each core have its own private set of registers?
0 You're having multiple CMD statements in your Dockerfile, however only last is getting executed instead this you can concatenate your CMD commands. Here is updated Dockerfile - FROM docker.xxxxx.com/oicp/standard/maven/amzn-maven-corretto8:latest AS build USER root ARG ...
I have a spring boot application, my junit unit tests run perfectly in IntelliJ when I run "mvn clean install", but when try to run them inside of a docker image, non of them actually run, I get that they are compiled, but they don't run. here is the content of my docker-image: FROM docker.xxxxx.com/oicp/standard/mave...
Junit Unit tests not running in docker image
Github flavored markdown supports thatYou should be able to do exactly that. I think you must be using a bugged markdown implementation (or one with a 'templating mechanism' where {{ xxx }} is treated like variable interpolation), in normal markdown the following code block should work:{{ var }}As you can see, the Stac...
I would like to write{{ ... }}inside a code block using Markdown.For example:{{ var }}I don't know why it disappears. However I can write it outside a block of code: \ {\ { var \ } \ }.
How to use {{ }} with Markdown
Apologies for the delay in responding. There are specific cluster-wide resources that are not tied to a particular namespace. In order to avoid restricting all resources to a single namespace, it is recommended not to set the targetNamespace in the Rancher Continuous Delivery UI.
the error iam getting is:error while running post render on files:invalid cluster scoped object[name=namespaces-kured kind=ClusterRole apiversion:rbac.authorization.k8s.io/v1]found.consider using "DefaultNamespace" not "namespace" in fleet.yaml
getting error while installing kured using fleet
For some reason I can't add comments, but you should move NSMutableDictionary * news = (NSMutableDictionary *)[self.nf.newsStories objectAtIndex:indexPath.row]; [cell.textLabel setText:[news objectForKey:@"title"]]; out of the conditional... and I'm not sure why you're making it mutable. Also, change the cell in...
Creating a simple RSS feed reader with the master-view template provided by XCode (4.6). The application loads the first screen full of titles, then when scrolling down or up, it bugs out with an error. The error I'm receiving in the console is: [__NSArrayM retain]: message sent to deallocated instance 0x7522d40 Th...
Problems with tableView and deallocated instance
Friend, I faced this problem, I made all the possible settings in nginx, but the problem was in my js fetch that tried with the patch method in lowercase, 'patch', changing to 'PATCH' worked normally.ShareFollowansweredJun 29, 2021 at 1:14Julian Pedro BragaJulian Pedro Braga11622 silver badges44 bronze badges3This is c...
I work on a Django project + django-rest-framework. On localhost, PATCH requests workperfectly fine. However, on server, PATCH requests do not work. I get a400 Bad requesterror. I use nginx to configure the web server.Here is my configuration:server { listen 80; server_name x.y.z.com; root /var/www/path-to/...
Django and nginx do not accept PATCH requests, resulting in a 400 bad request error
These headers will force the browser, and proxies if any, not to cache the page and force a new request to the server for that page:header("Cache-Control: private, must-revalidate, max-age=0"); header("Pragma: no-cache"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // A date in the pastShareFollowansweredSep ...
I have a webpage that requires login. Once a user has logged in I start the session and once he logs out I destroy it, but when I press the back page it gives me the user profile page again which ideally should not be the case as the user has logged out. However, it works fine if I reload the page after logging out.It'...
Reload the page on hitting back button
3 From Django’s cache framework: There are a few other ways to control cache parameters. For example, HTTP allows applications to do the following: Define the maximum time a page should be cached. Specify whether a cache should always check for newer versions, only delive...
I'm using redis for caching in a django app. I'm also using Django Rest Framework, and here is my problem. I'm using the cache system like this: from django.views.decorators.cache import cache_page urlpatterns = [ ... url(r'^some_url/$', cache_page(CACHE_TTL)(SomeView.as_view()) ... ] Here, SomeView is a class t...
Update cache if content changes before cache TTL expires
The challenge here is not just to properly escape the quotes when dynamically generating a string, but also to ensure that the result is a valid JSON. For example in your case changelog may contain newlines and quotes and, when it is expanded into the "body": "$changelog" part of your POST data, those characters must ...
I am trying the following: sh ''' changelog=$(git log `git describe --tags --abbrev=0 HEAD^`..HEAD --oneline) curl --data '{"\tag_name\": \\"v0.0.${BUILD_NUMBER}\\",\"target_commitish\": \"master\",\"name\": \\"Release v0.0.$BUILD_NUMBER\\",\"body\": \\"$changelog\\",\"draft\": false,\"prerelease\": false}' h...
Bash variable escaping in a Jenkinsfile
You need to cherry pick the fix "downwards" the history tree so that later you can cleanly merge it "upwards" to other branches.Checkout the merge-base (typically, sometimes further down the tree).Cherry-pickAresulting in a new commitX.MergeXback to both of the branches.After this, both branches will haveXin common, wh...
I have 2 main branchesmasteranddevelopment. I recently had to push a hotfix that are commits already merged todevelopment, and to do so I cherry-picked commits fromdevelopment, created a new hotfix branch, added another commit for the fix, and merged that tomaster. My question is, how can I now merge the new commit tod...
How to merge back cherry-picked commits in git?
Your kubernetes cluster needs to be authenticated to the container registry to pull images, generally this is done by a docker secret:kubectl create secret docker-registry regcred --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword> --docker-email=<your-email>If you are us...
I'm working on a project using Helm-kubernetes and azure kubernetes service, in which I'm trying to use a simple node image which I have been pushed on azure container registry inside my helm chart but it returnsImagePullBackOfferror.Here are some details:MyDockerfile:FROM node:8 # Create app directory WORKDIR /usr/sr...
Pull azure container registry image in kubernetes helm
I think this would be mandatory to make release branch for every release inproductionor yourmasterbranchSo There is no alternative way to do this.Simply flow is as below:Work on yourfeaturebranchFinish work and merge yourfeaturebranch to stagingMakereleasebranch fromstaging.Add version and tag than merge it tomasteramd...
There are several branches available ingit flow. such asfeature/release/support/hotfix/bugfix/I do not needrelease/branch and want to mergestagingbranch (a development branch) directly tomaster. What is the best way to achieve this usinggit flow?
How to use git flow without using release branch?
3 The two most commonly used methods for passwordless authentication are : if you access live through ssh : set up an ssh key if you access live through https : use a credentials manager Share Improve this answer Follow ...
This question already has answers here: Is there a way to cache https credentials for pushing commits? (28 answers) Git: How to solve Permission denied (publickey) error when using G...
Git push command with a password flag -p 'password' [duplicate]
Solved it myself. I'm now loading every image into a cache before using it. If the cache gets full, the oldest element will be discarded, so new ones can get cached. additionally im resizing my images into smaller icons. that did it.
I just have a little ListView containing all installed apps and their icons but if there are too much Apps installed i run into outOfMemoryErrors while doing Drawable app_icon = applicationInfoList.get(i).loadIcon(context.getPackageManager())); that for every ListEntry (this line is written in my ListAdapter) no pr...
android loadIcon generates outOfMemoryError
-1Do you passsonar.scm.provider=perforcelike mentionedin documentation. I also encourage you to use freshly released version 1.3 of the Perforce plugin.
i'm trying to define perforce plugin version 1.2 in SonarQube version 5.2. According to below instructions:http://docs.sonarqube.org/display/PLUG/Perforce+Plugini have defined below parameters in sonar.properties file:sonar.perforce.port sonar.perforce.username sonar.perforce.password.securedi have restarted the sonar ...
define perforce plugin in sonarqube
support for this feature has been added in Spark 2.3.0.See release docsMultiple column support for several feature transformers:[SPARK-13030]: OneHotEncoderEstimator (Scala/Java/Python)[SPARK-22397]: QuantileDiscretizer (Scala/Java)[SPARK-20542]: Bucketizer (Scala/Java/Python)You can now usesetInputColsandsetOutputCols...
All,I have a ml pipeline setup as belowimport org.apache.spark.ml.feature.QuantileDiscretizer import org.apache.spark.sql.types.{StructType,StructField,DoubleType} import org.apache.spark.ml.Pipeline import org.apache.spark.rdd.RDD import org.apache.spark.sql._ import scala.util.Random val nRows = 10000 val nCols ...
How to use spark quantilediscretizer on multiple columns
"I get build errors when trying to build that helper universally. You'll just have to remove it for the time being."from:https://code.google.com/p/git-osx-installer/issues/detail?id=97It's a wontfix issue.
I am attempting to follow the directions onhttps://help.github.com/articles/set-up-gitfor getting up and running with git. I installed version 1.8.4.2.However when I try to use the OS X Keychain Helper I get:fatal: cannot exec 'git-credential-osxkeychain': Bad CPU type in executableI am using an older but still Intel ...
Git Installation on OSX: Cannot exec 'git-credential-osxkeychain': Bad CPU type in executable
It sounds like you could use a third-party tool to tether your Rails app to cron:Whenever. You already know about it, but it seems you never tried it. This gem includes a simple DSL that could be applied in your case like:every :day # Or specify another period, or something else, see README runner "Charger.start" end...
I have a Rails runner task that I want to run fromcron, but of coursecronruns asrootand so the environment is set up improperly to get RVM to work properly. I've tried a number of things and none have worked thus far. Thecrontabentry is:* 0 * * * root cd /home/deploy/rails_apps/supercharger/current/ && /usr/local/rvm/...
Running Rails Task From Cron
With Windows Azure Virtual Network, once you configured the VPN connection the connection is available all the time and if by any reason the connection was down, the tunnel should typically be automatically reestablished.Also once you configure the VPN, the tunnel reestablished within a few seconds. Also sometime the c...
Does anybody know how to "reset" the VPN tunnel of Windows Azure Virtual Network? The networking guys here are asking me to do so. What they mean is to "refresh" the connection. Since I'm not a VPN expert I don't fully understand this request. They told me this is frecuent when configuring VPN tunnels on hardware VPN c...
Refreshing Windows Azure VPN tunnel
In a nutshell: BatchGetItem works on tables and uses the hash key to identify the items you want to retrieve. You can get up to 16MB or 100 items in a response Query works on tables, local secondary indexes and global secondary indexes. You can get at most 1MB of data in a response. The biggest difference is that quer...
I've been going through AWS DynamoDB docs and, for the life of me, cannot figure out what's the core difference between batchGetItem() and Query(). Both retrieve items based on primary keys from tables and indexes. The only difference is in the size of the items retrieved but that doesn't seem like a ground breaking d...
What's the difference between BatchGetItem and Query in DynamoDB?
Please read the documentation: Warning If the passed file pointer is not valid you may get an infinite loop, because feof() fails to return TRUE. Make sure your file pointer is valid, and pass "r" (= reading) for mode.
I'm trying to create a Java file using a PHP script, but for some reason, whenever I run this script I get the following error on the screen: Fatal error: Allowed memory of 134217728 bytes exhausted (tried to allocate 24 bytes) in C:\filepath\file.php on line 88 This is the code block with line 88: $var1 = explode("...
Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes)
As Charles Duffy said, to execute a binary, you'd have to tell your operating system (which seems to be a Unix variant) to load and execute something – and Unix systems only take files to execute them directly.What you could do is have a process that prepares a memory region containing the ELF binary, fork and jump int...
For some obscure reason I have written a bash script which generates some source code, then compiles it, using... whatever ... | gcc -x c -o /dev/stdoutNow, I want to execute the result on the compilation. How can I make that happen? No use of files please.
How can I make bash execute an ELF binary from stdin?
As already said in the comments: if you use any of--{trunk,branches,tags}— be sure to omit the-s/--stdlayout. Although the docs say--stdlayouthas lower precedence — better be safe than sorry. Becausegit-svnimports do indeed take a lot of time.man 1 git-svn:-T<trunk_subdir> --trunk=<trunk_subdir>-t<tags_subdir> --tags=<...
I am using git-svn for the migration from SVN to GitHub. Below is how files are structured on the SVN repo, let's called itprojects_repoProjects_Repo/- BranchQA_Test/ - project1/ - project2/ - project3/ - project4/ - tags/ - project1/ - project2/ - trunk/ - project1/ - project2/ - project3/ - project4...
Migration from SVN to GitHub