Posts

Showing posts from September, 2015

java - Converting Byte Array to Double Array -

I have some problems with WAV files in Java. WAV format: PCM_SIGNED 44100.0 Hz, 24 bit, stereo, 6 bytes / frames, small-endian I have removed WAV data in a byte array with no problem. I'm trying to convert the byte array to a double array, but some couples come with the "NaN" value. Code: ByteBuffer byteBuffer = ByteBuffer.wrap (byteArray); Double [] doubles = new double [byte array.line / 8]; For (int i = 0; i & lt; doubles; tall; i ++) {couple [i] = byte buffer.get double (i * 8); } The fact of being 16/24/32 bit, mono / stereo confuse me. I intend to pass double [] an FFT algorithm and receive audio frequencies. Thanks Try it out: Public stable byte [] toByteArray (double [] doubleArray) {int times = Double.SIZE / byte.SIZE; Byte [] bytes = new byte [double] Long * bar]; For (int i = 0; i & lt; doubleArray.length; i ++) {BitBufer. Vep (Bytes, I * Bar, Times). Inputable (double other [i]); } Return bytes; } Public stable double []...

How can get the current path in PHP -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब मैं कैसे पथ वापस कर सकता हूँ localhost / site1 / index.php? View = 10 & amp; user = 5 मैं इस मान को वापस करना चाहता हूं "index.php? View = 10 & amp; user = 5" मैं PHP का उपयोग कैसे कर सकता हूं? मैंने सोचा कि $ _ SERVER ['SCRIPT_NAME'] ऐसा करें लेकिन SCRIPT_NAME index.php retaining है $ _ सर्वर ['QUERY_STRING'] और $ _SERVER ['REQUEST_URI'] अनुरोध यूरी आपको पूर्ण यूरी देगा, आप इसे अंतिम मार्ग पाने के लिए हेरफेर कर सकते हैं जैसा कि मैथ्यू इम्बर्ग ने कहा, उत्सुक हो जाओ। $ _ सर्वर आपको या तो var_dump द्वारा या किसी टिप्पणी में लिंक किए गए दस्तावेज पढ़ता है

mysql - Phantom mysql_error from PHP -

I have this sql statement, when I run it in phpmyadmin, but raises an unreliable obscure server Mysql_error When I run it from PHP: There is an error in your SQL syntax; Related to your MySQL server version for the correct syntax to use the '' Passed '' UPDATE srSignals SET falseBreak = "true", ' Check manual. Full SQL Statement: UPDATE srSignals SET falseBreak = "true", candleClose = 1.51132, results = - 48 WHERE id = 4429; Updated srSignals SET falseBreak = "true", candleClose = 1.51132, results = -27 WHERE id = 4431; What is wrong with this statement, or why does PHP not work through PHP's request when copied / pasted in the phpmyadmin? Your syntax is incorrect You should not use single quotes such as not double quotes like teas: update srsignals SET falseBreak = 'true', candleClose = 1.51132, results = -48 WHERE id = 4429; Update srsignals SET falseBreak = 'true', Candle Close = 1...

ldd equivalent on android -

I have a libTest.so that does not load on some devices. Logcat is absolutely useless arm-linux-androideabi-readelf.exe -d Using libTest.so I was able to see all the necessary libbs, which requires libTest.so. I pulled them all into the same folder on my local PC. How can I find out which symbols are missing and in which library? I have only standard tools from NDK (Nm, Relief, Ozdump etc.), which tool and how can I use it so that it parses my libTest.so and all dependent libraries and tells me which symbol target Loads on the device prevents my lib. Thanks to Android developers my feature request was applied :) Now we have a tool Which allows to relieve the dependency. EDIT: This does not resolve full symbols, however, as if you build against Android-14 and try to use the methods that were not present in older Androids, Tools will not list missing symbols. This part was left in the form of TODO in ndk - depends.

wordpress - Autoloaders in PHP - two running at a time -

I understand how to register autoloaders and even how to create one, this is absolutely any There is no issue. Sometimes the main issue is how you have two auto loaders, for example: class project_one_folder_class extended project_two_folder_class {} you 'Ll notice that child class is a project which is related to reaching out and calling parent class who is locating in a separate project. The way in which two sections of projects are connected, always seen by auto loaders, sometimes the projects of any sections are never seen. Edit In this way the way I thought was to write two auto loaders and to register them because The project has two parents, the project is a child, this is a more detailed question. This is my class to make it better. class AisisCore_Loader_AutoLoader {secure $ _instance protected; Public function get_instance () {if (null == self :: $ _ example} {self :: $ _ instance = new self (); } Returns self: $ _ Example; } Public functions ...

ios - How to drag and drop tweets from tableview onto viewcontroller -

I am currently working on a project, I have tweets in embedded tableview and drag and drop selected cells on the view need to. How can I get this to work? I am starting a lot so there is not much thought. Any suggestions to overcome this problem? drag & amp; Drop down, but here's a brief review of the process, which can get you started. You can either use the UIPNZstoreRecognizer or to determine whether the user has started, moved or dropped, one object. When the drag starts, you have to separate the view from your supervision (removeFromSuperview) and keep on touch screen, touching the fire will fire (if you are using gesturerequisher, then state In the form of a user's finger move, you can adjust the center of your view to reflect the new location (for example, dragView.center). Finally, when it is released, touch is possible (Or UIGestureRecognizerStateEnded state change in the PAN gesture identifier). You will usually see examples in these threads and els...

bash - Using sh -c if comparisons inside an SSH command -

There's a problem with i! = If statement section is basically this statement is valid, as far as I know it executes this [: 1:! =: Unexpected operator returns. I have tried to execute using the -n, but for any reason, if the output is empty, then -n still runs the echo command. Any help is appreciated on this. I've attached the code snippet below. #! / Bin / sh HOST = $ 1 USER = "/ script / zone $ HOST | tr -d '\ r'" ssh -t $ HOST -p 22 -l deehem "sh -c 'if [" !! " "=" \ '$ USER \' "]; then" HOST $ $ HOST: \ '$ USER \ `Username"; Fi "; Bash -login " As you felt, " bla "bla " is only two string concatenated ( " bla bla " ). You can avoid " : \" but in the standard [ test tool There is an option specifically for this task: -n STRING STRING is non -jojo-ja STRING's STRING's length is zero Note: Why do you have? In this way ...

windows - Issue when trying to connect to team foundation server -

