w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Submission to gerrit fails with "Change is Closed" message
It is possible that your rebased change B has Change-Id tag of the abandoned change A. It could have got there during squashing, for example. If this is so, amend the commit message to remove Change-Id (your local Gerrit commit hook will then generate a new one) and try pushing again.

Categories : GIT

Syntax to submit single git commit to Review Board using post-review
Turns out you need to use --revision-range with the git commits for before and after your change. E.g. post-review --revision-range=f17f771:f5b67e3 Notice that I'm using a truncated value for the commit numbers. Their actual values are f5b67e3978ec0348d33672ba79215fe887709bed and f17f7714f7e6c92fafb03bbfa3d7fefdb3295039. However, I got the range from a git pull, which seems to report truncated numbers. Note: Put the more recent commit last.

Categories : GIT

git does not show up a newly created branch Gerrit Code Review UI
Seems like a bug. This is indeed the case but you can actually do a git checkout new-branch and after this the branch will show up when you do git branch -a This seems a bit strange as you can not see the branch but you can checkout the branch. I assume you also saw the [new branch] test-branch -> origin->test-branch when you did git pull

Categories : GIT

What does it mean when in-app purchases are "in review" while the app binary itself is still "waiting for review"?
I suspect that the In App Purchases will be reviewed once your app goes into review. Your In App Purchases are already associated with the app, are they not? However I would recommend you contact Apple through iTunes connect. I've always had good success with this in the past. Select the 'Contact Us' link at the bottom of the iTunes connect page. In the form that appears, select App Review and Check Review Status, and then select the 'contact us' link in the text that appears. Then describe your issue in the form, and they should tell you what you need to do.

Categories : Iphone

