Posts

Showing posts from March, 2013

java - How can you set an actionlistener on the ok option of a jdialog? -

Hi, I want to trigger some action when jdialog's OK button is pressed, I know that you can do this int rep = JOptionPane.showConfirmDialog (null, pangesfac, "gestion des chambres a facturer", joptionpan. Okancalaya OPTION, joppenpain.pLAIN_MESSAGE); If (rep == JOptionPane.OK_OPTION) {// to take action} But in my case, I want an external controller to take care of those things (my code by MVC Is structured) when the OK button is pressed. So how can you install an action listener on the right button? It is possible but it is not possible to add an ActionListener on the OK button Using PropertyChangeListener. An example is shown on this page: However, you may want to reconsider your design, without having to capture the event, even after passing the results from the resolution pen to your controller. You can.

Simple ruby: adding strings / results from get? -

Getting the full name puts' Hello, and what's your name? 'Name = gets.chomp says' your first name is '+ name +'? What a beautiful name! 'What is your second name?' The name = gets.chomp puts' Your second name is' + name + '. 'What is your last name?' Name = gets.chomp ', then your last name is:' + name + '.' I am unable to get the full name at the end. puts 'your full name:' name + name + name '.' ^ Whenever I try to do it, it seems wrong. Do I have to make a variable after each name? It seems that you have trouble in the concept of a variable. There is a condition in a variable memory. Store any kind of data. You can see the data using variables by using the name of the variable. Think of it as a box with labels, for simplicity, suppose you can put the same thing in the box. When you enter the line name = gets.chomp , then what you are saying is basically "store this in...

html - How Can I Use Functions in PHP Pages with Forms? -

On my PHP webpage I have an html form, there are four input boxes and I am adding new data with them. I want to do this, when I type something in the input box 1, the input box 2 will be the same, but instead of the place "-" with it For example when I say "how are you" in the input box 1, the input box 2 should be "how are you" .. how can i do this? : / Simply add this javascript to your page Value = document.getElementById ('box1'). Value.replace ('', '-')}

ruby on rails - Application error on deploy heroku -

My app works fine in the localhost, but when I deploy it on its lock and attempt to create a new order I get this error: / p> 2013-03-20T21: 26: 02 + 00: 00 app [web.1]: 18/9/04/09 for "order / new" received 2013-03-20 at 21:26: 02 +0000 2013-03-20T21: 26: 02 + 00: 00Ap [Web.1]: New as Processing HTML by Order Controller # 2013-03-20T21: 26: 02 + 00: 00P [Web.1]: Landout / App (49.4m) 2013-03-20T21: 26: 02 + 00: 00Ap [Web 1] Order / New HTML provided under ARB: Complete 500 internal server error in 2013 in 62 MS 2013-03-20T21: 26: 02 + 00: 00Ap [Web.1]: 2013-03-20T21: 26: 02 + 00: 00Ap [Web 1] : Action View :: Template :: Error (/ app / app / idea / order /new.html.erb31: unknown regexp option - Tabl 2013-03-20T21: 26: 02 + 00: 00 ap [Web.1 ]: /app/app/apps/orders/new.html.erb:33: Unusual String File 2013-03-20T21: 26: 02 + 00: 00Ap [Web 1]: / app / app / views / orders / New.html .rb 33: syntax error, unexpected end, expectation of keyword_and): 2013-03-20T21: 26: 0...

Enabling IntelliTrace for powershell based Azure deploy -

When I use the blue package from PowerShell using the new -Ezoor department command, how do I enable the intelliase Can i do Grant's blogpost pre-date VS2012 where we added powers control on IntelliTrace. (I'm a Dev Manager for Intelliates) This gives you more options in VS 2012. IntelliTrace is licensed in such a way that you can collect data wherever you want with the new remote collector. You can only open those files in VS Ultimate First of all You will have to hold the standalone collector: This will leave a cab folder where you will have all the bits needed for the collection including power shale. You can now copy the tees, bits in your blue box and then use these instructions to collect: I really like IntelliTrace with the new Azure Deposit But the bits inside the cab file are made exchable, I think you just need to include IntelliTrace bit included in the package being deployed. However it will not turn them on to gather logs from server explorer in VS...

Java client serv -