I am quite new to Visual Studio and am trying to connect to a team foundation server. First of all I want to say that if I went to the URL of TFS in my browser and entered my credentials, then I get access to the code etc., so there is no problem in the credentials. Actually what I did in Visual Studio 2012: Team Explorer - & gt; Connect to Team Foundation Server - & gt; Server - & gt; Add - & gt; Enter my credentials. The login screen then appears, which indicates the username / password (which is very logic), although here I do not have access when I enter the same certificate. In that login screen, I can see a "domain" which seems a bit random, which I have just signed in when I install Windows and that domain has nothing to do with TFS. As you probably have noticed I do not really know what the domain thingy does? Could this problem be that I can not connect to TFS server via Visual Studio but does it work through browser? Also, if I am connected...

php - How best to structure this MySQL database -

I'm sure how many questions here are "How do I get it structured" so that I hope that any other foot A habitual step at the fingertips of I will have an ID (integer) which will be a unique predsigned identifier (hence the database should not be automatically increased). Each ID must belong to the GoalTemp (integer) field. And at the end of each ID, this pair associated with this link should have potential unlimited amount; Temporary (integer) time (date / time .. auto-specified); Then it looks in my mind ID: 124345 Target: 400 temps: [100, 4/12 / 02-11: 22: 00], [102, 4/12 / 2-11: 22: 20], [104, 4/12 / 02-11: 22: 40] I am going to use PHP for the interface with this database, and I can also use phpMyAdmin to do this. How do I here Table 1: ID (int) Target (int) Table_2: Table 1_ID (int, FK) Temporary (int) Time (Timestamp) PS: You have tables The primary key should also be there, but I think you already know that

c# - How to reference aspx on subsite? -

I have a sub-asp.net site by sub, I mean this is a web app in IIS that is main The web is under the app. When a user logs out of the main site, the session variable remains valid on the sub-site. I want to end the session variable in the sub site, I can create subendession.aspx especially on the sub-site. The main site ends when the user is logged out. How do I call subendession.aspx without redirecting the user there? Is there a better technique for this scenario? aborted should work (): Session.Abandon ();

hyperlink - jQuery Collapsible Plugin: Jump to anchor and expand -