How to show results of a form upon submission
Try something along these lines: script.php ---------- <html> <body> <form method=post action=script.php> your form here... </form> <? if($_SERVER["CONTENT_LENGTH"]>0) { //form was submitted to script, so process form inputs here and display results... } ?> </body> </html>

Categories : PHP

Image does not show after submission and on refresh form resubmits, symfony2
Resubmit on refresh is the default behavior, because the refresh will make the same request which you have made last. To overcome this you might want a mechanism called PRG. Unfortunately for Symfony there is no built in plugin for this. But you can accomplish this by making a redirect to the same route. For eg. if ($request->isMethod('POST')){ $form->bind($request); if ($form->isValid()){ $image = new ForumReplyImage(); $image->setImageName($form['imageName']->getData()); $image->setImageFile($form['imageFile']->getData()); $image->upload(); $image->setReplyId($post); $em->persist($post); $em->persist($image); $em->flush();

Categories : PHP

I need to make a page where you can see the beginning of a review, but have to click on 'click more' to see the rest of the review
Encapsulate your code in a function and pass the necessary ids to that function in order to set each element's onclick property. function setExpandOnclick(toggleButton, extendedComment) { // your code here, using the arguments rather than hard-coded string ids } setExpandOnclick("toggle-button1", "expanded-comment1"); setExpandOnclick("toggle-button2", "expanded-comment2"); You were on the right track.

Categories : Javascript

How can I show a PyQt modal dialog and get data out of its controls once its closed?
Here is simple class you can use to prompt for date: class DateDialog(QDialog): def __init__(self, parent = None): super(DateDialog, self).__init__(parent) layout = QVBoxLayout(self) # nice widget for editing the date self.datetime = QDateTimeEdit(self) self.datetime.setCalendarPopup(True) self.datetime.setDateTime(QDateTime.currentDateTime()) layout.addWidget(self.datetime) # OK and Cancel buttons buttons = QDialogButtonBox( QDialogButtonBox.Ok | QDialogButtonBox.Cancel, Qt.Horizontal, self) buttons.accepted.connect(self.accept) buttons.rejected.connect(self.reject) layout.addWidget(buttons) # get current date and time from the dialog def dateTime(self):

Categories : Python

Cannot set Visibility or call Show, ShowDialog, or WindowInteropHelper.EnsureHandle after a Window has closed
I'm answering in an answer so that the comments don't get too big. Your inner Exception says: "The INSERT statement conflicted with the FOREIGN KEY constraint "FK_ClientBooking_Employee". The conflict occurred in database "ProActiveDB", table "dbo.Employee", column 'EmployeeID'. The statement has been terminated." This means that you have a Foreign Key in your Employee table on the EmployeeID column called FK_ClientBooking_Employee and that there was a conflict when you tried to insert something into the database... if the conflict is with this column, then that normally means that you were trying to insert a row into another table that references this column in the Employee table, but your EmployeeID value was not in the Employee table. UPDATE >>> I'm not sure that you really ne

Categories : C#

Finalizing a Cursor that has not been deactivated or closed or database not closed error
When you are done with the cursor, you need to call Cursor.close(). Leaving it not closed leads to memory leaks. E.g.: Cursor cursor = null; try { cursor = getContentResolver().query(myUri, MY_PROJECTION, null, null, null); if (cursor != null && cursor.moveToFirst()) { // moar code } } finally { if (cursor != null) { cursor.close(); } }

Categories : Android

Application gets closed when terminal is closed, how to stop this?
Use nohup to prevent child processes from being killed when the terminal closes. spawn nohup /usr/bin/firefox https://www.google.com/ I assume there's more to the script, since there's no need to use Expect just to start firefox.

Categories : Python

How to draw closed spline 3D (closed curve 3d) through unordered list of points3D. How to arrange points3D?
It sounds like you're looking for the Concave Hull of the data set. Unfortunately, I don't know of any pre-canned algorithms, but the link references a paper that another developer was starting from, as well as some sample code, so maybe that'll help you in the right direction.

Categories : C#

How to show a local notification alert or a local notification banner when App is closed
You will not be able to present notifications while the app is in the background unless you implement Push Notifications with APNS and use UIRemoteNotification. Based on your experience and the scope of the project, it may be a bit complicated, but here is a good reference on getting started: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

Categories : IOS

The underlying connection was closed: The connection was closed unexpectedly wcf service
The first thing i will do is, instead of returning the full list of candidates i will return an empty list. If that works fine, then it is very clear that the size of the data is a problem. To modify the size play with your binding parameters.

Categories : Wcf

"The underlying connection was closed: The connection was closed unexpectedly"
The first request does not utilize a header that indicates the length of the result. It closes the connection when it finishes. The second request utilizes the length header, reads the designated number of bytes, then closes the connection gracefully. (under the client side control instead of server driven disconnection) -or- The url you sent caused an error on the server. Is there an error in the server log or event viewer?

Categories : C#

Bitbucket Git Code Review
In general, you'd do this by making your commits on a branch and then submitting a pull request to the repository. The other person would then review the pull request.

Categories : GIT

Basic Slicing Review
First you split the string by whitespace which results in a list of 'words'. s = 'Fuzzy wuzzy was a bear' L = s.split() # L == ['Fuzzy', 'wuzzy', 'was', 'a', 'bear'] The last of these 'words' is taken by [-1]: m = L[-1] # m == 'bear' Of this word the first two characters are taken by [:2]: u = m[:2] # u == 'be'

Categories : Python

In App Purchase and Apple Review
You should be able to implement the In App Purchase system into your app version as well as creating an iAP item in iTunes Connect, then use a Sandbox account to test purchasing of the content. The iAP doesn't have to be approved for that. Sandbox accounts can be made in iTunes Connect under 'Manage Users'.

Categories : IOS

Review before approve edit
I'd use a gem like https://github.com/airblade/paper_trail to solve this issue. Have a look at this screencast: http://railscasts.com/episodes/255-undo-with-paper-trail

Categories : Ruby On Rails

Review changes from multiple commits
The best I've come up with so far is this: git checkout -b review-temp a00^ git cherry-pick a0{0,1,2,3,4} git diff master... git checkout master git branch -D review-temp (I've posted this as an answer so I can accept it if no other alternatives arise.)

Categories : GIT

Need help to review Postgre SQL query
The syntax is incorrect, you should use either VARCHAR(50) or CHARACTER VARYING(50), not VARCHAR VARYING(50). Eg. DECLARE _sql VARCHAR(50); _whereClause VARCHAR(50);

Categories : Postgresql

How to set up a code review using Gitlab?
You can see submitted code in Merge Request for other repository or in current repository. example http://demo.gitlab.com/diaspora/diaspora/commits/master Then you can add comments to committed file changes (button Reply) or to the whole commit example http://demo.gitlab.com/diaspora/diaspora/commit/42f47626890218a180870bc3f44ec57625b0779c The resulting communication is code review. However, I personally recommend to do code review on one PC with face-to-face communication whenever possible, and use tools for recording results or when more formality is needed. For a file revue that has a lot of commits, e.g. http://demo.gitlab.com/diaspora/diaspora/blame/master/README.md look at it using blame to understand who did what. However in this view there is no option to communicate and ad

Categories : GIT

Review: Built-In Functions
A couple of things: input() in Python 2.7 is equivalent to eval(raw_input()). So if you input "hello", it will raise a NameError (unless there is a variable hello). If you're working with Python 2.7, use raw_input(). However, if you are using python 3, then use input(), because raw_input() does not exist in Python 3 (and input is the exact same as raw_input in 3) You also returned n and not var, the absolute value. def distance_from_zero(n): try: return abs(float(n)) except ValueError: return "That is not an integer or float!" var = raw_input("Enter number:") print var distance_from_zero(var) Also, for checking types, you should be using isinstance().

Categories : Python

How to update my dependency in gerrit review
There isn't really any way to do it with the 'least merge conflict'. If there is a conflict, then there is a conflict, and it will be the same no matter what you do. Assuming the dependency change 'xxx' is still under review, i.e. not merged yet... Fetch the dependency change, check it out, fetch and cherry pick your change on top of it, and then push back to Gerrit: $ git fetch review refs/changes/xxx && git checkout FETCH_HEAD $ git fetch review refs/changes/yyy && git cherry-pick FETCH_HEAD $ git push origin HEAD:refs/for/master You should be able to get the exact fetch commands to use from the download links under the latest patch set on the change screen on Gerrit.

Categories : GIT

Add write a review rate us feature to my iOS app
doing this type of rating i m used Apprirater for iOS take a Look this is very simple and easy to config and manage. From the GithubLink read Getting Started and configure it [Appirater setAppId:@"552035781"];//here you need to put your App id [Appirater setDaysUntilPrompt:1]; [Appirater setUsesUntilPrompt:10]; [Appirater setSignificantEventsUntilPrompt:-1]; [Appirater setTimeBeforeReminding:2]; [Appirater setDebug:YES]; // set NO while you upload App into appstore this YES for testing that Appear alert as par you configration like Bellow screenshot:- UPDATE adding This Three class in to your Project:- Add the CFNetwork, SystemConfiguration, and StoreKit frameworks to your project. Be sure to change Required to Optional for StoreKit in your target's Build Phases » Link Bin

Categories : Iphone

How to take ownership of a code review task?
You should be able to create a new work item query and find the Code Review Request/Response work items and then change the Assigned To field to the appropriate person. Have you tried that route yet? All of the code review workflow items are simply work items in TFS. You get all of the normal benefits of work items!

Categories : Tfs

Creating a Crucible review for a whole project
This is an old question, and some info in this answer is old too. There may have been some progress on Crucible from Atlassian since the following information was found. Apparently Crucible does not directly support adding all files from a folder to a review. Instead, you must either add each individually, or add the result of a search to the review. The latter involves creating a custom search for the files you need. This is described in a blog article I found here: http://compiledammit.com/2012/12/04/adding-all-project-files-to-a-crucible-review/

Categories : Svn

get Facebook Graph api page review
The API for Page reviews hasn't been released yet. We are working on it. Please keep checking for the updates here.

Categories : Facebook

can I change uploaded app to appstore while it's in review?
Yes you can reject the binary while in review. Just go to iTunes connect and select edit binary and you'll find the button for rejecting the binary. Then you'll have to submit another binary and will loose your position in the line but that should not matter if the change is fundamental. If there is a warning then yes you should reject the binary. Repair your code and upload another one. Hope this answer your question.

Categories : IOS

Expedited review - send again or not? ios application
I think that the first one is enough. However It's Apple, so nobody really knows. Information from App Review Support center Expedited App Review If you face extenuating circumstances, you can request the review of your app to be expedited. These circumstances include fixing a critical bug in their your app on the App Store or releasing their your app to coincide with a an event they you are directly associated with, Urgent Bug Fix If you've submitted an update to fix a critical bug in your app on the App Store and you are requesting an expedited review, be sure to include the steps to reproduce the bug on the current version of your app. Time-Sensitive Event For apps associated with an event, we recommend you plan and schedule the release of your app in iTune

Categories : IOS

If app is waiting for review, how can I create an ad hoc version?
I would recommend using a service like http://www.testflightapp.com. You can use the same IPA you submitted to the app store with the same license and distribute it to anyone via an email address. They have to install software but it works great. Update: This answer from Spokane-Dude (questioner) You don't need to validate the application to use ad hoc distribution. You archive it, choose "Distribute...", and then choose the middle radio button "Save for Enterprise or Ad Hoc Deployment". You choose a profile, click through any keychain prompts, and get a save dialog.

Categories : Misc

Google play review scraping changes
Give this a try: www.scrape4me.com It does show an error but it outpouts content: http://scrape4me.com/api?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.com2us.golfstarworldtour.normal.freefull.google.global.android.common&elm=&ch=ch

Categories : HTML

Review: Built-In Functions in codecademy
When a function returns something, it immediately breaks. So all your function is doing is returning the number you pass to it. You'll want to return abs(n) after your print statement. Also, to check for type, you should use isinstance(). To use it here, you can do: def distance_from_zero(n): if isinstance(n, (int, float)): n = abs(n) print "The absolute value of the input is ", n return n else: print "Not an integer or float!" Just remember that the way Codecademy checks code is a bit "dodgy". There's an in-built forum system on Codecademy which you can check out about certain exercises. To pass the exercise, you might need to use type() instead of isinstance(), as you have done.

Categories : Python

Pay-Pal Dropdown Description on Review Page
after a bit of research this is what I came up with: Altering the price doesn't seem to be allowed. Option fields cannot be used for options that will alter the item's price Source: Using Options Fields on Your Website However, you can try restructuring the flow of your form. Here is an example of how to use option fields (from the same link): <table> <tr> <td> <input type="hidden" name="on0" value="Size">Size</td> <td> <select name="os0"> <option value="Select a Size">Select a Size <option value="Small">Small <option value="Medium">Medium <option value="Large">Large </select></td> </tr> <tr> <td> <input type="hidden" name="on1" value=

Categories : Wordpress

iOS app review queue, does it reset if you change metadata?
As long as your app status is not "In Review", you can change any information including metadata without your app being moved in the queue. The only time your app is moved in the queue is when your binary is rejected. If Apple stalls the review process because of a metadata issue with your app and you receive an email that you need to fix something with the metadata specifically, then NO, your app still does not move to the end of the queue; you would simply fix the metadata issue and your app would continue with the review process. At least the information above has been my experience on more than 1 occasion. Of course, there are other factors that could play into your specific outcome. Also, the number of days your app will be in review depends on a few things too. Holidays will typi

Categories : IOS

Disqus and WooCommerce review compatibility issue
Alright. It was stupid of me to NOT think of this in the beginning itself. My problem was if I used Disqus plugin, it replaced my wordpress comment system with Disqus. Thus, disabling reviews on woocommerce pages. So instead using Disqus plugin, I simply used it's universal code and added to my single.php, before <?php comments_template(); ?> to be precise. This works to the best of my knowledge.

Categories : Wordpress

Why my branch is ahead of origin/master after git review?
Usually, I am able to resolve this by running git pull This happens because the index for git sometimes does not get updated, and has nothing to do with the git review. Check accepted answer for 'Your branch is ahead of 'origin/master' by 1 commit' on explicit push

Categories : GIT

Code Review Workflow + Feature Branching in TFS
You're not missing anything. This is an unfortunate problem associated with the way Code Reviews were implemented, they can only be linked to one changeset, not to a range of changes. If your team is used to a high frequency of checkins on their feature branches, then having every individual changeset reviewed using the tool may be a lot of overhead. But that would be my recommendation. There is a trick, it's not ideal, but it may help. You can check out (on your feature branch) all files that were changed since the last checkin. Then request a review. It will create a shelveset with your changes and associate that to the review. That way you don't have to perform the merge prior to requesting the review. Just make sure you merge the latest version from main into your feature branch bef

Categories : Visual Studio

Magento: How I can edit the checkout review table
This answer will depend on which theme you're using, but most themes won't change a lot regarding the CSS-classes of the order review table. The price column of the order review table is the last column, most themes (e.g., the default theme) add the class 'last' to the td-elements of the table. Your CSS code could look like this: #checkout-review-table td.last { background-color: #ff0000; }

Categories : Magento

how to get merged changes in json from gerrit code review
You can use the query command on the ssh command line, adding the --format json option to get the data in JSON format. To get merged changes use the status:merged query operator. There is no query operator to get changes within a specific time range, but you can use the age operator to specify an amount of time passed since the change was last updated. For example to get all changes merged within the last day: $ ssh -p 29418 user@review gerrit query --format json status:merged age:1day Note that by default this will return a limit of 500 results. To see more, you need to either increase the limit (if you're an administrator) or use multiple queries making use of the --resume_sortkey option. See the documentation for more details: Query command Search operators

Categories : Json



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.