I basically have to program a Java client / server, where the client asks the server to add or multiply . The client sends an object to the server that contains the requested operation (additional or multiplication) and is a sequence of the server that is to work on the server (addition or multiplication). Numbers are sent from a user-written console. The server receives the object, calculates and answers. This is the code I have so far. I do not know how to add and add objects, send it to a server, send the number, so that the server can take action on them. package esercizio3; Import java.io * *; Import Java.net *; Public class client {public static zero principal (string [] args) throws an exception {socket communication = new socket ("localhost", 8888); BufferedReader Feedback = New BufferedReader (New InputStreamReader (communication.getInputStream ())); PrintWriter request = new PrintWriter (communication.getOutputStream ()); BufferedReader stdIn = new Buffered...

java - How to create a "30 second countdown timer"? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैं एक साधारण कैसे लिखूं या तो एंड्रॉइड में उलटी गिनती टाइमर? एंड्रॉइड के लिए, मान लें कि टाइमरडिसप्लेड नामक टेक्स्टएडिट फ़ील्ड है जो 30 सेकंड से लेकर 0 तक काउंटडाउन प्रदर्शित करेगा। आप का उपयोग करके टाइमर नियंत्रण करने के लिए जावा टाइमर एपीआई का उपयोग कर सकते हैं java.util.Timer कक्षा टाइमर

regex - Need a regular expression to return text from last "/" to last "-" -

I just can not figure out how to find out in the string Should be occupied there-on my . This will: (?!! *? / ). * (? = -) Depending on your language, you should avoid losing / : 1. (?!. *? /) - look forward to the negative It will begin collecting the letters after the last `/` 2. * - looks for all the characters 3. (? = -) - Proceed to positively. This means that Step 2 should be edited only after the last `-` comment: now / and the last - In the results

fold - Foldr issues (Haskell) -

I am trying to convert from a table that is type of ([Char, Int]) tab2str :: table for a string - & gt; String (which adheres to a specific formatting pattern.) I am using plateau (as the title means), but I have to use the exact function to do something Problems are coming - that is, my errors look like this: tab2str xs = foldr (++) '' $ map (\ char count -> 4 ++ ' : '++ show calculation ++' N ') xs Output table should be each letter, one colon, then \ n on one Can be a string: Tab 2 Strct Test 1 == "F: 1 \ n: 1 \ nl: 1 \ nd: 1 \ nr: 1 \ n" Where test1 == [(F, 1), (O, 1), (L, 1), (D, 1), (R, 1)] Any help has been received with gratitude. After the following minor fixes: tab2str xs = foldr (++) $ Map (\ (char, count) -> & gt; show four ++: "++ show count ++" \ n ") xs one ?? ?? But whatever you want does not produce that much. You might think this better: tab2 String table = CONSA...

Openerp 6.1 put product category in sale order line -

I want to show the product category in the sales category. order. I wrote. This button shows the category button under the group by clicking on the button, I get the following error and I do not know how to solve the bug: specified by group and group_def._classic_allon, "group by group" Should be in the field with regular database-based areas (no functions or related fields), or store = True "AsserttionError: Field field in 'Grouped' regular database -Cyome field (a function or associated field) or store with field should be function = true This is my code: OSV import field From, OSV & lt; Code & gt; Class sales_order_line_category (osv.osv): _name = 'sale.order.line' _inherit = 'sale.order.line' _columns = {'categ_id': fields.related ('product_id', 'categ_id', type = 'many2one' , My relationship: ` version =" 1.0 "encoding =" UTF-8 "? & Gt; & lt; record id...

algorithm - Trying to create an Htree using Recursion in Java, unable to get it to do more than one corner -

Image
I am currently taking a class in Java and our professor has given us a "HTRI" which is the first In H is the H with the small H, and the lower the level the user specifies. So far, I have made it the first corner in the sequel, but I can not seem to know how to change it, so that it will complete the four corners. Here is my code: Package assignment 3; Public class HTRI {public static zero main (string [] args) {int size = 512; // output and entry takes place in the console window Turtle.create (SIZE, SIZE); Int xCenter = SIZE / 2; Int yCenter = SIZE / 2; Int x = 4; Recursive (xCenter, yCenter, x); } Private static zero recursive (int xCenter, int yCenter, int x) {int x2 = x - 1; If (x2 & lt; 0) {return; } Int left = xCenter - xCenter / 2; Int correct = xCenter + xCenter / 2; Int top = yCenter - yCenter / 2; Int bottom = yCenter + yCenter / 2; Int middle = yCenter; Tortoise. Flight (right, middle); Turtle.go (left, middle); Tortoise. Flight (right, up); Turtle.go (...

html - Floating images left -

I am eating a little bit at HTML and CSS and I am unable to float 2 images, one code Reads ... & lt; Div class = "kbody" & gt; & Lt; Img class = "kimg1" src = "img1.jpg" alt = "" width = "375px" height = "auto" & gt; & Lt; Div id = "ktxt" & gt; & Lt; P & gt; & Amp; Nbsp & amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; Amp; Nbsp; & Nbsp; On November 9, 1938, Kristalachat happened. Also known as the night of broken glass, it was an organized attack of the Jews Hitler burned the synagogues to Nazis throughout Germany and Austria, broke shop windows, stole from the shops, killed a dozen dozen Jews, and arrested more than twenty thousand. A few days later, Germany had a & amp; Quotatonement fine & amp; Quoted that over one billion dollars was added and left on the rest of the Jews & lt; / P & gt; & Lt; /...

c# - Can LINQ put data into a data structure? -

I am researching LINQ, such as the ability to work with data, a selection criterion (a single data / Line / structure / etc using an Associative Data Structure like a tree or Basar), but there can not be any way of data / updates / insert etc. in the lists, table, array etc. It seems a very clear asymmetry, but perhaps when it gives a vivid desire to upgrade the amazing mansion of the Marveling of Microsoft's metric in Visual Studio 2020 I know that LINQ has a SQL database against such a But for any application, 2-3 orders of magnitude are very slow. I am interested in. The preferred language is C # or C ++. There is no null LINQ support for adding data to data structures? Am I missing something? stands for LINQ: Language Integrated Question The entire feature is designed for query , not updating / updating the data collection, by doing so, unlike its original design Therefore, there is no plan to add any functionality (adwords) in it. It is at the original lev...

java - Why can't I properly parse an Array of Strings? -

I'm having trouble with parsing strings; I can not know why my strings are not equal to Array's values ​​what they want! It may look strange, so it's a simplified version of code (the application is too big, so I made a small program to explain my point) test for the public class {public Static zero} main (string [] algs) {string src = "beep zap denrup flop"; String Delimits = "[] +"; String [] token = src.split (delims); If (token [0] == "beep") {System.out.println ("You said beep!"); } Else {for (int i = 0; i & lt; tokens.length; i ++) {System.err.println ("'" + token [i] +' '' ')}}}} My output is 'beep' 'zap' 'darap' 'flop' I have a fact I know the token [0] is a beep, but Java does not notice. Is there something I'm doing wrong? Use == operator with strings in Java when using objects such as strings If done, then == operate In comp...

java - TexturePacking with Libgdx - -

My program packs a series of images and outputs them in an aste.png, and an aste.atlas. My code for packing is as follows: Public Zero Pack () {System.out.println ("Packing should not normally be called! If you had no clear intention of packing, Please check image Atlas constructor. "); Settings settings = new settings (); Settings.maxWidth = 512; Settings.maxHeight = 512; TexturePacker2.process (Settings, "E: Files / Eclipse / Projects / Starfolders / Starfolders - Android / Property / Practice /": Name: "/ Files / Eclipse Project / Starfolder / Starfolder-Android / Property / Practice /", name .substring (0,4)); } I do not need to pack every time to run the program, that's why I can participate with the full file path (I will only pack after running on the desktop And added new images), however, I've only used the full file path because I do not know how to do this otherwise. I am using the Android Assets folder. (Desktop is connected t...

matlab error or libsvm error with related to mex files -

I'm using libsvm with Maltilab R2011 My problem is that I do I suddenly get an error about Mac files Has started and it will not run again The interesting thing is that the same program was going on a while ago, but now it is not working. The error is as follows. %%%%%%%%%%%%%%%%%%%%% / segmentation violation was breached March 21 07:01: 31 2013 ....... then a stack trace file name .... was was detected this error while running a MEX-file. If MEX-file is not an official MathWorks function, check its source code for errors. Please MathWorks Caught see External Interfaces guide for information about Miaks-file debugging :: System :: FatalException %%%%%%%%%%%%%%%%%%% Can anyone help me on this? Thank you. may be some error in the input data format. Since libsvm is open-source, you can use Visual Studio (Windows engage mode) try to debug your Max file. Google "mex file debugging" for more detail

android - Handlers initialized with Looper.getMainLooper() does not respond to message callbacks -

I am trying to implement the hearing on the same loop with different threads. Below I have two headlars, one is built in the main thread, the other is in the thread, though both have been initialized to listen on the main loop. Private handler mMain; Public Static Final Threadpool Excl. Tape = (Threadpool Exchanger) Exporter. Newcastle Threadpool (); Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); SetContentView (R.layout.activity_main); MMain = new handler (Looper.getMainLooper ()) {@Override public void handleMessage (message msg) {log. Wtf ("", "main:" + msg); }}; Tpe.execute {New handhelder tChild = new handler (Looper.getMainLooper ()) {@Override Public void handleMessage (Message msg) {Log. Wtf ("", "child:" + msg);}} ; @ Override Public Wide Run () {Log. Wtf ("," Send msg to Main Lauper); tChild.sendEmptyMessage (100);}}); } But when I send a message below, only the child h...

html5 - twitter bootstrap - increasing the height of a form field to match button -

Image
I am trying to enlarge the height and font size of my search bar with the twitter bootstrap ... also work In responsive mode & lt; Div class = "hero-unit center" & gt; & Lt; H2 & gt; Search & lt; / H2 & gt; & Lt; Form class = "form-search" & gt; & Lt; Div class = "input-append" & gt; & Lt; Input type = "text" category = "span6 search-query" placeholder = "write here ..." & gt; & Lt; Button type = "submit" class = "btn btn-big" & gt; & Lt; I class = "icon-search" & gt; & Lt; / I & gt; Search & lt; / Button & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; / Div & gt; This is the fact that using the BTN-Large square on the button im but it is not known that there is a common way to make the search field larger too .. There will be great gratitude for any assistance. No, there are o...

strange grammar of c for l-value (in linux kernel: per_cpu) -

all. When I was looking at the Linux kernel source, I found this snippet: per_cpu (zcache_dstmem, cpu) = null; If I look at the definition of per_cpu, then it happens: #defineVERIFY_PERCPU_PTR (__p) ({\ __verify_pcpu_ptr (__p )); \ (Typhus (* (__p)) __kernel __force *) (__p); \}) #define per_cpu (var, cpu) (* ((zero) (CPU), VERIFY_PERCPU_PTR (& amp; var))) If I parse preprocessors , Then it becomes: * ((zero) (CPU), {__verify_pcpu_ptr (& amp; zcache_dstmem); (typef (zcache_dstmem) __call _-force *) (__p );}} = = NULL I feel very strong that I read it incorrectly, and I do not know how to interpret this snippet. Any help? Missed one replacement * ((zero) (cpu) , {__verify_pcpu_ptr (& amp; zcache_dstmem); (typef (zcache_dstmem) __kernel __force *) (& amp; zcache_dstmem);}) = NULL This is an example of a comma is. The result of the block is the last expression I do not know what it is doing with (zero) (cpu) part, but and zcache_dstmem...

python - extracting text from tags in html using beautifulsoup -

This is the part of the HTML code that expresses the information that I want to remove from a webpage. Remove the name and the value between the B tags. The result I hope is such a list is: [on, DVI, 396,2035,2551] ... Power: & lt; B & gt; Current & lt; / B & gt; & Lt; Br> & Lt; Br> Source: & lt; B & gt; DVI & lt; / B & gt; & Lt; Br> & Lt; Br> Lamp runtime: & lt; B & gt; 396 & lt; / B & gt; Hours & lt; Br> Lamp Balance: & lt; B & gt; 2035 & lt; / B & gt; Hours & lt; Br> Total operation: & lt; B & gt; 2551 & lt; / B & gt; Hours & lt; Br> & Lt; / Div & gt; ... What I tried was: import from b4 beautiful soup urllib2 url = 'IP address here' html = urllib2 Urlopen (url) .read () soup = beautiful soup (html) main_div = soup.find ("div", {"class": "txt"}) data = main_div.findAll ('b'). Text Wha...

java - Issues With Inheritance -

I am in an introductory Java course and learning about heritage. I had to create a new method (getUserName) inside the superclass code that was written to make the personal username name public, and it works compiled and works well: import java.util ArrayList; Public class post personal string user name; // Post author's private long timestamp user name; Private Int Likes; Private Array List & lt; String & gt; notes; / ** * Constructor for class posts items * * @ Author of the author of this post. * / Public post (string author) {username = author; Timestamp = SystemCurrentTime Milliseau (); Likes = 0; Comments = New Arrestists & lt; String & gt; (); } / ** * Record another 'preference' signal from a user * / public like zero () {likes ++; } / ** * Record that a user has withdrawn his 'choice' vote. * / Unlike public Zero () {if (likes> 0) {likes--; }} / ** * Add a comment on this post. * * @Param Text to add new comment * Add * Public Zero...

How to make the expression simple in R? -

How can I make the expression easier in R? 0.64-0.0205 * (c (qnorm (0.005), - qnorm (0.005)) 0.64-0.0205 * c (1, -1) * qnorm (0.005)

javascript - How to make center_changed listener in Google Map API v3 only fire once? -

I am currently using 'center_changed', function () as latitude and latitude of the map center as a listener And then later call a reverse geocode method to convert latitude and LAG to an address. However, since the map is being dragged, since the center is firing more than once, I get an instant message "OVER_QUERY_LIMIT" from my reverse geocode method. Is there a way to set the center-changed listener only once? Use the addlist list once the method.

c# - Image.Source not showing image when using a string formatted binding -

Image
I am currently using the following code: combo box to flag images and the Canadian province Name to control with Although images are not visible in control I have tested the binding and have generated this place properly, but the image is not just under control. Changed value "=" province code "item source =" {binding provinces, relative Soros = {relative serge ancestor type = {name} = "Cb_Provinces" text = "province" selection = changed "combo box selection" X: type user control}}} & gt; combobox.itemTemplate & gt; & gt; DataTemplate & gt; & lt; stackPanel & gt; & lt; stackPanel x: name = "stk_ComboTemplate" orientation = "horizontal "Horizontal Alignment =" Left "& gt; Image Width =" 25 "Margin =" 10 "Source =" {Binding Province Code, Stringf Ormet = / Canada Trysvisiintrfes; Component / resource / img / flag / \ {0 \}. GIF} "/...

javascript - XRM setDisable() does not work on browsers other than IE -

Image
There is an error on our XRM form when it is opened from a browser other than IE, you can see unmanageable messages on the image link Are there. The error is not clear, So I debug it, and it took me because of an error on the JavaScript load on the page load. This XRM setDisabled () function can not be used properly: Xrm.Page.getControl ("simpeg_tipelokasi"). SetDisabled (true); This works on IE and the field is disabled, but weird it does not work on Chrome and Firefox. Can you help me why it does not work on the browser? Thanks a lot! Edit: My bad, this is actually a problem that is set on the ActiveX configuration of both browsers and not Passive function. While debugging some time ago, I should remember this to see my new post on this url: You must update your organization's roll-up at least 12 (the latest at the moment) I'm surprised though, you've actually got to get the error. Edit: It is not a problem with Definitely , not ...

entity framework - How do I avoid large generated SQL queries in EF when using Include() -

I am using EF (dll version 4.4) for query against database. There are several tables with information in the database, when actually the DB is sent, then I see a huge, almost 1300 line SQL query (which I'm not going to paste here due to the size). I see the query running in this context: entities Plans. ("Program"). ("Programmable Object"). ("Program .fees") include ("program.intakes"). Include ("Programs .requirements"). Include in ("Programcodes") Include in ("focus"). Include in ("code"). Include in ("Exception") ("Requirements") where there are plans. Select code == planCode schemes) .SingleOrDefault (); I want to refrain from going back to the server while collecting information from each of the related tables, but with such a large query, I am thinking that if there is a better way to do this? Thank you. It's a bit late, but your data is only changing once ...

call - How to change the voice of the person while he is calling to another person during the conversation by android code -

Is it possible to change the voice of a person when he is talking to someone during an Android code conversation ? Are developers allowed to do such functionality in Android applications? If you have any ideas for this, then help me! itemprop = "text"> afaik, you may be able to play with recorded sound There are many apps on the Play Store, they also make songs from here, the user's speech input is so much that it is quite possible to convert the typical user's speech input with some different tone and speed, and those apps are actually They're funny if they grow well. To use it with calls, I think that will not be possible and the developer should never give such a capability to do so to Android. "All for user security restrictions" You can open the question by not accepting this answer and receiving more suggestions and demo links from other users You can.

windows phone 7 - Save isolated storage file in Microsoft Office in WP7 -

I am creating a file in a separate storage area in my application. For example, the Gmail Email app, when we use any document By default, I save the "Microsoft Office" app by email, just like I want to save the Microsoft Office app to different storage files. help please. . I think this is not possible because there is no way to separate the app's separate storage. But you can save the picture and music in the gallery using the "medial poverty" class. There is no API provided by the Office app to store documents by other apps.

c++ - How propertly clear file in linux -

Good day, I open the file to write some content to it. Code below: class file_worker {public: file_worker (const std :: string and path): path_ (path), stop_ (false) {umask (0); File_descriptor_ = open (path_.c_str (), O_WRONLY | O_CREAT, 0666); } Zero operator () () {if (file_descriptor _! = - 1) {clear_file (); // write something}} zero clear_file () {} ~ file_worker () {if (file_descriptor _! = - 1) {close (file_descriptor_); }} Private: const std :: string path_; Int file_descriptor_; Bull stop_; }; How to apply clear_file (); Is it possible to clear the file descriptor without closing the function? What is the fast way to write files? Is it possible to file some threads together in different parts of the file? (May be the use of Lseek)? You did not define what it meant to clear a file. You use the file to minimize it in size 0. You can zero all the bytes in the file. Then, use with writing (2) or maybe if another process is writing the file at the same time ...

c# - Performance of WriteableBitmapEx -

I am generating a full screen image with markers of 37000 or so I do the following code to do this Private Zero Drawmakers (Writable Bitmap Bitmap) {Writtenable Bitmap Marker = BitmapFactive.New (5, 5); Var source = new rack (0, 0, 5, 5); Marker Drylleps centric (3, 2, 2, 2, colored blue); Var s = stopwatch Startup (); Foreign Currency (different point in Transformed Point) {bitmap. Blit (new rake (int) dot.x, (dot) dot.a, 5, 5), marker, sourcearch); } S.Stop (); Console.light line ("Blating" + Transformed Point. Law + "Points" "+ S. Applied Millisecond +" MS ");} To throw these 37,000 points It takes about 203 ms on my Elitebook 8770W Windows 7. I have gone down to the illustration using standard WPF framework elements and now I have gone down from the writeable bitmap. On this set of markers I need a real-time zoom, so that Markers restored I need to say that to recover, I need about 50 mms for a redra. The one I've read, the Writeab...

jquery - Javascript iFrame add to download file in IE7 and IE8 -

Image
I need to download the file after the AJAX request. That's why I add an iframe to a page that posts some data into a webmath and a post's file. Here is the JavaScript code that is located on the button click handler: var iframe = $ ("iframe id = 'PDFIframe' style = 'display: none' & gt; & lt; / Iframe & gt; "); Var iForm = $ ("form id = 'PDFForm' verb = 'App / billing.aspx / GetPDF' target = 'PDFIframe' method = 'post' target = '_ parent' & gt; & lt; / form & Gt; "). Html (input type = "hidden" name = "HtmlContent64" value = "'+ htmlcontent64 +'" /> & lt; input type = "hidden" name = "billing" value = "'+ This.billId + '"/>'); Iframe.append (iform); TempCmp.append (iframe); IForm.submit (); But in IE 7 and 8 there is a problem on the iframe.append (iForm) line. This one works on ...

c# - SQL Command Builder Query values -

I have a SQLDataAdapter, in my query I'm bringing two fields, id (PK), name. I have registered a SQL command builder in my data adapter so I do not have to write the questions in the database to update the table. When I da.update () method, SQL throws an error, due to this error, I can not insert a tap into the AYNID ID, Also, I have filled this field with a proper value in the grid. Then da.update () worked. The problem now is that I do not want to reveal this field in my Gird, when I set my visual property to false, the command builder quits this column in the query to complete this issue I have to set the column width to 0, but there is still a small line in my grid. Is there a better way to handle this situation? Except that I manually write questions. Below is the code to prepare the grid; Private zeros fmAttributes_Load (Object Sender, EventArgs e) {ds.Tables.Add ("Attributes"); SqlCommand CMD = new SQL Commands (); Cmd.Connection = New SqlConne...

zend framework - tinymce editor remove for some textarea -

Image
I have added some of the text, I am trying to delete the tinxes for some text except one texterity. I am using the following code snippet to remove the tinnimus. window.addEvent ('load', function () {$$ (textarea [id = "fields -"], textarea [id = "classified_photo _"]). (Item) {tinyMCE.execCommand ('mceFocus', wrong, item.get ('id')); tinyMCE.execCommand ("mceRemoveControl", incorrect, item.get ('id')); tinyMCE.triggerSave (); })}); After using the code snippet I found out that it is removing tinymce, but adding some html tags can be tinymce. Any help would be very commendable. After you close a tinymce, the html source element (in your case textareas) will be valid eg.

regex - Convert columns and rows in readable format -

मेरे पास एक फाइल है जिसकी प्रविष्टियाँ समान हैं: समय; उदाहरण; डाटाबेस; स्थिति ; sheapthres; bp_heap; fcm_heap; other_heap; सत्र; sessions_in_exec; locks_held; lock_escal; log_reads; log_writes; गतिरोध; l_reads; p_reads; hit_ratio; pct_async_reads; d_writes; a_writes; lock_waiting; sortheap; sort_overflows; pct_sort_overflows; AvgPoolReadTime; AvgDirReadTime; AvgPoolWriteTime; AvgDirWriteTim 02: 07: 49; सेन 33; नमूना; सक्रिय; 0; 10688; 832; 72064; 8; 0; 0%; 0; 0; 0; 0; 0; 0; 0%; 0%; 0; 0%; 0; 0; 0; 0 02: 08: 09; सेन 33; नमूना; सक्रिय; 0; 10688; 832; 72064; 8; 0; 0%; 0; 0; 0; 0%; 0%; 0; 0; 0; 0; 0; 0%; 0; 0; 0; 0 02: 08: 29; सैन 33; नमूना ; सक्रिय; 0; 10,688; 832; 72064; 8; 0; 0%, 0, 0, 0, 0, 0, 0, 0%; 0%, 0, 0, 0, 0, 0, 0%, 0 ; 0; 0; 0 और इसे एक पठनीय स्वरूप में परिवर्तित करना चाहते हैं जैसे: टाइम इंस्टेंस डाटाबेस 02:07:49 SAN33 नमूना 02:08:09 SAN33 नमूना 02:08:29 SAN33 नमूना और इसी तरह .. मैंने कोशिश की है tr -s ";" "\ T" लेकिन मुझे कोई अच्छा परि...

android - Spinner in ActionBar doesn't appear -

I like the spinner and now I want the spinner to be the actionbase (instead of a spinner in the action spinner) , But it does not appear there: ( spinner spinner = spinner) SearchVibIID (RID.planetspinner); Arrayedtter & lieutenant; Square queens & gt; Adapter = Arrayadaptor.Creatofrom Resource (this, R.RA.PLANETS_ARE, ANDROID ROULET. SIMPAL_SPERIR_ITAME); Adapter.Scentropodownous Resource (Android R.Let Simple_ Spinner_DropDown_Item); Spinner eset adapter (adapter); ActionBar SetCustomView (spinner); and here .xml Spinner Android: id = "@ + ID / Planospinner" Android: layout_width = "fill_parent" Android: Layout_heat = "wrap-content" /> gt; & lt; / LinearLayout & gt; Please do not suggest using the Actionbar dropdown list, I can not use it because I'm already using the ActionBar tab Android does not allow them to be used at the same time Any help would be appreciated Your code is missing this line: actionBa...

public key encryption - Space constrained asymmetric signature -

I need to sign a small string with asymmetric key encryption scheme. I sign a small string with signed string Will be stored on the chip. I have very little space (about 60 bytes for signature + string), so the generated signature should be as small as possible. I looked around for how to do this, and what I found is that I can use RSA-SHA1, but the signature generated with the 512 bit key is 64 bytes. It is slightly more I have a small asymmetric signature Can I use safe algorithm to generate? Will it still be safe if I store the SHA1 amount of RSA-SHA1 signature, and then confirm it? Are you climbing here, one of these properties - to protect against return value (Where two different input results are in the same output hash). Normally 128-512 bits are preferred, so the SHA-1 signature gives you 512 bits. A business is closed with all things in cryptography security as you are using asymmetric signatures, have you considered using it as your signature option? This will giv...

android - Auto Capitalisation of text in TextView -

मैं कैपिटल बनाना TextView में एंड्रॉयड ? एंड्रॉइड: textAllCaps = "true" आईसीएस और इसके बाद के संस्करण के लिए काम करता है लेकिन कम संस्करणों के लिए नहीं। मैं कैपिटलाइज़ेशन में एक्सएमएल करना चाहता हूं, और toUpper () प्रोग्राममैटिक रूप से नहीं। उपयोग android: inputType =" textCapCharacters "

perl - Why the result of encode_base64 doesn't correspond to decode_base64? -

$ perl -MMIME :: base64 -e 'प्रिंट encode_base64 ("syn_ack@163.com");' C3luX2Fjay5jb20 = $ perl -MMIME :: base64 -e 'प्रिंट decode_base64 ("c3luX2Fjay5jb20 =");' Syn_ack.com एन्कोड परिणाम मूल स्ट्रिंग पर व्याख्या नहीं कर सकता, क्यों? आपको @ के रूप में \ @ से बचाना होगा या विभिन्न उद्धरणों का उपयोग करना होगा। ऐसा इसलिए है क्योंकि दोहरे उद्धरण विस्तार किए जाते हैं, और @ 163 को सरणी के रूप में माना जाता है @ 163 (भले ही यह नाम मान्य पहचानकर्ता नहीं है)। यह अपेक्षित रूप से काम करता है: perl -MMIME :: base64 -e "प्रिंट एन्कोड_बेसईज़ (asyn_ack@163.com ');" C3luX2Fja0AxNjMuY29t perl -MMIME :: बेस64-ई 'प्रिंट सांकेतिक शब्दोंबलाबाज़ी 64 ("syn_ack \ @ 163.com");' C3luX2Fja0AxNjMuY29t perl -MMIME :: बेस64-ए "प्रिंट डीकोड_बेसईज़ ('c3luX2Fja0AxNjMuY29t');" Syn_ack@163.com

android play notification no sound sometime -

OK, some of my customs say that notification does not sound when my app receives some time Playing GCM push message ... (The phone is Samsung Galaxy S3 and I'm pretty sure the phone is in ring mode, not in silent or vibrational mode) I thought they did not select any file The notification's sound, so I change my code to play only the default sound. Here's my code to run the default notification sound: ringtone r = faucet; Try {ur uri = ringtone manager .get default url (ringtone manager tppnntit); R = ringtone manager .getRingtone (getApplicationContext (), Yuri); R.play (); } Hold (exception e) {e.printStackTrace ();} So I get their S3, and see what's going on. However, no error message, no error stack was dropped, it was not just the default notification sound ... I had tried Android device: Acer A100 (7 "Tablet) Samsung Note 2 5 tips above are notifting the sound of the sound. > Some time ...... Do not even think? Stil...

javascript - How can I get Image data or the path of cache of Image on WebPage in chrome or firefox? -

I am creating a plugin (add-on) to upload an image on any page I only use the URL of the image I can get it, but I have to get the image data or local cache of the image. I have used it in my detail via canvas via JavaScript I have created two functions to get image data from the canvas first using the "ToDataURL ()" method (gives an image of the current canvas as an image that you Can be used as a source for other canvas or HTML elements (such as IMG), and then Number to obtain the Blob object to access the data. function getImageDataURL (url) {var data, canvas, CTX, blob; Var img = new image (); Img.onload = function () {canvas = document.createElement ("canvas"); Canvas.width = img.width; Canvas Het = img height; Ctx = canvas.getContext ("2D"); Ctx.drawImage (IMG, 0, 0); Try {data = canvas.toDataURL (); Blob = DataHitblock (data); } Hold (e) {// handle errors here (e); }}; Img.src = url; }; Function daturaeobob (dataur) {var bistring = etob...

android - Query for id needs integer parameter -

दस्तावेज़ में निम्नलिखित का उल्लेख किया गया है: खाता खाता = accountDao.queryForId (" जॉन स्मिथ"); यदि (खाता == नल) {// नाम "जॉन स्मिथ" किसी भी पंक्तियों से मेल नहीं खाता है} लेकिन एक्लिप्स (एंड्रॉइड) में मैं केवल एक पूर्णांक पैरामीटर के रूप में पास करने का विकल्प देखता हूं ? किसी भी मदद? आईडी के प्रकार को लागू करने के लिए दाओ वस्तुओं जेनेरिक का उपयोग करते हैं आपकी संस्था के साथ जुड़ा हुआ है यदि आप केवल dao.queryForId (...) में एक पूर्णांक को पारित करने का विकल्प देखते हैं, तो आप शायद, गलत तरीके से, दाओ को परिभाषित करते हैं: दाओ & lt; खाता , पूर्णांक & gt; AccountDao = getDao (खाता। वर्ग); पहला सामान्य पैरामीटर इकाई के प्रकार को निर्दिष्ट करता है और दूसरा सामान्य पैरामीटर उस इकाई के ID फ़ील्ड के प्रकार को निर्दिष्ट करता है। पूर्णांक के साथ, आप accountDao.queryForId (पूर्णांक) को कॉल करेंगे । @Tomas के रूप में उल्लेख किया गया है, आपको अपने डीओए को कुछ तरह से परिभाषित करना होगा: दाओ & lt; खाता, स्ट्रिंग & gt; AccountDao ...

paypal - Error: Information entered incorrect. Try again -

I'm new to PayPal. I have published a hosted checkout page in the PayPal Payllo link using PayPal Manager. Exam transactions. I did not setup anything as necessary. I have given a test credit card number (collected from Paypal Payllo Link User Guide) but I got the following error. Error: The information entered incorrectly, please try again. I tried to find a solution. but could not. Please help me get the solution. Thanks in advance The first issue I see with my checkout page It is that you have set up your Pay Flow account, for the address and CSC requirement, but to allow the CSC field to be editable, you only have your account set, you will have to enter your Payflow Manager, and the service setting & Gt; Under set up and billing information, set it to allow the billing address section to be editable. It is probably causing your problem. If you get an error after making a change, I will double check it again. Due to not being able to edit the billing addr...

hadoop - Get Line number in map method using FileInputFormat -

I was wondering if it is possible to get line numbers in my map method? My input file is only a column of values, such as Apple Orange Banana Is it possible to get the key: 1, value: apple, key: 2, value: orange .. In my map method? Using CDH3 / CDH4 to change the input data, so using KeyValueInputFormat is not an option. Go ahead. The default behavior of infobox formats such as TextInputFormat is to give off byte off compared to actual line numbers - this Primarily due to being unable to determine the correct line number when the input file is different and processed by two or more mapers. You can create your own input format to create a line number instead of a byte offset on TextInputFormat and the associated LineRecordReader Must be configured to return incorrectly from isSplittable> > method (meaning that a large input file will not be processed by multiple mappers). If you have small files, or files that are close to the HDFS block size size, then this...

sql server calculate value according to pecentage and add and group them according to uid -

मेरे पास यह तालिका है temp_calpoints1 ऑर्डर ऑफ प्रोसिड uid ordervalue प्रतिशत 1 1 16 33000 10 1 2 4 33000 10 1 3 5 33000 10 1 4 5 33000 20 1 5 4 700000 10 2 1 4 100000 10 2 2 4 100000 10 2 3 5 100000 10 2 4 4 100000 20 2 5 4 700000 10 2 6 1 700000 6 2 6 4 700000 6 2 6 16 700000 6 4 5 5 700000 10 5 1 16 700000 10 मुझे आउटपुट प्राप्त करना है ऑडिटवेवल का प्रतिशत मूल्य जैसे 1 रिकॉर्ड में 10/100 * 33000 = 3300 मुझे इन सभी मूल्यों को जोड़ना होगा और उन्हें यूआईडी के लिए अभिलेख देना होगा uid totalvalue 1 xxx 4 xxx 5 xxx 16 xxx मैंने इसे करने की कोशिश की लेकिन कुछ कैसे काम नहीं करते का चयन करें processid, SUM (ordervalue) AS [TotalSales] FROM [dbo ] .temp_calpoints1 ग्रुप द्वारा [यूआईडी] यह विकल्प आज़माएं SELECT [यूआईडी], एसएम (([प्रतिशत] / 100.00) * ऑडरवेवल्यू) कुल के रूप में डीओओटीईटी 46 ग्रुप बाय [यूआईडी] परिणाम: uid कुल 1 42000.000000 4 225300.000000 5 89900.000000 16 115300.000000 डेमो पर

Post photo in facebook on the friends gallery for ios -

Good morning, I have this code to post a photo to my gallery: - (IBAction) postPhotoClick: (UIButton *) Sender {// Just use the icon image from the app. A real application would be a more useful way to get the image. UIImage * img = [UIImage imageNamed: @ "Icon-72@2x.png"]; // if it is available to us, we will post using the native dialog BOOL displayNativeDialog = [FBNativeDialogs presentShareDialogModallyFrom: own initial text: no image: IMG URL: void handler: nil]; (! DisplayedNativeDialog) if {[self performPublishAction: ^ {[FBRequestConnection startForUploadPhoto: img completionHandler: ^ (FBRequestConnection * connection, ID results, NSError * error) {[self showAlert: @ "post photos" Results: Results Error: error]; Self.buttonPostPhoto.enabled = Yes; }]; Self.buttonPostPhoto.enabled = No; // proceedToPost (); }]; }} However, I need to post photos to my friends' gallery. it's possible? How can I go about doing this? I've found solutio...

c++ - Red hat EnterPrise Edition 4 GCC compiler support utf8 with BOM -

क्या बीओएम फाइलों के साथ Red Hat Enterprise संस्करण 4 जीसीसी कंपाइलर यूटीएफ 8 का समर्थन करता है? यदि हाँ, तो जीसीसी कंपाइलर संस्करण को मुझे सीओआईटी 8 में बीओएम के साथ एन्कोडेड सी ++ फाइलों को संकलित करने की आवश्यकता है? मैं वर्तमान में जीसीसी संस्करण 3.4.6 का उपयोग कर रहा हूं और मुझे निम्नलिखित त्रुटियां देती हैं: - : 1: त्रुटि: आवृत्ति '239' प्रोग्राम 1 में: त्रुटि: प्रोग्राम त्रुटि में '\ 187' आवारा: प्रोग्राम में \ 191 'आवारा' ऐसा लगता है कि केवल समर्थन यूटीएफ -8 को बीओएम के साथ। जीसीसी 4.4 में पेश किया गया था, और यह भी एक अलग पैकेज के रूप में RHEL 5 में उपलब्ध है, gcc44 । मुझे नहीं पता कि क्या जीएससी 4.4 पैकेज आरएचईएल 4 के लिए भी उपलब्ध है। अगर आपको जीसीसी 3.4.6 का उपयोग करना होगा, तो आप अपने बिल्ड सिस्टम में एक "प्रीप्रोसेस" बीओएम एक बहुत सरल उदाहरण (से लिया गया) होगा: पूंछ - bytes = + 4 source.cpp & gt; SourceWithoutBOM.cpp

Together element if element is same in XML PHP parsing -

xml.php & lt;? Xml संस्करण = '1.0' एन्कोडिंग = 'यूटीएफ ? -8 '& gt; & Lt; उत्पाद xmlns = 'http: //tempuri.org/xmlrp_feed.xsd'> & Lt; product_features शीर्षक = 'मुख्य विशेषताएं' & gt; & LT; feature_item & gt; & Lt; फीचर_टाइप & gt; & lt;! [सीडीएटीए [कॉपियर फीचर्स]] & gt; & lt; / feature_type & gt; & Lt; विवरण & gt; & lt;! [सीडीएटीए [कॉपियर विवरण 1]] & gt; & lt; / description & gt; & Lt; / feature_item & gt; & LT; feature_item & gt; & Lt; फीचर_टाइप & gt; & lt;! [सीडीएटीए [कॉपियर फीचर्स]] & gt; & lt; / feature_type & gt; & Lt; विवरण & gt; & lt;! [CDATA [कोपर विवरण 2]] & gt; & lt; / description & gt; & Lt; / feature_item & gt; & LT; feature_item & gt; & Lt; फीचर_टाइप & gt; & lt;! [CDATA [प्रतिकृति सुविधाएं]] & gt; & lt; / feature_type & gt; & Lt; विवरण & gt; & l...

javascript - Element destination -

इस सवाल का पहले से ही एक उत्तर है: 21 जवाब मैंने एक html पृष्ठ बनाया और एक टेक्स्टबॉक्स डाला मैं जावास्क्रिप्ट फ़ंक्शन से पृष्ठ में टेक्स्टबॉक्स गंतव्य जानना चाहता हूं? उदाहरण पाठ बॉक्स का शीर्ष 100 पिक्सल की तरह है। धन्यवाद। इसे आज़माएं: window.onload = function () {Console.log (document.getElementById ("id1") ऑफसेटटॉप); }; जहां id1 आपको टेक्स्ट बॉक्स का आईडी है जिसे आपको त्रिकोण की आवश्यकता है।

.NET XPath starting from a specific element and backreferencing to it -

I have (in fact) an app where I want to use a specific xml element (called element A) Need XPath and then find another element (Ment B) referenced by Element A. Example: public static zero main (string [] arg) {var s = @ "" & lt; Root & gt; & Lt; Start RefId = "" 5 "" /> gt; & Lt; Start RefId = "" 6 "" /> > gt; & Lt; Item id = "6" "/> gt; & quot; root & gt;"; Var doc = new XmlDocument (); (Var sr = new string reader (s)) using {doc.Load (sr); } XMLNode Node = Doctor. Selection node (@ "root / start [1]") [0]; Var selected = node Selection node (@ "/ root / item [@id = @refId]"); } Here is the node node that I can find. There is a collection of selected node B which I can not find. My problem is in [@id = @refId], where I would like to return to the node, from which I start and get the value of its properties "RFID", but I have not figured...

java - convery string into array with brackets -

मेरे पास निम्न स्ट्रिंग है [http://images.com/1। Jpg, http://images.com/2.jpg, http://images.com/3.jpg] मैं एक स्ट्रिंग सरणी के अंदर इस सरणी की सामग्री को संग्रहित करना चाहता हूँ या स्ट्रिंग की सरणी सूची। मैंने .split विधि का उपयोग करने की कोशिश की, लेकिन यह मुख्य रूप से असफल हो जाता है क्योंकि स्ट्रिंग को शुरुआत में कोष्ठक भी शामिल है। स्ट्रिंग [] splittedString = theString.substring (1, theString.length () - 1) .split (",") विभाजन विधि में अल्पविराम के बाद स्थान पर ध्यान दें।

Connecting to access 97 using php on Linux -

You can easily set me up on smart people without the internet being wasted at any time . Our company still uses 97 MDB files for some legacy applications and I would like to be able to connect these databases and would like to inquire using php / apache running on the Linux box. Upgrading the database is not an option, so I have to use them in the current format. So the question is, is it possible and if so, how would I have to go about this? User code below: $ dbName = $ _SERVER [" DOCUMENT_ROOT "]" products \\ products.mdb "; If (! File_exists ($ dbName)) {dead ("Could not find database file."); } $ Db = new PDO ("ODBC: driver = {Microsoft Access driver (* .mdb)}; dbq = $ dbnm; uid =; pwd =;"); Do you have PDO & amp; ODBC extenstions in the PHP.INI file.

open excel file on the above folder with watir/Ruby -

फिलहाल मैं इस तरह एक एक्सेल फाइल खोल रहा हूँ excel = win32ole :: new ("Excel.application") कार्यपुस्तिका = excel.Workbooks.Open ('टी: \\ PointOfSale \\ परियोजनाएं \\ स्वचालित परीक्षण \\ MasterFile.xls') कार्यपत्रक = workbook.WorkSheets (1) # पहले कार्यपुस्तिका साइट प्राप्त करें = कार्यपत्रक रेंज ('ए 2')। मूल्य # वर्कशीट में कक्ष में मान प्राप्त करें। और यह ठीक है लेकिन जब मैं एक सर्वर पर स्क्रिप्ट को ले जाता हूं, तो मुझे एक त्रुटि संदेश मिल रहा है कि पथ / फाइल नहीं मिल पाई जा सकती। इसलिए मैं उपयोगकर्ता को एक सामान्य तरीके से तय करता हूं जैसे कि जब मैं एक टेक्स्ट फाइल खोलता हूं excel = win32ole :: new ("excel.application") workbook = excel.Workbooks.Open ('../ वर्कशीट में सेल पर मान प्राप्त करें। लेकिन मुझे एक त्रुटि संदेश मिलता है: T: / PointOfSale / प्रोजेक्ट्स / स्वचालित परीक्षण / CSA / Branch_Test / Res प्रक्रमण / CancelRes / Canc_BE.rb : 23: में method_missing ': (OLE विधि में ओपन':) (WIN32OLERuntimeError) OLE त्र...

java - Reference key issue while doing many to many relationship using @ElementCollection, @MapKeyJoinColumn -

I am trying on a lot of relationships, the team member can work on several projects, and many team members in one project The table structure can be as follows, (ID integer always generated as primary identifier key (starting with 12, increase increment from 3), name varchar ( 50) table TBL_TEAM_MEMBER_ONE (ID integer table TBL_PROJECT_ONE is the primary identity as we make Starting with Esha's went keys generated (7 increments of 5), name varchar (50), salary integer) Table EMP_PRJ_CADRE (MEMBER_ID integer reference TBL_TEAM_MEMBER_ONE, PRJ_ID integer reference TBL_PROJECT_ONE, cadre varchar (10), barrier PK_001_EMP_TEAM make primary key (MEMBER_ID, PRJ_ID)) Here I have just created a new table to store the relationship, now please follow the employee unit, @Entity @Table (name = "TBL_TEAM_MEMBER_ONE") Public class EmployeeEntityFour applies Serializable {public EmployeeEntityFour () {} public EmployeeEntit YFour (string empName, int salary) {... ..} @ ID @ ...

audio - Horizontally show two videos side by side and export to one video -

What am I trying to achieve: programmatically (using any type of script) in a video Add different videos where the videos are both side-to-side and the sound shown along with the video is played I get at least two ways from which I can display on two videos side , But in every one I have a different problem which is the process Makes it difficult to complete: Avisyth and Avs2Avi: Avisyth actually makes the process easy, such a simple untrusted script You should be able to play on behalf of two videos: video1 = AVISource ("d: \ file1.avi") video2 = AVISource ("D: \ file2. Avi ") stackhorizontal (video 1, video 2) A new output file can be made with AVS 2V. The problem here is that I Avisyth is also an AVI with The file is not able to play because I get the message "Could not get a decompressor message for AviSource fourcc xvid" message. I wentogled for the solution of that problem but nothing helped. Jaspot says that I need all the cod...

iphone - How to load a wfm ( wireframe) in ios -

My project is to display a human face in the iPhone and is currently open to load a person and ". But for every human face, I need to produce a different ".obj" file to make the testature mapping precise. On Googling I came to know that there is a wireframe model about it and its There is also coordination for each face feature so it is good If I find a model like this. So my question is how to export the "wfm" file to iOS and get the model? Can someone direct me in this regard? You can use wmf2svg to see a SMGG file WMF, then you can use PaintCode Objective C code can be created.