Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
The command to change content type for *.svg files is: aws s3 cp --content-type image/svg+xml --acl public-read $FrontendAddress/resources/ $FrontendAddress/resources/ --metadata-directive REPLACE --exclude "*" --include "*.svg" --recursive
I'm deploying static AngularJS webpage to S3 bucket. I use Jenkins, copy file over Shell with AWS CLI. The specific command in Groovy looks like this: // after build, files are located in frontend/target/myfrontend/ sh 'aws s3 cp frontend/target/myfrontend/ $FrontendAddress --recursive' I have SVG graphics in /resour...
Copy to S3 with AWS CLI with proper content type
You should ignore any file that is generated. If I download your project, I can use package.json to generate node_modules, so ignore node_modules. But if I download your project and it doesn't have src will I still be able to generate src? Most likely not, as this is probably code you have written so put it up.
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve th...
GitHub .gitignore recommendation [closed]
The first rule makes no sense.Shorten to this:RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^login\.php$ https://www.example.com/login.php [L,R]If the idea of the first rule was to forcewww, add this:# From http://stackoverflow.com/a/4958847/1078583 RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. ...
I want to redirect couple of pages to https. As I've already use one condition to redirect all requests to http, for those coupoe of pages, it shows too many redirects. Look at my code below:RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ www.example.com/$1 [L,R=301] RewriteCond %{HTTPS...
Redirecting a couple of pages to https from .htaccess file
Some ports will be open in windows by default. What you're looking for is the advanced firewall settings.You can find this by pressingWIN+Rand enteringwf.msc. You can also find the advanced settings inControl Panel/Systemandsecurity/Windows Firewall/Advanced settings. Here, you can add new policies to your inbound and ...
I set a netcat listener on my windows 7 machinenc -nvlp 4444Then I try to connect to it via kali linux:nc -nv <Target_Ip_address> 4444I get a connection refused. However, if I connect locally from the windows machine to the port I get a successul connection. In addition, when I run annmapscan on the port I get its fil...
unable to connect to windows netcat listener
You can set your global username and user email on your computer with:git config --global user.name jmuheim git config --global user.email[email protected]If you want to change the previous commits it'll get a little bit more complicated. Be aware that changing the author information will make it impossible to merge pu...
Since a few weeks, my commits on GitHub are listed under authormuheiminstead ofjmuheim. I have no idea how this changed, and I'd like to change it back tojmuheim, but I have no idea how to track this.I'm on macOS and my password is saved in the keychain. But I don't find any accountmuheimin there, onlyjmuheim.I have an...
My commits on GitHub are not from "my" user
I think you need to go tosettings > branchesand remove\update branch protection rules to not require Azure Devops builds to complete.Either uncheckRequire status checks to pass before mergingor delete the Azure Devops builds from the list.
I've added Azure Pipelines as a github app from my repository.Somehow, many PR-jobs still wait on my azure pipeline to complete (not all, only those to master).I've done the following:Remove Azure-pipeline.yml from masterCancelled my Azure Subscription in Github-MarketplaceRemoved the repository from my azure-organizat...
How to completely remove Azure-Pipelines from Github
Maybe it's easier if you just don't use a key. It's an optional feature so Google can track your API usage for example if you need to purchase additional quota.
This question already has answers here:How can I hide my Google Maps API Key when sharing my code on github?(4 answers)Closed1 year ago.I'm following a tutorial for google maps v3 where in the<head>they include:<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=API_KEY&sensor=SET_TO_T...
hide the google maps api key for github [duplicate]
It sounds like your asset host configuration is hard-wired to http. When you view a page over https, but load an asset over http, many browsers will block the asset or show a warning. The easiest way to fix this is to set a Rails asset_host that does not include a protocol, which should inherit the protocol of the pa...
I have set up my rails app, works great. Unfortunately on the https:// version of the site, none of my assets are being served... any idea as to why this might happen? All assets get served via http:// but none via https:// Help? ============= CODE ============== upstream unicorn { server unix:/tmp/unicorn.XXX.sock...
Serving Assets VIA SSL in Rails 3 App Using NGINX and Unicorn
Option 1 Type brew uninstall awscli Then brew install awscli update python to 3.9. look in the following post. If this approach does not work for you, then try : Option 2 Go to https://www.python.org/ and use the GUI installer for your OS pip3 install awscli
I'm not aware of anything on my system having changed, but the aws CLI tool has stopped working. $ aws-bash: /Users/user_name/Library/Python/3.7/bin/aws:/usr/local/opt/python/bin/ python3.7: bad interpreter: No such file or directory I've tried brew reinstall awscli which is suggested elsewhere, but with no luck.
AWS throws the following error: "bad interpreter: No such file or directory"
The reason is S3 actually has a flat structure. There are no folders but it just recognizes the forward slashes so groups the ones having the same prefix under same folder. So in your example "/BF/MUSIC" would be just another object, not an empty folder.In Amazon S3, buckets and objects are the primary resources, where...
I useListObjectfunction without any delimiters and as result I have something that look like:/BF /BF/FTP /BF/MUSIC/LIBRARY/AUDITION/BEAKING%20EARLY.MP3 /BF/VIDEO/ /BF/VIDEO/Example /BF/VIDEO/Example/test.mp4The problem is in the music folder. Why ListObjects doesn't return S3Object with key: "/BF/MUSIC". There are many...
AWS S3 - ListObjects returns incomplete directory listings
According to thedocumentation,c.diff()will compare the commit against the index, i.e. staged changes.It appears thatgit log -pwill produce a special-format diff against all of the given commit's parents. Something roughly comparable can be achieved with the following code (based on your example).repo = Repo("...") for ...
I don't understand the difference between the output ofgit log -pand that ofgitpythonin terms of diffs.For example, for some merge commitf534e1...,git log -pgives:commit f534e1... Merge: .... Author: .... Date: ... Merge pull request ... from ...withno diff, which I assume to be correct (the diff comes with the next...
What's the difference between gitpython's diff and git log's diff?
Try this one -- works just fine here:RewriteCond %{HTTP_HOST} ^(mysite\.com|www\.mysite\.com)$ [NC] RewriteRule .* http://store.mysite.com%{REQUEST_URI} [R=301,L]Here I have placed 2 domain names in single condition using regex pattern.I have also modified RewriteRule a bit (that's how I preferring doing it).You may al...
I'm forcing a URL change if the user has accessed the site viahttp://mysiteorhttp://www.mysiteHowever currently I only check that the site does not equal the main sub-domain which ishttp://storeI also have another sub-domain but this is being overwritten as well, so I need to change the way my current code works which ...
Rewrite condition to check if not two URLs
That's a big docker-compose.yml! Break it up into more than one docker-compose file.You can passmultiple docker-compose filesinto onedocker-composecommand. If the many different containers break up logically, one way of making them easier to work with is breaking apart thedocker-compose.ymlby container grouping, logica...
Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed5 years ago.Improve this questionI recently started migrating my self-hosted services todocker. To simplify maintenance,...
docker-compose file has become too long [closed]
Memory tables are stored entirely in memory, so it is very fast.It uses hash indexes which are also very fast, great for temp table purposes and lookups.Memory tables have table level locks, so if concurrency is required, this is a problemNo transactionsWhen server shuts down or crashes ALL ROWS ARE LOSTthough table de...
For the same reason it makes sense to use both NoSQL and RDBMSs in one application, It makes sense to me to have an RDBMS cache besides NoSQL cache.I was thinking about using a MySQL server with all tables using the memory engine.Is there any caveat to this approach?Just to clarify, I am suggesting here to use a MySQL ...
Why not use MySQL like memcached?
its an array list, so creating a new object means allocating a slab of memory and zeroing it, plus any bookkeeping overhead. Clearing the list means zeroing the memory. This view would lead you to believe that clearing an existing object is faster. But, it's likely that the JVM is optimized to make memory allocations f...
how expensive is 'new'? I mean, should I aim at reusing the same object or if the object is 'out of scope' it's the same as emptying it?example, say a method creates a list:List<Integer> list = new ArrayList<Integer>();at the end of the method the list is no longer in use - does it mean that there's no memory allocated...
what's more efficient? to empty an object or create a new one?
You can use:RewriteRule ^([\w-]+)/?$ results.php?category=$1 [L,QSA]\wmatches[a-zA-Z0-9_]To avoid matching underscore use:RewriteRule ^([a-zA-Z0-9-]+)/?$ results.php?category=$1 [L,QSA]To safeguard it use this condition to avoid matching directories:RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([\w-]+)/?$ results.p...
I am trying to write a rule that matches domain.com/abcRewriteRule ^([^/\.]+)?$ results.php?category=$1 [L,NC]This works and category=abc but this rule also seems to be triggered if I just go to domain.comI need my rule to only match if the URL after the slash contains alphanumeric characters or a dash. It can not matc...
RewriteRule to match anything alphanumeric or dash only
The support for mixed TCP/UDP protocols depends on the cloud provider. For example,Azuresupports it but AKS may not have a version that supports it as of this writing.Not clear what is giving you aconnection timeoutbut it should work fine as long as you point the Azure UDP load balancer to the30003NodePort. You can al...
My dockerized service (webrtc server) uses both TCP and UDP transport protocols. I'm working with Azure Kubernetes service. As you know we cannot create LoadBalancer service in Kubernetes with both TCP and UDP proto (more infohere)Also, I've tried to create two services:one for TCP portsone for UDPbind them with one pu...
AKS(kubernetes) service with UDP and TCP
Because you want to keep uncommitted changes around for recovery, image creation, or general inspection. Stopped containers can be restarted with the command docker start <container-name> and can be viewed with a docker ps -a In addition you can commit changes for any container (even if the container is stopped) to yo...
What's the reason that stopped containers are kept around? Can they be restarted in any way?
Why does Docker keep around the stopped containers?
When a request is scheduled by a cron job it's handled as one normal request, from the quota/billing perspective. I suppose your applications gets much more requests per day, so plus one request shouldn't be a matter, unless your application is quite heavyweight.I'd prefer cron over deferred tasks, because the latter i...
I am faced with a situation where I want a user to perform an action andhave the option to revert the action before the next 24 hours, else the action would be executed. The only solution I have been able to come up with is to use aCron Joband schedule it for a particular time of the day and in the Job I would check fo...
Google Appengine: How to schedule a task to run once at a time of the day
UIView retains its subviews, so it's responsible for releasing them. Your subclass doesn't own those views (unless you explicitly retain them), so you don't need to worry about releasing them.So it sounds like you're doing the right thing.ShareFollowansweredApr 10, 2011 at 4:38Terry WilcoxTerry Wilcox9,03011 gold badge...
My current understanding is that superviews have retains each of their subviews. For a subclass of a UIView, do I need to remove all of my subviews from their superview as part of dealloc? I'm currently just releasing my IBOutlets, removing observed notifications, and clearing up any pesky ivars.Or is removing and rel...
Remove all subviews in dealloc?
4 AWS has recently announced a feature to self restore the default VPC. Also its not mandatory to have a default VPC in place for a region. However, at least one is needed if you plan to start EC2 instances in the particular region. Note: In the past, if the default VPC i...
I don't use the default VPC. I have created another VPC. However, I haven't assigned my other VPC as default. I would like to delete my default VPC and set my other VPC as default. I read some arguments on the Internet. If I delete the default VPC then I will not be able to create instances. Is this correct? What will...
What will happen if I delete the default VPC in AWS?
A good way to clear the facebook cached image and text is by running the tool Debugger:http://developers.facebook.com/tools/debugBy putting the url that you are sharing there, it will refresh facebook cache from your website.
I created a like button on a page (http://www.usna.edu/BillAF/game.php) that sends the URL/data for it's parent page. Unfortunately, when I first put it in, an older version of the page was at the location of the parent page that did not have the open graph meta-tags on it.So when someone "likes" the page, it sends the...
How do I force the Facebook Like Button to re-scrape my page?
I assume there are some ports which are most certainly open, like 22 for SSH. You could try setting up an SSH tunnel from within your firewall to the cloud based server. Then you need to forward connections on the mongoDB ports through the SSH tunnel.
I am trying to import data to my mongodb sevrer that is hosted on the cloud.I run the following command from a linux server that is inside a corporate firewall:mongoimport --host myhost:10081 --db mydb -u myusr -p mypass --collection imptest --file test.dat --drop --stopOnErrorThe import starts running, connects to th...
mongoimport hangs when running from within firewall
Many editors let you change between CRLF and LF line-ending modes. On VSCode this is a toggle on the bottom menu bar which switches when clicked. The change the default for all files, edit settings.json and add the following at the top: For default LF: { "files.eol": "\n", } For default CRLF: { "files.eol": ...
Before you mash the duplicate button, I know there are more posts on the same issue and I've tried the solutions to no avail (Please see the last part of my post). I'm using React 17.0.2, ESLint 8.5.0 and Prettier 2.5.1 and I'm getting the following error in almost every js file. Delete `␍`eslintprettier/prettier Thi...
Delete `␍`eslintprettier/prettier
Tldr;I believe you may have made a mistake in youdocker-composefile. You are providing Kibana with the port that is mapped on the host34343and not the host the service is listening to9200in the docker internal network.Having a read at thenetworking documentation of dockerhelped me outTo fixversion: '3.7' services: el...
When using default 9200/5601 for ES and Kibana, both ES and Kibana are up.I'd like to change ports as below. ES is up at http://localhost:34343/ But Kibana doesn't work. I tried both service name ELASTICSEARCH_HOSTS=http://elasticsearch:34343 and container name ELASTICSEARCH_HOSTS=http://my_elasticsearch:34343version: ...
port issue for Kibana
Checktransformersversion. Make sure you are on latest. Pipelines were introduced quite recently, you may have older version.
I have installedpytorchwithcondaandtransformerswithpip.I canimport transformerswithout a problem but when I try toimport pipeline from transformersI get an exception:from transformers import pipeline --------------------------------------------------------------------------- ImportError Tr...
Can not import pipeline from transformers
I would still try git-revert to remove lines in commit A. Next you want to restore the other two files which don’t need revert. git checkout HEAD^ - file1 file2 is the way to recover to the original file content. Finally commit amend to overwrite nicer message than “Revert …”
I have a 3 month old commit, lets say commit A which touchs 3 files Over the last 3 months, a lot more commits have gone in, some of which have added new code below changes from commit A I want to remove (not revert) the changes from commit A in 1 of the 3 files. remove as in blank line instead of code I tried git sho...
Remove changes from a commit hash in a given file git
1 I need to know how can I tell the production environment to properly use that index in the first statement. Use the "force index" syntax. If you paste CREATE TABLE & EXPLAIN output for the tables & queries involved (resp.) on dev & production we can narrow it down to ...
I've looked everywhere for my issue but found no definite answer. Database: MySQL Given three numerical fields a, b, c and One datetime filed d, all indexed separately The involved table holds 10 mil. records. Two numbers n,m I have a basic query: select * where (a=n or b=n) and c IN(m) Order by d DESC (n can be any...
Mysql query execution plan has caching?
I think you could achieve what you want by setting the conditionals at the step level instead of at the job level. That way, GHA would consider the job as run, even though no step has been run. If it hadn't considered the job as run due to the fact that no step has been run, you could add a dummy step (eg.- run: echo "...
I have following jobs:jobs: build: name: Build runs-on: [ self-hosted, linux ] steps: - uses: actions/checkout@v2 - name: Build run: dotnet build unit-test: name: Unit test if: github.event_name != 'release' runs-on: [ self-hosted, linux ] needs: build steps: - uses: actions/checkout@v2 - name: Run tes...
Condition if in GHA need
It is not possible to use existing Amazon EC2 instance directly, but you can create a custom AMI of your existing EC2 instances. And using the custom AMI to launch your EB environment.You should also pay attention which AMI your existing EC2 instance used. If your existing EC2 instance is not using EB AMI, your EB envi...
Is there a way to create an Elastic Beanstalk environment using an existing Amazon EC2 instance?
Attach existing EC2 instance to elastic beanstalk
Follow the sugestions of all the comments, i.e Make sure you are in 64 bitBut you need to also make sure you are disposing your images or you will run out of memory sooner or later anyway. The following is just an exmapleif(picturebox1.Image != null) picturebox1.Image.Dispose(); picturebox1.Image = null; OpenFileD...
BriefI want to display a PNG image in my PictureBox. At runtime the software asks the path of the image from the user.Solution i am usingThis is my code uptill nowpicturebox1.Image = null; OpenFileDialog ofDlg = new OpenFileDialog(); ofDlg.Filter = "Image files|*.png"; if (DialogResult.OK == ofDlg.ShowDialog()) { ...
C# Win. Form - Out of memory when retrieving an Image
On GitHub.com the size limit is 100MB https://docs.github.com/en/github/managing-large-files/working-with-large-files/conditions-for-large-files If you have Github Enterprise Server you can change the size limit if you have the permissions to do so. https://docs.github.com/en/[email protected]/github/managing-large-fi...
Similar to: Github remote push pack size exceeded Failure message: Pushing efb55fab0352e4fff42129d00b642e908e9d09c1... Counting objects: 617706, done. Delta compression using up to 6 threads. Compressing objects: 100% (368204/368204), done. Writing objects: 36% (222375/617706), 1.79 GiB | 278.60 MiB/s remote: f...
Git push fails for large number of commits
The problem is in the-tflag. Without it STDOUT and STDERR work as expected.
Here's an example of outputting stderr usingdocker exec, and the output is sent to STDOUT.$ docker exec -t 09b24cd7fa69 ls nosuchfile 1>docker.out 2>docker.err $ cat docker.out ls: cannot access 'nosuchfile': No such file or directory $ cat docker.err $
Why is docker exec combining STDERR and STDOUT streams
In test you can use Visual Studio Profiler, It has a memory allocation profile: In Visual Studio go to the Analyze menu and select “Launch Performance Wizard…" and select .NET Memory Allocation (Sampling)
I'm writing a Windows service that connects to a public Web service and downloads the incremental data to my own database. The service has been in operation for several years and the data is really a lot, so the first start-up takes on the order of days (three years records of the date of start-up takes approximately ...
Monitoring memory in a Windows service
When docker build executes the line: RUN hugo version, then by default, it does not show the output of the run commands that were not loaded from the cache. And hence you are not seeing its output. When I ran docker build command with this flag: --progress=plain, I could see the output of "non-cached" line for RUN com...
im trying to install the Hugo tool in docker file following this guideline https://gohugo.io/getting-started/installing/#debian-and-ubuntu What I did is the following FROM debian:11.3 RUN apt-get update \ && apt-get install -y --no-install-recommends \ hugo RUN ["hugo version"] The docker build working e...
Docker download and install binary at hugo version
Issue could be related tocerticates. Please check part onQ: On GKE (Google Container Engine) I get “No SSH tunnels currently open”
I was also encountering the error message when runninghelm versionorhelm listkubectl port-forward -n kube-system tiller-deploy-xxxxxxxxxxxxxxx 44134 error: error upgrading connection: error dialing backend: No SSH tunnels currently open. Were the targets able to accept an ssh-key for user "gke-xxxxxxxxxxx"?The root iss...
helm unable to connect to tiller in GKE
Are you sure you are not confusing nodes with clusters? Because if these pods exist on different nodes, within the same cluster, then you can simply access the pod with its IP.Otherwise, it is not possible to connect to your pod outside the cluster without making your pod public by a service(NodePort, LoadBalancer) or ...
We have two k8s clusters:Cluster details:Cluster 1: Pod Network: 172.16.1.0/24 Node Network: 172.16.2.0/24 Cluster 2: Pod Network: 172.16.3.0/24 Node Network: 172.16.4.0/24All these networks are connectivity to one another.Suppose we have 3 pods in each clustersCluster1-Pod1: IP: 172.16.1.1 Cluster1-Pod2: IP: 172.16....
Connect Pods from one cluster to a pod in aother cluster without using k8s service
4 you can divide task to two parts: first part (web) only saves a file on a disk. this way web part will work fast. second (system) will process all files saved by first part. and you can start it periodically ie as a cron task on linux, or use some other task scheduler d...
Ok, let's say my website allows users to upload large batches of files for processing. Now, once they upload the files say a process_files() function is called. This will take a long time to complete and it will basically make the website unusable for the user until the task either times out or completes. What I'm won...
How to execute very long task in background PHP?
Thank you for the comments. After spending some time trying to figure out how to handle theServerCertificateValidationCallbackfromHttpWebRequestI decided to change the approach and try different http .net implementations. I tested withSystem.Net.Http.HttpClientclass and the callback returned the full certificate chain ...
The scenario is: We have a linux device with a certificate. The device certificate is signed by the intermediate certificate which is signed by the Root certificate so the depth level is 3. There is a service which makes Https calls to the linux device. The service is hosted on a windows workstation and in the CA trust...
Validate device's self signed certificate
In the end I had to RTFS, the answer in summary:As at msysgit version 1.9.5 (earlier versions are untested), gituses the proxy configuration for [http] section for both http and httpsdoes NOT have an explicit way to set authentication type (such as ntlm)does NOT have a separate way to set username and password other th...
Like many, Im trying to access github.com from behind a corporate proxy.Apparently* curl (via libcurl) now includes GSSAPI support for NTLM proxy authentication without having to manually divulge username and password.Since git client uses libcurl, I assume this is accessible via git.How do I access this using git clie...
git client using GSSAPI for NTLM proxy authentication
This should not create a reference cycle, but even if it did that would be ok. The reference cycle would only exist until the animation completed, at which point it would be broken. Creating short-lived reference cycles can actually be beneficial because it ensures that the target continues to exist for the life of th...
If you need to reference self inside of a closure, it's good practice to pass it in as weak or unowned to prevent a retain cycle. If I pass the function that belongs to self directly, will it cause a retain cycle? Or does it need to be nested inside a closure to weakify self? Passing directly UIView.animateWithDurat...
Does passing a function belonging to self cause a retain cycle when not in a closure?
Both should work, but I would probably use the second one.
Closed. This question does not meet Stack Overflow guidelines. 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 used by prog...
cron every hour between 6 am to 18:00 [closed]
AFAIK, you can't serialize PDO objects at all: they are tightly coupled with the underlying database driver and the connection that is currently open. You would have to cache an array containing the database call's results.That may not necessarily help your performance though: fetching a lot of data from a cache (or s...
I am trying to cache the results of a query which won't change very often, if at all. In my class I have a private class variable private $_cache and in my constructor I initialize it the way I do with most of my caching: // Setup caching $frontendOptions = array('lifeTime' => (strtotime('+1 week') - time())); $backen...
Caching PDOStatement Object in Zend Framework
0 Try loading the image into a bitmap first and then set the bitmap to the imageview. Url to bitmap: public static Bitmap getBitmapFromURL(String src) { try { URL url = new URL(src); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setD...
I'm trying to use PhotoView library of Chris Banes with enclosing sample. I made some changes in sample to load image from URL (on internet), not from drawable as sample . Here's the code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_mai...
How to load URL image in PhotoView
For your questionAis your repo andBis the other persons whereasTis the original repo.From your post it looks likeBhas it thewrongway I would suggest youcomment on his PRwhat is wrong and should be the right way to go about it.It's a great way to learn forBIfBhas any valuable contribution and you have decided you will r...
Some time ago I contributed to a third party's repository on GitHub adding two new files to a repo.So: forked the repo, cloned, modified, pushed and pull-requested.Now another person has made a pull request to the same repository modifying my files and I am required to review those changes since I am those files' origi...
How to propose a reworked pull request to a someone else's one?
2 It is pretty straight forward, but you may want to keep an eye on what is actually cached. Rick Strahl has an interesting post on how the cache was actually empty due to memory pressures. Share Improve this answer Follow ...
I'm working on an ASP.NET application that has the following requirements: Once every 15 minutes perform a fairly expensive query of around 20,000 items (not from a database). Has around 10 columns, all short strings, except for one which stores up to 3000 char (usually a lot less). Process the resulting DataTable wi...
Caching Large Datasets
I cleared browser data (cache, cookies, old form fields data) and disabled all addons/extensions, which made PAT to be visibleNote: whenever a UI functionality not working,it must be checked with different platforms/browsers, as there might be compatibility issue. Also,clean cache, cookies, old form fields data of the ...
I am trying to generate a personal access token, I have followed steps mentioned in github documentation for the sameExpected output:but instead, thetoken is not visibleas soon as click the generate buttonActual output:proof-of-concept videowhy the token is not visible here, are there any changes needed to be done befo...
newly generated personal access token in GitHub is not visible
The average statistic is the Sum / Sample Count. Sample Count is just the number of CloudWatch data points for the metric in the period. So it will be the total number of errors, divided by the number of error metrics reported to CloudWatch. For example, if you were tracking over 10 minutes, and the metrics were report...
I'm trying to add a cloudwatch alarm which is triggered if the error rate experienced by a lambda passes a certain percentage threshold.I've seen a fewplacesthat suggest taking the lambda error count and the lambda invocation count and using the metric math to doerror count / invocation count.That approach makes sense ...
How do you set an alarm for the percentage of errors experienced by a lambda in AWS?
In your dockerfile you can write this command to add required repo, update your repository and then install ffmpeg. Though I am not sure if this library still exist I just modified this Link for Docker you can follow same rules to install another package. RUN set -x \ && add-apt-repository ppa:mc3man/trusty-media...
I have setup a docker image in my Windows 10 Machine. Can you please tell me how can I install ffmpeg to that docker image?
How can I install ffmpeg to my docker image
One way to choose how to divide the blocks is to decide which parts you want to scale independently of the others. A good starting point is to divide the CPU-bound portions from the I/O-bound portions. I'd consider combining the last two blocks, since they are both I/O-bound (presumably to thesamedatabase).
I try to create well-designed TPL dataflow pipeline with optimal using of system resources. My project is a HTML parser that adds parsed values into SQL Server DB. I already have all methods of my future pipeline, and now my question is what is the optimal way to place them in Dataflow blocks, and how much blocks i sho...
TPL Dataflow pipeline design basics
Pasting in outcome from comments. antal_termer was not initialised in the constructor, resulting in invalid memory access here: *(term+antal_termer) = *t; As the code is copying t, via assignment, you can delete potens; after the call to addTerm(). The code must prevent going beyond the end of the term array in addTe...
I recently started with C++ and i'm not entirely sure I grasp the concept of pointers and their connection to arrays. I have two classes, Term and Polynom. I have a main loop which allows the user to enter 2 numbers. Those numbers is then added to the "Term" object and that object is then added to the "Polynom" object...
Pointers and memory allocation in C++
SonarLint for Eclipse currently only supports Java, JavaScript and PHP. Support for other languages - including those backed by commercial plugins like C/C++, is in our backlog but I can't give an ETA for this yet.
With version 2.0 of theSonarLint plugin for Eclipseit's now possible to sync rules from a SonarQube 5.2+ server instance.By default there is no C language support in SonarLint but if the server instance has installed theC plugin,does this mean that SonarLint can analyze C projects?With version 2.0 you can now establish...
SonarLint for Eclipse supports the C/C++ plugin?
Nope, you cannot do that, containers are isolated by design. You have to define the env variable for both containers. To not duplicate your code, you can use either yaml anchors with extension fields: version: '3.7' x-environment: &commonEnvironment PLAYER_NAME: 'PLAYER_1' services: service-1: envir...
In docker compose, I have two containers, one named php-container, the other nginx. For the NGINX container, I defined an environment variable. Is there a way to access that variable in the PHP container? I want to access the PLAYER_NAME variable in my PHP container version: '3.7' services: api: build: '.' ...
Share environment variables between two containers from docker-compose
I strongly recommend going through the official tutorial showing theAccessing appsoptions in Minikube:How to access applications running within minikube There are two major categories of services in Kubernetes:NodePortLoadBalancerminikube supports either. Read on!There you will find how to use both, theNodePort access:...
I am doing my practice onKubernetesthroughMinikubeon myAWS EC2. As part of that, I have createddeploymentand exposed that throughNodePortservice, then checked with:curl http://<node-ip>:<service-port>in EC2 Machine that worked fine. But when I hit the same URL on browser gave me:This site can't be reachedCan anyone hel...
Unable to access kubernetes NodePort service from browser
Answer my own question here. Thanks to all your help to make me realize I have a misunderstanding in video capture.The default backend for VideoCapture is cv::CAP_ANY which means auto-detected, and in my case cv::CAP_MSMF is used. After specifying the backend to cv::CAP_DSHOW there's no more GPU usage. The modified cod...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
Why is gpu used when reading image from webcam using VideoCapture [closed]
GitHub Pages(which is what I assume you're referring to) does not provide a database or other backend services; it simply hosts static HTML and CSS files that you provide in a specially-named repository. If you want to add interactive features that require a database, you'll need to move to a full-fledged Web hosting s...
I am exploring Github. Yesterday I tried to upload basic site and successfully did it with the help of different sites, it works. But right now I am exploring for more. Is it possible to add database so that they can add comments on my page?, anyways I am only a novice programmer so that my question I think is out of...
Website Template Upload to Github
I solved this issue adding --skip_cleanup to the end of dpl command.There was a "git stash --all"happening before the deploy.Example:dpl --provider=heroku --app=your-app-name --api-key=$HEROKU_API_KEY --skip_cleanupHope it helps.
Im tryig to deploy my dist folder of a project from gitlab to heroku, gitlab ci:image: node:8.10.0-alpine cache: key: "alpine" paths: - node_modules/ stages: - build - production build: stage: build artifacts: paths: - dist/ script: - npm install - npm run build tags: - docke...
Deploy react.js app /dist folder to heroku from gitlab
Please try with the following/domain.com/.htaccesscode:RewriteEngine On RewriteBase /domain.com/ # Redirect actual URI to SEF URI RewriteCond %{THE_REQUEST} (?:GET|HEAD)\s\/domain.com\/Job\-Details\.php\?Job_ID\=(\d+) [NC] RewriteRule ^ %1? [R=302,L,NE] # SEF URI for Job-Details page RewriteCond %{REQUEST_FILENAME} !...
I'am quite new with htaccess. I have successfully created .htaccess file with following rules to redirect user with pretty url.My actual urlhttp://localhost/domain.com/Job-Details.php?Job_ID=30What i want to achievehttp://localhost/domain.com/30My Current htaccessRewriteEngine On RewriteBase /domain.com/ # Get the URI...
Pretty url not redirecting, htaccess
You probably need to pass-stocurlif you're running it via the command line, to tell it to be silent and not output progress information to the terminal.Pass-Sas well (e.g.curl -s -S) to make it show error messages if it encounters them, even though you've otherwise silenced it.
I am receiving the following in my email every time the cron job is running:What does it mean? Is something wrong? Why am I receiving this message?% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 6 0 6...
Curl shell php cron results
Rails automatically caches the SQL queries if it encounters the same query again. Here is the reference link for this. SQL Caching. If still you want to cache it then you can use Low Level Caching. Use a key based caching it would do the work.
I have three tables - Countries, USRegions and Regions. For the different countries Regions holds a particular administrative division of the territory of that country. For the US these are the 50 states and Washington, D.C.. So again: Countries - USA, Germany, Japan etc. USRegions - Pacific, Middle Atlantic, South At...
How to cache sql queries, the result of which never change?
It's only supposed to preserve volumes if they are container data volumes (not host volumes like in your case).I would try runningdocker-compose rmto remove the containers (after stopping them). After that theupshould use the correct path.
I'm working with docker-compose.My docker-compose.yml looks likeredis: image: redis expose: - "6379" volumes: - ./redis:/data nerdzcrush: image: nerdzeu/docker-nerdzcrush ports: - "8181:81" links: - redis volumes: - ./mediacrush:/home/mediacrushWhen I rundocker-compose upeve...
docker-compose does not see volumes changes in docker-compose.yml
I think this question belongs more to superuser.com, but anyway you won't be able to do this on a laptop, since even the discrete graphics card is connected to the iGPU via a video mux. Even QEMU with kvm on linux can't do that
I'm using VMWare Fusion on my Macbook Pro 15" late 2013 ( i7-4850mq , nvidia 750m ) to virtualize Ubuntu 16.04. I need to use OpenCL inside Ubuntu. I find the way to have it running on CPU but I do not know if there's a way to have it working on the GPU by using a GPU pass-through since the macbook has two GPU (Intel I...
Virtualization with GPU pass-through on mac
You can use the following rule :RewriteEngine on RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^(.*?)/?$ /$1.html [L]This will internally redirect html requests eg :/page/to/page.html
I have wordpress in the same directory as my static .html pages. How can i make it so that when i want to visit example.com/test-page it will automatically go to the html version if there is a html version.If there is no .html version, then it will go to the wordpress version. how can i do that? thanksi have tried this...
Use .html pages with WordPress
This probably is what you are looking for:RewriteEngine on RewriteCond %{QUERY_STRING} ^fn_id=(\d+)$ RewriteRule ^/?news/fullnews\.php$ /index.php?fn_mode=fullnews&fn_id=%1 [END]You need to enable the interpretation of distributed configuration files (".htaccess") for this and obviously the rewriting module needs to be...
I've looked around and my web knowledge is basic. I'm trying to make a dynamic URL link to another-- that is, where one part of the URL can be different.In this case, I'm trying to make (With my URL scrubbed to some generic one as not to break any rules, here):https://theurl.com/news/fullnews.php?fn_id=33TOhttps://www....
How can I use .htaccess to redirect a dynamic URL to another Dynamic URL?
You can use the OutputCacheAttribute to control server and/or browser caching for specific actions or all actions in a controller. Disable for all actions in a controller [OutputCacheAttribute(VaryByParam = "*", Duration = 0, NoStore = true)] // will be applied to all actions in MyController, unless those actions over...
How to disable automatic browser caching from asp.Net mvc application? Because I am having a problem with caching as it caches all links. But sometimes it redirected to DEFAULT INDEX PAGE automatically which stored it caching and then all the time I click to that link it will redirect me to DEFAULT INDEX PAGE. So som...
ASP.NET MVC how to disable automatic caching option?
Unfortunately this is impossible using the standardAWS::S3::Bucketin CloudFormation, since resources managed by a CloudFormation stack can only reside in the same region as the stack itself. However, you could work your way around this by using a Lambda functionYour Lambda function would have to set theLocationConstrai...
I've a CF stack and I've defined different resources. One of these is an S3 Bucket. I need to run the stack in theeu-west-1region while create the bucket in theap-southeast-1region. How can I do something like this?
Create CloudFormation resources in different region
If you really want to work that way (i.e: lock files, or at least control when your friend will modify your repo), you can ask your friend tofork your repo.That way, he/she:will have his/her own copy of said repowill work on any filewill rebase first with branches fetched from your repo (added as a remote on his/her fo...
I just started using github.com and my friend and I are working on a project. How can I pull parts of the project but check out certain files I'm working on so he doesn't work on them. He can still download the files but he won't be able to open or edit them until I upload them back and give permission?
How to check out file in Git?
Here is one solution, in the values.yaml putzookeeperServers: | [ "abc.2181", "cde.2181"]solves the problem.
I have a configmap which contains a toml filesomething likeapiVersion: v1 kind: ConfigMap data: burrow.toml: | [zookeeper] servers=[abc.2181, cde.2181] timeout=6 root-path="/burrow"When I am trying to create a helm chart to generate this configmap, I was putting something like:apiVersion: v1 kind: Con...
how to create a toml array usng helm template?
1 Makes you wish Java would allow to allocate infinite amounts of heap as memory mapped file :-) If you use Java 5, then use Java DB; it's a database engine written in Java, based on Apache Derby. If you know SQL, then setting up an embedded database takes only a couple of ...
My Java application uses a read-only lookup table, which is stored in an XML file. When the application starts it just reads the file into a HashMap. So far, so good, but since the table is growing I don't like loading the entire table into the memory at once. RDBMS and NoSQL key-value stores seem overkill to me. What...
How to implement persistent lookup table
labelsisalwaysthe right solution in Prometheus' to differentiate between otherwise identical metrics.The "trick" is in identifying the unique metrics and the way to determine these is to ask "Will we ever want to (dynamically) query metrics by all or by some label values?". Corollary: what measurements of your models w...
I have a flask API that handles ML models and I want to get metrics based on each model but the way we grab each model is based on the path. ex:https://api.someapi.com/cmd/<model-name>is it possible to grab metrics per model name? I was reading the docs and I guess we could hack something together with labels but that ...
How can I get metrics based on URL Path?
The problem which stuck me was actually that I expect some more advanced serialization than just converting to JSON (as Kafka support AVRO for example). Regarding replaying records from s3 bucket: this part of solution seems to be really significantly more complicated, than the one needed for archiving records. So if ...
There is a plenty of examples how data is stores by AWS Firehose to S3 bucket and parallelly passed to some processing app (like on the picture above). But I can't find anything about good practice of replaying this data from s3 bucket in case if processing app was crushed. And we need to supply it with historical da...
How to replay in a stream data pushed to S3 from AWS Firehose?
If we are talking about the software applications packed and installed with helm, then customization to any of dependent helm charts is possible only if helm templates' construct allows that. Unless the variants (e.g. different Port types) are not templated, there is no option to customize these resources with helm.Pos...
Problem:In my helm chartAthere is a requirement for an other chartBChartBwill create a K8s resource (let it be a service for now:SVC_A) at an unpredictable timeI need to add something (a label, other port..etc) toSVC_AChartBis badly written and doesn't expose anything about thisSVC_Aup to it'sValues.yaml, everything is...
Is it possible to modify a K8s resource automatically?
0 After consulting the #riscv IRC channel, I got an answer from <geist> (thanks!): There are extensions Svade (previously Ssptead) and Svadu that set the behavior properly and can be checked from the ISA string. As I understand it, the behavior is completely unspecified if...
RISC-V privileged ISA specification section 4.3.1 ("Addressing and memory protection") says that two schemes of managing the Dirty and Accessed bits on the leaf pages are permitted: Either the implementation makes a page fault when accessing/writing a page without the corresponding bit set (so that the page fault han...
RISC-V paging: what decides the way the Dirty and Accessed bits are managed?
You can pass the configuration data during helm install as given here:https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installingI checked the sources for thesonarqubechart that you are using from here:https://sonarsource.github.io/helm-chart-sonarqube/and it had a link to the source to be here:https...
I currently have the sonarqube application deployed using helm, and I originally used the chart found athttps://oteemo.github.io/charts. However, this has now been deprecated and I wish to now use the helm chart athttps://SonarSource.github.io/helm-chart-sonarqube. In my old deployment of sonarqube,there was a database...
preserving database when upgrading sonarqube to different helm chart
Very good question! Since your issues originate with FindBugs, you can useFindBugs exclusion filtersto address this. Especially, take a look at the<Method>exclusion. You can specify a regex that matches the method names of your getters and setters in the entity classes, such as<Method name="~_persistence_[gs]et" />Such...
I'm getting what I think are false positives from FindBugs (2.0.2) and Sonar (3.7.3) on code that is being generated via static weaving of EclipseLink (2.5.1) JPA entities. Specifically, I am seeing multiple occurrences ofES_COMPARING_PARAMETER_STRING_WITH_EQ Comparison of String parameter using == or != in com.test.d...
Is there a way to suppress FindBugs from generating warnings on code generated by static weaving?
+200Not every nginx directive allow embedded variables.ssl_certificateandssl_certificate_keydon't support it.But you may usessl_certificate_by_lua_blockandngx.sslThe main workflow:Specify any valid stub certificate within nginx config.Followngx.ssl synopsis, it would need some certificate format conversions. Useos.gete...
I am using lua via openresty and setting an environmental variable to dynamically set the domain name. I have:user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; } env MYDOMAIN; http { server { listen 80; listen 443 ssl; set_by_lua $MYDOMAIN 'ret...
How to dynamically set the domain for ssl_certificate
4 It depends on the browser. The meta tag will have no effect on the scripts, just the page itself. You'd have to modify your server settings to send a no-cache header for JavaScript: http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Avoiding_caching Also, the best ...
I'm including an external javascript file in my page using <script src="http://example.com/file.js" type="text/javascript"></script> How long will this script get cached by browsers? There is a <meta http-equiv="Content-Cache" content="no-cache" /> in my HTML. Will that make any difference?
How long will a javascript include get cached?
Fromofficial documentationyou can do:version: "3.7" services: some-service: image: some-service logging: driver: "none"This works for me!ShareFollowansweredMay 25, 2019 at 9:23EliaElia1,43711 gold badge1818 silver badges3030 bronze badges15Does not work. absolute nothing changes–MarcFeb 16, 2023 at 10:2...
This isn't a breaking issue for me, but I have about four images stitched together in a service, postgres, redis, mongodb, and my application which is a python-flask application.What I want to do is disable the console output mainly for the mongodb image because it has a lot of output, so that I can see all the output ...
docker-compose suppress mongodb output
As this is defined in the architecture, you will always have the guarantee that if a branch is mispredicted and it has to flush the pipeline, all following instructions cannot have a visible impact on the architecture.There are several ways to do it: in simple implementation (short pipelines), instructions will general...
This is a theoretical question and I feel stuck.Suppose I take ARM ISA and pipelined datapath. I am using a branch predictor, which for simplicity, always predicts that a branch is taken. As it is evident, it works if the branch was indeed to be taken, but fails otherwise. If it fails, it has to roll back and undo all ...
How to flush pipeline?
This is the official documentation provided by AWS for AWS SDK for iOS for AWS CloudWatch service:AWS SDK for iOS - AWSCloudWatch ReferenceIt doesn't have the capability to create AWS CloudWatch events yet.You can call some other SDK's code or use AWS API Gateway to call AWS Lambda function to do the need full.
How would I use AWS SDK for iOS to create a CloudWatch event rule using a cron job in Xcode using Swift? So far I have found thisAWSCloudWatch Reference, but I don't know where to start.
How would I use AWS SDK for iOS to create a CloudWatch event rule using a cron job in Xcode using Swift?
It looks like a candidate for Jenkins pipelines,especially docker agentspipeline { agent none stages { stage('Back-end') { agent { docker { image 'maven:3-alpine' } } steps { sh 'mvn --version' } } stage('Fro...
In our codebase, we have multiple neural networks (classification, object detection, etc.) for which we have written some unit tests which we want to run in Jenkins at some specified point (the specific point is not relevant, e.g. whenever we merge some feature branch in the master branch).The issue is that due to exte...
How to run unit tests in Jenkins in separate Docker containers?
1 From the mongodb docs, The toArray() method returns an array that contains all the documents from a cursor. The method iterates completely the cursor, loading all the documents into RAM and exhausting the cursor. Thus instead of calling toArray, you should use the n...
The data size in telemetry table is HUGE. So, I get "JavaScript heap out of memory" error. How do I overcome that error? const aloUrl = `mongodb://${userName}:${pwd}@${host}:${port}/${dbName}`; MongoClient.connect(aloUrl, function(err, client) { if (err) { return console.log('ERROR:: ', err); } console.log("INFO:: OK"...
MongoDB&JavaScript heap out of memory
You have cloned your repository ... Now you should go under new_theme_name directory. Here, if you type the command git remote, you should have origin displayed on your screen. Then, knowing your other repository url, you just have to type : git remote set-url origin the_url_of_your_repo_here Et voila ! This is much ...
I've created a skeleton theme for the Ghost blogging engine. And committed this to a github repo, I want to be able to clone this repo as a new theme. $ cd ghost/content/themes git clone https://github.com/StyxOfDynamite/styx_ghost_theme.git new_theme_name $ ls -l new_theme_name this successfully creates a new theme...
clone from a git repo and commit to a new repository
If you want global_var to be global, don't declare it as local. From a quick look at NGINX's docs, init_by_lua and set_by_lua work on the same global Lua state and so you'll be able to make them talk if you use global variables. Local variables set in init_by_lua will be lost. So, it should work if you just remove loc...
I am using HttpLuaModule for my NGINX server. I want to ask if it is possible to recognize variable in different directives of this module. For example init_by_lua ' local global_var = 5 ' ; some config ; set_by_lua ' print(global_var) ' ; How is that possible with NGINX and LUA module ?
Exchanging variables between LUA directives in NGINX
How can I call my AWS Lambda function URL via a custom domain? If you must use an AWS Lambda function URL, fronting it with a CloudFront distribution with your desired custom domain name is the only way currently. There is no support currently for a Route 53 alias record, as the Host header must be set to the Lambda...
I have created an AWS Lambda with the new function URL feature enabled. Since the URL isn't that easy to remember, I would like to create a Route 53 alias like lambda.mywebsite.com. There is no Route 53 alias for Lambda function URLs in the drop-down menu for aliases in Route 53. How can I call my AWS Lambda function ...
How can I call my AWS Lambda function URL via a custom domain?
Mandatory argI have something that works for the case in your question, but it won't work for all cases in general.In your dockerfile afterONBUILD WORKDIR /app/src, you'll have:COPY build_copy.sh /config ONBUILD COPY target_app.txt /config ONBUILD RUN sh /config/build_copy.shThe file build_copy.sh will contain the foll...
I have a baseonbuildtagged docker image that I would like to use as a template for builds but I want the child image to be able to set an ENV var to modify the ONBUILD instructionsbase-onbuild:FROM root-image RUN mkdir -p /app/src UNBUILD COPY . /app/src/ ONBUILD WORKDIR /app/src ONBUILD RUN ./build ${TARGET_APP} ONBU...
How to create flexible onbuild docker image that uses env vars?
.03.0-ce (2017-03-01)IMPORTANT: Starting with this release, Docker is on a monthly release cycle and uses a new YY.MM versioning scheme to reflect this. Two channels are available: monthly and quarterly. Any given monthly release will only receive security and bugfixes until the next monthly release is available. Quart...
I am confused by the version number ofdockerSome documentation refers to version numbers like17.06E.g. (fromhere)However, starting with Docker 17.06, you can also use--mountwith standalone containersBut some other documentation refers to version number like1.13E.g. (fromhere)Note: version 1.13 or higher is requiredWas ...
docker version number confusion: 17.06 vs 1.13?
If you look at theDocker instructions in the node_exporter READMEyou can see that you're missing the process settings. Addpid: "host". You can also simplify the volume mounting.node-exporter: pid: "host" volumes: - /:/host:ro,rslave command: - '--path.rootfs=/host'
Help me please! I have virtual machine. Server Ubuntu 18.04 and install node-exporter prometheus under docker. On server i have several disks.. But in metrics i see identical values from different disks. Please help, what`s wrong? thanks!
Identical values from different mountpoints
I was puzzled by this issue as it really just didn't make sense. As a result, I reached out to Github support and happily got the below response within 24 hours.Hello Tejas,Our Contributions system is currently undergoing maintenance. We will get back to you after maintenance is completed and we can rebuild your co...
https://github.com/tejas-manohar/fullcontact-samplesI've been working through the GH web interface (instead of command line and installed code editor on my computer) for this repository since its creation because I've beenon the go.For some reason, none of the contributor stats are showing here -https://github.com/teja...
Github contributions not showing up on Repository Graph
You can use the following code in sitea/.htaccess :RedirectMatch 301 ^/tips/(.+)$ http://newsite.com/$1Refrence :https://httpd.apache.org/docs/current/mod/mod_alias.html
I am merging website A into website B.Website A has thousands of blog posts in a variety of categories.Heres an example :www.sitea.com/tips/blogarticle1After the migration, blogarticle1 can be found at:ww.siteb.com/blogarticle1Notice I have removed the '/tips' part of the URL.How do I redirect all requests for this pag...
301 redirects using regular expressions
Only if you're an admin of the fork, you could delete it. It's then in settings -> options -> section "danger zone"
Is it possible for me to delete a fork that was created out of my repo. The repo was forked by someone else and I want to delete the forked repo. I am able to see the fork from my insights tab.
Github - Delete a fork that was created from my repo
Use the newer .../archive/... link rather than the .../tarball/... link in your question. The general format is: https://github.com/<group_or_organization>/<repo>/archive/<refspec>.tar.gz So, for example: $ curl -L jttps://github.com/nativescript/docs/archive/production.tar.gz | tar tz docs-production/ docs-producti...
I am trying to download the latest version of a specific github branch with curl. curl -L https://github.com/nativescript/docs/tarball/production | tar zx However, this creates a file such as NativeScript-docs-ed0d16f whihc is difficult to work with in code as the name will change for every commit. Is there a way to...
Changing name of top-level directory when downloading a tarball from GitHub?
The versions of pandas available from conda and pip are those that are marked as releases. To get the latest code that has not been released yet, you would have to build it yourself from source in this case. For pandas, the instructions to do this are given here.
I am new to Github this question may sound very silly. Recently I reported a bug of pandas in Python to their Github page. One guy opened a pull request to fix that bug. The bug was fixed and the pull request was merged. I am not sure now how I can upgrade pandas with the new change. I tried pip3 install --upgrade pa...
Upgrade a module after a pull request merged
@Keen Learner, 1) Segmentation and Paging process takes place right after the program is been executed. Segmentation fault occurs only when some part of the code present in the program tries to access protected memory or memory which is not present in its process/virtual memory block. Paging process, since we cannot h...
Here is a picture summarizing my understanding of process memory layout as organized by kernel. I would like to understand 1)When is Segmentation and Paging process takes place? During compilation or right after the program is executed 2) At any given instance is it by any means possible to access the physical addres...
Process memory management queries
2 The best bet will be to use MySql Schedular, I know MySQL 5.1.6 come with this, check out this. For more on how you can backup MySql database check out Using MySQL Schedular you can do something like CREATE EVENT MyEvent ON SCHEDULE AT TIMESTAMP '2011-12-30 23:59:00' ...
On 31 Dec 2011, I have to copy the data of one of my database tables into another table automatically at 11:59. What steps should I follow?
How to make a backup copy of a table at a specific date/time using MySQL?
SimpleGROUP BYwith aggregation would help you :SELECT time, os_name, count(*) as nb_os_name, program, lastline, FROM table t GROUP BY time, os_name, program, lastline
i put in a database many line and i have this :+----+---------------------+-------------+----------------+-----------+ | ID | time | os_name | program | last_line | +----+---------------------+-------------+----------------+-----------+ | 14 | 2019-01-04 14:00:00 | titi | roro ...
sql - count of two colums
Instead of allocating data internally, you can simply use a "Slice" layer externally and slice the input blob using caffe "off-the-shelf" layers: layer { name: "slice" type: "Slice" bottom: "input_to_loss" top: "to_softmax" top: "to_sigmoid" top: "leftovers" slice_param { axis: -1 # slice the last ...
I have a custom loss layer which I wrote, this layer applies softmax and sigmoid activation to part of the bottom[0] blob. Ex: `bottom[0]` is of shape (say): `[20, 7, 7, 50]` (`NHWC` format) I would like to apply `softmax` to `[20, 7, 7, 25]` (first 25 channels) and `sigmoid` to `[20, 7, 7, 1]` (just one channel) an...
Layers within a layer in Caffe
Ok after some further reading on the net and thanks to Salman's reply, I figured out the answer to my problem :)the code below will rewrite the dirty url to clean one...RewriteCond %{THE_REQUEST} ^.\?myparam=([a-zA-Z]+).RewriteRule ^(.*)$ /%1? [R=301,L]note that the question mark behind '/%1' is very very important bec...
Assuming my site will do something if the URL looks like thismysite.com/index.php?myparam=testIn .htaccess, I added the following line:#RewriteRule ^([a-z]+)$ /index.php?myparam=$1 [L]Which works great! URL mysite.com/test will redirect accordingly and everything worksI would like to get rid of the dirty URL so that if...
How to make sure only clean URL is used all the time?
Upload the individual files to the server using the same method you used to upload your compressed file. The key is to NOT send the server a compressed file if you are unable to decompress it on the server.
I have a backup of my website in WinRAR file, I wana upload it on my new website... So I uploaded that WinRAR file on my new website panel, but it didn't worked... Actually I'm moving my website to another hosting, so I downloaded the backup in WinRAR file and upload it on new hosting, it uploaded successfully but its...
How to Upload WinRAR Backup File
You can execute commands in a container usingkubectl execcommand.For example:to check files in any folder:kubectl exec <pod_name> -- ls -la /or to calculatemd5sumof any file:kubectl exec <pod_name> -- md5sum /some_file
I'm using kubectl cp to copy a jar file from my local file system into a the home directory of a POD in my minikube environment. However, the only way I can confirm that the copy succeeded is to issue a new kubectl cp command to copy the file back to a temp directory and compare the checksums. Is there a way to view th...
kubectl ls -- or some other way to see into a POD