status

Mandrill “reject_reason”: “invalid-sender”

你。 提交于 2019-11-27 07:35:23
问题 I'm trying to send emails using mandrill email service but I get the following error Full Response [ { "email": "someemail@somedomain.com", "status": "rejected", "_id": "b814c2974594466cba9c904c54dca6c6", "reject_reason": "invalid-sender" } ] Apart from the above error there is no more details about it. we are using .net to send emails with Mandrill SMTP settings. 回答1: It'd be useful to see the call/email that's being sent. That error means that there's an invalid sender, as indicated in the

Ignore new commits for git submodule

寵の児 提交于 2019-11-27 06:26:28
Background Using Git 1.8.1.1 on Linux. The repository looks as follows: master book The submodule was created as follows: $ cd /path/to/master $ git submodule add https://user@bitbucket.org/user/repo.git book The book submodule is clean: $ cd /path/to/master/book/ $ git status # On branch master nothing to commit, working directory clean Problem The master, on the other hand, shows there are "new commits" for the book submodule: $ cd /path/to/master/ $ git status # On branch master # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git

showing a status message in R

ぐ巨炮叔叔 提交于 2019-11-27 05:24:52
问题 I'd like to write a function that presents to the user a status message that shows something like the time, the percent complete, and the current status of a process. I can handle assembling the message, but I'd like to do something other than just print to the console and have it scroll up, one message after the other. I'd really like the message to change without scrolling like message() and without any graphics. Is this possible with R? 回答1: How about something like this? for(i in 1:10) {

untracked files not shown in git status

偶尔善良 提交于 2019-11-27 02:04:31
问题 I have a project with the following folder structure: All the project files are in base_fldr folder. Also I have a few folders inside base_fldr called sub_fldr1 and sub_fldr2. These sub folders also contain some files. If I modify any of the files inside my base_fldr or base_fldr\sub_fldr\ then git status shows them as modified. Also if I add a new file to base_fldr, git status will show it as untracked file. My problem is if I add a new file inside base_fldr\sub_fldr\ then the git status

Checking Wi-Fi enabled or not on Android

无人久伴 提交于 2019-11-27 01:43:56
问题 What would the code be for checking whether the Wi-Fi is enabled or not? 回答1: WifiManager wifi = (WifiManager)getSystemService(Context.WIFI_SERVICE); if (wifi.isWifiEnabled()){ //wifi is enabled } For details check here 回答2: The above answers work fineو but don't forget to add the right permissions in the Manifest: <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" > </uses-permission> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" > </uses

PHP function to get Facebook status?

泪湿孤枕 提交于 2019-11-27 01:11:31
问题 I'm looking for a good, simple PHP function to get my latest Facebook status updates. Anyone know of one? Thanks! EDIT: I've added a half-solution below. Or if anyone knows a good way to read in the RSS feed and spit out the recent status update? 回答1: A quick check on PEAR found Services_Facebook 回答2: This is an incomplete answer, but this is what I've gotten so far: First: add the developer application on FB. Then create a new application. Call it whatever you want. Second: Download the PHP

Git status - is there a way to show changes only in a specific directory?

巧了我就是萌 提交于 2019-11-26 22:40:51
问题 I would like to see a list of files modified since the last commit, as git status shows, but I care only about files located in a single directory. Is there a way to do this? I tried git status <directory> , but it seems this does something completely different (lists all changed files, as they would be if I wrote git add <directory> first). The documentation for git-status doesn't tell much, apart from the fact that it accepts the same options that git-commit does (but git-commit's purpose

c# printer properties WMI

依然范特西╮ 提交于 2019-11-26 21:58:06
问题 Hello I have this code to retreive printer properties: string printerName = "PrinterName"; string query = string.Format("SELECT * from Win32_Printer " + "WHERE Name LIKE '%{0}'", printerName); ManagementObjectSearcher searcher = new ManagementObjectSearcher(query); ManagementObjectCollection coll = searcher.Get(); foreach (ManagementObject printer in coll) { foreach (PropertyData property in printer.Properties) { Console.WriteLine(string.Format("{0}: {1}", property.Name, property.Value)); } }

How to mark a build unstable in Jenkins when running shell scripts

╄→гoц情女王★ 提交于 2019-11-26 19:36:38
In a project I'm working on we are using shell scripts to execute different tasks. Some scripts are SH/Bash that runs Rsync and some are PHP scripts. One of the PHP scripts are running some integration tests that output to JUnit XML, code coverage reports and similar. Jenkins are able to mark the jobs as successful / failed based exit status . In PHP the script exits with 1 if it has detected that failed tests during the run. The other shell scripts runs commands and uses the exit codes from those to mark a build as failed. // :: End of PHP script: // If any tests have failed, fail the build

Handling buttons inside android notifications

谁都会走 提交于 2019-11-26 18:46:33
I added a button inside a notification but I don't know how to have it call a function when it's clicked. I tried an approach like this https://code.google.com/p/languagepickerwidget/source/browse/trunk/trunk/src/org/gnvo/langpicker/LangPicker.java since it's also using a RemoteViews object but nothing happens when I click the button. This is what I currently have: private void createNotification(){ String ns = Context.NOTIFICATION_SERVICE; NotificationManager notificationManager = (NotificationManager) getSystemService(ns); Notification notification = new Notification(R.drawable.ic_launcher,