Monday, 15 September 2014

Wamp Permissions windows 8 -


question

I have tried all kinds of questions on this And read on the subject it can not get to work, I'm trying to use a virtual host to use a different folder than default / www that wamp uses but I get an error I am doing;

  Forbidden You do not have permission to access / on this server   

I can use the local host and phpmyadmin completely, but no one Can not even make a virtual host

httpd-vhosts.conf # virtual host # # Required modules: mod_log_config 80 Listen; VirtualHost *: 80 & gt; ServerAdmin admin@localhost.com DocumentRoot "C: \ Program Files (x86) \ 2. Apps \ Wamp \ www" ServerName Local Hosts & lt; Directory "C: / wamp / www" & gt; Option Index Allow follow sequence, deny all & lt; / Directory & gt; & Lt; / VirtualHost & gt; & Lt; VirtualHost *: 80 & gt; ServerAdmin admin@localhost.com DocumentRoot "C: \ User \ Chris \ Documents \ Ciniball Files \ Projects \ Test" ServerName Test.lo ServerAllis test.lo & lt; Directory "C: \ User \ Chris \ Document \ CibUn files \ Projects \ Test" & gt; Follow the options index. Simlinks include ExecCGI AllowOverride to order, deny all 127.0.0.1 from & lt; / Directory & gt;

Host

  # Wamp Server Settings 127.0.0.1 localhost 127.0.0.1 test.lo   

httpd.conf

  Include # virtual host conf / extra / httpd-vhosts.conf  < Thanks to the input of all /, the two main problems were  

