Finite State Automata for English regular main verbs

I would like to build an FSA to recognise english regular main verbs. E.g. swim, walk, play, push with following morphological forms: (1) base form, (2) third person singular (-s, -es), (3) present participle (-ing) and (4) past participle(-ed)

I came up with this structure:

enter image description here

where the arc from q0 to q1 represent the verb in base form, q1->q2 is the base form (nothing added); q1->q3 is third person singular, q1->q4 is the present participle and q1->q5 is past participle, and these states then point to q6 the final state.

Is this structure correct to recognize english main regular verbs?

Product Collection Only Getting the Main Website Products not All Store Products

I am using a basic product collection to get in-stock enabled product but it isn’t returning all in-stock enabled products in my store. Please find the code below:

$  Products =  Mage::getModel('catalog/product')->getCollection(); $  Products->addAttributeToSelect('*'); $  Products->addAttributeToFilter('status', 1); Mage::getSingleton('cataloginventory/stock')->addInStockFilterToCollection($  Products); echo count($  Products); 

Its showing the count of 1964 records which is present in main website but total it must show 2003 records which is present including all stores.

I tried with filter $ Products->addWebsiteFilter(array(1,2,3,4)); but still it returns the main website product count.

I tried this https://magento.stackexchange.com/questions/67893/product-collection-wont-get-all-productstoo, but not worked.

Also suggest some best query to fetch the collection,so that it not load the server.

Thanks

cannot access public method in main. (JFrame)

I have 2 classes:

  • Main
  • UI

UI has a button and text area.

Goal is to have Main print out text in text area when button was pressed.

HOW I’M TRYING TO DO IT(Sudo code):