How to jump on a section anchor (eg # 3) and the section be expanded together, If it has not already been extended? Edit: Plus, all other sections should be closed. With your API you can open "openable" by this $ ('# collapsible_id'). Open ('open'); So if you can identify the link or button that can be caused by some "openable" open (you can do this by adding some squares to indicate it) , You can add your click handler which will open the correct "Opening" $ ('. Open_collapsible'). Click (function () {var id_of_collapsible_to_open = $ (this) .attr ('some_custom_attribute_hold_id_of_collapsible_to_open'); $ ('#' + Id_of_collapsible_to_open). Colescable ('Open');});

git: checkout files from another branch into current branch (don't switch HEAD to the other branch) -

I want to load a different version of files in the other branch that is in my current branch. git help checkout says: Update files in the tree working to match the description index or the specific tree version If no path is given, then GIT will update Head to set the branch specified in the checkout current branch. Is there any way to checkout those files, but not update HEAD? . : checkout by giving GIT checkout other-branch-name" Itemprop = "text"> . This operation is similar, but only from "other direction" Like like @ ¹¹ ?? Ë ¯ ¼ ì ¤ ?? Is mentioned, it overwrites any unclassified change if necessary, hide them from them or remember them beforehand

How PHP variable variables work? -

I know how PHP variable variables work, but there is a problem understanding why this script is "I am r . " Instead of "I'm B" & lt ;? Php square fu {var $ bar = 'I'm the bar.'; Var $ arr = Array ('I am', 'I am b', 'I am'); Var $ r = 'I am' '; } $ Fooo = new Fuo (); $ Arr = 'arr'; $ Fooo- & gt; Resonate $ arr [1] "\ N"; // top line output // i am r? & Gt; You are defining $ arr = 'arr'; and then getting the second letter from string 'arr', not array in class Foo, this is the reason why you 'r' ( [1] is returning from your word to second letter is). Solution? You should replace: $ fooo-> $ Arr [1] echo "\ N"; With : echo $ fooo-> Arr [1] "\ N"; You should get your desired output: 'I am'

osx - How to install mod_xsendfile on mappstack -

Last Update: As the next release planned for anywhere around April 8, 2013, the MTPP stack will include mod_xsendfile in Bitani. I tried to compile and install mod_xsendfile on my mappstack5.4.12-0. I have tried two methods, but I have failed every time: Method 1: Automatically install using APX. Problem = & gt; When running command "APXS -cia mod_xsendfile.c", instead of installing APXS on mappstack, trying to install your Mac mod_xsendfile and fails because permission is denied It is trying to create a .so file in the protected area. Method 2: Compile with APX and Manual installation in APX. Problem = & gt; Command "apx -c mod_xsendfile.c" When I'm fully running in a folder, it generates an .slo file instead of an .so file How can I change the SSO file in .us file? I have not found any relevant results for .slo files in Google, nor is there anything useful about my 2 issues. With an .so file, I manually use Apache, mod_xse...

Why does installing Ruby on Rails generate error "size of array 'ruby_check_sizeof_voidp' is negative"? -

रेल पर रूबी ( gem install rails के माध्यम से) स्थापित करने पर आपको निम्न त्रुटि संदेश मिल सकता है: c: /Ruby193/include/ruby-1.9.1/ruby/ruby.h: 109: 14: त्रुटि: सरणी का आकार 'ruby_check_sizeof_voidp' ऋणात्मक है इस तरह से कई चेतावनियां भी होंगी: c: /Ruby193/include/ruby-1.9.1/ruby/ruby.h: 1333: 12: चेतावनी: डाली विभिन्न आकार के पूर्णांक से सूचक [-विंग-टू-पॉइंटर-कास्ट] और एक अतिरिक्त त्रुटि c: / ruby193 / include / ruby- 1.9.1 / ruby ​​/ missing.h: 41: 8: त्रुटि: 'struct timespec' का पुनः परिभाषा ऐसा क्यों होता है और मैं रेल को सफलतापूर्वक कैसे स्थापित कर सकता हूं? यह तब होता है जब आपने रूबी के आपके संस्करण के लिए DevKit का गलत संस्करण स्थापित किया है, उदाहरण के लिए, अगर आपने देवकीट-मिंगव 64-64-4.7.2-20130224-1432-sfx.exe रूबी संस्करण 1.9.3 में। वही सही करने के लिए ई समस्या, रूबी को फिर से स्थापित करें और रूबी के आपके संस्करण के लिए सही देवकीट को स्थापित करें, जैसा कि "कौन सा विकास किट?" पर।

python - Passing data from javascript into Flask -

How do I pass data from javascript to javascript template in javascript, but i want to pass a javascript variable in Python. I want to do this without reloading the page. Is this possible? Yes, like Monkuch said - I believe you have JSON and Javascript / JQuery. This will allow the customer to communicate and return to the server again. The most applicable example was in the flask snippet / pattern:

Ruby watir nokogiri browser integration -

So I've made a parser with water and nocturnal like Ruby and Gems, I made it on the Debian box. But I do not know what to do next. I want to work to open it on a browser and other platforms (like Windows, OSX, etc.) without the terminal window. I'm sure there is a simple solution, but I would also like input from the community. Water is running an iframe i think it is possible to run on the server, interact with a real browser, which imitates real user actions. You can make it headless, so that it can not open a browser window. I use, but you can also checkout

c# - LINQ Filtered List using Exact Word -

I have this list of strings; I only want to filter those items that would match exact for my searched keyword. Are there. For example, I have the keyword "in", I want to filter the result only for those items that contain the word "in". help please. Code Fixed IEnumerable & lt; String & gt; GetData () {var strList = new list & lt; String & gt; {"I am in love", "coffee is caffeine", "best inn so far", "inside", "in the dark"}; Var filteredItems = strList.Where (x => x.Contains ("in")); Return filtered item; } From my list, I want to return item 1 and item 5 as they are the items that have the exact word "in". Https://i.stack.imgur.com/lp7WV.png "alt =" Enter image details here "> There is a way to do this: var filteredItems = strList.Where (x => ("+ +" + ""). Or it: var filteredItems = strList.Where (x => ...

list - css dropdown menu keeps expanding main -

I just created my first CSS drop down menu and I'm very proud of it, but I have a problem when The submenu is expanding, it pulls the main ul, and I do not want it ... this should be the height i have given ... so the purple division remains down in one place even if the submenu is spreading .. thank you Here is the JSfield Link This is my code And here's my CSS ul.menu {text-align: center; Display: Table; Width: 100%; Height: 48px; Line-height: 48px; Border: 1px solid red; } Ul.menu li {background: yellow; Exhibit: Table-Cell; Border: 0 px solid yellow; } Ul.menu li {display: block; Background: blue; } Ul.menu li a: Hover {display: block; Background: purple; } .submenu {display: none; }. Menu li: hover .submenu {display: block; } Ul.submenu {text-align: center; } Ul.submenu li {display: block; Text-align: center; Background: green; Border: 0px; } Ul.submenu li a {color: red; Text-align: center; Background: pink; } Ul.submenu li a: Hover {Color: Red; Text-align...

c++ - sizeof a pointer -

int i = 0; Int * p = & amp; i; Std :: cout & lt; & lt; sizeof (i) & lt; & lt; "बनाम" & lt; sizeof (p) & lt; & lt; "\ n"; चार सी = '0'; Char * pc = & amp; c; Std :: cout & lt; & lt; sizeof (c) & lt; & lt; "बनाम" & lt; sizeof (pc) & lt; & lt; "\ n"; डबल डी = 0.123456789; डबल * पीडी = & amp; डी; Std :: cout & lt; & lt; sizeof (d) & lt; & lt; "बनाम" & lt; sizeof (pd) & lt; & lt; "\ n"; क्यों एक सूचक का आकार हमेशा एक पूर्णांक के बराबर है जो 4 है? क्योंकि एक पॉइंटर कितना मेमोरी है: 4 बाइट्स। यदि यह 64-बिट अनुप्रयोग था, तो यह 8 लौटाएगा।

applet - Odd number of non-english characters get broken in windows-chrome -

मैंने jnlp applet को विकसित किया है जो उपयोगकर्ता इनपुट को प्रिंट करता है। जब मैं अजीब संख्या में गैर- अंग्रेजी वर्ण (जैसे: चीनी), क्रोम ब्राउज़र अंतिम चिह्न को प्रश्न चिह्न के रूप में प्रिंट करता है। इनपुट: 가 आउटपुट: 가 मैंने जावा कंसोल पर चेक किया है कि वर्ण सही है। क्रोम ब्राउज़र में एप्लेट के संचार में यह बग होना चाहिए। IE सही तरीके से छापती है। मैं इस मुद्दे को सफेद स्थान पर जोड़कर हल कर सकता हूं एपलेट और जावा स्क्रिप्ट पर इसे हटा दें। किसी भी इस मुद्दे पर कोई सुराग है? कोड निम्नानुसार हैं। * MainApplet.Java * पब्लिक क्लास मेनअप्लेट जेप्लेट लागू करता है JSInterface {//, रननाबल {सार्वजनिक इंट स्ट्रिंगऑट (स्ट्रिंग एसडाटा) {आउटडेटा = एसडेटा; वापसी 0; }} * जेएस फ़ाइल * फ़ंक्शन टीएसटुलकिटआरलवापर () {var आउटडेटा; Var आउटडाटाइनम; } Var TSToolkit = नया TSToolkitRealWrapper (); Var विशेषता = {आईडी: 'टीस्टोलकिट रीयल', कोड: 'com.multibrowser.test.MainApplet', चौड़ाई: 100, ऊँचाई: 100}; Var पैरामीटर = {jnlp_href: getContextPath () + '/download/pkito...

paypal - An Invalid Parameter was entered: -

I send general login stuff that I used yesterday, and worked fine, now I get an error today! / P> Am I using Sandbox mode for PayPal? Why is any thoughts happening? Passed data: Payment object: Payment Type: 1 Custom ID: Anything WAV: Your Garage Sales Tax Registration: 0 Recipient: seller @ Iinet.net.au ipnUrl: Merchant Name: GSLER Sales Name: Garage Sale ItemCount: 1 Total Price: 3 Item Value: 3 Invoice Object: P API: MEP I suddenly received this error message from the payment service To receive Started: The receiver is based in a country that is not able to receive payment I recommend that a business located in the US Create a sandbox account.

windows 8 - How can I make SmartScreen Filter trust a self-signed certificate -

Under Windows 8, Microsoft's SmartScreen Filter is the worst nightmare of a small developer. Effectiveness, I and many other developers, do not want to pay fees for annual renewal of code signing certificates to prevent malicious programs from installing themselves on end users and end users' computers or Even worse, an EV code signing certificate. Also, when products are developed for home use, then signed with reliable credentials from a reliable CA, stored in the Trusted Publishers Store, they still hunt the super-enthusiastic behavior of the filter. . Developers and administrators will be able to disable and prompt alerts by installing a publisher's code signature certificate in the trusted publisher's shop. Creative developers can set up a self-signed code signature certificate, when they establish a pre-requisite signature and timestamp with payment-authentic certification code signing certificate. After this, the programs signed by the publisher will be r...

How to install Ruby 2.0.0 on Lion -

I am trying to clean install with Xcode 4.6.1 on Lion 10.8.3 on Ruby 2.0.0. I have command line tools installed I gcc reprots version 4.2.1 git, sqlite3, etc. All are installed. I'm trying to install a clean one. I The following steps rvm uninstall all rvm ejaculation Then install new curl-el | Bash -s stable # rvm rvm requirements Install I rvm requirements Ruby the following response. established: to: OSX- GCC-founder libksba openssl libreadline Git zlib1g libyaml libsqlite3 sqlite3 libxml2 libxslt autoconf libc6 libgdbm ncurses automake libtool bison pkg-config what it To tell me? How do I install all these packages? GCC reports are all installed version 4.2.1 Git, sqlite3, etc.? If I try to install it in spite of it, it eventually fails. I also develop iOS and can not interrupt my Xcode environment. For security reasons, as a general policy, I had to use a non-RVM to keep local changes to my userid, yet such as homebrew If no sudo on devi...

Creating subfolders inside iPad folders -

I would like to know that subfolders inside my iPad folder are possible to break my device without jail Yes, like API, you can use it on folders where you are allowed to write new files; In the folder (such as "document" or "cache" directory) Make sure to view " BOOL " return value from the API and if they " incorrect ", at the end of that API, " Check the NSError "parameter which will give you a great sign of what could be wrong with the way you were calling it.

iphone - Dynamically insert more UITextFields -

Image
I have been told in the attached screen shot. When the blue plus button is clicked, then there is a need to insert another UItextfield between the previous text fields and the textview and the blue-ed button, which appears near the dynamically-entered new eTextfield. Have to be. Can anyone suggest how to achieve this? I've put all the fields in the UIScrollview . Scroll view is not enabled : You can do this: In i Outlet previousTextField which has been added for the first time. As the name suggests, it will store the latest word text field. Find run - (IBAction) addTextField: (ID) sender {float x = previous text file.frame.orine.x; Float y = previoustextfiled.frame.origin.i + 50; // Meet the last textfield and add 10 or more to it. Float w = previousTextField.frame.size.width; Float H = Previoustextfiled.frame.height.height; CGRect frame = CGRectMake (X, Y, W, H); UITextField * textField = [[UITextField alloc] initWithFrame: frame]; TextField.placeholde...

jquery - Dynamically loaded javascript doesn't work second time loaded -

I am working on a webpage which uses a jQuery UI dialog (in modal mode) which displays a form Dynamically generated to Django The basic flow is: The user clicks on a button jquery (using AJAX) receives a request that returns html for the form which The dialog is made to fill in The html contains a script tag that handles some UI on the form that loads properly and does the desired job The user fills with the form and the click "complete" and the form has been submitted. The problem occurs when the user generates an error on the form of the reply to the post request (which submits the form) with the modified original form (including the script) to show server errors gives. This is the second time the script is full, it is "not defined by the Unkit Reference error: $ (anonymous function) " The script is actually exactly as before when it works fine in this entire process The page is never refreshing to be clear. Here is a summary of JavaScript tha...

mysql - PHP search through SQL -

I'm trying to organize it in the table with my column, but every time I try I really get something messy or totally wrong in the wrong. If I can get some help in implementing the table from SQL, which would be great, for example see this picture: Here is the code $ dbHost = 'localhost'; // localhost will be used in most cases $ dbUser = 'root'; $ DbPass = 'root'; $ DbDatabase = 'root'; // The $ CON = mysql_connect ($ dbHost, $ dbUser, $ dbPass) or trigger_error ("MySQL server failed to connect to error." MySQL_error ()); Failed to connect to mysql_select_db ($ dbDatabase) or trigger_error ("database {$ dbDatabase}." Error: ". Mysql_error ()); $ Error = array (); $ Result = array (); If (isset ($ _GET ['search'])) {$ searchTerms = trim ($ _GET ['search']); $ SearchTerms = Tab_tag ($ SearchTerms); // Remove any HTML / Javascript if (Stralean ($ Search Terms) & lt; 2) {$ error [] = "The search...

r - How to include subscript in text for plot point labels -

Image
Hello I'm new to R. So I apologize if this is a very basic question I can say on point 11 on X axis Trying to add text to the point and add 900 points on the y axis which will be read as subscript with t0 = -4.0280 0. t0 & lt; - 4.0280 I tried to do this: text (11900, paste ("t [0] =", t0, cx = 0.8) # Which gives the text '[0] = -4.0280' (11,900, expression (paste ("T [0] =", T0)), cx = 0.8, which gives 't [0] = t' # I have found the closest: text (11,900, expression (paste (t [0] == tt)), cx = 0.8, which will use the subscript, but Cheers. You Expression can change with substitute . No need for paste The argument option to replace the string t0 with the value of the object list (t0 = t0) to the t0 object Is: plot (1,1) T and LT; - 1.3 text (1, 0.8, option (t [0] == T, list (t = 0)), cx = 0.8)

uninstall app silently in android? -

I want to delete the device quietly. I'm trying this code, but gives an exception "neither user 10051 nor The current process is android.permission.DELETE_PACKAGES. " PackageInstallObserver extends IPackageInstallObserver.Stub {Public Zero packageInstalled (string PackageName, integer returnCode) throws remote exposure (if (installed packages have been! = Zero) {onInstalledPackaged.packageInstalled (package name , Return code);}}} Square PackageDeleteObserver extends IPackageDeleteObserver.Stub {Public Zero packageDeleted (String PackageName, integer returnCode) throws RemoteException {/ * ifInstalledPackagedInstalled (PackageName, returnCode);} * /} } Public Application Manager (Reference Reference) Exception = New PackageInstall Observers (); Observerdelete = New PackageDeleteObserver (); Pm = context.getPackageManager (); Class of It is impossible to program quietly . The best you can do is ask the user to delete the app in the dialog. When it presses ...

c# 4.0 - Format a label as ###,###,###.## from a SQL query -

यह मेरा कोड है SqlConnection sqlConn = नया SqlConnection (MyClass.GlobalConn ()) ; sqlConn.Open (); {String cmdStr = "कोशिश करें कन्वर्ट (चार (12), कन्वर्ट (धन, राशि (उत्पादएएमटी)), कन्वर्ट (चार (12), कन्वर्ट (धन, राशि (सेवाएएमटी)) MyTable से"; एसक्यूएल कॉमांड सीएमडी = नया एसक्यूएल कॉमांड (सीएमडीएसटीआर, एससीएल कॉन); SqlDataReader डीआर; डीआर = सीएमडी। एक्सएक्यूट रीडर (); जबकि (डीआर। रीड ()) {label1.Text = (डीआर [0] .ओस्ट्रिंग ()); Label1.Text = (डीआर [1] .ओस्ट्रिंग ()); }} मेरा Label1 और label2 आउटपुट स्वरूप है ########। ## मैं इसे ###, ###, ###। ## प्रारूप में रखना चाहता हूं, मैं इसे उस प्रारूप में कैसे बना सकता हूं? I label1.Text = (डीआर [0] .ओस्ट्रिंग ("N2")) अग्रिम धन्यवाद। यहाँ एक विधि है जो काम करेगी: सार्वजनिक स्थिर स्ट्रिंग GetCurrencyString (स्ट्रिंग currString) {दशमलव धन; यदि (दशमलव। ट्राईपर्स (क्यूक्रस्ट्रिंग, आउट-धन मुद्रा)) {वापसी स्ट्रिंग.फॉर्मेट ("{0: सी}", धनराशि); } और {वापसी नल; }} इसे इस तरह कॉल करें: ...

asp.net - C# - Failure sending mail -

This code works fine on my local machine unit when I apply it. It returns the failure to send mail error. Please help ... mailadders addrsTo = new mail address (toEmail); MailAdderEdersFraam = New MailAdd ("XXX@XXX.com", "XXX Title"); Mail message mess = new mailmessage (addrsFrom, addrsTo); Mailmsg.Subject = mailSbjct; Mailmsg.Body = "XXX body"; SmtpClient smtp = New SmtpClient ("mail.XXX.com"); Smtp.EnableSsl = false; Smtp.Port = 26; Smtp.Credentials = New network credentials ("XXX@XXX.com", "XXXXXXX"); Try {smtp.Send (mailmsg); } Catch (exception exc) {new XXXException (1234, "---" + exc.Message); } You can try this, if you are using: mail message mail = new mail form (); Mail.Subject = "Your Theme"; similarity. From = new mail address ("sender mail address"); Mail.To.Add ("ReceiverMailAddress"); Mail.Body = "Hello! Your mail content goes here ..."; Mail.Is...

linux kernel - What is the difference between module_init and subsys_initcall while initializing the driver? -

ड्राइवर प्रारंभ करते समय module_init और subsys_initcall में क्या अंतर है ? अंतर समय से संबंधित है, या अधिक सटीक, निष्पादन के आदेश। अर्थात, subsys_initcall के रूप में घोषित प्रक्रिया को module_init के रूप में घोषित प्रक्रिया से पहले निष्पादित होने की गारंटी है यह आदेश यह सुनिश्चित करता है कि उप-तंत्र और प्लेटफ़ॉर्म ड्रायवर को पहले की कार्यक्षमता (जैसे एक डिवाइस ड्राइवर रजिस्टरों को एक सबसिस्टम डिवाइस के रूप में उपयोग) करने का प्रयास करने से पहले आरंभ किया जाता है। प्रत्येक के लिए वास्तविक मैक्रो परिभाषा पर निर्भर करता है अगर कर्नेल (लोड करने योग्य) मॉड्यूल के लिए कॉन्फ़िगर किया गया है या नहीं इन मैक्रोज़ (और अन्य init मैक्रोज़) की परिभाषा में पाया जा सकता है ध्यान दें कि subsys_initcall () का उपयोग केवल अंतर्निहित (statically linked) मॉड्यूल द्वारा किया जा सकता है। मॉड्यूल_इनिट को या तो निर्मित या लोड करने योग्य मॉड्यूल द्वारा उपयोग किया जा सकता है।

ios - UISegmentedControl to display different view controllers -

I was just asking myself that to pass it with a view controller, UISegmentedControl It is OK to use It is explained in the Human Interface Guidelines document that can be used to use UISegmentedControl from one view, from one form to another Pass, but does not mention it as the viewController . I think you can use a container view controller, add some child view controller And between them the switch can switch to control selection changes.

c# - Global App bar on windows 8 application -

I am working on a Windows 8 application project I am using Visual Studio 2012 and this is the predefined templates (Gruped Page, Split Page, Ipspages). I need to add an app bar at this time. The way I choose, I create one and display it on all pages. I read this article: To add it to my project, I set the global page as the start page on App.xaml Protected async override zero on-launch (launch activeAgentArgrs ElGs) ... if! (! Rootframe.Navigate (Typf (GlobalPage), RG.Argems)) New exception throw ("Failed to create initial page"); ... On the global page, I'm changing the method on-line to reach the main home page: rootPage = e Page in the form of. Frame 1 Navigate (typef (menopause), this); I add event membership for the button, such as Private Zero ButtonBlost_Link (Object Sender, Routing Avenger, ARGS E) {this.Frame.Navigate ( Typeof (BlogListManagement), this); } After launching the app, the app bar is displayed, and I can navigate with the a...

.net - File is used by another process exception C# -

I have created an application that generates Excel files from information in the database, these files are saved in a folder on my HDD I Then I attach files and send them via mail when I create another batch of files, then I delete old files and then make new ones . My problem occurs when I have created a batch file and then sent them, and I want to create another batch, I can not remove one of the old files, because the mailing method There is still one of the Axel files Here is my code: Public Zero SendMailedFilesDKLol () {string [] sentFiles = Directory.GetFiles (some_folder); If (sent files.) ()> Gt; {System.Net.Mail.SmtpClient Client = New System.Net.Mail.SmtpClient ("ares"); System.Net.Mail.MailMessage msg = New System.Net.Mail.MailMessage (); Msg.From = new mail address ("system@lol.dk"); Msg.To.Add (new mail address ("lmy@lol.dk")); Msg.subject = "IBM Pado"; Msg Body = Sent Files Coat () + "The attached file (s) has b...

c++ - Why retrieving elements from CMap is not ordered -

In my application, I have CMP of CString values. After adding the elements in the map, if I If I retrieve the elements, then the element is not getting in the order of the inclusion. Suppose I get the third element again, I get the fifth in this way. Is it the behavior of CMAP? Why this happens? If you asked "why", then it goes here: A map Provides an effective way of obtaining value by the key, using a clever figure structure which is faster than the list or will be an array (where you should know if there is an element or not). There are trade-offs, such as the increase in memory usage, and the inability of some other things (such as knowing what things were included). There are two common methods of applying it A hashp, which puts the keys in the bucket with the hash value. A treemap, which organizes the keys in the binary tree, is sorted accordingly You can do it again on the map, but according to them That's how they are internally stored, either...

css - Issue with fixed header and footer when no background is set -

I have a problem with fixed header and footer implementation. In this example, when I have background color for a fixed header and footer, everything works fine. See here But when no background color is set (the background color of the header and footer is the same as the background color of the main body), which the customer wants, Content area overlaps with headers and footers. See here Any solutions please ?? Thank you This is working, you can change your BG color to #bb669c # # header_container Must be set

asp classic - Access 2010, SharePoint List, ASP -

I have an Access 2010 database that is linked to Sharepoint list I have an ASP The page that is querying the database and displays the data on the web page. Page auto refreshes every 30 seconds and has 4 concurrent users. Users are complaining that the following error is repeatedly showing, preventing them from effectively using the web page, and giving them their 'Microsoft Access Database Engine' error '80004005' database ' Server name 'in a position by the user's' username' which prevents it from being opened or locked. How do I resolve this error? You reference and Microsoft's post I hope this will really help In addition, you can

SQL Server Configuration Manager startup parameter from C# -

We need to implement a change in about 100 computers, so I hope that it is possible to do this with an application . Start MSSQL services All computers will be required: Shut down mssql service startup Parameter (AD-M) Create database 'test' Shut down mssql service parameter -m Remove Start the MSSQL service All affected computers are running SQL Server 2012 See PowerShell. Use the general services and configure the Windows services, including the SQL Server service (s). See . Use Provider for SQL Server Specific Content There are several tutorials online, e.g. .

ios - How to access the iPhone gallery folders programmatically in xamarin -

I am working on a photo-backing app in iPhone for Xamarin. I need to get the folder path of the folder in the gallery, so that I can save the path of the folders selected by the user and save the selected folders. You can not do this, only the app is allowed to access the directory which Not in the own sandbox. / P> If you were doing this in Objective-C, then you could use the ALSSE framework to access images.

c# - keyboard event works only once -

I am trying to create simple key remarks - when a keyboard key is pressed, another different key generated by the code Press Here is my code: [DllImport ("user32.dll")] Static Exsternity UIT Keybaid_Avent (Byte BVK, Byte BSN, Int Davefags, Int dwExtraInfo); Public static zero keydown (system.windo.formkeys key) {key_events (byte key), 0, 0, 0); } Public static zero key (System.Windows.Forms.Keys key) {keybd_event (byte) key, 0, 0x7F, 0); } Secure Override Zero WndProc (Riff Message Me) {if (m.msg == 0x0312) {int id = m.WParam.ToInt32 (); ... if (id == 2) {keydown (key return); KeyUp (Keys.Return); } ...} base.WandProc (ref m); } The problem is, when I press ED2 on the current hotkey, this press returns code works hardly once every 30 seconds. What's wrong with this keybd_evend winapi function? Did I use it wrong? There is nothing wrong in wndProc in other things (iid), only problems with keybud event. Pubal was the wrong functions KeyUp and KeyDown are the right fu...

c# - Setup a partition and row key for user account database in Windows Azure -

I'm just a little stumped on a small issue. I want to set up an account table where all the registered user data remains. This table will contain content such as email, address and password for the SRP value etc. The small problem I have is how to set up the row and partition key? I thought about having this field in the partition key, but again, if the user area has changed so, how do I know how it asks, because as far as I know that you have the line and partition key Some need to query for Thanks for your time table You should always consider your query for storage and the first pattern Update, then design your key plan based on that Do you have to ask questions other than username? Probably email? If so, you may want to include that key in it Would you ever need to update many users in a batch? Then they should be in the same division. If you only need to work on one user at a time, and you will always have username to ask, then just use the username for the ...

css - Check all my checkboxes in my table with knockout -

I have a table with the checkbox in the first column I also have a checkbox in the title, on clicking my table All check boxes should be checked in & lt; Table class = "defaultGrid" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; & Lt; Input type = "checkbox" & gt; & Lt; / Th & gt; & Lt; Th & gt; Id & lt; / Th & gt; & Lt; Th & gt; Name & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody data-bind = "foreach: model.Things" & gt; & Lt; Tr data-bind = "css: {selected: isleded}" & gt; & Lt; Td> & Lt; Input type = "checkbox" data-bind = "checked: selected" /> gt; & Lt; / Td> & Lt; Td data-bind = "text: id" & gt; & Lt; / Td> & Lt; Td data-bind = "text: name" & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt...

.net - Rows Added/Removed event? (Infragistics Wingrid) -

I need to update the row number on a label near WinGrid (WinForms Project). Grid updates are done in different ways - changing data sources, manual / correction, SQL initialization, etc. Is there a universal event when the grid line number changes (including data source changes)? I think you are bound to a list that includes a notice such as binding list or dataset / datatale is. This should be true if you add items to the data source and appear in the grid because the grid depends on the data source related to the source, to know if it needs to be updated. In that case you can bind the list of the list bound to your grid is part of this event in the event of the changelog. If you are bound for a DataTable / DataSet, then you want to use the event that will appear by defaultView of DataTable, because it is that which implements IBindingList and what exactly does the grid bind is. If you are using a collection that changes the INUNITifyCollectionChanged instead of the ...

mysql - How to merge SQL SELECT fields -

I had a MySQL table with an ENUM. Since I had to change this ENUM occasionally, so I moved it to another table. Now I have to make a statement, which will give me the name of enum / newTable in a selection area. Table 1 (Bottle): id | Size | Size_id1 Small | (NULL 2) Medium | (NULL) 3 | Big | (NULL) 4 | (NULL) | 1 5 | (NULL) | 2 6 | (NULL) | 3 Table 2 (bottle_size): id | Name 1 Small 2 Medium 3 Select larger : SELECT id, & lt; Dontknow & gt; As the size of the size of the bottle, the left hold bottle size is b.size_id = bz.id where size = 'small'; > If you do not have the NULL or the second field, then you can use the first field to select. Because it returns results in a dynamic area ("size"), you must use WHERE instead of HAVING to add a condition: SELECT b.id, IFNULL (b.size, bz.name) Size as bottle B shape size Bottle size bz.sid_id = bz.id HAVING size = 'small'; Demo:

casting - SAS convert string into datetime -

I have a column in the string table, such as representing the date code "01-Oct-2012 12 : 23: 43.324 " How can I put it in SAS datetime ? DATETIME information will read that string new_var = input (datastress , Datetime24.); Format new_var datetime24 .;

android - How EditText Retains its value but not textview when phone orientation changes? -

It is so special about the editor that it can maintain the value, but Textview and some other widgets are not available To use on saved instances) method for them. What is the magic behind the editing text that it can maintain values? If someone can say how it works internally & lt; ---- Update ---- & gt; How it works internally, please point to the part of the scenario that describes this scenario. What is the magic behind editing especially that it can maintain values? How it works internally, please point to that part of the code interpreting this scenario. This is a selectable asset that changes the difference in the following if position is to be taken into account. @override public parcelable onSaveInstanceState () {parcelable superstat = super. Onsite InstantState (); // Save the condition if we are compelled to save the boolean = mFreezesText; Int start = 0; Int end = 0; If (mText! = Null) {start = getSelectionStart (); End = getSelectionEnd (...

python - Simple Quadratic and Linear Equation Calculator -

I have difficulties with a simple linear and quadratic equation calculator, quadratic works, but it does not linear Float responds, but for some reason this is always some number and then 0. For example: if I want to solve 2x + 13 = 0 , then answer - 7.0 , although this should be -6.5 . I think it's up to the top (roof) for some reason I'm pretty sure I have some syntax error, but I can not find it. Any suggestions for how to solve this problem? Thanks for your help. import math a, b, c = input ("Enter coefficient of A, B and C. separated by commm") d = b ** 2-4 * A = c # Discrimination if any == 0: x = -c / b # liner equation x = float (x) b = float (b) c = float (c) print "is a solution of this linear equation:", x alife de & Lt; 0: print "There is no real solution for this quadratic equation" Alif D == 0: x = (-b + math.sqrt (d)) / (2 * A) print "This is a solution of quadratic equation:" , X else: x1 = (-b + math.sqrt (d...

mysql - Sorting data from tables according to time with a level of accuracy in datetime -

I have two tables which are datetime and dual which looks like this: mysql> Choose * from one; | Mysql & gt; Choose from two * + --------------------- + ---------- + | + --------------------- + ---------- + | Date | Price | | | Date | Price | + --------------------- + ---------- + | + --------------------- + ---------- + | 2002-03-18 10:30:02 | -181.241 | | | 2002-03-18 10:30:00-188.192. | 2002-03-18 10:30:06 | -180.673 | | | 2002-03-18 10:30:04 | -187.619 | | 2002-03-18 10:30:10 | -180.055 | | | 2002-03-18 10:30:08 | -187.032 | | 2002-03-18 10:30:14 | -179.459 | | | 2002-03-18 10:30:12 | -186.418 | | 2002-03-18 10:30:18 | -178.801 | | | 2002-03-18 10:30:16 | -185.807 | I am trying to do a query on values ​​from each tables with a normal date column (using the request as a reference). However, in some cases there is no symmetrical date in the measurement. The above example is an example of a period (this is the worst case), here the value of the table two corresponds...

excel - Vlookup with multiple conditions -

I've checked the previous post how to use vlookup to use several conditions, though when I put it on my workbook Let me apply "# N / A" . I am grateful for any reaction I am doing wrong. Problem (simple example): A1 = Vlookup (B1 & C1, D: E, 2, False) b1 = 123 C1 = 45 D1 = 12345 e1 = "good" I return the value of "good" The formula is expected - however, I am getting "# N / A" right now. Any help appreciated The combination is a string. Value in D1 is numeric "12345" & lt; & Gt; 12345. This is your problem. If you are working only with numerical values, which are being inserted, then this will fix the converged string by converting it into a numeric value, which should return a match. = VLOOKUP ((B1 and C1) * 1, D: E, 2, False) If you type string and / or numerical type Columns in B & C are working with the mixture, it may require some extra tuning.

search - How to use cmis for multiple content repositories? -

I want to use CMIS, where many repositories (same sellers or different vendors) and CMIS use all integrated To do these treasures on a common platform. Example Any thoughts? Regards. post-text" itemprop = "text"> Apache Chemistry OpenCMIS provides a component called CMIS Bridge is. It works as a CMIS server for the client and routes the CMIS requests back-end system. You can put your own business logic on the bridge that focuses on conversions, filters, riches and data on the data. But, at this time, the CMIS Bridge is rather basic and not well documented. However, using this component is already a business product.

joomla2.5 - i want to upgrade my joomla version with viruemart component -

I want to update / upgrade my Joomla version and virtually-mart component. My Joomla version is 1.5.26 and my Virtue-Mart component version 1.1.9 and I want to convert Joomla 2.5 and Virtuemart to the latest version 2.0.6. But the main problem is that I want to update / upgrade Joomla and PureMart with data. (Such as users, products, categories, orders, etc.) I am surprised that many sites also feature the virtue-marsh official site. I have got many solutions but when I follow all the instructions and am doing my local machine. Then the old data will return to F-Marty-Mart, but I want to update / update the old version and newer version. So please help me. Upgrade to your J.A. 1.5 site, which creates a duplicate site in a new directory, then Follow the process of upgrading VirtuMart. If you feel that your VirtuMart data is still not migrated, then exporting those tables via PHPmyadmin is easy and it is easy to import them into the Jay 2.5 database. Then you should be abl...

ios - how to control multiple buttons in one time? -

I'm a beginner iOS developer and I'm Tic Tac TO I Instead of writing a lot of code, I want to create an array to control all buttons at once How can I add all the 9 buttons to a 9? Instead of typing button 1, button2, button3, button4> & Gt; Or something like this Or tell me where the answer is and I myself Tag Lesson "> Access UIButton For each UIButton tag for example ( Int i = 1; i & lt; = 9; i ++) {UIButton * button = (UIButton *) [self.view viewWithTag: i]; } Hope this will help you. All the best !!!

sql - Mysql select value of the key from single field of table having multiple key-value pairs -

मेरे पास तालिका है: सेवाएं: + ---- + ----------- + ------------ + ------------- + | आईडी | नाम | सेवा_आईडी | विवरण | + ---- + ----------- + ------------ + ------------- + | 1 | चैट | 1 | | | 2 | एसएमएस | 1 | | + ---- + ----------- + ------------ + ------------- + सेवा_पूर्णताओं: + ---- + ------------ + ------------ + ------------- + | आईडी | सेवा_आईडी | नाम | विवरण | + ---- + ------------ + ------------ + ------------- + | 10 | 1 | ऑडियो | | | 20 | 1 | वीडियो | | | 30 | 2 | बुलक्सम | | + ---- + ------------ + ------------ + ------------- + ग्राहक सेवा: + ---- + ----------- + ------------ + ---------------------------------- + --------------- -------------------------- + + | आईडी | Client_id | सेवा_आईडी | सेवा_फ़ेक्स_आईडी | सेवा_मूल्य | + ---- + ----------- + ------------ + ------------------- --------------- + ---------------------------------- ----------- + | 100 | 1000 | 1 | विशेषताएं: {10: सक्षम, 20: अक्षम} | मूल्य: {data_transfer: 102400, कोटा: 204800} | | 200 ...

c# - Reportviewer - Make consecutive repeating rows become one -

Will I know how to do with the details below? Say I have a dataset of 4 columns, and I have a consistent repeat of date , name and id There are criteria, but there is no quantity. How can I make a row that tells all 3 rows before? How can I do this in the report viewer? Date Name ID Quantity____________________________________________ 21/3 John 001 10 John 001 20 John 001 10 And I want to make it: Date Name ID Quote____________________________________________ 21/3 John 001 40 Thanks in advance. I solved it using a group by query, for example: The date, name, id date, name, id, amount (quantity) as quantity from the order by Epibable Group, although simple, I thought the report viewer could do this. Thanks

bash - Rename directory after untar tgz file -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मेरे पास गुच्छा है * .tgz फाइलें और जब मैं उन्हें कुछ अनवरोधित कर देता हूं कि कैसे निर्देशिका नाम टीजीज़ फ़ाइल के नाम से अलग है उदाहरण: मेरे पास ab.tgz फ़ाइल है और इसे 2012_test_ab जैसे कुछ में बदल जाता है, मुझे ऐसा महसूस होता है क्योंकि संपीड़न फ़ाइल के दौरान इस संपीड़ित फ़ाइल का नाम बदलना चाहिए, एक मूल निर्देशिका आदि के अंदर था। लेकिन मैं क्या करना चाहता हूं, फ़ाइल का मूल नाम के लिए निर्देशिका का नाम बदलता है। मेरे पास टर्मिनल पर चलने के लिए एक लाइन स्क्रिप्ट है, लेकिन मैं उसका नाम कैसे बदल सकता हूँ? के लिए I * .tgz; टार xvf $ i -C ../stats/; उदाहरण: जब मैं ab.tgz को मिटाता हूं तो इसे निकाला जाता है निर्देशिका नाम के लिए 2013_03_12_18_26_ab और उस निर्देशिका के अंदर की फाइलें हैं लेकिन मुझे क्या करना है, इसे 2013_03_12_18_26_ab के बजाय निर्देशिका नाम रखना है I ab.tgz निकालने के लिए .. / stats / ab ऐसा कुछ काम कर सकता है हालांकि यह शुरुआती है, इसलिए मेरी सिंटैक्स थोड़ी दूर हो सकती है i के लिए * .tg...

sed (or awk) to sum values in a csv file -

I have a CSV file where lines look like this: foo, bar To change the last 3 values ​​in a nutshell, I need a command: If possible I need a liner. awk -F, '{print $ 1, $ 2, $ 3, $ 4 + $ 5 + $ 6} '"Post-Text" itemprop = "text"> OFS =, file and not for a fixed length: is not the right tool for arithmetic.

ASP.NET MVC - redirect to external page? -

मेरे पास यह है: सार्वजनिक रीडायरेक्ट लिंक लिंक (स्ट्रिंग यूआरएल) {वापसी पुनर्निर्देशन (यूआरएल) ); } और यह सब करता है, मुझे पुनः निर्देशित कर रहा है मुझे यहां क्या याद आ रहा है? आपको यूआरएल को http: // इसके लिए प्रीफ़िक्स। तो यह काम करेगा Ex: http://www.google.com इसलिए यदि आप अपनी कार्रवाई विधि को सभी प्रकार के स्वीकार करने की अनुमति देना चाहते हैं लिंक ( http उपसर्ग के साथ और बिना), आपको यह पता लगाने के लिए कि क्या यूआरएल पैरामीटर मान पास है http उपसर्ग है और यदि नहीं, तो इसे जोड़ने के लिए थोड़ा सा कोड लिखना होगा

powershell - Copy-Item with over write -

In one of my scripts, it tries to copy an exe to the C: \ Windows \ Temp folder. For example: copy-item repo \ filename.exe -nation \\ $ machine_name \ c $ \ windows \ temp error message: copy-item: network path was not found D: \ CMPortal \ Scripts \ ClientRepair \ RepairCCMClient.ps1: 122 char: 33 + If (copy-item When I run the same command manually, it works. Do not know what is wrong if there is a copy file in the file then what is there to overwrite the file? Thanks in advance. Are you using quotes correctly? copy-item 'repo filename. Exe '- Destination "\\ $ machine_name \ c` $ \ Windows \ Temp" - Force

ms access - vb.net: how to count row of searched value from one column -

We say that the date of the two columns is found and i nid help plss * Note, I use Olead as a database connection > This is my search code private sub-end TxSearch_TextChanged (such as System.Object, System.EventArgs e) as handle TxSearch.TextChanged so Con.State = ConnectionState.Closed then Con.Open () father = The new OleDb.OleDbDataAdapter ("RecordDate, is the item of items related to investment related decision makers. Do not like where RecordDate '% "& amp; TxSearch.Text & amp;"%' ", con) New DataTable Dad.Fill as dim DT (DT) Me.DataGridView1 .DataSource = DT ConkClose () Datagridvievlkrusdfultkellsylekbaksolor = Klrkdipaskyblue Datagridvievlkalternatingrosdefultilstilekbaksolor = Klrkwait Kyonkcloj () Sortdtgridvievklumn (0) End sub Private sub TxSearch_TextChanged (as sender as System.Object, e System.EventArgs) handles TxSearch.TextChanged If Con.State = ConnectionState.Closed then Con.Open () Finished Papa = New O...

multi-dimension array manipulation R -

I'm sorry, but I can not find any way to change every 0 in the dimension of 3 dimensions that are columns. Thank you. So, for example, suppose I have this array j, 1 [, 1] [, 2] [1,] 0 6 [2,] 1 5 [3, ] 2 2, 2 [, 1] [, 2] [1,] 11 0 [2,] 14 12 [3,] 0 14, 3 [, 1] [, 2] [1,] 1922 [2] ], 20 23 [3,] 21 24 I want j, 1 [, 1] [, 2] [1,] 1 6 [2,] 1 5 [3,] 2 2, 2 [, 1] [, 2] [1,] 11 26/3 [2,] 14 12 [3,] 25/3 14 ,, 3 [ , 1]], 2222 [2], 20 23 [3,] 21 24 for it. Getting started with the following data: arr & lt; - Array (0: 5, dim = C (4,3,2)), 1 [, 1] [, 2] [, 3] [1,] 0 4 2 [2,] 1 5 3 [3, ] [4,] 3 1 5, 2 [, 1] [, 2] [, 3] [1,] 0 4 2 [2,] 1 5 3 [3,] 2 0 4 [4,] 3 1 5 You can: apply (arr, c (2,3), function (v) {v [v ==] 0] & lt; - Mean (v); v}) returns: , 1 [, 1] [, 2] [, 3] [1,] 1.5 4.0 2 [2,] 1.0 5.0 3 [3,] 2.0 2.5 4 [4,] 3.0 1.0 5, 2 [, 1] [, 2] [, 3] [1,] 1.5 4.0 2 [2,] 1 .0 5.0 3 [3,] 2.0 2.5 4 [4,] 3.0 1.0 5