Posts

Showing posts from March, 2013

Is it possible to create an android map application where the map is a custom image file? -

For example, for some reason I want a map of the United States with state boundaries only but without the name of the state or the name of the city. I can get such a map online (an image file), and it wants to be a map in my application. But I still want the ability to get geographic location data (latitude, longitude) when the user taps on the map somewhere. Is it possible to do that? If so, where should I start? Can anyone suggest some resources? If you create your own tiles, then this tile overlay

asp.net web api - How to set default serializer to JSON without removing XML serializer -

Is it possible to make JSON default serializer in WebApi2 without removing XMLA? We tried to order the XmlSerializer back, but brought Jason Serializer to face but nothing is changing. By default json format should "win" Generators are defining what the formatter is "Win" is going. Is JSON formatter also able to write your type, you want to verify that first if you use the Data Controlled Serializer, it is slightly more selective, json.net version Is behaving well (and it is the default). If you have no accept header, the content negotiator still looks at the content type of the request and will like to send your request XML? If the content of these two questions is not there, the content negotiator ( DefaultContentNegotiator ) will now end with XML and JSON formatters and call SelectResponseMediaTypeFormatter Here originally it will select the first formatter in the list (I'm saying it with caviat because it is a bit more complicated th...

python - Using regular expressions to parse HTML -

I'm new to Python. A codeer gave me some code to parse the HTML. I'm having trouble understanding how it works. To get my idea from funtweets.com/random (Consumption?) Is for HTML and basically tell me a funny joke as an alarm clock in the morning It currently takes all jokes on the page and only one Only need. Either code can be modified or detailed as to how the code works. This code will be helpful to me: import import code import code urlib2 page = urllib2.urlopen ("http: // www. M.funtweets.com/random ") .read () user = re.compile ('& lt; span & gt; @ & lt; / span & gt; (\ w +)') text = re.compile (r Group (1), Regent (text, page) for match in & lt; / b & gt; & lt; / a & gt; (\ w. *) ") User_lst = [match reader (user, page)] Match_list = '@ {0} \ n {1} \ n'.format (_user, _text) for match in ridgeet (user, list), match_list =' @ user3530608 Do you want a match instead of playing again ...

bigdata - How to query data stored into JavaRDD? -

मैंने व्यक्ति वस्तु बनाने के लिए Person.java नामक एक साधारण जावा वर्ग लिखा है। उदाहरण: सार्वजनिक व्यक्ति () {} सार्वजनिक स्ट्रिंग getName () {वापसी का नाम; } सार्वजनिक शून्य सेटनाम (स्ट्रिंग नाम) {this.name = name; } मैंने तब अपाचे स्पार्क मुख्य चालक वर्ग में कोड को लागू किया। जावाआरडीडी & lt; व्यक्ति & gt; लोग = ctx.textFile (लॉगफ़ाइल) .मैप (नया फ़ंक्शन & lt; स्ट्रिंग, व्यक्ति & gt; () {सार्वजनिक व्यक्ति कॉल (स्ट्रिंग रेखा) अपवाद {स्ट्रिंग [] भागों = line.split ("\\ |"); व्यक्ति ट्रांस = नया व्यक्ति (); trans.setName (भाग [0]); वापसी पार;}}); फ़ंक्शंस संकलित और ठीक चलाना है लेकिन समस्या यह है कि मैं लोगों के डेटासेट को कैसे पूछूं? जब मैंने कोशिश की: लोग। पहले (); आउटपुट था: Person @ 3f03a49 जो मुझे कास्टिंग के साथ समस्या मानते हैं? मैं इसे मानव पठनीय में कैसे रूपांतरित कर सकता हूं? मैं कोशिश कर रहा था स्पार्क जैसी एक जटिल पुस्तकालय के साथ काम करते हैं व्यक्ति @ 3f03a49 कास्टिंग के साथ कोई समस्या नहीं है, इस तरह से कक्षा व...

Simple JavaScript bind onClick using array? -

यहां मेरा जेएस कोड है: var myArray = ["id1", "id2" , "आईडी 3"]; Var कंटेनर = document.getElementById ('कंटेनर'); MyArray.forEach (फ़ंक्शन (आईडी) {कंटेनर। निर्माता एचटीएमएल = कंटेनर वीनर एचटीएमएल + "एआरआर = \" "+ आईडी +" \ "& gt;" + आईडी + "& lt; / ए & gt;"}); मैं 3 बार कोड को दोहराने के बजाय, एक ऐरे का उपयोग कर प्रत्येक लिंक पर एक onClick ईवेंट हैंडलर को बाइंड करना चाहता हूं? मैं सुझाव देता हूं: फ़ंक्शन फ़ंक्शन टॉकल (evt) {console.log ('आपने तत्व के साथ आईडी पर क्लिक किया है' '' + यह .id + '' '); } " // एक खाली चर प्रारंभिक: temp; MyArray.forEach (कार्य (आईडी) {// बनाई गई 'ए' तत्व की प्रतिलिपि टेम्पैन = link.cloneNode (); // इसे एक href विशेषता निर्दिष्ट: temp.href = '#' + id; // एक आईडी दे रही है: Temp.id = 'link_' + id; // उस प्रतिलिपि 'ए' तत्व के लिए टेक्स्टनोड जोड़ना: temp.appendChild (document.createTextNode (i...

javascript - Google's Places API and JQuery request - Origin http://localhost is not allowed by Access-Control-Allow-Origin -

I am doing some testing for a project which I am kept in mind that includes nearby places Use is included. That's why I went with a big man and started roaming with Google's APA. I have been using the booklet with openstreet tiles for my map. Until now I do not try to use Dang, it is all right. var lat = coords.lat; Var lng = coords.lng; Var apiUrl = "https://maps.googleapis.com/maps/api/place/nearbysearch/json"; Var Data = {Key: 'Aja Sebel 8 BME 8 QT 7 Arjo XHP6's 2D D44 H9-FSUI', Location: Latitude + ',' + LNG, Radius: '10000', Sensor: 'False' Rank: 'prominence', type: 'bar' Night club '}; $ AJAX ({url: API URL, type: 'post', data: data, datatype: "jsnp", crossderman: true, success: function (data) {var obj = $ .parseJSON (data); // console log .next_page_token);}}); Allow me access to origion http: // localhost by changing dataType property to json - the original . I get a par...

c++ - static template member variable has internal linkage but is not defined -

Yes, I know, there is a question with almost the same title, but it refers to a different situation. Error message) In my case, I have a .cpp file with a big named designation name (implementation details). There is a property class template with a static data member in that name space, which I need to access from outside the unknown namespace. I give it a little bit of meat: file.hpp namespace Bar {template & lt; Typename A & gt; Struct foo {static_assert (is_same & lt; a, float & gt; :: value} is_same & lt; a, double>: value, ""); Fixed zero set_static_var (a const & x); // ...}; } and file.cpp namespace {template & lt; Typename A & gt; Struct foo_traits {// supports the implementation of several static code bars: foo & lt; & Gt; Fixed A data; }; The template's & lt; & Gt; Float foo_traits & lt; Float & gt; :: datum; // No change if this is in the global namespace template & lt; & Gt; Doub...

if statement - Trying to implement a score system while using if/else. [JAVA] -

I am just starting in Java and if I use any other statements in a score system I am trying to either increase increment or subtraction according to correct or incorrect answers. If the text found in the text text file is false and if the disturbance user matches the mail then the program should be increased. Right now, the program will display incorrect "1" and "1" if true, no matter how often it goes through the loop. It should change the value of the result but it keeps resetting to "0" I have already tried but I believe that I had an issue with scope. If someone can help, I would be very grateful. package typetrain; Import java.util. *; Import java.io * *; Import javax.swing. *; / ** * * @author Haf * / Public Square Game1 {Public Zero Game () {JOptionPane.showMessageDialog ("Zero," Please answer in the correct line of the text. \ N "+" Each line of text will give you a point grant "+" \ N Wrong answers will reach t...

random - I'd like to understand Java's SecureRandom object -

While trying to do an early crypto course, I am trying to catch Java with SecureRandem object. I think that I understand that: a) No matter how long you know the sequence of random numbers, there is no way to predict the next random number in the sequence. B) No matter how long the sequence of random numbers you know, there is no way to know which seed is used in addition to animal projections. c) You can request a safe random number of different sizes. d) You can have a newly created SRGN seed with different different sizes of values. Every newly created SRNG you create and the seed with the same value will produce the same sequence of random numbers. I should add that I'm assuming that this code is used on Windows: random sr = secureorendam Gate instant ("SHA1PRNG", "SUN"); Is my basic understanding correct? thank you in advanced. I have a few more questions which are quite expert in crypto. They are related to sowing seeds for SRGG, beca...

serialization - save and load c++ program -

OK, I thought and learned many things today and for this I want to thank the community. I have not got any collision in the streets for a few hours, but now I am stuck. The last collision on the road to save and load my program. I have no idea where to start. I saw how frames ... and fred ... work and all the examples are for programs that are not different I do not know where to begin with my files I will put 2 functions. If someone can help me to save those people I can understand comfortably. In gradebook class students {public: string final; First string; Int student_id; }; Class course {public: string name; Int course_id; Vector & lt; Students & gt; Students; }; Class gradebook {public: gradebook (); Zero addCourse (); Zero addStudent (); Private: Vector & lt; Course & gt; syllabus; }; gradebook.cpp zero gradebook :: addCourse () {int i, loop = 0; Cout & lt; & Lt; "Enter the number of courses:"; Cin & gt; & Gt; Loop; (I = ...

java - String.format( ) format arguments -

मैंने कुछ कोड String.format ("% 3d \ t % S ", सामान, सामान)। उद्धरण अंकों के सामान का मतलब क्या है? मुझे पता है कि \ t केवल एक टैब है, लेकिन मुझे नहीं पता कि% और अन्य चीजें क्या हैं। इसके अलावा, क्या उन प्रकार के प्रतीकों हैं जिन्हें स्ट्रिंग्स के स्वरूपण के लिए इस्तेमाल किया जा सकता है? स्ट्रिंग। प्रारूप एक लेता है। 3 डी प्रारूप (कन्वर्ट) में पहला तर्क 3 में बदलता है \ t \ >

Finding the winner in Tic-Tac-Toe (Java using 2-D arrays) -

I'm having trouble with how to display the winner of the game in this Tic Tac-toe program . import java.util. *; Public class tick {public static zero main (string [] args) {scanners = new scanner (System.in); Boolean flag = false; Four [] [] board = {{'', '', ''}, '', '', ''}, {'', '', ''}}; Boolean did = wrong; Int player = 1; Int line = 0; Int col = 0; While (flag! = True) {checkfourwear (board); System.out.println ("Enter the row and column for your next move"); Line = in.nextInt (); Col = in.nextInt (); If (player == 1) {board [row] [col] = 'x'; Player = 2; CheckForWinner (board); } And {board [row] [col] = 'o'; Player = 1; CheckForWinner (board); } Print board (board); checkForWinner (board); } Display Winners (player, flag); } Public static zero printboard (four [] [] board) {for (int row = 0; line and lieutenance; 3; line ++) {for (int col = 0; col & lt; 3; col ++) {...

android - importing ShowcaseView with gradle -

I'm trying to use the ShowcaseView project in my app, but can not get to create the project. When I run 'gradle clean installDebug', I get the following error: There was a problem evaluating the root problem 'how-it-going' The method for logic can not be found [project: 'showcase'] root project 'how-it-is-running' I'm using gradle 1.11 and Android Studio 0.54. I downloaded the source, and imported the project using the file - & gt; Import module - & gt; ShowcaseView - which makes up my project structure: - Project --app - Showcase view My settings. Gradle file looks like this: Include: 'app', 'ShowcaseView' and build my project level .gradle I have the following: Dependency {Compilation Project (': ShowcaseView'}} Any help with this properly included will be highly appreciated Thank you. I recently created a ShowcaseView in an Android studio project, and I hope this can push y...

javascript - Issue on Setting Up Highchats.js Index of Chart -

Image
Can you please see it and tell me how can I get rid of Series 1? Index! and is the actual index for two columns or if it is not possible delete it from the chart? What is the method of specifying the number of minimum values ​​TX and MAX? $ (function () {$ ('# container'). ([Chart: {Type: 's Episode: {Categories: ['Green', 'Pink']}, Series: [[Data: [name: 'num1', color: '# 00FF00', y: 500}, {name: 'Point 2', color: '#FF00FF', y: 5}]}}}}}}); You can add this object to the container (after legend) Legend: {enable: false} You can set the tick interval on yAxis like this: yAxis: {tickInte Raval: 25} All this is documented here: / p> I will read it and in-in-examples I encourage the use of these.

ruby - How to validate :created_at in model (RAILS 3) -

irb (मुख्य): 044: 0 & gt; i1.created_at = & gt; गुरु, 24 अप्रैल 2014 02:41:15 यूटीसी +00: 00 आईआरबी (मुख्य): 045: 0 & gt; i2.created_at = & gt; गुरु, 24 अप्रैल 2014 02:41:15 यूटीसी +00: 00 आईआरबी (मुख्य): 046: 0 & gt; i1.created_at == i2.created_at = & gt; झूठी आईआरबी (मुख्य): 047: 0 & gt; I1.created_at.to_time.to_i == i2.created_at.to_time.to_i = & gt; सच काम करने के लिए नहीं लगता है validates_uniqueness_of: created_at क्योंकि irb (मुख्य): 046: 0> i1.created_at == i2.created_at = & gt; गलत कैसे बनाया_नेट को मान्य है? एक ही तारीख से बचाने के लिए नहीं चाहते हैं। +++ UPDATE +++ irb (मुख्य): 048: 0 & gt; I1.created_at.class = & gt; ActiveSupport :: टाइम विथ ज़ोन आइरब (मुख्य): 04 9: 0 & gt; I2.created_at.class = & gt; ActiveSupport :: TimeWithZone चूंकि उनके पास अलग सटीक मिलीसेकंड हो सकते हैं। इस पोस्ट को देखें: संभावनाएं मिलीसेकेंड मान असमान होंगी। डालता है i1.created_at.usec puts i2.created_at.usec ...

java - Why is in Android, getDeclaredMethod available on API level 9 only? -

एंड्रॉइड में, विधि getDeclaredMethod वर्ग वर्ग पर कहा जाता है उपलब्ध एपीआई स्तर 9 पर शुरू () वो कैसे संभव है? यह जेडीके 1.1 () से उपलब्ध है। क्या मुझे विश्वास है कि एंड्रॉइड डॉक्स क्या कहते हैं? जानकारी ठीक है, आप सही हैं। एंड्रॉइड एपीआई 9 और जावा जेडीके 1.1, लेकिन याद रखें कि एंड्रॉइड के पास तरीकों और कक्षा में कुछ बदलाव हैं, ऐसे समय में आपको जावा क्लास या एंड्रॉइड क्लास को इसी तरह के नाम पर कॉल करना पड़ता है, लेकिन अलग-अलग तर्कों या विधियों, संचालन, परिणाम आदि। > उदाहरण के लिए आपके पास 2 उपयोग import android.util। *; Import java.util। *; निर्भर करता है कि आपको क्या चाहिए।

reporting services - Use dynamic text in report header or footer based on the subreport running on that page -

Here are the steps I have taken: I have created a subportal report footer. Then I call this subreport in the main report. When I run the main report, the sub-report footer portion is not shown in the main report. I have searched I have found that this is the limit of SSRS. I have changed things, so there is a footnote with some expressions in the main report. To expand, I have three reports: Main report SubRapport 1 SubRoad 2 I am calling Subreport1 and in the main report SubRepport 2 I added a page break between the subreport 1 and subreport 2 in the main report. Now in my main report footer I have a text box and I want to show some text as per the subforport details shown in related pages. For example, suppose, for example, when I run the main report, my subreport 1 gives me 3 pages of report and subreport 2, gives me 5 pages of the report Now for PageNo-1 to 3 I " Want to show this is my Subreport1 part "and page 9 -8 to 8 want to show"...

pivot with two columns combine ms sql -

I want to see results that display in pivot mode in table mode. Although column names for other rows are a combination of Person_Id and Author_Number, and the value for that column should be Project_Id to make it easy to understand, please see sample results below: client_id 12345_1 12345_2 12346_1 12346_2 12346_1 Client 1 Test 1 Test 1 Client 2 Test 2 Test 2 Client 3 Test 3 Note that the combination of Person_Id and Author_Number from the second column and so on is further ahead. Here is the sample table CREATE TABLE [dbo]. [Names]] [Names]] [Names]] [Family name] [Navvorkar] (50) [Navarachar] (50) No tap, [Project_ID] [Navvorkar] (50) No, zero, [ Include in the values ​​('Client 1', 'Test 1', 12345,1), the author (customer ID, project_id, person_id, author_number, family_name, first_name), person_ID] [first_name] [navelist] (50) 'Gist', 'Fede' writers (client_id, project_id, person_id, author_number, family_name, first_name) Enter values...

objective c - set data filter using "struct sflt_filter" for both TCP and UDP protocol -

मैंने struct sflt_filter का उपयोग किया है जो कि kpi_socketfilter.h का हिस्सा है , व्यक्तिगत रूप से या तो टीसीपी या यूडीपी प्रोटोकॉल के लिए फिल्टर सेट करने के लिए जो ठीक काम कर रहा है। लेकिन मैं इसे एक ही कार्यक्रम में दोनों टीसीपी और यूडीपी प्रोटोकॉल फिल्टर के लिए चाहता हूं। यह लाइन काम करती है व्यक्तिगत कॉल - sflt_register (& amp; sflt_filter_variable, PF_INET, SOCK_STREAM, IPPROTO_TCP); , PF_INET, SOCK_STREAM, IPPROTO_TCP); sflt_register (& amp; sflt_filter_variable, PF_INET, SOCK_DGRAM, IPPROTO_UDP); एक और चर बनाने "Struct sflt_filter" और इसे इसके बाद के संस्करण के रूप में अलग से दर्ज किया गया है। तो मैं दोनों टीसीपी और यूडीपी के लिए फ़िल्टर कैसे रजिस्टर कर सकता हूं। जवाब मिल गया, sflt_filter_variable.sf_handle चर मान को अन्य 32 बिट अद्वितीय मान में परिवर्तित करना है। sflt_register (& amp; sflt_filter_variable, PF_INET, SOCK_STREAM, IPPROTO_TCP); Sflt_filter_variable.sf_handle = 0x7a5a5f5d; // ** sf_handle का मूल्य बदल...

node.js - Express 4 Sessions not persisting when restarting server -

I have an Express 4 app setup for the session. // Use the Session app (cookieParser ()); App.use (session ({secret: "something-secret"})); // signup ap. Post ("/ signup", function (rick, race) {create_user (req.body.user, function (mistake, user_id) {req.session.user_id = user_id; res.redirect ("/ admin" );});}); When I submit the form, it saves user_id to req.session. However, when I restart the server, the session expires. Why is not this released? Do I miss some configuration? The default session collection for Express-session is MemoryStore, which suggests that as the name, Only stores sessions in memory, if you need perseverance, there are many session stores available for express.

get - PHP is_nan function: Notice: A non well formed numeric value encountered -

I want to check that the $ _GET method is an AN code (only numeric) and check that There is a number when it does not happen to two, then I want to redirect to another page, and want to exit php script. if (! Isset ($ _GET ["ean"])) {header ('location: /products.php'); Go out(); } Else {if (is_nan ($ _ receive ["EAN"])) {header ('location: /products.php'); Go out(); }} When the $ _GET ["ean"] = 234234 SD (therefore, it is not numeric) is a php error: Notice: a non-well Created in the numerical value created ..... line 9 is the line with 9D is_nan function. There is a boat. View the docs: For this reason, is_nan wants a as the name of a parameter . It will tell you whether it is Nain or not. In your case, you want is_numeric . if (! Is_numeric ($ _GET ["EAN"])) {}

google maps - Step-by-Step navigation by using GPS in iOS sdk -

I need a step by step navigation using GPS with Google Maps and how to get it. You need a Google API service and when you start If you place the destination and call the API with the following, then provide the full route path http://maps.google.com/maps/api/directions/json?sensor=true&amp ; Original = 23.027439,72.52309 9 and destination = 23.029108,72.507570 Here my starting point is original = 23.027439,72.523089 and destintaion destination = 23.029108,72.507570 So now Google will provide the following data {"route": [{"border": {"NE:": {"lat": 23.0296906, "lng": 72.5234184}, "south west": {"Lat": 23.026354, "lng": 72.50715599999999}}, "Copyright": "Map Data A © 2014 Google", "Legs": [{"Distance": {"text": "2.2 km", "value ": 2249}," Duration ": {" Text ":" 5 Minute "," Value...

php - I cant display data in textbox for update data using yii framework -

I'm new to the yii framework I'm trying to edit the data , I use the text box Can not display data in, the first step of update data. My Controller is sitecontroller.php , my view file update-jobseeker.php . I have 5 tables user , job_seeker_profile , job_profile , location , and category . I got the error "Fatal error: Call on a member function on attribute referrals () at a non object in C: \ wamp \ www \ yii_new \ framework \ web \ helpers \ CHtml.php My Controller is site controller , this action is: {$ Id = $ _ GET ['Id']; $ model = Yii :: app () -> gtc- gt; createCommand () - & gt; select ('*') -> ('user' ') - & gt; Join ('job_seeker_profile s', 'u.id = s.user_id') - & gt; Join ('job_profile j', 'u.id = j.user_id') - & gt; Join ('place l' , 'L.id = s.loc Ation_id ') - & gt; (' U.id =: id ', array (': id '= & gt; $ id)) - ...

Android Application Design to support multiple sizes -

I'm working on the Andoid application for Mobile only (not for tablets). So I'm going to tell the designer to make PSD for the Android screen. Normally I tell my designer to design an application on these three sizes and I use dimen to adjust the layout for other devices: 320 800 * 1280 (I entered) 480 (and I put these images / Strong> (I put these images in the HDPI folder) in these images in the XHPI folder) So I want to know that I What type of PSD should be made from designer I'm asking about full screen size. The initial design is to design the PSD file with 100% i.e. XHDPI, then it is required to downscale // For Developer First start designing for MDPI then From the appropriate folder Baseline phone MDPI 320x480 you can increase the debutlet for 1.5 DPHDP and for 2 XHDPI Es Developer layout design mind 1. Use wrap_content, fill_perrent, or DP units when specifying the dimension in the XML layout file 2. Do not use har...

jquery - why htaccess redirect even if folder exist? -

मेरे पास .htaccess है: विकल्प + अनुवर्ती लिंक पर पुनर्लेखनइन्गइन पुनर्लेखन%% REQUEST_FILENAME} पर! -d रिक्राइटकॉन्ड% {REQUEST_FILENAME}! -f पुनर्लेखनकॉन्ड% {REQUEST_FILENAME}! -l रिवेराइट्यूल। * Index.php [एल] AddType text / css .css जेक्जरी अजाक्स mysite को अनुरोध भेजता है .com / ajax /। अजाक्स फ़ोल्डर मौजूद है, लेकिन htaccess पुनर्निर्देशन। पता नहीं है कि समस्या कहाँ है। हल! Ajax / folder में index.php के साथ समस्या थी config.php शामिल था जो मुख्य पृष्ठ पर रीडायरेक्ट करता है

android - Does code in onHandleIntent block IntentService from receiving other intents? -

I have a IntentService that connects to Bluetooth (blocking part), sends data, And disconnects. I have modified the IntentService to handle a particular purpose that will stop the service. However, it seems that because of the blocked code, which connects to the Bluetooth device (indefinitely or canceled by the user), the override on or the onstart commm will not be called until the code blocking part is now blocked Happening. Can the code inside other handholds block other intentions reaching the service? Yes IntentService uses a single worker thread. Or to accurately cite the documents: All requests are handled on a single worker thread - they may be as necessary (and The main loop will not be blocked), but only one request will be processed at the same time. to This means that only OnStartCommand can be on IntentService at one time.

javascript - Active class not being applied when using 2 x 2 synced Owl Carousels -

I have 2 x 2 coded owl carousels on the same page demo, which can be seen here: Now that I have 2 x 2 synchronized carousals, then I modified the code slightly with 2 of them. However! The "minor-active" class is only being applied to the last carousel, even if I click in the carousel first. You can see the full revised code of the link above: / P> Remember! This is only the problem of active class! The 2 x 2 slideshow works perfectly in comparison to the fully active category which is not being applied to the slideshow first. // function indicates that two Oral Carousels Var sync1 = $ ("# sync1"); Var sync2 = $ ("# sync2"); Sync1.owlCarousel ({singleItem: true, slideSpeed: 1000, autoplay: 4000, Navigation: wrong, pagination: incorrect, post-action: sync, reservation refresh rate: 200,}); Sync2.owlCarousel ({itemsMobile: 4, item: 4, pagination: wrong, liability: refresh reset: 100, later: function (l) {el.find (".www.ww- item"). ...

python - adding a line to a txt file -

I'm trying to add a line at the end of a txt file. I'm reading some posts here and trying different options, but, for some reason, the new line has been added after the last one, it has just been added next to the last one. So I was wondering what I am doing wrong ... Here I am showing my test: Exam 1: #newprot In this case there is a new data entered by the user in 12345 for the line in the present = false F = open ('protocol.txt', 'a +'): if newProt == line: exists = True: f.write (newProt) f.close () txt file after this code: 2sde45 21145 we34z12345 Test 2: exists = open ('protocol.txt', 'r +') Of F in the form f: in line f: if newProt == line: exists = true if it does not exist: F.write (newProt) after this code txt File: Just like the above ... And, this way, I have tested some combinations to open the file, RB +, W etc. Letter to open, but for some reason I want to get the desired output textile file Not foun...

sql - ORACLE11g, table or view does not exist while creating procedure -

There are two schemas in DB, I create a physical scene - 'MV1' and give it successfully ¼? It's okay in other schemas. to read on Schema.MV_AVNUNU_MS_GO; To write / write on schema.mv_avnuen_ms_goo; Grants for writing / SchemaA.MV_CA_REVENU_MS_GEO; / While compiling the process, the error message says "The table or view for MV1 is not present" is the process code: Create or change PROCEDURE SP_NAME (Args ...) Select the name (...) in the table ... (select ... from MV1 - ** Schema A.MV1 either does not work ** End of WHERE SP_NAME; / Schema BS To read on PN Schema B.Spn.ad; write permission on schema bspn; write on schema bspnn Allow / Write or Change Public SNoNIM SPNI Schema BSPAIIA; / Try adding the schema to IV 1, Y It does not work. Should I take any other steps?

c# - Multiply quantity with price and display total -

I have an edit button in Gridview when I click that two fields will change into textbox volume and total. User Total Amount is edited automatically and displays results in total area .. but I am getting the error in line decimal value = convert. ToDecimal (row.Cells [ 1]. Change the text ("$", string.opti). Change (",", string.app Mr.)); The input string was not in a correct format here Secure zero txtQuantity_TextChanged (Object Sender, EventArgs E) {Text box txtQuantity = (TextBox) Sender; GridViewRow line = (GridViewRow) txtQuantity.NamingContainer; Text box txtTotal = (text box) line. Fontcontrol ("testtal"); Decimal Value = Convert. ToDecimal (row.Cells [1]. Change the text ("$", String.Empty). (",", String.Empty) Replace; decimal total = value * Convert. ToInt32 (txtQuantity. Text); TxtTotal.Text = string.Format ("{0: C}", total);} Try it instead: decimal value = decimal. merge (line call [1]. Chang...

ember.js - Ember Form Submission -

I am trying to implement payment modules in amber. I have created a form and form action from that server address To which the form will be submitted. & lt; Form action = "https://api.mondido.com/en/ V1 / transaction" id = "payment_size" & gt; In simple jquery I should do something like var onSuccess = function {transaction} {alert (transaction.id); }; Var onError = function (error) {warning (error.description); } $ ('# My_form'). Mondido ({type: "Ajax", success: onsuit, error: on irrender}); But I want to wrap around in some action in the controller. The problem is that when I do something like this & lt; Form action = "https://api.mondido.com/en/v1/transactions" id = "payment_form" verb {{somefunction = "submit"}} & gt; The action is being said twice, to try it first, click on the submit button twice and then it is being presented twice. Any idea how to go around with it? It is...

sql server 2008 - Create Function Date -

I am trying to create a function with 2 parameters, the first absolute date is an int What do I do Function: Function ('2014-04-20', 5) Results '2013-11-20' function ('2013-11-10', 2) Results in '2013-09-10' Monthly date of construction amount (@d_date DATE, @___interminent INT) date @in_new date as the return date; SET @in_new = DATEAD (MM, - @ in_mn_adjust, @in_date); Back to @in_new; End; Choose 'dbo.monthdifference' ('2014-04-22', 3) Run away. What I'm doing wrong Announcement @rarchcharger (10) Announced @Ruchik Vertra (10) set @tr = '2012/10/23' set @ root = dateAD (month, -2, convert (date, @tr, 102))

php - SQL multiple join with empty results -

I am trying to create a SQL query for the search request on the table "Projects". Search is also related to other tables that belong to project tables. I tried: SELECT projects Join documents in documents left on projects. = Projects.Id Include sub-documents on the left-hand documents. Include subdocuments_tags on subdocument except the .id = subdocuments.documentID .id = subdocuments_tags.subdocumentID subdocuments_tags.tagID = tags.id where tags (eg projects.name "% Test%" or projects like "% Test%" or "% Test%", or projects.defaultTags "% Test%", or "% Test%" or sub-documents like "clients", like projects. Name "% Test%" or document description "% Test%" or subdocument. Such as "% Test%" or tag. Such as name "% test%") and (Projects.hidden = 0 or projects.ownerID = 2 or projects_users.userID = 2) by Group BY Projects.id order projects. Upddetime DESC; The issue i...

android - How to set TextView Dynamically left of paraent? -

यहाँ मेरा कोड है मुझे त्रुटि पैरामीटर शून्य है viewDynamic = new TextView (getApplicationContext) ()); रिलेटिव लेआउट रिलेक्टिव लेआउट = (रिलेटिव लेआउट) ढूंढिए वीवीआईबीआईआईडी (आरआईड। सेलेबल); रिलेटिव लेआउट। लेआउटपारों पैराम्स = (रिलेटिव लेआउट। लेआउटपारम) viewDynamic.getLayoutParams (); params.addRule (RelativeLayout.ALIGN_PARENT_LEFT); params.addRule (RelativeLayout.ALIGN_PARENT_BOTTOM); params.addRule (RelativeLayout.ABOVE, userEditTxt.getId ()); ViewDynamic.setLayoutParams (नया लेआउटप्रर्म (लेआउट पर्म। WRAP_CONTENT, लेआउट पैरा। WRAP_CONTENT)); viewDynamic.setText (userEditTxt.getText ()); viewDynamic.setTextColor (Color.RED); viewDynamic.setTextScaleX (2); viewDynamic.setTextSize (20); viewDynamic.setPadding (10, 10, 10, 10); //viewDynamic.setVisibility(View.GONE); relativeLayout.addView (viewDynamic, पैरामीटर); अगर आपने कोई भी पैंट कंटेनर को दृश्य नहीं जोड़ा है, या सेटलेआउटपारों को बुलाया गया है मैन्युअल रूप से, तब getLayoutParams () रिक्त लौटेगा। आप को कॉल करें viewDy...

java - RegEx to match a string between a set of words -

I am trying to match the words of a word between two words in a string. I am using Java Regx. Input Text The cunning fox jumping on the big dog and ran Expected output large RegEx used ( ? & lt; = (Fox [A-Z0-9] *)) (? s) (. *?) (? = \ sdog) I get output Which gives me all the words between fox and dog "fox" Following the word one or more all upper case words In the pursuit of these two words, I need to match all the words until I receive "dog" Also, in Capture Group 0 I Need to get the desired output. I can not use different capture groups. This is a limit to my application. Any help on this is greatly appreciated. You can use this regex: ^. * Fox [A-Z0- 9 \ s] * (. *) Dogs * $ To use in other cases you can pass fox and dog to your function.

vba - How to add a file from the active document directory -

I have a document that every time I need to insert a specific item into my document, a VBA Creates a template page from the script, it's a great time saver, it contains an image in which I found the foundation of a work through which this image is inserted and the text wrap it where I want, though File path is an integer i It would like the file path to specify the image file as the active document in the same directory, so I can move the folder to a different location, will not break the macro. The problem is one beyond my VBA skills, I've worked, I should probably use the ActiveDocument.Path command, but I'm not sure how your support is appreciable. Thank you Below is my code: Sub Inser_Wrapped_Image () Dim shp as set size in Shp = ActiveDocument.Shapes.AddPicture (_FileName: = "C: \ Users \ Edoardo \ Documents \ My Work \ PhD \ SkyDrive \ Tutoring \ Houria \ Image Replacement.jpg ", _ SaveWithDocument: = True, _ Anchor: = Selection.Range) with SP. Wr...

java - How to prevent Hibernate load the whole collection? -

उदाहरण के लिए, मेरे पास निम्न इकाई है: वर्ग उपयोगकर्ता {... निजी प्रश्न सेट करें; ...} जब मैं डोमेन मॉडल संचालित करता हूँ: user.questions.add (...); हाइबरनेट इस संग्रह के सभी प्रश्नों को लोड करेगा, भले ही मैंने संग्रह को LAZY पर सेट किया हो। मैं इस व्यवहार को कैसे बदल सकता हूँ? तो वास्तविक समस्या का वर्णन: जब मैं कैस्केडिंग लागू करता हूं, तो एक प्रदर्शन समस्या है क्योंकि कई सवाल हो सकते हैं। मेरा जवाब तब होगा: फिर प्रश्नों को बचाने के लिए कैस्केडिंग का उपयोग न करें, एक नियमित EntityManager.persist () कॉल का उपयोग करते हुए सवाल जारी रहें। बहुत स्पष्ट, सही?

Rails 4 - scope with has_one instead of attribute -

मेरे पास निम्न दो मॉडल हैं: वर्ग व्यक्ति & lt; ActiveRecord :: बेस है_ऑन: संग्रह, आश्रित = & gt; : नष्ट क्लास संग्रह & lt; ActiveRecord :: बेस is_to: व्यक्ति संग्रह होल्ड person_id । मुझे एक गुंजाइश Person.with_archive । चूंकि व्यक्ति के पास archive_id का कोई भी डीबी स्तंभ नहीं है, इसलिए मैंने पाया कि एकमात्र उपाय है: def self.has_archive res = Array.new self .all.each do | i | रिज & लेफ्टिनेंट; & lt; मैं अगर! I.archive.nil? एंड रिज़ एंड समस्या यह है कि मुझे रिश्ते के बजाय एक अर्रे मिलती है, जो मुझे अन्य स्कोप श्रृंखला के लिए सीमित करता है उस के लिए कोई भी अच्छा और साफ समाधान ?? धन्यवाद! इसे आज़माएं: गुंजाइश: with_archive, - & gt ; {Joins (: archive)} यह केवल एक संग्रह के साथ ही व्यक्ति को वापस करना चाहिए, क्योंकि शामिल होता है एक INNER JOIN statement का उपयोग करता है

android - Call another fragment from a card using cardlib -

I am using a card to apply the card. When I click on a card, that piece should be included in it and the second piece should be loaded, is it possible? Public square miccard card with a custom inner layout expands [/ ** * constructor * * @ ultimate reference * / public miccard (reference reference) {this (reference, r. Latte card_layout); } / ** * The ultimate reference * @ Ultimate Internal Layout * / Public Miccard (Reference Reference, Int LaLayout) {Super (Reference, Interior Layout); in this(); } / ** * Init * / private void init () {// set no header // An OnClickListener listener setOnClickListister (@Override Click on Public Zero (Card Card View View) {Toast. Make Text (GetContext), "Click on Listener Card", Toast. LNNHHLF). Show (); // Here}}); } Here, I want to call Fragment Manager and change the whole piece with each other, I think it should be done within the activity, but how? This structure is the structure, which has the card holding activity, the pie...

Redirect to URL with trailing slash doesn't occur in Websphere 8.5.5 -

is an application that works on WAS7. It has a war module placed on the reference path "Foo / Bar" (compound one). This war module is accessible through the URL like this: Localhost: 9080 / Foo / Bar Then I posted the same application on 8.5.5. The same URL is trying to reach the war module with localhost: 9080 / Foo / bar (trailing without slash) and the "bare" page is obtained without CSS and JS files. However, when I try to use the module through the following URL localhost: 9080 / foo / bar / CSS and JS (with trailing slash) are picked correctly. I could figure it out so far, that everything was done on 7 because there was no trailing slash behind the slash on the back side of the url. And it seems that this is normal behavior, the question is why do not I have the same behavior as 8.5.5? Is there a way to configure it? For some time I debug webpiece classes and I get a property that I believe That is the answer to my question: com.ibm.ws.webcontai...

File Storage with security in Android -

My application is downloading books (zip) via in-app purchase. I have to ask whether there is a way in Android that allows to store these books in SD card or external storage with security So that another file manager can not delete it ? Any help would be appreciated saved in external stores The files that are world-readable and enable USB mass storage to transfer files to computers when they can be modified by the user. Source: So you can not do not the SD card as if you want that no one can remove them. But you can use internal memory: By default, files saved in internal storage are private to your app and other applications can not access them (nor do the user). When users uninstall your app, these files are removed. Source:

Sending c# string to c++ server through network -

I am writing a C # client that needs to be communicated to the C ++ server I send a string to the server Looking for a way, I'm stuck, since C is in C # 2 bytes and C ++ is 1. How can I change my string as a readable four array for the server? Thanks a lot! Ps: I feel like there will be one problem with other types like Intel and stuff. In C ++ you can use std :: wstring That's the wide character and two bytes.

c# - Apply hashing to secure passwords generated within the app -

I have 150 weird predefined passwords and usernames in my Windows Phone 8 app. Every time a user enters the password and username, the app checks its authenticity and works accordingly. For obvious security reasons, I want to protect my password so that "extra genius brains" do not find any way to manipulate them in their own app. Will someone tell you how to use SHA-1 hashing and store those passwords in a haired format? Thank you! var sha = new SHA1Managed (); Var bytes = System.Text.Encoding.UTF8.GetBytes (password); Byte [] hashed password = sha.ComputeHash (bytes);

node.js - node-mysql multiple statement in one query -

मैं nodejs 10.26 + एक्सप्रेस 3.5 + नोड-माइस्क्ल 2.1.1 + MySQL सर्वर संस्करण: 5.6.16 । मुझे 4 डेले के पास मिला है और केवल 1 डाटाबेस अनुरोध चाहिए, इसलिए मैं "" "... के साथ हटाएं आदेश दें ... लेकिन यह हमेशा विफल हो जाता है। var sql_string =" user_tables से हटाएं जहां नाम = 'Testbase'; "; Sql_string + = "user_tables_structure से हटाएं WHERE parent_table_name = 'Testbase';"; Sql_string + = "user_tables_rules से हटाएं parent_table_name = 'testbase';"; Sql_string + = "user_tables_column से हटाएं WHERE parent_table_name = 'testbase';"; Connection.query (sql_string, फ़ंक्शन (गलती, पंक्तियाँ, फ़ील्ड) {यदि (गलती) गलती हो जाती है; res.send ('true');}); यह इस त्रुटि को फेंकता है: त्रुटि: ER_PARSE_ERROR: आपके SQL सिंटैक्स में एक त्रुटि है; मैनुअल जो कि आपके वाक्यविन्यास के लिए सही सिंटैक्स के पास होता है, उस मैनुअल की जांच करें जो उपयोगकर्ता के डेटासेट के पास 'DELETE FROM user_tab...

graph - Double Click event for each Chart Areas in MSChart C# -

The problem is that I created the chart with two charts using MSchart but, I have different individual charters I want to handle double click events. But, I can not do this Double click event is applicable only for the entire chart, which is not for individual chart fields. Please tell me if there is any other way. Actually, I want to create visibility of other chart areas for a lie when other chart areas are double clicked. Thanks in advance. private sub MSChart1_MouseClick .... HitTestResult = MSChart1.HitTest (eX, eY) In the form of a slim result, the result of the string as dull (result ChartArea) = is false then CurrentChartAreaName = Result.ChartArea.ChartArea.Name End End End Sub

struts2 - Conversation Plugin vs ActionFlow -

Does anyone have the Straits 2 conversation plugin and the Action Flow plugin and when should I choose one or the other? > Regards These are completely different plugins for different purposes conversations Plugin adds conversation field to your code ActionFlow plugin helps you create wizards with such tasks, where keeping one's data in some scope is just one of the features With action flow you can define the sequence of verbs (i.e. current verb Which action will be taken later). With conversation , you can define which data will be inserted into conversations and when the conversation begins and ends. Use plugins when you want to add to your application.

c++ - Scrolling window in U++ -

I am currently writing a window application using U ++ IDE. Contains more fields to display compared to fit in a field in a window used for data entry, so I wanted to add a scrollbar to my window. So far, very good, I looked up and tried to apply it in my application. My problem is - it does not just scroll. I suspect that I have to do with multiple window applications, but I'm not sure . Here's how my app is structured: GUI_APP_MAIN {Main window app; ... app.roun (); } Structure main window: Top window {Patient frame dlg; ... // opens a window that displays a patient overview of zero new_patient () {... dlg.Execute (); } ... struct PatientFrame: TopWindow {ProcessFrame proc; ... // opens the window in which the scrollbar should be null new_process () {... proc.Execute (); }} Straight Process Frame: Top-window {... // About 1: 1 Example Scrollbar SB; Virtual Zero Layout () {sb.SetPage (GetSize (). Cy); } Virtual Zero Mouse VL (Point, Int Zelletta, DeWord) {SB. Weil (Zedl...

ANTLR - Remove node from AST -

I am making my first AST. I want to remove '=' from it. I like something: block | | ----------- | Statements Returns | Assignment | | ----- | ----- | Field = value Removal from my grammar file: Pars: block EOF - & gt; Block; Block: (Statement) * (Identifier ';' -> ^ (Block ^ (Statement of Statement *) ^ (Return Identifier?); Statement: Assignment ';' - & gt; Assignment; Assignment: Expression - & gt; ; ^ (Assignment expression); Expression: NAME '=' Identifier; So, how can I remove '=' node which is printed in a tree? By using inline operator ! , which removes nodes from the tree: / P> Expression: NAME '='! Identifier; Or using the rewriter operator: Expression: NAME '=' identifier -> NAME identifier; Questions told by respective operators: Note that in your grammar there is no assignment token if you inject this kind of token If you want to do this, then put it in your token {...

java - ESAPI canonicalize malforming url -

We have an application that accepts URLs from users. This data requires verification, and we are using ESAPI for this purpose. However, we are struggling with empursed URLs. The problem arises when ESAPI can access data before verification. URL & amp; pid = 123 for example Ï ?? D = 123. since I?? Not whitelisted, verification fails I have tried to encode it, but ESAPI is more cunning than that and canonicalization to avoid double encoding and mixed encoding. I'm a little stumped here and I'm not sure how to move forward. This problem is in ESAPI. I started working on solving it, but since I know It is not that when a patch will happen, I can only send you references to the a action in your comments in OP where I had linked the same answer, to parse / break the URL By using java.net.URI and javax.ws.rs.core.Uribuilder , you can cancel the piece, and after that Can rebuild Uarel. I will redirect the link OP has given the example I gave after changing the top...

ruby on rails - How to disable paperclip file extension limits? -

I want to remove the content type limits for uploading files for my needs. I tried to: validates_attachment_content_type: attachment ,: content_type = & gt; ['/' Image./.**Z/ ',' Application / * '] but that does not work, what changes do I make to get all the file types It should be a matter of removing only the line line is not necessary to fully paperclip work. Update: This has changed to the recent paperclrip edition. Now you need to specify that you do not want to validate the content with this topic: do_not_validate_attachment_file_type: attachment

Java Manifest File Codebase attribute -

I currently write some anti-build scripts for some JR files to use Java security settings as Java 1.7 I am .0_51 I have run into a problem with codebase attribute; This feature clearly requires exact URL which will be stored and accessed code, although this jar is not known at the time of packaging. Is there a way to specify the codebase attribute later without opening the Jar, then we modify our JAR files and then sign them, modify the manifest, resubmit the jar and then sign in again? I think that this is a long shot, I am looking for some clarity on this. Thanks You can use a * codebase or if you have All supported URLs are listed so you can add them all.

javascript - how to prevent page from scrolling when loading new content to page -

I have a page website with anchor for anchor, content is being loaded dynamically when I see Dint (when someone For example, click on anchor or scroll for position on the site) For example: Anchor 1 & gt; Div1 Anchor 2 & gt; Div2 Anchor 3 & gt; Div3 Anchor 4 & gt; Div4 etc But when you load the page and click on the 3 anchors, it will take you there, but then div2 wchich loaded on the jump has gone. Is there any way to prevent this and bind vieport to show DivX content? Thanks for any help! Turn it on onclick event. $ ('html, body'). ({scrollTop: '100 (PXValue)'}, 1000, linear ');

Daemon in background in python -

I need this script to work in the background like a daemon, so far I can only work but in the background No: import threading import timing, striptime import time def write_it (): #this function, typing real time in every 2 seconds in the threading file. Timer (2.0, write_it). Start () f = open ("file.txt", "a") hora = strftime ("% y-% m-% d% H:% M:% S", gmtime ()) # print edge f.write (Hora + "\ n") f.close () def non_daemon (): time.sleep (5) #print 'test non daemon' write_it () t = threading. Thread (name = 'non daemon', target = non_daemon) t.start () I have already tried another way, but any work that works in the background I was looking at, any other option? If you are looking to run a script as a daemon, then a good way to use the library You must do the following code, which you want to do: import daemon import time def write_time_to_file (): with open ("file.txt", "a") f: hora = time ...

javascript - creating new element with click-function do not work (cant set focus) -

If I create a new element with jquery and add a click function as above, then the click function is definitely fixed Does not work from I want to set focus on an equality element, but it only focuses on the previous one. To make a better explanation, I created a JSFIDEL var newUL = $ (' & gt;', {text: "ul text", 'Class': 'errorListUl'}); (Var i = 0; error list [i]; i ++) {var el = errorList [i]; Console.log ("element:", el.element); $ (" ", {"class": "errorListLi", html: "& lt; span & gt;" + Error list [i] .element.name + "& lt; / span & gt; & lt; span & gt; "+ Error list [i] .method +" & lt; / span & gt; "+ Error list [i]. Message, click: function () {$ (el. Element. Focus (); console.log ("Jump to:", $ (el .element))}}}. Annex (neuol); } NewUL.appendTo ($ ('# response')); for your before the loop ends That is ...

command line - Publishing Reports on tableau via tabcmd -

I wanted to publish the makeup report through the CMD Commands and was able to successfully do it, I have a concern " Connect the Twbx file to the data source in the 'TabCMD Commands. The following commands I used to do: Log in to Mesoba Server: tabcmd .exe login --server http: // serverName - if "username" - password "password" - site "" McBuou Repo Teblu server to Ting: Publish -C "E: \ lake \ Aktivlreportonam. TBX "-n" New Report Name.twbx "--project projectName - DB-User" DBusername "- DB-Password" DB Password " While I published the report, I used to write my DB credentials However, I did not mention the name of the DB server name and the DB name for that database, from which the twibs file will be obtained. I have several DBs using the same identity, What db server name To specify the name of the DB, there is no way in the CMDD in which report Unless you have a pressing rea...

android - Perform requests with Retrofit inside custom Runnable -

मैं वॉली से Retrofit का उपयोग कर एक कस्टम कार्यान्वयन में माइग्रेट कर रहा हूं, लेकिन मैं अपने कार्यान्वयन में कुछ वॉली विशेषताओं को पसंद करता हूं, उदाहरण के लिए RequestQueue.cancel (स्ट्रिंग टैग) यदि अनुरोध अनुरोधित टैग है, तो यह एक बूलियन मान, mCanceled को सेट करके रद्द कर दिया गया है, चलाएँ विधि इस मान को जांचता है और यदि यह सत्य है तो वापस लौटाता है। इसे रिस्ट्रॉफ़्ट के साथ पुन: पेश करने में सक्षम होने के लिए, मुझे अपने कस्टम क्लास का उपयोग करने के लिए डिफॉल्ट के बजाय Runnable का उपयोग करने में सक्षम होना चाहिए, जहां मेरे पास mTag और m रद्द किए गए फ़ील्ड। इसके अलावा, वॉली भी ऐसे झंडे को सक्रिय थ्रेड के अंदर सेट करने में सक्षम था और उन्हें तुरंत बंद कर देता है। मेरा रद्द सभी विधि, जो मैंने पहले से लागू कर ली है, बस कतार में एक और कतार में नालियां निकालती है, लेकिन सक्रिय धागे तक पहुंचने में सक्षम नहीं है। क्या रिस्ट्रॉफ़्ट और थ्रेडपूल एक्सक्लोरर मुझे लगता है कि मुझे एक अच्छा समाधान मिल गया है: अनुरोधों के runnable को अवरुद्ध करने के बज...

c# - Wpf Datagrid textbox row selected -

Image
I have a problem with a datagrid where a column is a textbox with a context menu but the problem is that then I Right clicking on the text box the row is not selected, it means that it can set the value to the wrong place. In the picture given below, it has been shown that the problem I clicked on the correct headline, but it is still the bottom line selected, which means that if I select "mixed paints" then it will want that the desired row The image below should be inserted This is the code for the column: & lt; DataGridTemplateColumn Header = "{wpfTx: Action of Translation}" IsReadOnly = "false" width = "*" & gt; & Lt; DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Text box text = "{binding action, mode = twin}" textwapping = "wrap" border color = "0" borderbrush = "transparent" & gt; & Lt; TextBox.ContextMenu & gt; & Lt; Con...

php - How to make custom URL in Symfony-2.3.12? -

I'm having trouble setting up a custom URL in Symfony-2.3.12 I'm new to Symphony I'm a Symphony in Fedora -2.3.12 I am using. I have installed the application that I can call using URL http: //localhost/symfony/web/app_dev.php/sample/hello I would like a URL like this: http: // localhost / symfony / sample / hello I gave it in Symfony-2.3 I have read routing documents. But it is unable to understand how to do it. Please help me solve this problem. thank you in advanced. Symphony 2 has two default front controllers. App.php for production environment and for development environment app_dev.php All request route with this Front Controller. localhost / symphony / web / app_dev.fp / sample / hello means that you are using the development environment. Localhost / Symphony / Web / Sample / Hello means that you are using production environments. You can add virtual hosts in httpd-vhosts.conf to change http: // localhost / symfony / web / Pa...