UI extends JFrame{  boolean tf = false  TextArea ta = new TextArea();  JButton b(event e){   tf=true  }           public boolean getTF(){   return tf;  }  public String getTextArea(){   return ta.getText();  }     }    Main{  public static void Main(String[] args){   JFrame ui = new UI()   while(true){    if(ui.getTF() == true){    System.out.println(ui.getTextArea())   }  } } 

Problem is Main does not see the methods getTF() and getTextArea() in the UI class. I’m guessing this is because it extends JFrame.

Is there a better way to do this (without combining the UI Class and the Main class)?

Where can I publish this new math paper whose main significance is its applicability to a field other than mathematics?

I have come up with a new function fitting method, where we fit a function to a given data. I have described the mathematics of it, and proved relevant theorems to show how it works. The sole importance of this method is its applications to machine learning. If I go to mathematicians, they are saying that the theorems are right, but the mathematics of it is nothing unusual but expected. They don’t readily know much about Machine Learning, and have no inclination to know. So its difficult to impress a math journal editor for a publication acceptance. So the mathematicians are advising to go to machine learning experts. On the other hand, If I go to machine learning experts, they are reluctant to comment, as they don’t readily understand the relevant math (unless they take some time and refer to a few books). Moreover the concept is a bit counter intuitive to the latest beliefs in machine learning world, where almost everyone believes that the ML problems are to be solved in very high dimensions, and most of the successful tools like deep convolutional neural networks or the traditional kernel methods or the graph based methods, are designed, keeping high dimensions in mind and over the belief that the ML problems can only be solved in very high dimensions. My methods calls for solving in as low dimensions as possible, requiring traditional domain knowledge based feature representation combined with dimensionality reduction tools, as pre-processors to reduce dimensions. So if I talk about my method to ML people, they might say that ML problems are best solved in very high dimensions, so my method being virtually impractical for very high dimensions, they deem it useless for machine learning.

I am able to apply my method and and demonstrate, for solving a few ML datasets of the likes of IRIS. I am also able to show the inner workings of my method through visualizations on simulated datasets in 2 dimensions, just for sake of illustrations.

I need better workstations and some time and funding to apply and solve harder ML problems, for which I need some support and funding, which is possible only if someone buys my idea and sponsor, as a form of startup. My strategy is to first publish this mathematical method of function fitting, in a math journal, so that it gets some authenticity and help me get some serious attention from ML experts for providing labs/infrastructure or attract venture capitalists for a startup.

Appreciate some suggestions whether my strategy is good idea. If so, what are some math journals I can target for this purpose. I don’t expect to go to mathematicians and say that I have done something incredible, but I just want to garner enough interest to get published in a descent journal, so that it will be easy for me to gather attention from ML world.

How do I remove the active class in the main menu?

One item in the menu has sub-items that point to the same page (just with different arguments) ex:

Products – List item 1 \products?pid=1 – List item 2 \products?pid=2 – List item 3 \products?pid=3

Drupal assigns the “active” class in the

  • and tag of the menu items since all the items have the same page url (\products)

    I’m overwriting the menu_link function in template.php to remove the active class but the class remains in the tag

    function mytheme_menu_link(array $  variables) {   $  element = $  variables['element'];   $  sub_menu = '';    if ($  element['#below']) {      if (strtolower($  element['#title']) == 'Products') {        if (isset($  _GET['pid'])) {         $  currID = $  _GET['pid'];          foreach ($  element['#below'] as $  Taxonomy) {            if ($  currTaxonomyID != $  Taxonomy['#localized_options']['query']['pid']) {             $  mlid = $  Taxonomy['#original_link']['mlid'];             $  key = array_search('active', $  Taxonomy['#attributes']['class'], TRUE);                         if ($  key) {               unset($  element['#below'][$  mlid]['#attributes']['class'][$  key]);               $  element['#below'][$  mlid]['#localized_options']['attributes']['class'][$  key] = '';             }             // remove active-trail class             $  key = array_search('active-trail', $  Taxonomy['#attributes']['class'], TRUE);                         if ($  key) {               $  element['#below'][$  mlid]['#attributes']['class'][$  key] = '';                           }           }                   }       }           }     $  sub_menu = drupal_render($  element['#below']);            }   $  output = l($  element['#title'], $  element['#href'], $  element['#localized_options']);     return '<li' . drupal_attributes($  element['#attributes']) . '>' . $  output . $  sub_menu . "</li>\n"; } 

    Final Result:

    <ul class="menu nav">    <li class="first leaf menu-mlid-44253">       <a href="/products?pid=1" title="Best Practices" class="active">Best Practices</a>     </li>     <li class="leaf menu-mlid-44254">       <a href="/products?pid=2" title="Checklists" class=" active">Checklists</a>     </li> .... 

    How can I remove the class “active” from the tag?

    My menu Structure:

    -Clients -Products   -prod1 (url:\products?pid=1)   -prod2 (url:\products?pid=2)   -prod3 (url:\products?pid=3)   -prod4 (url:\products?pid=4) -About 
  • What are branching strategy pros and cons for 2 main types

    So at a high level, we have multiple projects/solutions in company and we need to keep them in 1 source control. Since the number of projects is around 50, we are not creating individual repositories for each of them but instead are all in same repository. Our branches reflect the environments which is Dev, QCT, STG, PRD.

    Having said that, which of the below 2 options should be good for us:

    1. Each project has its own folder inside which different branches are created
    2. Core repository starts with branches inside which are folders for all project

    Any experience based input with these 2 strategies would be greatly appreciated. Even if its a blog or some other place where this discussion has happened would be nice.

    Can I expect problems after entering Schengen through main destination but leaving from another state?

    I have been issued my first Schengen visa (7 days) so please excuse my lack of understanding. Visa label says it is valid for ESTADOS SCHENGEN.

    I applied via Spain as I am to attend a conference there. I will most certainly be entering the Schengen area from Barcelona. I will also be spending three nights in the city, so thus the most amount of time during my visit to the Schengen area.

    From there I am to proceed to the Netherlands in order to attend a meeting at my company’s HQ. I will spend two nights there. The final night I wish to spend in Paris before exiting the Schengen area from Paris.

    My concern is the following: My application for the Schengen visa does not mention onward travel to the Netherlands or France. The air ticket I had submitted when applying also had me exiting from Barcelona on the final day.

    I have just booked my tickets where by I enter the Schengen area through Barcelona and exit through France on the specified days. I’m wondering if I might run into any troubles with immigration in Paris on the way out. I’m also a bit worried due to the fact that I am from a country that many would consider high-risk for not complying with visa conditions. (Pakistan).

    Any help in clearing up these doubts will be much appreciated. I still have a month to go before I travel so there is ample time to clear up my itinerary should this cause any problems for me.

    Is it common for the L5R clans to have territories far from their main land?

    In the introduction to the Naishou Province supplement, it is explained how a number of clans want to control the province.

    The localization of the Province is intentionally not mentioned, but I would like to place it somewhere on the Rokugan map for a campaign.

    However, I want it to make sense given the clans who want the control of the province. But I am not sure if it makes sense for, say, the Clab cran (who is located in the south of Rokugan) to try to acquire a province that would be in the north (just an example, I’m still not sure about where to put it).

    Thus my question: Is it common for clans to own territories far from their main land? If it’s rare, which clans would be likely to do that?