Aptana 3.0 "click off" mark occurrences for PHP - aptana

I'm loving Aptana Studio 3, but one thing bugs me: the mark occurrences in PHP! I like being able to click the variable and find all occurrences of it, but I want to click off when I'm done. Right now it finds the occurrences, but then when I click on some blank area, the occurrence is still marked.
Is there any way to make it so that it cancels the mark when the cursor's off the variable?

The Studio 'behave' like other Eclipse-based products with that feature (e.g. JDT etc.). The idea is to have the selection sticky until a new valid PHP element is detected.
You can add a feature request for this at http://aptana.com/r/apbugs and maybe a preference for that can be added.
Right now there is no real workaround for this. The only way to get rid of the occurrences markers is to turn it off and back on (Alt+Shift+O), but it's not so great :)
Cheers

Related

How to remove/hide all Google Analytics data associated with a specific page?

For about a week, Google Analytics was erroneously reporting page views for a few request URIs, severely skewing my data. I have read that there is no way to remove data once it is reported. If this is the case, is there a way to simply hide this data from the view?
I have tried a number of things (such as creating global filters, view filters, etc.) to no avail. Using segments also doesn't work, because apparently you can only filter out visits/users (whereas my goal is to filter out page views associated with a specific page). At this point, I feel like I must be going about it the totally wrong way...
Below is a screenshot of the Behavior > Overview section. The page views I want to move are #1, #2, and #5.
Alex, unfortunately, there is nothing you can do about the historical data.
However, you can use simple filter to exclude pages you don't want to see (the filter field above the report table, not filters related to account/profiles) -- see the attached screen below.
Make sure you select exclude and then pick Page dimension. The easiest way would be to use regular expressions, like:
(a|b|c)
This one would remove any pages that contain either "a", or "b" or "c".
The expression would be probably a bit more complicated in your case and I suggest using tools like RegEx Hero (free, online). I am not sure if there is anything common for the pages you would like to remove from the reports, but regular expression can do quite a lot :).
One last thing -- be aware there is a slight difference in segments and (table) filters. If you use segments for page dimension, you would end up with ALL the pages that were seen during a visit, which includes the page you set in the segment. Might be a bit confusing, but see this article for detailed explanation.

How can I let the IBM Jazz 'Check-in and Deliver' wizard immediately show my default work item?

In Eclipse, using IBM Jazz for source control, I have a default task with state 'In Progress', that's assigned to me.
In the 'Check-in and Deliver' wizard, in the 2nd wizard-pane ('Associate Work Item') sometimes this task is displayed immediately, and other times it is not. In the latter case it only appears when I type a matching search criterium
How can I make sure that my default task appears in this 2nd wizard-pane immediately, without the need to type a search criterium?
This sounds like a defect - and worth raising on jazz.net. Be sure to specify what version of RTC you are using.
However, there is an easier way to do what you want. At any point you can drag the work item to the bottom line of the Eclipse UI (you may see "no work item" or similar text in the area you need to drag the work item. This then becomes the default work item your code is associated with. You will no longer have to use the Associate work item.
Foe example, in RTC v4.0.1 - this part of the help explains this idea in more detail:
https://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m1/topic/com.ibm.team.scm.doc/topics/t_scm_eclipse_workitems_working.html
This function has been part of RTC since v1 so will work regardless of what version you are using.
Hope that helps

Dynamics Ax 2012 Missing Category Column in EcoResProductCategory

We are having an issue with the form EcoResProductCategory. At one point, this form had a column named 'Category' that our company utilized. Somehow this column has gone missing. My team develops on the CUS level and there is a vendor that I believe pushes additions to the level lower. As of now, there is no CUS level customization to this form. When looking at the form in the AOT, it appears that the Category field is in fact present (and visible in the properties). But once the form is opened, it still doesn't show.
Any ideas or pointers? I am still new to Microsoft Dynamics AX 2012 and I apologize for asking a question like this.
Another Note: When compared to the AX Demo, it seems like our environment is missing the following label...
Is it missing for all users, or for one user? In the latter, it could be that it is hidden by by MorphX (Right-clicked and hidden).
Just to make sure it isn't usage data, delete the usage data for that user.
Turns out, a related data table had a field removed. Therefore the dropdown was never being generated.

How to get the back button and session state to work together?

There may be an easy answer to this and I just don't see it b/c I am too close to the project - so be it.
I have an asp.net 2.0 search application. It is a series of pages that start with a search form and end with the results being displayed to the user. Between the search and results page is a filter page that displays a series of filters the user can filter down the search results to. I execute the initial search on the search page and store the results in the session. If the initial search results total more than a certain number (let us say 50 for the sake of the example), the user is taken to the filters page. There they are presented with a number of filters they can apply to the results.
Once the selected filters have been applied to the search results, if the count is still more than 50 they stay on the page with only the filters they have not selected still displayed on the page. If the count is less than 50, they are taken to the results page. Now if they are on the filters page but wish to see the results, there is a button that takes the current state of the results and takes the user to the results page.
Here is my problem - if I am on the results page after applying some filters and click on the back button (none of the pages cache), how can i get the previous state of the search results BEFORE whatever filters I selected had been applied? Even further, if I got to the results page after a series of say 4 "apply filters" (apply filter - still over 50, apply other filter - still over 50, apply yet another filter - still over 50, and finally apply another filter - yay! under 50 go to results page), how do I get each version of the ever shrinking search results from the session if I keep hitting the back button?
Sorry if this is a bit weird and not that easy to understand - this is one of the problems that is not simple enough to just wrap it in a few simple sentences.
I am most eager for any thoughts (pertaining to the question at hand) or questions.
UPDATE -
FYI, I did not decide on the mult-page design. A requirement stated that it follow the flow of an existing third-party search app (reverse engineering is wonderful right?).
Thanks
Not to be too critical, but what you described sounds like a seriously jacked up way of handling search.
Typically, your search criteria and results are on the same page. When you modify the criteria and click search you should just display the top 50 results and let them know there are more. This can't be any more expensive an operation that what you've described because you have to run the queries under both circumstances anyway.
Take a look at NewEgg.com and try their "advanced search" from this page. You'll notice there are about 20 different criteria factors on the left. As you add a new criteria, the bread crumb at the top of the page changes. They have a little (x) next to each in the bread crumb so you can quickly eliminate any criteria from your search results. Voila no back button needed.
Note that at no point do you need session state to handle this. At most you could use hidden form fields which would still support back button usage in the browser, if they really wanted to.
Use your current session-based parameters as is, but let any querystring-parameter override them. This way you keep your values w/o assigning them to every url, yet adjusts to any previous manual data-enrty (querystrings in the browser-history).
(And don't use POST for search.)

ASP.NET Variable issues

I have some terribly written ASP.NET code that is just not working right (go figure).
I'm charged with maintaining and bug fixing this code, but I can barely make head or high water of it
Unfortunately I don't have the time to rewrite it.
If someone could help this would be great:
(the code): given to you here (some minimal obfuscation necessary):
http://mastergeektheater.com/issues.txt
What it's supposed to do:
Receives an order from a shopping cart application, and creates a table of textboxes based on the quantity of said object ordered.
Once the whole thing is validated (submit_Click()), then it reveals a div with further instructions and grays out the input fields so you can still see what was entered, but can't affect anymore. Emails are sent to each inputted email address.
What it actually does:
Receives the order, and correctly displays the inputs. On Submit, all of the "required field validators fire - if they are Vaild, then the comparison validators fire. SOMEWHERE AROUND HERE, it all goes south."
All of the input areas in the table except the first user disappear. if the comparisons success, then it postsback, and the first user is there (greyed out) and the other users are gone. if the comparisons fail, then it doesn't successfully postback, and stays on the input form, but all of the input fields except the first user still disappear
I know this is a little too specific to be a really well formed Stack Overflow question, but I've tried to break it down to things I think were wrong and I asked other questions that were more specific to try to fix it. Unfortunately, it hasn't worked. The code got better, but the whole thing is still broken. At this point I'm desperate.
If anyone could help, it would be a huge lifesaver. Thanks in advance for all of you who pour through this terrible code (and terrible question) for even a minute...
I guess the problem could be due to this line.
Session["quantity"] =(null != Request["quantity1"]) ? Request["quantity1"].ToString() : "1";
Do you have a field (hidden/input) named quantity1 on the form?
Is it being passed to querystring or as part of form item collection?
It will be 1 (when the form posts back to itself) & hence the loop will only run once.

Resources