thanks

  • I have installed a wamp in a folder, which was nested in a folder that has a place named in which c: / folder / is a space / wamp / What I have with someone, if anyone knows why please tell, then bad practice is.

  • There were problems with Internet Protocol, IPv6, so to solve it, you only need to make sure to use IPv4, inside httpd.conf Find listen to 80 and change to 0.0.0.0:80 .

    I hope this helps in trapping someone else.

  • java - JFileChooser within a JTable -


    All I am trying to create a new component to go inside a JTable are when it is a JFField If a JeffileClosource is clicked on generating, then the user can choose the file system to the browser and select the file which is populated with the path of that field. So far, I have worked at this point that I can fill in the text field in the editor, but when I click on it, the foreskin does not get eggs. Anyone have an idea of ​​what I'm doing wrong here

      extends the public class FileBrowserCellEditor AbstractCellEditor Imposes TableCellEditor, ActionListener {Personal Static last long serialVersionUID = 1L? Private component frame; Button button; JTextField textField; String paths; JFileChooser FC; Preserved static final string EDIT = "edit"; Public FileBrowserCellEditor (Component Frame) {this.frame = frame; TextField = new JTextField (); TextField.setActionCommand (edited); TextField.addActionListener (this); FC = new jefilclosure (); } @ Override public object getCellEditorValue () {return path; } @ Override public component getTableCellEditorComponent (JTable arg0, object arg1, boolean arg2, int arg3, int arg4) {return textField; } @ Override Public Zero ActionPerfed (Action Event e) {// debug system. Outprint LN (EAA Acting Commands ()); If (EDIT.equals (e.getActionCommand ())) // The user has clicked on the cell, so send the dialog textField.setText (path); Fc.showOpenDialog (frame); FireEditingStopped (); // show again the renderer} Else {// the user pressed the "OK" button of the dialog // currentcolor = color selector .getColor (); File file = fc.get selected file (); This.path = file.getAbsolutePath (); Text after "itemprop =" text "> 

    Here is a simple cell editor that displays a JFileChooser << code>

    / Code> Double click on the cell:
      import java.awt.Color; Import java.awt.Component; Import java.awt.Font; Import java.io.file; Import javax.swing.DefaultCellEditor; Import javax.swing.JButton; Import javax.swing.JFileChooser; Import javax.swing.JTable; Import javax.swing.JTextField; Import javax.swing.SwingUtilities; Import javax.swing.table.TableCellEditor; Public Square FileChooserCellEditor extends DefaultCellEditor Imposes TableCellEditor {/ ** Click to start the edit * * / personal fixed final integer CLICK_COUNT_TO_START = 2; / ** Editor Component * / Personal Button Button; / ** File Selector * / Private JFileChooser File Selector; / ** selected file * / personal string file = ""; / ** * creator * / public filechasercale editors () {super (new jettextfield); SetClickCountToStart (CLICK_COUNT_TO_START); // Using a pocket button as editor component button = new pocket (); Button.setBackground (Color.white); Button.setFont (button.getFont () deriveFont (Font.PLAIN).); Button.setBorder (zero); // dialog that will be the actual editing filechutzer = new jiffy (); } @ Override public object getCellEditorValue () {return file; } @Override public component getTableCellEditorComponent (JTable table, object value, boolean isSelected, integer row, integer column) {file = value.toString (); SwingUtilities.invokeLater (New Runnable) {Public Zero Run () {fileChooser.setSelectedFile (New file (file));. (If file chooser.showOpenDialog (button) == JFileChooser.APPROVE_OPTION) {file = fileChooser.getSelectedFile () getAbsolutePath ();} FireEditingStopped ();}}); Button.setText (file); Return button; }}   

    JTable to add to your .

      yourJTable.getColumnModel () getColumn (yourColumnIndex) .setCellEditor (new file spectrake editor ());    

    Python: how to have mutually exclusive groups in subparser using argparse? -


    मैं एक प्रोग्राम लिख रहा हूँ जैसे:

      import argparse def task1 (args): प्रिंट "चल रहे कार्य 1" def task2 (args): प्रिंट "चालू कार्य 2" यदि __name___ == "__ मुख्य__": पार्सर = argparse.ArgumentParser (विवरण = "मैं कैसे subpararsers में अनूठे समूहों में हो सकता है?") Subparsers = parser। Add_subparsers () t1sub = subparsers.add_parser ("task1") # .... t1sub.set_defaults (func = task1) # यहाँ मैं एक पारस्परिक रूप से अनन्य समूह करना चाहता हूं # जब --in और के बीच एक विकल्प का कार्य 1 -आउट की आवश्यकता है, लेकिन एक अन्य को बाहर नहीं करता है # जाहिरा तौर पर एक सबपार्सर में कोई add_group नहीं है () add_mutually_exclusive_group () नहीं है, हालांकि t2sub = subparsers.add_parser ("task2") # .... t1sub.set_defaults (func = task2) args जैसा कि मैंने task1 को  - में  या  - बाहर   के बीच चलाया है, जैसा समझाया गया है = parser.parse_args () args.ferc (args)   

    कोड> आवश्यक है, लेकिन दोनों नहीं। मैं अपने प्रोग्राम में यह कार्यक्षमता कैसे जोड़ सकता हूं ??

    सबपर्सर्स एक सामान्य पार्सर का समर्थन करने वाले सभी तरीकों का समर्थन करते हैं, जिसमें add_mutually_exclusive_group () :

      & gt; & gt; & gt; Megroup = t1sub.add_mutually_exclusive_group () & gt; & gt; & gt; Megroup.add_argument ('-in', action = 'store_true') _StoreTrueAction (option_strings = ['-' '], dest =' in ', nargs = 0, const = true, default = गलत, प्रकार = कोई नहीं, विकल्प = कोई नहीं, मदद = कोई नहीं, मेटवावर = कोई नहीं) & gt; & gt; & gt; Megroup.add_argument ('- out', action = 'store_true') _StoreTrueAction (option_strings = ['- out'], dest = 'out', nargs = 0, const = True, default = False, प्रकार = कोई नहीं, विकल्प = कोई नहीं, मदद = कोई नहीं, मेटवावर = कोई नहीं) & gt; & gt; & gt; Parser.parse_args (['task1', '--in']) नेमस्पेस (फेंक = & lt; फ़ंक्शन कार्य 1 0x10a0d9050 पर gt ;, in = true, out = False)> gt; & gt; & gt; T1sub.print_help () उपयोग: कार्य 1 [-h] [--in | --आउट] वैकल्पिक तर्क: एक-एच, --help यह सहायता संदेश दिखाएं और बाहर निकलें - - एक ओर - gt; & gt; & gt; Parser.print_help () उपयोग: [-h] {task1, task2} ... मैं कैसे subpararsers में परस्पर अनन्य समूहों हो सकता है? स्थैतिक तर्क: एक {task1, task2} वैकल्पिक तर्क: एक -h, --help यह सहायता संदेश दिखाएं और बाहर निकलें    

    java - Cannot find symbol error on compile. -


    I am doing a project for class and cleaning my indentation and doing something in my code Can not see the forest for trees and can also help. When I compile, I can get an error. Here's the code.

      JFrame applies public class traffic lights ItemListener {Personal JRadioButton jrbRed; Private JRDObuton JRBIL; Private JRDObutton JR Bgreen; Private button group btg = new button group (); Private Traffic Lights Light light = new traffic lights Light (); // ^ 1 error is here ^ Error 2 Here the public static is zero main (string [] args) {traffic lights frame = new traffic lights;); Frame.setDefaultCloseOperation (3); Frame.setSize (200, 200); Frame.setLocationRelativeTo (zero); Frame.setVisible (true); } Public Traffic Lights () {setTitle ("Traffic Light Signal"); JPNEL P1 = new zpn (); P1.setLayout (New Flow Layout (1)); P1.add (this.light); Jpnell p2 = new zpn (); P2.setLayout (New Flow Layout ()); P2.add (this.jrbRed = New JRadioButton ("Red")); P2.add (this.jrbYellow = New Gerada button ("Yellow")); P2.add (this.jrbGreen = New Geributton ("Green")); This.jrbRed.setMnemonic ('R'); This.jrbYellow.setMnemonic ('Y'); This.jrbGreen.setMnemonic ('g'); This.btg.add (this.jrbRed); This.btg.add (this.jrbYellow); This.btg.add (this.jrbGreen); Set layout (new border layout ()); Plus (p1, "center"); Plus (p2, "south"); This.jrbRed.addItemListener (this); This.jrbYellow.addItemListener (this); This.jrbGreen.addItemListener (this); This.jrbGreen.setSelected (true); This.light.turnOnGreen (); } Public Zero ItemState Change (Item Event E) {if (this.jrbRed.is selected) {this.light.turnOnRed (); } If (this.jrbYellow.isseelected ()) {this.light.turnOnYellow (); } If (this.jrbGreen.is selected) {this.light.turnOnGreen (); } Class LightJePnelle {Private Boolean Lal; Private boolean yellow; Private boolean green; Public Light () {} Public Zero Current Onrade () {this.red = true; This.yellow = false; This.green = false; Repaint (); } Turn on Public Zero () {this.red = false; This.yellow = True; This.green = false; Repaint (); } Public Zero Opening Open Green () {this.red = false; This.yellow = false; This.green = true; Repaint (); } Safe Wired Paint Comonant (Graphics G) {SuperpuntConant (G); If (this.red) {g.setColor (Color.red); Jiphil (10, 10, 20, 20); G.setColor (Color.black); G.draw oval (10, 35, 20, 20); G.draw oval (10, 60, 20, 20); G.drawRect (5, 5, 30, 80); } And if (this.yellow) {g.setColor (Color.yellow); Jiphil (10, 35, 20, 20); G.setColor (Color.black); G.drawRect (5, 5, 30, 80); G.draw oval (10, 10, 20, 20); G.draw oval (10, 60, 20, 20); } And if (this.green) {g.setColor (Color.green); Jiphil (10, 60, 20, 20); G.setColor (Color.black); G.drawRect (5, 5, 30, 80); G.draw oval (10, 10, 20, 20); G.draw oval (10, 35, 20, 20); } And {G. Set color (black color); G.drawRect (5, 5, 30, 80); G.draw oval (10, 10, 20, 20); G.draw oval (10, 35, 20, 20); G.draw oval (10, 60, 20, 20); }} Public dimension getPrefercedSize () {Return new dimension (100, 100); }}}}}    

    This is a problem - I have indented the code to be created It is clear ...

      Public Zero Itemstate Change (Item Event E) {if (this.jrbRed.isSelected ()) {this.light.turnOnRed (); } If (this.jrbYellow.isseelected ()) {this.light.turnOnYellow (); } If (this.jrbGreen.is selected) {this.light.turnOnGreen (); } Class LightJePnelle {Private Boolean Lal; Private boolean yellow; Private boolean green; ...   

    You are currently declaring the light class inside the itemStateChanged method. I do not think you mean to do this.

    In addition, I ask whether you really need Lite should be an internal or nested class. I suggest making it a high level class - at least with the introduction

    I also strongly suggest that you are trying to keep your indentation all the time. If your rest of the code is already good, it is easy to see that when someone goes wrong, IDEs like Eclipse are able to indent all your code for you at the touch of a button - I will use you to use that feature Advice to do

    .net - Behavior of SqlConnection.ClearPool with transactions -


    If I pass arguments as a connection used within a transaction (for example For example, in this snippet

      (var tx = new System.Transactions.TransactionScope ()) {var sqlConn = New system.Data. SQLlient.SqlConnection (...) ; / * Do something with the connection * / System.Data.SqlClient.SqlConnection.ClearPool (sqlConn); tx.Complete ();}   

    with ClearPool Calling I clear all connections with the same connection string (regardless of transaction) Am I actually closing the connection I'm passing (because it is "affiliate" with the transaction)?

    I searched the Internet but I could not find anything. Transaction from MSDN (and) Without behavior, it is clear; Besides, I understand that if I am in the transaction, the connection pool tries to give me the connections used before in that transaction (which still exists) Code> ClearP The behavior of ool is not called with the connection used in the transaction.

    Since I have not received any official documentation about this specific scenario, Is available), which imitates this scenario. Before running this sample it is important to stop MS DTC on the test machine - so that we do not deal with distributed transactions and we do not remember that the new SqlConnection has been created. >

    In this way I have found that regardless of any transaction related to the SqlConnection.ClearPool connection, the connection to the connection clears all connections of the connection passed as a string.

    java - Paypal's Redirect URL asks to log in when already logged in -


    When checking out, we use a sticking payment that we send through the classic Java SDK. It then sends a pecky that we use during the construction of the redirect url. This is working fine for 6 months in our Sandbox environment which points to a URL similar to "". Now, when my browser asks me to log on to the hit generated link, but I'm already logged in. I am logged in at developer.ppal.com and x.com.

    Side note: When I logged in, I noticed that my test account was not listed so I had listed the Importer tool on the page.

    I think my question is this: Do anyone else have the 'login' experience to use PayPal sandbox features? Even after entering the page? If so, did you recognize that you are logged in.

    While I am unsure of the exact reasons, the solution was to clear my entire browsing history, including cookies. Once I entered back, everything used to work.

    css - Trying to create a jQuery image rotator but can only get the first half of it to work -


    I am trying to create an image rotator where an image will fade on the next and so on until it does not return The first image I got the first two images that worked correctly, but the remaining 3 did not fade correctly, they just jumped into the scene.

    I know that I should still have an account to reach the end of the rotation. I have not taken care of it yet because I am just trying to get the rotation of the first round to work.

    What is missing me to work it correctly?

    My HTML:

      & lt; Div id = "imageRotator" & gt; & Lt; Div id = "image01" class = "on" & gt; & Lt; Img src = "picture / image rotate 01.jpg" & gt; & Lt; / Div & gt; & Lt; Div id = "image02" class = "next" & gt; & Lt; Img src = "image / image rotate 02.jpg" & gt; & Lt; / Div & gt; & Lt; Div id = "image03" class = "hidden" & gt; & Lt; Img src = "picture / image rotate 03.jpg" & gt; & Lt; / Div & gt; & Lt; Div id = "image04" class = "hidden" & gt; & Lt; Img src = "picture / image rotate 04.jpg" & gt; & Lt; / Div & gt; & Lt; Div id = "image05" class = "hidden" & gt; & Lt; Img src = "image / image rotate 05.jpg" & gt; & Lt; / Div & gt; & Lt; / Div & gt;   

    My CSS:

      #imageRotator div {status: absolute; } .current {z-index: 1; } .next {z-index: 0; } .hidden {z-index: -1; }   

    My jQuery:

      $ (document) .ready (function () {var firstImage = $ ('# image01'); var current image , Next image; set interval (rotate images, 2000); function rotate images (current image = $ ('div courant'); next image = $ ('div nxt'); 0}, 2000, function () {CurrentImage.removeClass ('current');}); // Bring the second image to the next scene. Image. Animate ({Opacity: 1}, 2000, Function () {// Create New AddClass ('next'), image the current image next image. Revoke class ('Next'). AddClass ('current'); // rotation The next image in the 'Next' image is created next image. () AddClass ('Next'). RemoveClass ('hidden');}); }});    

    You have not set zero opacity by default Therefore there is no animation for opacity for the first elements, try setting it on 0 on all elements but first and see what happens.

      #imageRotator div {position: absolute; Width: 30px; Height: 30px; Profile: 1px solid red; Background: Red; Opacity: 0; } #imageRotator div: First-Kids {Opacity: 1; } .current {z-index: 1; } .next {z-index: 0; } .hidden {z-index: -1; }   

    Demo: