Posts

Showing posts from February, 2014

iis 7 - Which is the best option to host a nettcp WCF service -

I have a nettcp service that I want to host I have three options - IIS 7 Windows service a console application If someone can give me some valuable ideas then I would be grateful, on which one option is better than the other. Here are some comments for me: IIS 7: WAS: Any dependence on IIS All protocol-supported / Li> Not all shared hosting environments will support non-HT protocol binding or unusual port numbers. More complex configurations Windows service: Prof. OS: Windows starts at startup You can start / stop service through service control manager All protocols supported Some additional steps for deployment / redemption (installutil) You need some extra boilerplate code to support the service implementation Not ideal if you have The server does not have access to the server (eg Console Application: Professionals: Fast and easy to deploy for testing All protocols supported Cons: To b...

css - Change Color of PNG Image on hover? -

I added these symbols to my site and wanted to change colors on the hover ... what is the best solution? Icons are in png format and want to change the hover to your blue colors ... Thanks in advance. You should generate new blue images with your editor (which you created earlier icons), Then you use CSS

html - Insert text between a rectangle drawn in SVG -

เคฎेเคฐे เคชाเคธ เคเคธเคตीเคœी เคฎें เคเค• เค•ोเคก เคนै: & lt; svg width = "100%" เคŠंเคšाเคˆ = "100%" เคธंเคธ्เค•เคฐเคฃ = "1.1" xmlns = "http://www.w3.org/2000/svg" & gt; & Lt; rect x = "20" y = "20" เคšौเคก़ाเคˆ = "250" เคŠंเคšाเคˆ = "250" เคถैเคฒी = "เคญเคฐें: เคจीเคฒा" & gt; & Lt; attributeType = "CSS" เคตिเคถेเคทเคคा = เคจाเคฎ = "เค…เคธ्เคชเคท्เคŸเคคा" = "1" เคธे = "0" dur = "5s" เคฆोเคนเคฐाเค เคœाเคจे เค•ी เคธंเค–्เคฏा = "เค…เคจिเคถ्เคšिเคค" / & gt; & Lt; / เคฐेเค•्เคŸ & gt; & Lt; / svg & gt; เค…เคฌ เคฎुเคे เค‡เคธ เค†เคฏเคคाเค•ाเคฐ เค•े เคฌीเคš เคเค• เคŸेเค•्เคธ्เคŸ เคœोเคก़เคจा เคนोเค—ा। เค•्เคฏा เค•ोเคˆ เคฎुเคे เคฌเคคा เคธเค•เคคा เคนै เค•ि เคฏเคน เค•ैเคธे เค•เคฐเคจा เคนै? เคฎुเคे เคฏเค•ीเคจ เคจเคนीं เคนै เค•ि เค†เคช "เคฌीเคš" เคธे เค•्เคฏा เคฎเคคเคฒเคฌ เคนै เคฏเคฆि เค†เคช "เค•्เคทैเคคिเคœ เค”เคฐ เค…เคจुเคฒंเคฌ เคฐूเคช เคธे เค•ेเคจ्เคฆ्เคฐिเคค" เคนैं, เคคो เคฏเคน เคเคธा เค•เคฐेเค—ा: & lt; svg width = "100%" height = "100%" เคธंเคธ्เค•เคฐเคฃ = "1.1" xmlns = "http : //www.w3.org/2000/svg "& gt; & Lt; rect x = "20" y...

php in body -- missing something obvious -

My PHP is not PHPing, so tested simple ... something should be clear & lt; Html & gt; & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt ;? Php echo '& lt; Script language = \ "javascript \" & gt; Confirm ("are you seeing this?") & Lt; / Script & gt ;; '; ? & Gt; & Lt; / Body & gt; & Lt; / Html & gt; In the code body, I get: Confirm ("Are you seeing this?"); '; ? & Gt; When I see "Source", I see: & lt; Html & gt; & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt ;? Php echo '& lt; Script language = \ "javascript \" & gt; Confirm ("are you seeing this?") & Lt; / Script & gt ;; '; ? & Gt; & Lt; / Body & gt; & Lt; / Html & gt; What is the extension of your file? Running a webserver? How are you calling your php script? Make su...

ruby on rails - Why is Heroku installing rspec? -

เคฏเคน เคฎेเคฐी เคœेเคฎเคซ़ाเค‡เคฒ เคฎें เคนै: source 'http: // rubygems .org 'เคฎเคฃि' เคฐेเคฒ ',' 3.0.5 'เคฎเคฃि' sqlite3 'เคฎเคฃि' hoptoad_notifier ',' = 2.4.2 'เคธเคฎूเคน: เคตिเค•ाเคธ, เคชเคฐीเค•्เคทเคฃ เคฎเคฃि เคฐเคฌ्เคฌी-เคกिเคฌเค— เคฎเคฃि "เค•ाเคฐเค–ाเคจे _ เค—ेเคฒ_เคฐेเคฒ्เคธ" เคฎเคฃि "เคกेเคŸाเคฌेเคธ_เค•्เคฒाเคฏเคจเคฐ" เคฎเคฃि "เค†เคฐเคเคธเคชीเคˆเคธी-เคฐेเคฒ" เคฎเคฃि "เค•ाเค•เคก़ी-เคฐेเคฒ" เคฎเคฃि "เค•ैเคชिเคฌाเคฐा" เคฎเคฃि "เคฒॉเคจ्เคธी" เคฎเคฃि "เคฐेเคกเค—्เคฐीเคจ" เคฎเคฃि "เคซेंเค•เคฐ" เคฎเคฃि "เค‰เคฒ्เคฒेเค–เคจीเคฏ_เคเค•्เคŸिเคตเค•ॉเคฐ्เคก" เคंเคก เคœเคฌ เคฎैं เค•เคฐเคคा เคนूं เคฎेเคฐे เคธ्เค•्เคฐीเคจ เคชเคฐ เคฏเคน เคนै เค•ि เคฎैं เคฆेเค– เคฐเคนा เคนूँ เคธ्เคฅाเคชिเคค เค•เคฐ เคฐเคนा เคนै rspec-core (2.5.1) rspec เค…เคงिเคท्เค ाเคชเคจ -expectations (2.5.0) rspec-mocks เค…เคงिเคท्เค ाเคชเคจ (2.5.0) rspec เคธ्เคฅाเคชिเคค เค•เคฐเคจा (2.5.0) เคฎैंเคจे เคธोเคšा เคฅा เค•ि เคนेเคฐोเค•ो เค‰เคค्เคชाเคฆเคจ เคฎोเคก เคฎें เคธ्เคฅाเคชिเคค เคนै, เคคो เค•्เคฏों เค†เคฐเคเคธเคชीเคธी เคธ्เคฅाเคชिเคค เค•िเคฏा เคœा เคฐเคนा เคนै? เคเคธा เค‡เคธเคฒिเค เคนै เค•्เคฏोंเค•ि เคกिเคซ़ॉเคฒ्เคŸ เคฐूเคช เคธे เคธเคญी เคธเคฎूเคน เค‡ंเคธ्เคŸॉเคฒ เค•िเค เคœाเคคे เคนैं। เค•ुเค› เคธเคฎूเคนों เค•ो เคจเคœเคฐเค…ंเคฆाเคœ เค•เคฐเคจे เค•े เคฒिเค เคนेเคฐोเค•ुเคธे เค•ो เคฌเคคाเคจे เค•े เคฒिเค, heroku config: BUNDLE_WITHOUT = "เคตिเค•ाเคธ: เคชเคฐीเค•्เคทเคฃ" เคœोเคก़ें เค†เคช เค…เค—เคฐ เคšाเคนें, เคคो ...

PriorityQueue containing "Pairs" in reverse numerical order Java -

I am trying to create a preference that holds its elements behind the natural order (integer pairs) But we have found serious tips, but in every case it has given the same wrong order. priority question & lt; Pair & gt; Pq = New Priority Question (4, New Comparative & Lt; Pair & gt; () {Comparison of Public Entry (pair A1, pair A2) {return a2.value.compareTo (a1.value);}}); Pq.add (new pair (1,15)); Pq.add (new pair (2,58)); Pq.add (new pair (3,55)); Pq.add (new pair (723)); Iterator & LT; Pair & gt; This = pq.iterator (); While (this hasNext ()) {System.out.println (it.next (). Value); } There is a pair class applies public class jury Comparable {public Integer Name; Public integer value; Public pair (int name, int value) {this.name = name; This.value = value; } Public int getname () {return name; } Public receipt value () {return value; } Comparison of public int (pair o1, pair o2) {pair 1 = (pair) o 1; Pair A2 = (pair) O2; If (a1.value ...

c# - COM Add-in not going away in word 2007 -

Then Ive got two separate COM addins, for a 2k3 word and for a 2k7 word 2k3 every work like a charity Does not have any problems etc ... but now when I open the word 2k7, buttons from 2k3 appear in my 2k7 ribbon, it still happens after disabling my addin or clearing my project. I have had problems with removing all the DLS for my 2k3 addin, but the problem still persists ... Having problems? Cheers If you make a point of configuring those buttons A template apart from the template. When you install, they will automatically "go away" Normally, it is considered poor practice to make changes in Normal.dot, but many people do not know that unless you set your "CustomizationContext" before you create your buttons and toolbars "Property word, it's okay to modify what you are doing in general. After you and your changes, you will uninstall your addin.

Stack overflow while generating tags completion table in emacs -

I am using GNU MX 23.3 on Windows. I work in a very large codebase for which I generate a TAGS file (using the atada binary provided with amatus). The tags file is too large (usually around 100 MB). I rarely have to use any functionality beyond find-tag , but there are times when I want to be able to complete the TAGS table. Calling Full-Tag Emacs is the reason for creating the entire table automatically, the process takes a little while, but my problem is not in the amount of time, rather it The fact that at the end (about 100% complete), I have a stack overflow (sorry about countless characters)): entered the debugger - Lisp error: (error "in regexp matcher Stack overflow ") again search-forward (" ^ \\ (\\ ([^] + [^ - one-zA-Z0-9 _ + * $?] \\) \\ ([- -ZA-Z0 -9 _ + * $ ?:] \\) [^ - a-zA-Z0-9_ + * $?:] * \\) \\ (\\ ([^ \ n] \\) \\)? \\ ([0-9] + \\) ?, \\ ([0-9] + \ \)? \ N "zero t) - Tag-perfection-table () byte-code (...) Tag-Completion-Table () som...

C++ weird problem, Undefined reference -

Error occurred: neljastest.cpp: mandatory reference vector 2 :: In reference to vector 2 (float, float) / P> Neljastest.cpp: #include & lt; Cstdlib & gt; # Include & lt; Iostream & gt; #include "../include/Vector2.h" #include "../include/neljas.h" using namespace std; Int main (int argc, char * argv []) {Vector 2 P1 (1.0, 2.0); Vector 2 p2 (0.0, 0.0); Vector 2 p3 (5.0, 2.0); Return EXIT_SUCCESS; } vector2.h: #ifndef VECTOR2_H #define VECTOR2_H #include & lt; Iostream & gt; Using Std :: ostream; Square vector 2 {public: float x; Float Y; Vector2 (); Vector 2 (float nx, float ny); From float distance (vector 2v); }; Ostream & amp; Operator & lt; & Lt; (Ostream and valve, vector 2v); #endif vector2.cpp: #include "../include/Vector2.h" # include & lt; Cmath & gt; using namespace std; Vector 2 :: Vector 2 () {x = 0; Y = 0; } Vector 2 :: Vector 2 (float nx, float ny) {x = nx; Y = NA; } Float Vector...

asp.net - Strange error using Editor control from ajax control toolkit -

When trying to use editor control, I get the following error: value The name of the parameter can not be empty or empty: elementID This is my html: & lt;% @ register assembly = "Ajax controlToolkit" namespace = "Ajax controlToolkit.HTMLMeter" tagprix = "CC1"% & Gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Head runat = "server" & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form id = "form1" runat = "server" & gt; & Lt; Asp: ScriptManager id = "ScriptManager1" runat = "server" & gt; & Lt; / ASP: ScriptManager & gt; & Lt; Div & gt; & Lt; Cc1: Editor id = "Editor1" runat...

ruby - rake db:migrate is throwing BusyException: database is locked exception -

I am going through Ruby on Rail Tutorials by Michael Hartl, and in chapter 6, I'm going to create a new migration The instructions have been added to add an index to the email column in the user's table. Here's my migration: def self.up add_index: user,: email,: unique => When I run Rake DB: thinks it for another, then throws a busy extension and says that the database is locked. The database is a sqlite3 database stored in my user folder in my local folder; Nothing Important. Any other and all help is greatly appreciated. I get this all the time, it is rooted in the fact that SQLite has access only from one process Can be done at one time and the database has been locked by that process. Make sure that you do not have a server or console running in any other terminal if you continue to receive it, and you are certain that there is nothing else to access that squelight database (including zombie processes) Here's the advice you can follow:

java - Advantages/Disadvantages of Header Files -

What are the advantages and disadvantages of using header files like a language in Java like C or C ++ languages? I think classrooms should be designed from outside, so it is good to have header files and not so much through the implementation details. However, then, then, each function declaration is repeated in two files. If C and C ++ are invented today, would they use the header file? Is this system old or important? "post-text" itemprop = "text"> Eric Lipper is derived from the concerned, which keeps it very well: I equivalent The question why C + + requires header files ? Header files look like a huge potential point of failure; Every time I edit the C ++ code and change the signature of any method; If I forget to update the header file, the code is not compiled and often gives some hidden error messages. Hopefully this big price actually buys something to you. The compiler author buys one thing and the user buys one thing. It buys a user tha...

silverlight notification window location like google talk email notification -

In the Silverlight out of the browser application does the notification window have a way of setting the status of that notification window Is this set to be in the lower-right corner such as a Google-Talk Email Notification? Thanks

java - JTable 3 fields arrayList -

I am trying to add value to a Jtable , how the values ​​are met from the arrayList Do you do this I tried object [] [] [] [] [] [] data] and populate it inside a loop, but it does not work , How do you fix this? string [] column = {"field string", "field double", "field double"}; Object [] [] data; Iterator & LT; Node & gt; Itr = arrayList.iterator (); While (IRHAS-Next ()) {node AL = it Nxt (); Double A = L. Gateval (); Data [i] [1] = el.getstring (); Data [i] [2] = a; Data [i] [3] = one * 4; I ++; } Jeffre Frame = New Geoffram ("title"); JTable tablE = new JTable (data, column); Zpean panel = new zpn (); Panel.add (table); Frame.add (panel); Frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); Frame.setSize (500, 500); Frame.setVisible (true); How do you populate "data" in the loop for a while? Use a defaultTableModel and use its addRow (Object []] or Adrev (vector) method. By adding lines of data. Set it ...

geometry - Removing polygons from the screen (OpenGL)? -

เค•ोเคก เคฎाเคจ เคฒेเคจा เคนै: glLoadIdentity (); glTranslatef (-1.5f, 0.0f, -6.0f); glBegin (GL_TRIANGLES); GlVertex3f (0.0 เคเคซ, 1.0 เคเคซ, 0.0 เคเคซ); GlVertex3f (-1.0 เคเคซ, -1.0 เคเคซ, 0.0 เคเคซ); GlVertex3f (1.0 เคเคซ, -1.0 เคเคซ, 0.0 เคเคซ); glEnd (); glLoadIdentity (); // เค•िเคธी เค…เคจ्เคฏ เค‘เคฌ्เคœेเค•्เคŸ เค•ो เค†เค•เคฐ्เคทिเคค เค•เคฐเคจा ... เค‘เคฌ्เคœेเค•्เคŸ เค•ो เคฎिเคŸाเคจे เค•े เคฒिเค เคฎैं เค•ोเคก เค•ैเคธे เคฌเคฆเคฒूंเค—ा? เคฎुเคे เคชเคคा เคนै เค•ि glTranslatef () เค•ो เคŸिเคช्เคชเคฃी เค•เคฐเคจा เคค्เคฐिเค•ोเคฃ เค•ो เคฎिเคŸा เคฆेเค—ा, เคฒेเค•िเคจ เค•्เคฏा เคฏเคน เค•เคฐเคจे เค•ा เค”เคชเคšाเคฐिเค• เคคเคฐीเค•ा เคนै? "post-text" itemprop = "text"> เคฏเคฆि เค†เคช เคก्เคฐा เคซंเค•्เคถเคจ เค•ी เคถुเคฐुเค†เคค เคฎें glClear เคกाเคฒเคคे เคนैं (เคก्เคฐॉ เคซंเค•्เคถเคจ เค†เคฎเคคौเคฐ เคชเคฐ เคฒूเคช เคฎें เคนोเคคा เคนै) เค†เคช เค•ेเคตเคฒ เคค्เคฐिเค•ोเคฃ เค•ो เคฐेเค–ांเค•िเคค เคจเคนीं เค•เคฐเคจे เค•ा เคšเคฏเคจ เค•เคฐ เคธเค•เคคे เคนैं, เคœैเคธे เค•ि เค†เคชเค•े เคค्เคฐिเค•ोเคฃ เค•ा เค•ोเคˆ เคธंเคฆเคฐ्เคญ เคจเคนीं เค›ोเคก़ेเค—ा เค‡เคธเค•े เค…เคฒाเคตा, glTranslatef () เค†เคชเค•े เคค्เคฐिเค•ोเคฃ เค•ो เคฆूเคฐ เคจเคนीं เค•เคฐ เคชाเคเค—ा, glTranslatef () เคตเคฐ्เคคเคฎाเคจ เคฎैเคŸ्เคฐिเค•्เคธ เค•ो เคธ्เคฅाเคจांเคคเคฐिเคค เค•เคฐเคจे เค•े เคฒिเค เคธिเคฐ्เคซ เคเค• เคซ़ंเค•्เคถเคจ เคนै (เค†เคชเค•े เคฎाเคฎเคฒे เคฎें เคฎैเคŸ्เคฐिเค•्เคธ เค†เคชเค•े เคค्เคฐिเค•ोเคฃ เค•े เคธाเคฅ เค•ैเคฎเคฐे เค•े เคฆृเคถ्เคฏ เคฎें เคธ्เคฅाเคจांเคคเคฐिเคค เคนो เคฐเคนा เคนै) glClear ()

Change BSON field value (C++) -

I am testing BSON as a wire protocol, and in changing some values ​​I have already created on BSOOBJ should be able. .. The problem is that I can not find any way to do this in addition to reproducing BSNOBJ from scratch! Any suggestions? Generally they are irreversible - serialize / deciarylize from CPL It's common usage to see the $ set and $ inc, of your choice, but they are server-side. So ... we have it :)

ajax - login through XHR -

I want to modify the authentication behavior so that the whole process can be done through the customer towards xhr. So, for example, when I wish to greet the login form login_handler, instead of loading new HTML pages, will return some JSN data of success and error or any kind of redirects what should I do to do this? You must be able to write your own login controller and call the identifier and recall method. Recover your user from the database first, validate the password and then if everything is correct you can set the authentication cookie: response .headers = request.environ [repoze.who.plugins'] ['main_identifier'] Remember (request.enver, {'repoze.who.userid': user_name}) Other than confirming success for a JSON dict back UI object from the controller

javascript - Prototypal Inheritance. Whats wrong with this simple example? -

เคซ़ंเค•्เคถเคจ เค () {this.testing = 'test'; } เคซ़ंเค•्เคถเคจ เคฌी () {} เคฌी.เคช्เคฐोเคŸीเคŸिเคช = เคจเคฏा เค (); console.log (b.testing); เค•ंเคธोเคฒ 'เคชเคฐीเค•्เคทเคฃ' เค•े เคฌเคœाเคฏ, เค…เคจिเคฐ्เคงाเคฐिเคค เคฆिเค–ाเคคा เคนै เค•्เคฏा เคฎैं เค—เคฒเคค เค•เคฐ เคฐเคนा เคนूं? เค†เคชเคจे เค…เคญी เคคเค• 'เคฌी' เค•ा เคเค• เค‰เคฆाเคนเคฐเคฃ เคจเคนीं เคฌเคจाเคฏा เคนै। var bInstance = new b (); console.log (bInstance.testing); เคฆूเคธเคฐे เคถเคฌ्เคฆों เคฎें, เคช्เคฐोเคŸोเคŸाเค‡เคช เค•े เค—ुเคฃ เค•ेเคตเคฒ b เค•ी เคตเคธ्เคคुเค“ं เคชเคฐ เคฆिเค–ाเคˆ เคฆेเคคे เคนैं, เคจเคนीं เคชเคฐ b () เค•เคจ्เคธ्เคŸ्เคฐเค•्เคŸเคฐ เคซ़ंเค•्เคถเคจ เคธ्เคตเคฏं।

Android: Tracking mouse pointer movement -

Thinking that I'm using a normal mouse, to track the X and Y coordinates of mouse pointer in Android possible? You need OnGenericMotionListener : Onionic Motion (...., Motion Event Me) {if (me.getToolType (0) == MotionEvent.TOOL_TYPE_MOUSE} {} API 14 + Required [Confirmation] I got a tablet with USB mouse and can confirm this work for mouse movement. You will flood the messages, so simple processes or sleep should be considered.

php - Instantiating classes with params in singleton factory -

I have a class that produces singleton classes (note that for the purpose of this question class singleton {public function load ($ Classname, $ params) {$ filepath = 'Classes /'. $ Classname '. Php '; Need_once ($ filepath); Return $ classname (); }} Now to say that I want to cross an array of parameters which can vary in size, what is the best way to do this, which is the creator of the class formed? I imagine something with the classes of call_user_func_array , but for classes? You can get some interesting results with the use. Function Load ($ Square, $ Args) {$ reflection = new ReflectionClass ($ class); $ Object = $ reflection-> New instance ARGS ($ AGR); Return objects; } This is simplified and this means that the __autoload function is used, nor does it check the namespace if you use them It will also create a new example, every time you call it, you will need to apply an array of objects, which you have already created, etc. ... And f...

xml - C#: Why is this code populating this listView out of order? -

I am what where no one could see that I was wrong? Code should create an XML document, then, depending on the content of each node, to populate the columns of a ListView with the text within each node / attribute. List View should look like this: before 1 ITEM2 ITEM3 Item4 Item5 Item6 Item7 Item8 Item9 Although this eliminated: Item7 ITEM2 Item5 Item4 before 1 the production code of this error: private void openPasswordFileToolStripMenuItem_Click (object sender, EventArgs e) {System.Xml.XmlDocument loadDoc = New System.Xml.XmlDocument (); LoadDoc.Load (application.StartupPath + "\\ database.xml"); foreach (System.Xml.XmlNode descNode ( "/ database / Account") in loadDoc.SelectNodes) {lvItem = listView1.Items.Insert (index, descNode.Attributes [ "description"] innerText.); ; } Foreach (System.Xml.XmlNode userNode ( "/ database / Account") in loadDoc.SelectNodes) {lvItem.SubItems.Add (New ListViewItem.ListViewSubItem (lvItem, use...

c - Word occurrences and line numbers -

I am creating a program that produces a text file that contains the wording of the words and the line number There is a text file. I am using an AVL tree structure that includes the word and a linked list straight into which one node is for each line number. Here are the definitions of structure: structure lolnode {struct llnode * next; Int num; }; Structure node {char * word; Structure Lyonod * Head; Structure node * left; Structure node * correct; Inti height; }; When I try to print the text file using the functions below, I get a segmentation fault. void listprint (struct llnode * p) {if (P-> Next == tap) {printf ("% d", p-> number); } Other {printf ("% d,", p-> number); Listprint (p-> next); }} Void treeprint (struct node * p) {if (p! = Null) {tree print (p-> left); Printf ("% s:", p- & gt; terms); Listprint (p-> head); Treeprint (p- & gt; true); }} The problem is especially this line if (p-> gt; next == ...

ruby on rails 3 - how can i use fb_server_fbml helper method in facebooker2? -

I am developing a Facebook app using Rail 3 and Facebooker2. How can I use the fb_server_fbml helper method? What is "proc" in its parameters, can someone provide me the sample code? Thanks and more; The Proc parameter is used as a content block which can be found in & lt; Fb: serverFbml & gt; tags, you can learn more about the difference between block helpers and Rail 2.3 and Rail 3: So, try to do something like this: & lt;% fb_server_fbml do% & gt; & Lt; %% Here's your content% & gt; Insert & lt;% end% & gt; If you want to use the request form, try the following: & lt;% fb_server_fbml do% & gt; & Lt;% fb_request_form ("your app name", "http://www.example.com/callback", "try it!") What to do% & gt; & Lt;% = fb_multi_friend_selector ("Invite your friends:", {: lines => 3})%> & Lt;% end% & gt; & Lt;% end% & gt;

visual studio 2010 - Something strange happens with ASP.net resources files -

Today something strange with me. I a ???? I am working on a multilingual application of Global Resources. I have many files, one for each language companies, ie AS.RACS, COMPANIES.An.RACS, etc. No special or different from any other simple multi-lingual app. Today, the app has failed and I have detected this problem that HTTTtext Gate Global ResourceObject Resource File Is Not Found. After scratched my head for a while, I remember that yesterday, before I stopped my Visual Studio, a resource file was removed which was wasted and this file was actually unused Was empty Just for what you never know ???? I have a new empty resource file, and Walla !!! The only difference with this file is that the name of the test.resx name is given without language. I did not get it, it's very weird. Another interesting thing is that when I try to use resources with resources then "resource." ??? Iv ???? Using Visual Studio 2010 with MVC 3 Thank you! Edgar The def...

mysql - My SQL Strange Error -

Image
I am having a strange error in mysql that even though the column is present, it is generated and error saying that the column exists is not. This table is the schema: This query has an error: Go to the structure of that table, edit the field. Before and after the name of the attribute space Maybe

Entity Framework with Sql Views in it appear as table in generate .sql file -

I have an Entity model in my project that includes some SQL Views - where "Update Model from Database" option. Now when I select "create database from model" then I see those views as table. How can I avoid it? This is the correct behavior. EF does not know what is to define the SQL code and because of it Apart from this, EF does not care about the manner in which your existing model was created, so if you first define your model with the idea of ​​DB and then create a database from that model So it's really all the ideas of tables Will replace them.

dns - What's the English words for "pan domain name"? -

The main domain is www.abc.com I use DNS to point to all subdomains * .abc.com I am at www.abc.com How can this be said in English? I get Wiki, this is the right to resolve the PAN-domain name. Wildcard DNS Records Main article: Wildcard DNS records Domain name system wildcard domain name , Which are names that start with asterisk label, '*', such as * .example. [3] [17] DNS records related to wildcard domain names specify rules for creating resource records within a specified DNS zone, in which any specific descendants replace the entire label with the matched component of the included query name. . For example, in the DNS zone x.example, the following configuration specifies that all subdomains of x.example (including the sub-domains of sub-domains) use the mail exchanger a.x.example. The record for a.x.example is required to specify the mail exchanger. Since this is the result of leaving the domain name and its subdomain from wildcard matches, all subdomains of a....

iframe - Implementing digital goods express checkout without javascript -

Is it possible to implement express checkout for digital goods without using JavaScript? I want my website not to rely on Javascript enabled customers and customers who authorize payment can be redirected to PayPal pages. Do I just mark the transaction as digital goods (noshipping = 1, etc.)? Do I just have the user & amp; Token = Can I redirect to APIToken after setexpresscheckout instead of setting calls? Do not change anything about your initial API call As you mentioned, when you get your API token from PayPal, The user gets directions to: If you are transitioning from JS, remember Delete the PayPal script tag and code that pops up your link : New PAYPAL.apps.DGFlow ({Trigge: "link_id"})

compact framework - How to interact with keypad buttons in my application? -

I am developing a Windows CE5.0 application. This application has to be deployed in a handheld device. I want to print something by pressing a key on my device's keypad. The device has some keys like mobile phones or any other device. I do not know how to accept how to interact with important inputs or keys in my application Please help, thank you. Use the Key Down Event. Keydown = (O, S) => {If (s.KeyCode == Keys.Enter) {// anytime; }};

php - Html file upload filter onclick possible? -

I am creating a Facebook application that allows the user to upload photos via HTML form. I was thinking that it is possible to apply a filter to check the file extension before the form is deposited. & lt; Form enctype = "multipart / form-data" action = "uploader.php" method = "post" & gt; & Lt; Input type = "hidden" name = "MAX_FILE_SIZE" value = "2000000" /> Choose a file to upload: & lt; Br / & gt; & Lt; Input name = "uploadedfile" type = "file" class = "btn" onmouseover = "this.className = 'btn btnhov'" onmouseout = "this.className = 'btn'" accept = "image / gif, image / png, Image / jpeg "/> (Limit: 2MB) & lt; Br / & gt; & Lt; Input type = "submit" value = "upload file" class = "btn" onmouseover = "this.className = 'btn btnhov'" onmouseout = "thi...

java - (JSF 2.0) Problems with primefaces dataTable component. -

Image
I just want to create a simple figure with the facility of paging, but I have 2 problems: 1-Data is displayed, but the Pageinator is not shown in the browser (I've tried IE and Chrome) & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {garbage.filename}" /> & Lt; / P: column & gt; & Lt; P: column & gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: output text value = "description" /> & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {garbage.description}" /> & Lt; / P: column & gt; & Lt; P: column & gt; & Lt; F: Aspect Name = "Header" & gt; & Lt; H: outputtext value = "upload date" / & gt; & Lt; / Ch: Aspect & gt; & Lt; H: output text value = "# {garbage.uploadDate}" /> & Lt; / P: column & gt; & Lt; / P: DataTable & gt; 2- Google Chrome is still not displayed in the ...

language agnostic - Dominoes matching algorithm -

Given some inputs, which contain a left and right symbol, the output series that links the input. Imagine the information being a dominoes which you can not flip horizontally and they need to rest together. Creating large circular chains (if you can not physically do it with real dominoes, ignore it) is preferred over smaller circular chains, which are preferred over the chain where start and end Does not match. Output with more circular chains (regardless of how many or chain lengths) are we looking for. For example, the production of 3 circular chains is better than 1 large chain and a surviving single domino. Can anyone tell me in the right direction? [2] = (C, A) out in [1] = (B, C) in in = 0 (0, 0 = 0) = (A, B) [0] = (0,1,2) in [0] = (A, B) in [1] = (B, A) in [2] = (C, D) [3] = (D, C) ) [0] = [0] out in [1] = (2,3) in [0] = (A, B) in [1] = (B, A) in [2] = (C, D) [3] = [(3) = [3] = [(3) = [3] = [(3) = [3] = [(3) = [3] = [(3) = [3] = ([ E] in [2] = (C, D) in [0] = (A,...

Which Javascript / Chrome Extension IDE are you using? -

Image
I am currently invading a Chrome extension and I am looking for more ergonity by finding a good IDE that is managed by Javascript Chrome extension API can also Thanks in advance. Use and add the following scripts in the file reference. Congratulations! Now you have a very capable javascript editor for Chrome APIs Edit You can get the same functionality in Visual Studio, which is also good support for Javascript (in my opinion). In fact, I think that this is the best JavaScript editor (Achievement in silence for Microsoft :)) Just add the following comment to your JS files: // / & Lt; Reference path = "MyExternalFile.js" /> And you receive:

Implemenation of SIP on android platform 2.1 -

I want to work on SIP and Android. I should have it for two users to call each one using iptel.org. One way to do this is, I can use the demo provided with 2.3, but it requires a real device. I do not have a real device, I do not want to work on the 2.1 platform. I am making a start, so I need a good step to start so that it is easy for me to complete. PJSIP () is a good and portable SIP framework. It's still not supported for Android (even though it's only a matter of time) but you can see it: It is that Android SIP support has been built on PGSIP.

issue to Export to Excel from datagrid in Silverlight -

I bind the PageGrid Collection viewer to the datagrid. When I export the datagrid to Excel, it only exports data on the watch page, not all the item source (all records). Pre- My code - PagedCollectionView page = new PagedCollectionView (_leads); Pager Source = page; Datagrid.ItemsSource = Page; When I exported into Excel, it only exports records from one to the other at a time which is showing. I want to export to all. How can I do this? In the top-voting answer to a codegrie exporting a datagrid to CSV.

assembly - MIPS - help converting code from C -

I am making a beginning at MIPS and I am trying to write a simple code that is minimized Runs on the given array, compared to 10 cells, tells 9 cells, and prints the largest number on the screen. I have written a code which resolves this problem, but I do not know how to change it (without Empice GCC) a working MIPS assembly code. I wrote the code: int n = 9, i = 0, largest = 0; Ent ARR [N] = -2, 3, 9, -1, 5, 6, 10, 52, 9; While (i & lt; = N) {if (arr [i] & gt; largest) largest = arr [i]; I ++; } Printf ("largest number:% d", largest); If any MIPS can write that code in the assembly, and explain it to me, then I will be more than happy. Thank you! I think you need Google "cross compiler" Wiki Here's a sample:

css - @font-face not working as expected in Firefox 3.6 for the mac -

I am developing a website on my forum server on Firefox 3.6 I have a CSS The file is linked to the site I get lower fonts in the font stacking order like Nine Serif on the initial page load and then as the museo user of 300 and 500 for the forest as soon as the user clicks on another Is the page It works fine in other browsers too! The style of @ font-face used in the stylesheet is as follows: @ font-face {font-family: 'permanent marker regular'; Source: 'truetype', 'url' ('../fonts / permanentmarker-webfont.eot #') format ('et'), url ('../fonts / permanentmarker-webfont.ttf') format ('truetype '), ../fonts/permanentmarker-webfont.woff') format ('woff'), url ('../fonts / permanentmarker-webfont.svg # webfontEHg8OqO7') format ('SVG'); Font weight: normal; Font style: normal; } @ Font-faces {font-family: 'Museo300'; Src: url ('museo300-regular-webfont.eot'); Src: url format (...

dynamic - How to refer to instance properties at runtime in Objective-C -

A trick can be used to refer to the example properties on the ActionScript developers runtime, I was thinking that something similar Objective is in existence in C In the actionscript we can: var thisObject; (Var i = 0; i & lt; 10; i ++) {This object = this ["My Intense Property" + i]; ThisObject.doSomething (); } I thought that there would be a way like this in Objective-C, but I could not find the mention anywhere. I'm looking for something on the pattern of: for (int i = 0; i Can you see what I'm doing? I have an XIB link view for IBotlets, and I want to refer those ioOletlets from within the loop, so I can add properties dynamically on the runtime. Any thoughts? self corresponds to NSKeyValueCoding You can use the following > - which is by default for its example variable and property. NSButton * button = [self value ForKey: buttonName];

c++ - Removal of build info for what command -

bash-2.05 $ เค•्เคฏा xxx ndmpd: เค‰เคค्เคชाเคฆ: yyy เคฐिเคฒीเคœ: เคฌिเคฒ्เคก เคจंเคฌเคฐ: เค…เคœ्เคžाเคค เค‰เคชเคฏोเค—เค•เคฐ्เคคा-2011-87 Build เคฆिเคจांเค•: เคธोเคฎ เคฎाเคฐ्เคš 28 20:51:25 2011 เค†เคฐ्เค• เค†เคฐ्เค• เคฌเคจाเคँ: เคธौเคฐ เคฌเคจाเคจे เค•ी เคœाเคจเค•ाเคฐी: เค…เคœ्เคžाเคค เคนोเคธ्เคŸ: / เคเค•्เคธเคเค•्เคธ / เคฏ्เคฏाเคฏ / เคœ़เคœ़े / เคตीเคตी / www, เคกीเคฌीเคœी = 1, เค“เคชीเคŸी = -เค“ เคœเคฌ เคฎैं เค…เคชเคจे เคจिเคท्เคชाเคฆเคจ เคฏोเค—्เคฏ (xxx) เคชเคฐ what เค•เคฎांเคก เค•ो เคšเคฒाเคคा เคนूँ เคนเคฎ เคจเคนीं เคšाเคนเคคे เคนैं เค•ि เคจिเคฎ्เคจ เคชंเค•्เคคि เค›เคชी เคœाเค। เคœाเคจเค•ाเคฐी เคฌเคจाเคँ: เค…เคœ्เคžाเคค เคนोเคธ्เคŸ: / เคจिเคฐ्เคฏाเคค / เค˜เคฐ / เคฎुเคฐुเค— 2 / เคเคธเค†เคˆ / เคฆेเคต, เคกीเคฌीเคœी = 1, เค“เคชीเคŸी = -เค“ เคฎुเคे เคชเคคा เคจเคนीं เค•ि เค•िเคคเคจा เคชुเคฐाเคจा เคนै เคช्เคฐोเค—्เคฐाเคฎเคฐ เคจे เคเคธा เค•िเคฏा เคฎैं เค‡เคธे เคจिเค•ाเคฒเคจा เคšाเคนเคคा เคนूं। เคฏเคน เค•ैเคธे เค•เคฐเคจा เคนै? Src เคซ़ाเค‡เคฒ (เคธी ++ เค•ोเคก) เคœीเคธीเคธी เค•ा เค‰เคชเคฏोเค— เค•เคฐเค•े เคธंเค•เคฒिเคค เค•िเคฏा เค—เคฏा เคนै เคฏे เคคाเคฐ เคเคธเคธीเคธीเคเคธ เคธंเคธ्เค•เคฐเคฃ เคธूเคšเคจा เคชैเคŸเคฐ्เคจ เค•े เค…เคจुเคฐूเคช เคนोเคคे เคนैं เคœो เคฒเค•्เคท्เคฏ เคซाเค‡เคฒ เคฎें เคชाเค เคœाเคคे เคนैं। เค†เคช เคฌाเค‡เคจเคฐी เค•ो เคชैเคšिंเค— เค•เคฐเค•े เค…เคตांเค›िเคค เคเค• เค•ो เค›ू เคธเค•เคคे เคนैं เคฒेเค•िเคจ เคธोเคฐ्เคธ เค•ोเคก เคธे เค‡เคธे เคจिเค•ाเคฒเคจे เค•ा เคธเคฌเคธे เค†เคธाเคจ เคคเคฐीเค•ा เคนै। เคฏเคน "@ (#)" เคŸोเค•เคจ เค•े เคฒिเค เค†เคธाเคจी เคธे เค–ोเคœा เคœा เคธเค•เคคा เคนै। เค‰เคฆाเคนเคฐเคฃ: char sccsid [] = "@ (#) เคœाเคจเค•ाเคฐी เคฌเคจाเคँ: เค…เคœ्เคžाเคค เคฎेเคœเคฌाเคจ: / xx / yyy / zzz / vv / www, DBG = 1, เค‘เคช्เคŸ = -O ";...

java - Safe Publication without happens-before? Anyhow besides final? -

เคœेเคธीเคชी เค•े เค…เคจुเคธाเคฐ (16.2.2 เคธुเคฐเค•्เคทिเคค เคช्เคฐเค•ाเคถเคจ): เคเคธा เคนोเคคा เคนै-เคชเคนเคฒे เค—ाเคฐंเคŸी เคตाเคธ्เคคเคต เคฎें เคเค• เคฎเคœเคฌूเคค เคธुเคฐเค•्เคทिเคค เคช्เคฐเค•ाเคถเคจ เคฆ्เคตाเคฐा เค•ी เค—เคˆ เคฆृเคถ्เคฏเคคा เค”เคฐ เค†เคฆेเคถ เค•े เคฎเคœเคฌूเคค เคตाเคฆे เคœเคฌ เคเค•्เคธ เค•ो เคธुเคฐเค•्เคทिเคค เคฐूเคช เคธे เค เคธे เคฌी เคฎें เคช्เคฐเค•ाเคถिเคค เค•िเคฏा เคœाเคคा เคนै, เคคो เคธुเคฐเค•्เคทिเคค เคช्เคฐเค•ाเคถเคจ เคจे เคเค•्เคธ เค•ी เคธ्เคฅिเคคि เค•ी เคฆृเคถ्เคฏเคคा เค•ी เค—ाเคฐंเคŸी เคฆेเคคा เคนै, เคฒेเค•िเคจ เค…เคจ्เคฏ เคšเคฐ เค•ी เค…เคตเคธ्เคฅा เคฎें เคธे เค เค•ो เค›ुเค† เคนो เคธเค•เคคा เคนै เคฒेเค•िเคจ เค…เค—เคฐ เค•เคคाเคฐ เคชเคฐ เค เคกाเคฒเคคे เคเค•्เคธ เคนोเคคा เคนै- เคฌी เคธे เคชเคนเคฒे เค‰เคธ เค•เคคाเคฐ เคธे เคเค•्เคธ เคฒाเคคा เคนै, เคจ เค•ेเคตเคฒ เคฌी เค•ो เคฐाเคœ्เคฏ เคฎें เคฆेเค–เคคे เคนैं เค•ि เค เคฏเคน เค›ोเคก़ เคฆिเคฏा เคนै (เคฏเคน เคฎाเคจเคคे เคนुเค เค•ि เคเค•्เคธ เคฌाเคฆ เคฎें เค เคฏा เค•िเคธी เค”เคฐ เค•े เคฆ्เคตाเคฐा เคธंเคถोเคงिเคค เคจเคนीं เค•िเคฏा เค—เคฏा เคนै), เคฒेเค•िเคจ เคฌी เคฆेเค–เคคा เคนै เคนेเคกเค‘เคซ เคธे เคชเคนเคฒे เคธเคฌ เค•ुเค› เค (เคซिเคฐ เคธे, เคเค• เคนी เคšेเคคाเคตเคจी เค•े เค…เคงीเคจ) เคฎैं เคธोเคš เคฐเคนा เคนूँ เคœเคฌ เคธुเคฐเค•्เคทिเคค เคช्เคฐเค•ाเคถเคจ เคฌिเคจा เคเคธा เคนो เคธเค•เคคा เคนै-เคชเคนเคฒे, เค…เคฐ्เคฅाเคค् w / o เค…เคธ्เคฅिเคฐ / เคชเคฐเคฎाเคฃु เคฏा เคคुเคฒ्เคฏเค•ाเคฒเคจ (เคฏा เคเคเค•्เคธा เคœैเคธे เคšौเค–เคŸे เค•े เคœเคฐिเค เคœो เค•िเคธी เคญी เค…ंเคฆเคฐ เคธूเคšीเคฌเคฆ्เคง เคนै)? เคเค• เคฎाเคฎเคฒा เค…เคชเคฐिเคตเคฐ्เคคเคจीเคฏ เคตเคธ्เคคु เคฎें เค…ंเคคिเคฎ เค•्เคทेเคค्เคฐ เคนै, เคœเคนां เค†เคช เค‡เคธे เค•िเคธी เคญी เค…เคคिเคฐिเค•्เคค เคšเคฐเคฃ เค•े เคฐूเคช เคฎें เคช्เคฐเค•ाเคถिเคค เค•เคฐ เคธเค•เคคे เคนैं। เค•्เคฏा เค•ोเคˆ เค…เคจ्เคฏ เคฎाเคฎเคฒा เคนै? UPD: 3.5.3 เคชुเคจः เคชเคข़ें। เคธुเคฐเค•्เคทिเคค เคช्เคฐเค•ाเคถเคจ เคฎुเคนाเคตเคฐे, เคเค• เค”เคฐ เคฎाเคฎเคฒा - ...

c# - why allow extension methods on null objects? -

What does it mean to allow extension management on empty objects? This is checking me for an empty object in an unnecessary expansion method. AFAIK, I can not understand this? Please explain. Extension methods are syntactic Chinese language of C # language, they call normal static method in compiled time in IL code But do not know anything about a static method parameter.

How to prevent saving unusual HTML entities from PHP form? -

Every now and then, I save unusual data from my PHP form to the database that looks like this: Mr. Smith & amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; Amp; What could be the reason for this, and there is a better way to remove entities from using preg_replace , because PHP decoded functions are completely Does not completely decode from? itemprop = "text"> I will suggest viewing the code processing data from the form entry in the database. If you are monitoring data appearing on a web page, then htmlentities ($ var); If you are just cleaning it for security purposes or simply mysql_real_escape_string ($ var) . If everything fails to post the code and we will get a look.

sql - Data Import -Live To Development -

How can I develop data from a live by using a script? Thanks Run the script on the live server and on the development server. You may need to use something like that. I used it before copying data between databases.

linux - why does my asm program run infinitely -

เคฎैंเคจे เคเคฎ्เคฌेเคก เคจाเคฎเค• เค•ाเคฐ्เคฏเค•्เคฐเคฎ เคฌเคจाเคฏा เคนै เคธ्เคฐोเคค เค•ोเคก เคจीเคšे เคนै เคธเคฎเคธ्เคฏा: เคฎुเคे เคจเคนीं เคชเคคा เค•ि เคฏเคน เคช्เคฐोเค—्เคฐाเคฎ เค•्เคฏों เค…เคจเคจ्เคค เคฐूเคช เคธे เคšเคฒाเคคा เคนै। เคฎेเคฐा เคตिเค•ाเคธ เคชเคฐ्เคฏाเคตเคฐเคฃ linux, emacs, assembly, x86, at & amp; t เคตाเค•्เคฏเคตिเคจ्เคฏाเคธ #usage: เค‡เคจเคชुเคŸ เค†เค‰เคŸเคชुเคŸ เคธंเคฆेเคถ เคเคฎ्เคฌेเคก เค•เคฐें # เค‡เคธ เคช्เคฐोเค—्เคฐाเคฎ เค•ो เค‡เคจเคชुเคŸ เค•े เคŸेเค•्เคธ्เคŸ เคฎें เคเคฎ्เคฌेเคก เคธंเคฆेเคถ เค”เคฐ เคเค• เค†เค‰เคŸเคชुเคŸ เคซाเค‡เคฒ เคฌเคจाเคคे เคนैं # example1: #input: "abcde" #message: dc #output: "abcDe" # Example2: #input: "abcde" #message: bcd #output: "aBCDe" .section .data .section .bss .lcomm buff, 1 .section .text .global_start_start: เคช्เคฐाเคฐंเคญ: movl% esp,% ebp movl $ 0,% edi subl $ 8,% esp # เคจिเค•ाเคธ_เคช्เคฐोเค—्เคฐाเคฎ open_r เคชเคฐ เคง्เคฏाเคจ เคฆिเคฏा เค—เคฏा เคนै: $ 5,% เคเคเค•्เคธ movl 8 (% เคˆเคฌीเคชी),% ebx movl $ 0,% ecx movl $ 0666,% edx int $ 0x80 save_rfd: # เคธेเคต เคŸू -4 (% เคˆเคฌीเคชी) movl% eax, -4 (% เคˆเคฌीเคชी) open_w: movl $ 5,% eax movl 12 (% ebp),% ebx movl $ 03101,% ecx movl $ 0666,% edx int $ 0x80 save_wfd: # เคธेเคต เคŸू -8 (% เคˆเคฌीเคชी) movl% eax, -8 (% เคˆเคฌीเคชी) เคชाเคถ: เค†เคฐเคเคซเคกी_เค†เค‡เคŸ: $ 3,% เคเคเค•्เคธ เคเคฎเคเคฒเคเคฒ -4 (...

uikeyboard - ipad onscreen keyboard origin -

Image
I want to know what the exact origin of the onscreen keyboard on the iPad is whether it is dynamically used by the language we use Does it change or not? I assume that I try to make frame for UITEXTVE in my app. Is this the difference in the origin or behavior, if I use a wireless external keyboard or dock an external keyboard ?? This is my app's screenshot when I use the external keyboard: And when I use the onscreen keyboard: Yes, you're the height of the keyboard The language used is different depending on it. As far as the height is achieved, I suggest checking out: Not sure if this question should be considered as a duplicate.

php - MVC best practice question: producing XML data extracts from a model? -

I am using an MVC framework to develop an app that produces data extracts in XML format. An extract file is produced per hour using a cron. I have a model called DataExtrad, which stores the date range to be removed. There is no controller for this because it is not part of the front end. Can someone advise on the best practice here? Is it ok to parse the XML view directly when extracting the extract file? hmm .. the way I see it, "I can see the report through the report Does not want ", it means that it is OK to break the MVC pattern.

asp.net mvc 3 - MVC 3 does not render editor template for object -

I have an MVC 3 application, which should allow the user to display and edit different types of values. Responsible for doing this is definitely not known about the type of value (it has been declared as an object), but I want to provide it the correct editor template. I have it right now: & lt;%: HTML.EditorFor (n = & gt; attribute value type)% & gt; Specialty. Value type is of type object when ValueTyped type is Bull, MVC returns a check box (which should have been done). However, as soon as ValueTyped is a different type (so far I've tried int, double, string), MVC does not render anything at all. How do I make MVC common templates in int, double, string or whatever is included in my ValueTyped? Please note: I do not want to generate a text box myself, but I asked MVVC to decide which editor template should be used. You can try to pass the name of editor editor clearly as a second argument and pass it Are there. Depending on your dynamic condition, i...

dynamic - Creating screens and underlying data access layer dynamically on Android -

I want to allow the user to dynamically create a "custom screen" by selecting from the current set field on the runtime I i.e., everything on the phone should be done on the phone. For example - the current group of the field = {name, location, picture, age} . User A field wants to create a new screen with name, location and age. And User B just wants to put a screen with name and picture. This screen must be continuous and should be able to save, query, and edit information in the local database on the phone. Any help on how to achieve this in Android will be appreciated. Thanks You want to make these sequences dynamically in Java ( Not using the layout) I will put some type of XML schema together, and then save it to the DB or device. After that you can do the following: // while the phonetic code (xmldoc is not empty) {see v = null; If (XML calls to create a text view) {v = new text view (this); ...} and if (XML tells to create an image view) {v ...

winapi - Win32 Console -- Backspace to Last Line -

I am writing an order interpreter such as BASH, and a \ after a new line Continuity of input stream; How do I implement it in Win32? If I use console mode with ENABLE_LINE_INPUT , then users can not press backspace to go back to the previous line; Windows prevents it from doing this, but if I have not set ENABLE_LINE_INPUT , then I need to manually move the cursor again, which is rather tedious that (1) the user has input Stream has been redirected, and (2) it may possibly by any means is my new line and eat it too? Edit: If I need indexed CSRSS port requests for this, then I'm still interested! Assume that you want to run it in a window, such as the command prompt, instead of the full screen, the default As you can, you can create a GUI application with a large textbox. Users will type in the text box, and whatever you entered, you can output the same box (effectively the Win32 console is emulated). Whatever rules you want, how the console behaves is en...

import - Java error code? -

What is the error: The array list can not be sorted in a way i.e. in Dr. java ? You probably have to add the line import java.util ArrayList; Post the code to make sure in your source file.

asp.net mvc - Modify Request to a POST -

I have an MVC 2 app and errors are occurring when I try to redirect to the following method; [ValidateAntiForgeryToken] [transaction] [AcceptVerbs (HttpVerbs.Post)] Edit Public Functionality (Payment Payment, Payment Payment Payment, String Exchange ID, Bull Manual, Int First Payment IID, Int? ExchangeEventId, bool addOnly) { Can anyone change any post to 'simulate' anyway and go to the right action because I have a post property? ? No, you can not redirect actions that require post action. After the 301 status code is sent to the new location by the server, the client is redirected by using the GET verb.

c++ - tokenizing a string of data into a vector of structs? -

I have the following string data, which is being obtained through a TCP winsock connection, and an advanced tokenization , In the vectors of structures, where each strait represents a record. std :: string buf = "44: William: adama: Commander: Content \ n33: Laura: Roslin: President: Data \ n" struct table_t {std :: string key; Std :: string first; Std :: string final; Std :: string rank; Std :: extras; }; Each record in the string is delimited with a carriage return. My attempt is to split records, but so far the fields are not being divided: tokenize zero (std :: string & str, std :: vector & lt; String & gt; record) {// Skip start at delimiter Std :: string :: size_type lastPos = str.find_first_not_of ("\ n", 0); // Find the first "non-delimiter" Std :: string :: size_type pos = str.find_first_of ("\ n", last pauses); Whereas (std :: string :: npos! = Pos || std :: string :: npos! = LastPos) {// token found, add it to ...

java - SWT, packaging jar -

I have made a simple jar for my java-application (with SWT). In Netbeen, it starts to be normal, because it should be. But when I java -jar [jarName] so I'm starting with me this error: Java Vrgarnamkjr "thread" main " exceptions in Java .lang.NoClassDefFoundError: due to org / Eclipse / SWT / widgets / Composite roxed.Main.main (Main.java:15): org.eclipse.swt.widgets.Composite: java on java.net. lang.ClassNotFoundException. $ 1.run on java.net.URLClassLoader.findClass (URLClassLoader.java:190) java.security.AccessController.doPrivileged on java.lang.ClassLoader.loadClass (Native method) (URLClassLoader.java:202 ) (ClassLoader.java URLClassLoader: 307) sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:301) on java.lang.ClassLoader.loadClass (ClassLoader.java:248). ..and 1 and I downloaded SWT from the pack jar (linux creation) and added this folder to the project. Say to someone, the reason could be that I can not carry on this IDE? upda...

php - How to compare two 64 bit numbers -

In PHP, I have a 64 bit number that is necessary to complete the task. A second 64 bit number represents tasks that have been completed: $ pack_code = 100111110010000000000000001111110100111110010000000000000001011111 $ veri_code = 0000000000000000000000000000011100000000000000000100000000000000000000000000000000111110 I have two comparisons To perform and provide one percent of the tasks, the whole figure could loop through both, and found how many bits are set, but I do not know it is the fastest way? Assuming that these are actually strings, maybe something like this: $ pack_code = '1001111100100000000000000011111101001111100100000000000000011111'; $ Veri_code = '00000000000000000000000000011100000000000000000000000000000000111110'; $ Matches = array_intersect_assoc (str_split ($ pack_code), str_split ($ veri_code)); $ End_matches = array_intersect ($ matches, array (1)); $ Percent = (count ($ end_match) / 64) * 100

android - IO.Exception in the Logcat but I can see the app running -

เคธाเคฐ्เคตเคœเคจिเค• เคตเคฐ्เค— เค•े เคช्เคฐเคฏाเคธ เค•ा เคตिเคธ्เคคाเคฐ เค—เคคिเคตिเคงि {TextView result1; /** เค—เคคिเคตिเคงि เคชเคนเคฒी เคฌाเคฐ เคนोเคจे เคชเคฐ เคฌुเคฒाเคฏा เค—เคฏा। * / @Override เคธाเคฐ्เคตเคœเคจिเค• เคถूเคจ्เคฏ OnCreate (เคฌंเคกเคฒ savedInstanceState) {super.onCreate (savedInstanceState); setContentView (R.layout.main); เคฒॉเค—। I ("เค‰เคค्เคคเคฐ เคช्เคฐाเคช्เคค เค•เคฐें", "เคฌाเคนเคฐ เคชเคฐिเคฃाเคฎ"); เค•ोเคถिเคถ {เคเคšเคŸीเคŸीเคชी เค•्เคฒाเค‡ंเคŸ เค•्เคฒाเค‡ंเคŸ = เคจเคฏा DefaultHttpClient (); เคธ्เคŸ्เคฐिंเค— getURL = "http://10.0.2.2:8888/mainserver1/androidservlet"; เคเคšเคŸीเคŸीเคชीเค—ेเคŸ เคช्เคฐाเคช्เคค เค•เคฐें = เคจเคฏा เคเคšเคŸीเคŸीเคชी เค—ेเคŸ (เคนोเคฎเคธ्เค•्เคฐीเคจ); เคเคšเคŸीเคŸीเคชी เค‰เคค्เคคเคฐเคช्เคฐेเคทเคฃ เคช्เคฐเคคिเค•्เคฐिเคฏाเค—ेเคŸ = เค•्เคฒाเค‡ंเคŸ। เคเค•्เคธเค•्เคฏूเคŸ (เคช्เคฐाเคช्เคค เค•เคฐें); HttpEntity resEntityGet = responseGet.getEntity (); เค…เค—เคฐ (resEntityGet! = เคถूเคจ्เคฏ) {InputStream = resEntityGet.getContent () เคนै; เคธ्เคŸ्เคฐिंเค— s = is.toString (); เคฌाเค‡เคŸ [] เคฌाเค‡เคŸ्เคธ = s.getBytes (); ObjectInputStream = เคจเค ObjectInputStream เคฎें (เคจเคˆ เคฌाเค‡เคŸเค…เคฐेเค‡เคจเคชुเคŸเคธ्เคŸ्เคฐीเคฎ (เคฌाเค‡เคŸ्เคธ)); เคธ्เคŸ्เคฐिंเค— เคชเคฐिเคฃाเคฎ = (เคธ्เคŸ्เคฐिंเค—) in.readObject (); result1 = (TextView) findViewById (R.id.result1); result1.setText (เคฐों); result1.findViewById (R.id.result...

ruby on rails - Heroku app breaks when adding Amazon Simple Storage Service (aws-s3) -

My app works on everybody until I add "Mani Avens-S3": need = & Gt; 'aws / s3' "to Gemfile (I have tried to do this only with the first part). As soon as I add it and I am trying to "Herokak Rake DB: Migrate", I get this error "The rack has been aborted! There is no such file to load. - Rail / All / App / Rackfile: 4 " This works fine with aws s3 on my local server, and until I change the gemfile, Works on fixing Any thoughts? edit this is entirely Gemfile source 'http://rubygems.org' mani 'rail' gem 'devise' Mani 'omniauth' gem 'Nifty generator' gem 'paperclip' gem 'sqlite3-ruby',: requirement => 'Sqlite3' Mani 'A VS-S3' Group: Evolution, Test Mani 'Annotate-Model' and ' > It's going to sound vaguely, but I remember something about the need to specify the version of AVS-S3, which I know. It was trying to get the S3 to work prope...

sql - Informix - update SET column with results from a subselect -

I have a table with the collection column. I want to do a subselect which gives several integers and results in that collection column, although I can not get a syntax to do this through SQL. I did this by writing a SQL process that does the same thing (the result of SELECT and return variables in the SET variable), but I'm trying to do this without the function. Can it be done? First of all, I create a temporary table: create template table 1 (id integer, cola2t (not to tap INT)) Then I fill it with test data: Include table 1 values ​​(1); Insert Table 1 (id) values ​​(2); And now it works: UPDATE table1 SET col2 = SET {1,2}; ... but I am trying to do this and it does not work: UPDATE table1 SET col2 = (Selection ID from the table 1) WHERE id = 1; returns this error: [error code: -9632, SQL state: IX000] does not match the value column type (cola 2) is. Adding ST types in pure SQL is a pain. You should be able to do this: Table 1 SET call2...

ruby - How do I implement database backed autocomplete fields in my rails app? -

I am looking to use an autocomplete field where users begin typing and suggested styles A list appears. First of all, I want to prepare DB with a list of styles, then it is to be used in this autocomplete form for these people. I'm not really looking to make the autocomplete completely, rather use the thing which is already out ... so suggestions are welcome. I think what you want to do is put your list list of styles in seed.rb To give you so that you can list rake db: seed in your app, when you can deploy There is an Asianist to lift you for speed: You will end up with something like this: # app / model / style rb class style & lt; ActiveRecord :: Base and #bj RB ["Techno", "New Wave", "Death Metal", "Dubstep"] Do each. Style | Genre.create! (: Display_name = & gt; style) end Autocomplete will be easy to handle, just use this plugin, and add a generator controller that makes Jason essential.

c# - Catching click event only in combobox's editable area -

I am trying to use C # WinForms combo like the following: a) Regular use: If the "down arrow" button is pressed, the dropdown area opens and the user selects the desired object - there is no problem .. b) Advanced Usage: If the user is editable If you click on the controls of the dropdown, another dialog opens with the advanced selection mechanism. Land. Currently, I am calling advanced dialog in the Combalbox onclick event handler. However, regular use of dropdownbox is no longer usable. The advanced dialog is open, even if you click on the drop down arrow only. I was not able to find another potential event that I could use, so I think that I should check on the user's click event handler in the editable portion of the control or on the control button How to do any ideas there effectively? There are two incidents of interest; Dropdown and click "Normal" handling the dropdown in the way. For the click, you can actually try to handle the mouse...

python - Django - consume XML - RESTful -

I have a dragon script running on a local dragon. It's not an enterprise app or anything, just something like this With whom I am playing. This "bottle" library uses the app basically uses an XML file (locally or stored online) which have some unique coordinates with their own unique ID, for example mysite.com/23 The length of the element will bring back / long I'm sure you are familiar with REST with everyone at this level. Now, I want to do it online, but there is a problem finding a host that supports "bottle". However, I've got a host that has installed the demo. So, my question is, how difficult would it be to convert the following code from a bottle to a dengue? And can someone give me some signs? I have tried to use common dragon libraries. Thank you. Import from xml.dom.minidom import parseString to bottle import path, import xml import urlib file = open ('Myfile.xml', 'r') data = file.read () dom = parseString (data) @ ...

c# - StructureMap - Get constructor dependencies via name -

How can I get constructor dependencies based on my name when the class itself does not require concrete implementation by name is. / P> public class PriceValidator: IPriceValidator {Private Reddone IEnumerable & lt; IPriceValidationRule & gt; _priceValidationRules; Public Prize Provider (IIMMERABLE & LT; IPRCI Validity Rules & gt; Value Validation Rules) {_priceValidationRules = Value Validation Rules; } Public Bull ISPCIC Adial (Decimal Value) {Return _ Prose Validity Rule.All (Valuidator => Price Viaductor. ISPras Valid (value)); }} Call: _priceValidator = ObjectFactory.GetInstance & lt; IPriceValidator & gt; (); So I want a solid implementation of IPriceValidator, but specific (by name) validation rule. Edit: My rules: How can I use the same rules with different names? So when I say, give me all the examples named "X", do I want to get the MaxPrice validity rule? I would recommend making my own factory, this factory ...

ftp - Dealing with whitespace in cURL -

I am trying to use cURL to transfer files to an FTP server, but for my life I can not understand how to deal with white locations in my directory name, for example, I'll try the following code: c: curl \ curl -tc: \ document and Settings \ outputfolder \ temp1.txt ftp://ftpsite.com/ - username: password but it "with curl" Punjab gives: Can not open 'C: \ Documents'! " I thought this is a problem with white space, so I tried to change it with% 20: c: \ cURL \ curl -tc: \ document% 20 and% 20 Settings \ outputfolder \ temp1.txt ftp://ftpsite.com/user User Name: password but then 'responds with curl: can not open' C: \ document% 20 and% 20 settings \ outputfolder \ temp1 .txt '!' So, when I'm trying to specify the folder and file that I want to move, how can I go about dealing with the white space spaces? See wrapping your file names in double quotes. Ie: c: \ curl \ curl -T "c: \ documents and settings \ outp...

python - Django 1.3 static files and displaying content using custom views -

A small problem in displaying the image using custom ideas. I used it in the context of the request as needed, although the image is not visible. My model uses the thumbnail to name a thumbnail in a folder called "folds" which is under static / myapp / timgs Fixed file directory shows css / images properly , But when this custom view image is not displayed. I have tried to list specific folders in this type of setting. With no luck. STATICFILES_DIRS = (os.path.join (PROJECT_DIR, 'static / myapp /'), ("time", "/ time"),) I would be very grateful if someone would be enough to explain something that is wrong, maybe give a simple example Thank you .. View / Template DIFF Function (request): whatever = ____. ObjectsL () Return Render_to_prresp ('Template', Whatever {: whatever}: whatever,} context_instance = RequestContext (request)) whichever is%} in gt; {{Whatever.text}} & lt; / Li & gt; & Lt; Li & gt; ...

java - Spring MVC - handle exception with @ExceptionHandler doesn't render new view -

I think against a border of the spring - I have a simple matter - I am simulating an exception one Service method: @RequestMapping (method = RequestMethod.POST) public string register (@RequestParam ("mail") string mail) {New IllegalStateException throw (); } and trying to handle the new request via: @RequestMapping (value = "/ exception_location") @ExceptionHandler (IllegalStateException .class) Public String HandleException (IllegalStateException Pre) {Return "exception_view"; } My web Xml: & lt; Error page & gt; & Lt; Exception Type & gt; Java.lang.IllegalStateException & lt; / Exception type & gt; & Lt; Location & gt; / Exception_location & lt; / Location & gt; & Lt; / Error page & gt; What happens is that the operation is triggered, but the exception does not provide the view on the client. Is spring configuration okay or does it require access to web.xm? Am I missing something whic...

c#: get class member by name (reflection) -

I have two lists (list) l1 & amp; L2 I'm going out of the list name which I want to use (say l1). How can I get the requested list? Do I need to use getMember method? Thanks You can use reflection, but it is quite expensive . Here is a question of how to do this: Given that list name is known at the time of compilation, you can consider implementing a method which lists Accept the string name of and gives a reference to the appropriate list using the switch statement or if statement. Fixed IList FindList (name of string) {if (name == "L1") {return L1; } And if (name == "l2") {return l2; } And leave the exception ("list" + name + "not found"); } Compared to reflection, this will be faster on runtime, but maintenance is required (if you have enough lists to assure this effort, then you can generate that method Code).

PHP Simple HTML DOM Parser find string -

I am using PHP Simple Dome Parser but there is no functionality in searching for text. I have to search for a string and get the original ID for it. Originally behind normal use How do anyone know? $ D = new DOMDocument (); $ D & gt; LoadXML ($ XML); $ X = new DOMXPath ($ d); $ Result = $ x-> Rate ("// text () ([., '617.99']] / ancestor :: * / @ id"); $ unique = null; ($ I = $ result-> Length -1; $ I> = 0 & amp; amp; item = $ result-> item ($ i); $ i -) {if ($ x-> gt; Query ("// * [@ id = "Addlashes ($ item-> values)." '] ") -> gt; length == 1) {echo' is unique ID '. $ Item- & gt; value" \ n ". $ Unique = $ Item- & gt; value; break;}} if (is_null (unique $)) 'no unique ID found' echo;

google app engine - 3 Models Entity Joins in AppEngine Python -

I have read a lot about how I need to re-apply the institutions for the development of APN Egen and need to be involved, and I still know how to do this: I have 3 entities, many tweets and users follow the many tags in tags Please. I would like to receive all those tweets that are tagged with tags that follow a user. I thought destroying the tag unit and using StringListProperty might work in this form: Tweets.all ( ). Filter (รข ???? tag INA ????, user.tags) However, the list has been indicated as a priority, it does not work! Because one query can not compare two lists. A query can not compare two list values. There is no way to test two lists for equality without having to test each element separately for membership. How to organize institutions with any thought so that I can answer this question: You have two lists Are not trying to compare - you are investigating the intersection, the query that you write will do this with a major warning: T...

Hiding rows related to empty rows using jquery -

I have a table structure to display such terms: & Lt; Table & gt; & Lt; Tr & gt; & Lt; Td> Post title & lt; / Td> & Lt; / Tr & gt; & Lt; Tr & gt; & Lt; Td> Postal body & lt; / Td> & Lt; / Tr & gt; & Lt; / Table & gt; I want to hide both lines if the body content is empty. How can I get it using jquery? To mention that the extracted images have been removed, if they have not loaded correctly, then $ ("img"). Error (work () ($ (this) .remove ();}); Check the source that the html is still there, so it is not considered empty. this trick: $ ('td'). Filter (function () {returns $ .trim ($ (this) .html ()) == '';}). Closest ('.... tr') last () delete () end () delete (); The problem with : Empty is that it should be completely empty - no white space. Also note that the page Changing through Javascript will not affect the page source, which represents the...

php - Selecting new records by datetime -

I am trying to select the records that have a readet within the previous year $ step = date ('YMD HK: I: S', MKTMT (0, 0, 0, date ("M"), date ("D"), date ("Y") - 1)); $ Sqlstmt = "SELECT * FROM #__mytable WHERE id =". $ Uid "And recdate>" $ Goodate '' '; But I'm not getting any records. What am I doing? $ sqlstmt = "select * to #__mytable WHERE id =". $ Uid. "And recursive & gt; ADDDATE (CURDATE (), INTERVAL-1 YEAR);