Posts

Showing posts from August, 2012

scala - Ensime doesn't work with sbt + android-plugin -

I have created a project using it: When I use SRC / Main / Scala in emacs /Activity.scala I have highlighted the red almost everywhere. The first highlight is "Import Root ." Examples in Android "Android "Which is not a member of Android Root but everything in the SBT is compiled properly. How do I work with SBT + Android-plugin to work correctly? Tell Encyclopedia Where to Get it android Find package Add a line to your .enime file In which path is the path to android.jar , for example: : compile-jars ("[...] / local / share / java / android -sdk-mac_x86 / platforms / android-10 / android.jar ")

php - storing multiple values in a single variable? -

फ़ॉर्म क्रिया = "" विधि = "पोस्ट" & gt; & Lt; इनपुट प्रकार = "सबमिट करें" नाम = "foo" मान = "ए" / & gt; & Lt; इनपुट प्रकार = "सबमिट करें" name = "foo" value = "B" / & gt; & Lt; इनपुट प्रकार = "सबमिट करें" name = "foo" value = "C" / & gt; & Lt; इनपुट प्रकार = "सबमिट करें" name = "foo" value = "D" / & gt; & Lt; / प्रपत्र & gt; & Lt;? Php $ अक्षर = $ _POST ['foo']; ? & Gt; प्रत्येक बार फॉर्म जमा करें $ अक्षरों को संबंधित मूल्यों से भरा जाएगा इसलिए $ अक्षर "ए" या "बी" या "सी" आदि हो सकते हैं। क्या यह संभव है कि एक समय में सभी सबमिट किए गए मानों को स्टोर किया जाए? जब मैं $ अक्षरों को प्रतिध्वनित करता हूं तो इसे "एबीसीडी" या "बीसीडीबीए" या किसी भी ऑर्डर फॉर्म को प्रस्तुत करना चाहिए। मुझे लगता है कि यह $ _SESSION के माध्यम से किया जा स...

java - Swing GUI to show moving images -

How should I show file transfer using moving pictures in the swing? You can use an animated GIF (unless you want it to be transferred has been done). A good example is

Access 2007 - accdb; options in setting up a reliable multi-user environment across multiple servers? -

I'm having trouble sorting all information / different options in connection with Access 2007 used in a multi-user environment Here's a brief description of my current situation: "Business LAN" on the job that I can log on and can use to configure two other servers through remote desktop. Trade lanes are strictly controlled by our IT department and no one is permitted to install any software or drivers without their consent. Although I have administrative privileges on both servers The two servers I log on to use to RD are essentially used for the same task, Used for monitoring and controlling the lines. Each server runs a separate program to complete this task, but both programs use SQL Server as back end. I have combine with the relative information by adding two entry databases (one on each server because they are currently behind separate firewalls) to ask information from the backend of the SQL side of these accesses, in which I have the tables Has compil...

excel - How do I read a secure sharepoint directory with VBA? -

I am trying to write a macro to connect to an https sharepoint directory and read the list of files in it Directory (so that I can parse the filenames and then open the appropriate and read some data from it). So far I've tried: set folder = fs.GetFolder seems to work with a http sharepoint, but a https : SharePoint getChildren () does not work here The directory is returned as a simple record (even if it is actually complex with a subfolder and files, which should be a child). Connecting the Excel document to SharePoint and then implementing the Shared Workspace Function. It does not return any documents in the directory, even if there are many other files in the directory. Did anyone get success with a secure https sharepoint directory with it ?? Sharepoints reveal offservices you can use to recycle them through your libraries . SharePoint 2010 also provides managed client object models. This will do the work you want:

ios, is there a way to show MKPinAnnotationView without user tap the pin on MapView? -

As a topic, I just want a method which without clicking the pin on the map view Can MKPinAnnotationView Show? I try to use the method - (zero) selection Annotation: (id & lt; MKAnnotation & gt;) Animation Animated: (BOOL) Animated; But it can only select one pin, but many .... I want to show all MKPinAnnotationViews of pins, how do anyone know? Please help thanks for you. I did not do it personally, but if I were you, Show the properties of the code> image in MKPinAnnotationView objects and in the system of your choice.

php - how to select a file for reopening by creating list -

I have ways to get a list of files using Ajax and php.but but I'm one of those files Wanted to choose and open it. So I wanted to get a list in which I can select any file of the user choice. Add your list to & lt; Select & gt; Keep in With each file the field is & lt; Options & gt; Then, with the value equal to the filename, the event of a change (or a submission function, if you want them to complete other elements of a form before) that the name of the file selected through AJAX on a php script Sends which opens the file and manipulate it to use () but you want to have it.

php - create session specific data -

Good afternoon, everyone is with a doubt. Already have an active session, and I have to create another session. With more data. And this new session is getting empty and the data is going into the first session. Anyone know how to add data to the specified session by name. I would be very grateful for help. You can not have multiple sessions active at the same time. Although a session is just an associative array, so you can create many namespaces inside the use of different keys. For example $ _ session ['one'] = $ foo; $ _SESSION ['two'] = $ bar;

php - how to increase performance of mysql query? -

I have already used a username to use this query or I am using Ajax in the database, so far I will record a lot in the Future Username list in only a few DB BTs, so I want to improve the performance of the query in such a way that it will take less time to check the username. How can I improve the following questions? Is it possible to index on DB? check.php & lt ;? Php if (isset ($ _ POST ['user_name'])) {$ user_name = $ _ POST ['user_name']; Included ("include / conn.php"); $ Sql_check = mysql_query (Choose user id from "vector`, where userid = '". $ User_name. "'") Or die (mysql_error ()); If (mysql_num_rows ($ sql_check)> 0) {echo "no"; } Else {echo "yes"; }}? & Gt; My jquery code & lt; Script language = "javascript" & gt; $ (Document) .ready (function () {$ ("# uname"). Blur (function () {$ ("# msgbox"). RemoveClass (). AddClass ('messagebox')...

nsautoreleasepool - Regarding multiple threads on the iPhone -

I have a question. My case study is that I have two large SQLite databases and I want to use the thread (I.e. 2 processes simultaneously). Does this work well? I have written the following code: NSAutoreleasePool * dbPool; DbPool = [[NSAUTOriasius Alok] Init]; / * All databases are done here * / [dbPool release]; Please guide me whether I am doing this correctly or not? Should I use a pool drain or stay? And in this way, it is using concurrent processes, which means it is the same behavior as multitasking? Thanks in advance! Yes, you're correcting it. Each of your new threads needs its own Aurora pool. According to your question about the clearance of the pool / pool, drainage message is advised. What do you mean by SQL Database? How do you use it? If you access it through the coredata, you follow the following in your memory: You need an NSManagedObjectContext per thread, NSManagedObjects Do not pass on another thread, pass the object ID, Before you p...

jquery background from image to color and back again -

I have an html page in which jquery is loaded. There is no CSS at this time. The background image is set to: & lt; Body background = "image1.gif" & gt; I'm trying to convert it to a color (say black) and again by returning the image using onclick. I have been able to set up Dives and all colors are used to change the color: jQuery ('body'). CSS ('background color', 'black'); On any other page, but it does not work here because I want to color the image again and again. Then, I can use CSS to change the background and change the square instead: P> HTML: & lt; Body class = "image" & gt; CSS: body.image {background-image: url ('image.gif'); } Body.colour {background color: black; } For more scripting: $ ('body'). AddClass ('color'). RemoveClass ('image'); and back again: $ ('body'). AddClass ('image'). RemoveClass ('color...

ruby - How can I match a URL but exclude terminators from the match? -

I want to match the URL in the text and want to replace it with the anchor tag, but I want to exclude some terminator Want to tweet the url in tweets like url So far I have found this, but it is clearly not working very well. (http [s]? \: \ / \ / [A-zA-Z0-9 \ - \. +. [A-zA-Z] {2,3} ( \ / \ * S *)?) Edit: Some example URLs In all cases given below, / P> . : "http: // www example.com" ; ! [http://www.example.com] {http: //www.example.com} * I saw the last issue on this issue and developed the solution that you might want to see - see: this link is difficult There is a test page for JavaScript solutions with many examples of URLs linking to. The Rejx solution written for both of my PHP and Javascript - (but can be easily translated into Ruby) is not easy (but this is also the problem as it turns out.) For more information I also recommend reading: Jeff Atwood, and After reading Jeff's blog post, it is necessary to read the comments if you w...

php - SQLite select query with like condition in reverse -

I am trying to write a query in php which will select a row from a database that is partly by a string Matches. Better explained through an example: My DB has a code which is named numberString in which the value is 'abcd'. I want to write a question that "123abcd" is returned, will return an area of ​​that line of the database. Selection mood from users where 'string string' is like 'string string' ' $ denmark string function parameter (I.e. the string that I want to see) But I think those two number string and '$$ given number string' " query To work as expected, there should be another way to do it. Is there any way to do this? OK, the table is Type looks: id | username | number string | mood --------------------------- ---------- 1 | My Usaran | ABCD | happy Now I want to give "123abcd" to recover the person's mood. In order to match 123BCcd against ABCD. I'm not sure this is ...

shell - exit code when crashed -

I like to know whether the app has crashed or not from a shell script. What will be the exit code if the application crashes? The exhaust code of the application will be in the shell variable $? If your app crashes, that means the operating system decides that it has done something bad, and the reason for it to end (it sends a signal), then it $? Here is a simple function I use (in bash I have set it as PROMPT_COMMAND variable) puts some decoding of exit status check_exit_status () {local status = "$?"; Local msg = ""; Local sign = ""; If [$ {status} -ne 0]; Then if [$ (($ {status} & lt; 128)) -a 0]; Then msg = "exit ($ {status})"; Other sign = "$ (baltin kill- l $ (($ {status} - 128) 2) gt; / dev / null;; if [" $ sign "]; then msg =" kill - $ sign $ msg "; Fi; fi; echo "[$ {status} => $ {message}]" 1> and 2; fi; return 0} Hope you find it useful Find

php - Modify DateTime object -

मैं एक वस्तु बना $ date = new dateTime (); यह वर्तमान तिथि पर सेट है 2011-04-01 21:43:40 मैं निम्नलिखित की कोशिश करता हूं $ date- & gt; संशोधित करें ('आधी रात'); मुझे उम्मीद है कि वस्तु को 2011-04-01 00:00:00 पर सेट करना होगा लेकिन कुछ न हुआ। ऑब्जेक्ट को संशोधित नहीं किया गया था, और एक 2011-04-01 21:43:40 तिथि जारी है। मैं सिर्फ मध्यरात्रि (00: 00: ऊ) में रीसेट करना चाहता हूं। कोड का यह टुकड़ा (आधी रात के साथ) बिना तिथि के काम नहीं करेगा। टाइमज़ोन सेटिंग अद्यतन: कोड के इस टुकड़े को PHP 5.3.6 को सही ढंग से काम करने की आवश्यकता है पिछले संस्करणों में दिनांकटाइम :: संशोधित करें ('आधी रात') काम नहीं किया

url - How to know where I'm from in Wordpress? -

I have a question. Is it possible to know which page I am? If I go from / blog / to home then I will display a division from "home". Thanks You can not use & lt ;? Php $ _SERVER ['HTTP_REFERER']; ? & Gt; ? You have to remove the page name value from the string, but it should be very straight forward, just change it to an array (with '/') and get the correct indicator for your parametric structure.

c# - Why does this throw a NullReferenceException? -

Private Wide Alternode Valle (string xmlfile, string mangent, string node, string newwall) {XDocument xml = XDocument. Load (This.dir + xmlFile); If (xml.Element (parent). Element (node) value! = Null) {xml.Element (original). Element (node) .value = newVal; } And {xml.Element (parent). Add (New XElement (Node, Naval)); } Xml.Save (dir + xmlFile); Why does it throw System.NullReferenceException user code did not stand on this line if (xml.Element (parent). Element (node) value! = Null) ? I think this is because XML node is not present, but it is that ! = Zero to check for how I can fix this? I have tried many things and they throw the same exception at any point during any blank investigation Thanks for any help You are trying to access the return value of xml.Element (parent) null . It is necessary to reconstruct this way that you are able to see which one is: var myElement = xml.Element (parent); If (xmyElement! = Null) {var myNode = myElement.El...

objective c - Pass a String from one .m to another .m -

#import "MainViewController.h" #import "MyFirstAnnotation.h" @implementation MainViewController // करने के लिए ViewDidLoad कार्यान्वयन दृश्य को लोड करने के बाद अतिरिक्त सेटअप, आमतौर पर एक निब से - (शून्य) दृश्यडिडलोड {[सुपर व्यूडिडलोड]; } - (IBAction) annosetzen: (आईडी) प्रेषक {CLLocationCoordinate2D coor; Coor.latitude = 54.3327162876622; Coor.longitude = 10.1518177986145; MKCoordinateSpan अवधि; Span.latitudeDelta = 0.01; Span.longitudeDelta = 0.01; MKCoordinateRegion क्षेत्र; क्षेत्र। केंद्र = कॉपर; Region.span = span; मायफ़िस्टअनोटेशन * एननो = [[मायफ़िस्ट एनाटेशन एलोक] इनिट]; [MapView जोड़ेंनोटेशन: सालाना]; [MapView सेट रीजन: क्षेत्र एनिमेटेड: TRUE]; // MKReverseGeocoder * revGeo = [[MKReverseGeocoder alloc] initWithCoordinate: कॉयर]; //revGeo.delegate = self; // [आरआरजीओ शुरू]; } आगे। मी, जो स्ट्रिंग प्राप्त करना है #import "MyFirstnnotation.h" @implementation MyFirstAnnotation - (CLLocationCoordinate2D) समन्वय {CLLocationCoordinate2D coor; ...

jQuery .ajax() url parameter not taking concatenated string? -

I have a piece of javascript that can be executed from several pages with different URLs. Code is working properly in this case (here is the key URL parameter, nothing else will change): $. Val (PageName);}, Error: Function (page name = "+ $") (Ajax ({type: "POST", url: "./( {page name} {$ (" # updated page name " ("# PageToEdit"). Val (), success: function Req, error) {if (error === 'error') {error = req.statusText;} alert ("was an error:" + error);} }); When I try to modify the url parameter to do something like this: $. Ajax ({type: "Error" (error === 'error') {error = req.statusText;} Warning ("One error", "POST", url: BASE_URL + "ajax (page name =) + $ (" # page tutorial ", error) Procedure was: "+ error);}}); Where BASE_URL is stationary, it causes an error It seems that the request is not being sent (when I'm trying to do so, there are no 4...

rails equivalent of sql 'in ' operator -

Assume that our models are A, B, and C A 1: N B1 : N to C How do I use a query to return a subset of C such that the owner of each C is one of the A's owned B? Essentially but this is unanswered Must have: A has_one C ,: = through = B and then you will be able to AC

mysql - Confusing regex behavior when combining ` with ( -

To work around 5.1 compatibility issues with a MySQL 5.0, I am trying to change this pattern: key 'brand_id` (`brand_id`) using Beatia on: key of' brand_id ' Use Beetry (`brand_id`) The following regex runs in the Vime: Finds all the events in the problem: key. * '\ (. * \) Using BTRE Therefore, I tried to modify it only in the lower replacement string, but it can detect matching strings. Why? Using the Beatri / Key \ 1 word (\ 2) / gc % s / key (`. * *) / Code> I do not know why, but in Vim you can avoid matching boxes and let them alone Try to leave when they should be taken verbally: try % s / key (`. * '\) \ ((*. *) \) Beetree Beatree \ / 2 / GC / key \ 1 is using / Urw>

cakephp 1.3 routing question -

This summary is not available. Please click here to view the post.

c# - Need help with NHibernate assembly version issue. Error with loading the correct assembly version -

note I stopped localizing my second ticket. I have a problem like I see that after using a newgate to set up FluentNewernet near another poster: Error The file or assembly could not be loaded 'clear definition of assembly located in one of NHibernate, version = 3.0.0.2001, culture = neutral, public key token = AAFFFFFX 777DDDA4' or its dependency Assembly does not match reference . (HRESULT: Exception from 0x80131040) I saw that the stack overlays answered and answered on other blogs: add-binding redirect However, it has not resolved my problem and all the results of running that command are: PM> Ed-Binding Redirection Name Oldversion Newversion ---- ---------- ---------- NHibernate 0.0.0.0-3.0.0.4000 3.0.0.4000 When I am setting up Fluent Enhnernet from Newgate, it says that its dependencies are 3.0.0.2001 Nhibernate but it installs Nhibernate 3.0.0.4000 What am I doing wrong? I can not comment on the specific problem with NuGet but you ...

mobile - Android: Traffic stats (daily unique user, monthly unique user) for applications using app id -

How can I find weekly unique users for apps using unique users, monthly unique users, app IDs everyday? The Android Market tracks only the number of downloads and active installations, Is counted for setting up. To track unique users you should probably create it in your app with a pingback on your own server, here's how to count on trusted devices.

c# - How to use MVCMailer without breaking my service layer? -

I'm using to create good emails. However one thing that is uncertain to me is that I have 2 projects currently in order to organize code one for MVC and one for my repo and service layer. My second project has no knowledge of MVC and I would like to keep it like this. I am thinking that my SMTP code goes into a service layer or cover and then I tell it from other service layers when I need to send an email. So where does the MVC fit into the mailer? Do I produce the body in the controller, then pass it to the Serivas layer near my SMTP class? "post-text" itemprop = "text"> MVC mailer already has support for sending emails. If you set up the conference correctly, then it should be able to email to Melvaris, without any additional implementation population. I do not have the role of your second project in your solution, but these are two possibilities: Maybe not practical ... "sending an email from the background "Wait for the ver...

Cannot run asp.net mvc 2 on a subdomain while I can run on a domain -

I created an asp.net mvc 2 from a template in the subdirectory of a domain. In IIS I changed it into application. When I try to use Throwdomdomain / subdomain 403 - Forbidden: Access is denied If it is IIS6, remember to set wild card mapping for the virtual directory.

How to execute Linux nested command line tersely? -

यहाँ नेस्टेड कमांड लाइन का अर्थ है एक कमांड का आउटपुट एक अन्य कमांड का इनपुट है उदाहरण के लिए नीचे: $ सीएमडीए आउटपुट 1 आउटपुट 2 आउटपुट 3 ... अब मैं सीएमडीबी को चलाने के लिए चाहता हूं जो सीएमडीए के आउटपुट का उपयोग तर्क के रूप में करता है। तो $ सीएमडीबी आउटपुट 1 आउटपुट 2 आउटपुट 3 ... का उपयोग करने के बजाय सीएमडीबी चलाने के लिए मुझे एक वास्तविक समस्या है अब: $ python-config --cflags --ldflags -i / usr / include / python2.7 -i / usr / include / python2.7 -fno- सख्त-एलाइजिंग-ओ 2 -पी -पिप -Wall -Wp, -D_FORTIFY_SOURCE = 2 -फ़ीप्शन -फस्टैक-रक्षक -परम = एसएसपी-बफर-आकार = 4 -m32 -march = i686 -mtune = atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp, -D_FORTIFY_SOURCE = 2 -फ़ीप्शन -फ़ास्ट-रक्षक -परम = एसएसपी-बफर-आकार = 4 -m32 -march = i686 -mtune = atom -fasynchronous-unwind -tables -D_GNU_SOURCE -fPIC -fwrapv -lpthread -ldl -lutil -lm -lpthon2.7 -Xlinker -export-dynamic जैसा कि आप देखते हैं, कमांड अजगर से उत्पन्न कई आइटम हैं-...

How do we create a cronExpression using Java code -

For example if I want to convert 2011-03-27 T11: 15: 05 into a valid Cron expression How do I do that The creation sequence of a cron expression is: hours day of the month month day of the week Year [Optional] So if you look at the expression 05 15 11 27 03? 11 This is called a fire on 27 March 2011 at 11:15:05. In Java, you can easily obtain this information from the date. So now I think that you will be bundled to make a cron expression. Hope it helps. Reference: - Edit: - Here is an example: - schedulerffecture sf = new stsfilerfactor (); Scheduler shade = sf.getScheduler (); Sched.start (); Job Details JD = New Job Dictate ("Miezb", Scheduler. DEFAULT_GROUP, Kroneesthler.class); Chronograph Tr = New Chronograph ("My", Scheduler. DEFAULT_GROUP, "05 15 11 27 03? 11"); Sched.scheduleJob (jd, tr);

android - AutoCompleteTextView crops the last row -

Image
I have an autocomplete full text, a list for which the custom array adapter is loaded. In the scene, I have two lines with one name and another is the email id. My problem is that when my list contains only one item, it crushes the item (please see attached image) How to decide any idea Update: looks like a fading issue, is there any Can I help to remove the fading for this? As suggested by @Sat, the height of the height was a move for me It looks better, but the vertical scroll still appears.

visual studio 2008 - Synchronize currently edited file with project view -

How do I synchronize my project explorer treeview with this file in which I'm currently editing? Like the synchronized view of Eclipse I am using Visual Studio 2008 / C # Do you mean Solution Explorer ? This can be done with: Tools - & gt; Options - & gt; Projects and Solutions - & gt; General - & gt; Check Solve an active item in Explorer

Javascript: Determine if URL in PopUp changes/is redirected -

I want to open a popup, and determine if the URL (such as 5 seconds) meta / 301-header / JavaScript-Redirect / etc - & gt; FF gives me permission-error, because I can not read the URL of the popup, does it seem to have something with a cross-domain policy? !!? & lt; Script & gt; Var redurl = 'http://www.google.com/'; Cr = window.open (redurl, 'cr', "left = 0, top = 0, width = '50', height = '50', scrollbar = 'no'"); Window.setTimeout (if (cr.location.href! == redurl) Warning ('Redirected');} Hold (e) {Warning ('(Permission Error!!?!?)');} Cr .close ();}, 5000); & Lt; / Script & gt; Yes, you can not access the URL of the frame from another document due to the domain Cross-Domain Policy

Why don't genetic algorithms work on problems like factoring RSA? -

Some time ago I was very interested in GA and I have read a lot about them. I used C ++ GAlib to write some programs, and I was quite surprised by the ability to calculate problems in a matter of seconds or otherwise solve their difficulties. They looked like a great bratourcing technique that really works as smart and adapts. I was reading a book of Michaelwitz, if I remember the correct name and these all start to be based on the schema theorem MIT. I have also heard that it can not really be used to deal with problems like RSA Private keys factoring Can anyone explain why this is the case ? Genetic algorithm is not smart at all , they are very greedy adapter algorithms . They all work around the same idea. You have a group of points ('population of individuals'), and you can convert that group to another with a staichstastic operator, with a bias towards the best improvement ('mutation + crossover + selection'). Repeat until you change it or you are t...

orm - Object Relational Mapping between a Database and the Domain model -

Which rules should I follow in order to efficiently organize my database model in a database table? For example, I have a database table person (Varchar) First name, varchar LastName, int (age)} and domain class Class person () {string first name; String last name; Old age; } Should have the same number of assets in the orbit and table should they be similar (example: varchar - string) What are the best practices What to avoid? There are several strategies for object-relational mapping. Ultimately, you will have to represent each piece of data continuously in some area somewhere, so your strategy will work, you have to answer other questions: 1) How are your records? Are you going to a unique ID field for each class? 2) How will you handle the heritage? If you have a person (person) who introduces an additional area, will you prepare a whole new table for each field in person + PersonA, or is there just a Persona table for additional fields? Ho...

Maven child modules not being built -

Pre> & lt; Module & gt; & Lt; Module & gt; WebApp & lt; / Module & gt; & Lt; Module & gt; WebService & lt; / Module & gt; & Lt; / Module & gt; When I clear mvn at top level palm & amp; Establishes the required module of each child, however I am now trying to add a plugin (CodeHouse Weblogic) target to deploy WebApp. For weblog 10.3.4 eg Install MVN Clean Weblogic: For some reason it does not clean and install steps, but deploys if I run commands from within the webpage directory then it works and deploys Before it is installed, it is installed. Am I missing something which will not run the stages of the child's life cycle when running a goal? Here is the command line output at the top level: [ Information] Scans for projects ... [INFORMATION] The sequence of the construction of the reactor: [INFORMATION] SupportClient [INFO] SupportClient-WebServices [INFO] SupportClient-WebApp [INFO] Search fo...

Python Twisted: twisted conch filetransfer verifyHostKey -

I'm playing with sftp example from here: I use it here to connect I am doing Therefore, I can use a string key or key instead of a password in ~ / .shh. Now I want to distribute hosts or fingerprints from the host so that users can not verify the hostname def sftp (user, host, port, key, hostkey): options = ClientOptions ['key'] = keys. Key.frame string (key.strip ()). Key object option ['host'] = host option ['port'] = port conn = SFTPConnection () conn._sftp = deferred () Auth = SSHUserAuthClient (user, option, conn) (host, port, options, verifyHostKey, auth ) To connect conn._sftp I tried to verify some arguments, as you can do that the ultimate fingerprint is not used in the A valid value is not found for. def verify host (Transport, Host, Pub, Fingerprint): "" "Verify Host Key .... Any ideas how Can I be prompted to verify the hostname of a host without having to write hostname ~ / .shh / known_hosts? OK, I wrote a fun...

ComboBox Input ,wpf -

I have a combo box and its item source is a SQL table. I like that the user will like that value and if the price is not in the list, then he will be able to type the value in the combo box. Is this possible? Thank you. Your inconsistent property must be set in Cobbox to True. This will allow you to edit the content and to select any populated items in the combo box.

php - How to make an FPDF's generated pdf non cacheable? -

I see an app written in raw php without any framework. The reports generated with FPDF in a module are working fine, except that the PDF cache is done. Original sound of Generation Routine & lt; A href = "tr_inci_print.php" target = "_new" & gt; Print & lt; / A & gt; tr_inci_print.php Uses 2 parameters stored in the session, year and month. I received the code & lt; A href = "tr_inci_print.php? Anio = & lt ;? php echo $ anio;? & Gt; mes = & lt ;? php has changed into echo $ mess;? & Gt; target =" _new "> Imprimir which resolves the problem partly by changing the URI in every month, but if the data changes externally and the browser is still There is also no updated PDF from retrieving the link if it is also in the original page. Is there any way to convert $ FPDF-> Output () to PDF to non-cacheable? ------ partial solution ------------------- The following OZee answered, changed: $ oP...

Osirix for iPad -

We need to create a plugin for the Oscars application on the iPad. Where can we find the code base? The code for Mac is available on the base site. How to convert it to iPad? Fact: The iOS version of Osirix is ​​not open source. You can not create a plugin for the iOS app.

Diffinitive rules for using Android's getBaseContext, getApplicationContext or using an Activity's "this" -

I did a lot of this question and found several different recommendations when using getBaseContext , getApplicationContext , or an activity of its own this . Three rules that come many times and make a lot of sense - Long reference to a contextual activity getApplicationContext Should be used because it exists with your presence For those references whose life-cycle is bound to their activities, their own reference references ( it ) Should be used Carefully store the indicator carefully > I have seen so many examples, / p> intent = new intent (getBaseContext (), myClass.class); Contrary to - intention intent = new intent (this, myClass.class); Which is the correct and recommended method and why? GetBaseContext () is the method of reference text. And the referendum is, "Implementing the implementation of the context that passes all the calls in only one reference. The subclass can be modified to modify behavior without changi...

python - Using Django auth User model as a Foreignkey and reverse relations -

मैं उपयोगकर्ता मॉडल से django.contrib.auth.models । मेरे पास एक अन्य मॉडल है जिसे पोस्ट नाम दिया गया है, जिसका संदर्भ उपयोगकर्ता एक विदेशी कुंजी के माध्यम से होता है समस्या यह है कि जब मैं उपयोगकर्ता के लॉग इन में प्रवेश करने का प्रयास करता हूं request.user.post_set.order_by ('- टाइमस्टैम्प') मुझे एक त्रुटि मिलती है, उपयोगकर्ता ऑब्जेक्ट में कोई विशेषता नहीं है पोस्ट_सेट । तो मैं विदेशी कुंजी के साथ डिफ़ॉल्ट एथेट मॉडल का उपयोग कैसे करूं? क्या आपने पोस्ट युक्त एप्लिकेशन को शामिल किया है अपने सेटिंग्स में स्थापित किए गए मॉडल को स्थापित करें? उदाहरण के लिए INSTALLED_APPS = ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib 'सत्र', 'डीजांगा.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'testapp' # व्यवस्थापक सक्षम करने के लिए अगली पंक्ति को हटाएं: # 'django.contrib.admin', # व्यवस्थापक दस्तावेज़ को सक्षम करने के लिए अगली पंक्ति को हटाएं: ...

c++ - Freeing a pointer from another function -

कोड को देखते हुए: # include & lt; iostream & gt; नेमस्पेस एसटीडी का उपयोग करना; वर्ग स्ट्रिंग {char * pstr; अहस्ताक्षरित आकार; सार्वजनिक: स्ट्रिंग () {pstr = 0; आकार = 0;} स्ट्रिंग (const char *); शून्य शो () {cout & lt; & lt; Pstr & lt; & lt; एंडल; } ~ स्ट्रिंग () {cout & lt; & lt; "डीटीओआर में" & lt; & lt; endl; हटाएं [] pstr; }}; स्ट्रिंग :: स्ट्रिंग (const char * cptr) {size = strlen (cptr) + 1; Cout & lt; & lt; "स्ट्रिंग है -" & lt; & lt; सीपीटीआर & एलटी; & lt; "आकार का" & lt; & lt; आकार - 1 & lt; & lt; एंडल; Pstr = नया चार [आकार]; के लिए (इंट i = 0; i & lt; आकार; i ++) pstr [i] = सीपीटीआर [i]; } Int main () {स्ट्रिंग एस ("हैलो वर्ल्ड"); s.show (); रों ~ स्ट्रिंग ()। } आउटपुट: स्ट्रिंग है - हैलो वर्ल्ड - आकार 11 - हैलो वर्ल्ड इन डीटीओआर ---- डीबग निश्वासन विफलता ---- डीटीओआर में क्यों विनाशकारी को फिर से बुलाया जाता है? और भी यह कोड वैध है? ...

silverlight 4.0 - How to fix exception MethodAccessException during file reading? -

Read I have a text file which is added to your project DataMid / Bigram_MidWord.txt where DataMid a folder and Bigram_MidWord.txt There is a file to read FileStream Filestream = write new FileStream (@ "/ Sourcecode, component / DataMid / Bigram_MidWord.txt", FileMode.Open, FileAccess.ReadWrite) p> I Exception and get this: try to use the method failed: System.IO.FileStream..ctor (System.String, System.IO.FileMode, System.IO.FileAccess) How can I fix this problem? problem Trying to use FileStream . FileStream file is used to access the system (such as luggage isolated) A resource is a text file that your XAP file, you have the following code You can use:. string text; Uri uri = new Uri ( "(" / AssembyName; component / DataMid / Bigram_MidWord.txt ", UriKind.RelativeOrAbsolute); StreamResourceInfo Mr = App.GetResourceStream (URI); StreamReader sr = new StreamReader (sri.Stream); text = sr .ReadToEnd (); sr.Close ();

ruby on rails - Cucumber and Devise, Too many Redirects? -

I am trying to create a test with cucumber for the device as a user to log in locomotives I want to be able to use the locomotive scenario: Logging in the locomotive I am a certified user, then I should see "Log in as Show and this is my user step I have not been certified $ / / ('/ users / sign_out') # Make sure that at least the end is given / ^ I have an \ s + User "([^ \"] *) "and user name" ([^ \ "] *)" $ / Do | Email, Password, Username | Username = User (nui: (email = & gt; email ,: username = & gt; username, first_name = & gt; 'Josh', last_name = & gt;: password = & password; password: password password_confirmation = & gt; password) Saving! I was given a certificate User $ / do email = 'testing@man.net' username = 'josh' password = 'secretpass' given% {I have a user "# {email}" password "# {password}" and user name "# Username } "And fill% {I ...

Wordpress Custom Main Page -

Image
itemprop = "text"> Reading options in the settings tab (on the dashboard) already costomised the main page of my subject and now all under the blog link How to show posts on how to show all posts under that blog (i.e., Set the blog to be the post page in the reading options Here you can set front page Can, and click on the post page. Both need static pages created in the admin panel of the page. The blog is just another page that you specified in the setting to read the post, to show the post.

javascript - How to change XML attribute on the client side and then save the result on the server side? -

My question is: I read an XML file from server side and then call them client On the side I present, I want to edit the data, like: method to change them using setAttribute () now comes the problem here: I just do not want to modify them on the client side, but also on the server side , And save them the XML file. How can I use JSP and Javascript? Here are some initial ideas, but some part is not working ... like the line: "% count%" = length; " And I think this is actually slowing page loads if I write the XML line by line ... is it better to do this? Thank you :) & lt;% string attribute []; integer number; & Gt%; & Lt; Script & gt; // hide the section of xmlDoc var length = xmlDoc.getElementsByTagName ("item") to read the XML file. Length; & Lt;% count% & gt; = Length; // it does not work ... ??? (Int i = 0; i & lt; length; i ++) {xmlDoc.getElementsByTagName ("item") Item [i] .setAttribute ("score",...

Tkinter: "Python may not be configured for Tk" -

Today I wanted to work with Tkinter, but I have some problems. Python 3.2 (r32: 88445, 28 March 2011, 04:14:07) on Linux 2 [GCC 4.4.5] "Help", "Copyright", "Credit" for more information. "Or" license ". & Gt; & Gt; & Gt; * Traceback (most recent call final) from Tankback import: File "& lt; stdin>", line 1, & lt; Module & gt; The file "/usr/local/lib/python3.2/tkinter/__init__.py", line 39, & lt; Module & gt; Import _tkinter # If this fails then your Python can not be configured for imported income: _tkinter If there is no module named, how do I work with the tanker Can I configure my Python 3.2? According to: If this is a "module called _tkinter" , Your Python configuration needs to be modified to include this module (which is an extension module applied in C) to the module / setup (it is out of date) not Edit it. You may have to install Tcl and Tk (when using...

.net - avoid giving userid/pass in connection string -

IM both of them being hosted on the same server to host my site and db using a shared hosting company Are there. To reach DB I am supplying the user id and password in the connection string within web configuration. It just makes me uncomfortable. Am I the way to avoid passing uraid / web.config connection string? You can switch to OS authentication: data Source = myServerAddress; Initial Catalog = myDataBase; Integrated Security = SSPI; In this case access to grant DB account runs under your site or, just in web.config. Update: I'm not sure how this is happening in the hosting environment (the hoster should ask some common questions), but if your server is dedicated and you have your own SQL Server has administrative privileges, such as you can create a login AUTHORITY \ NETWORK SERVICE] login from Windows [NT AUTHORITY \ NETWORK SERVICE] for login [NT AUTHORITY] \ NETWORK SERVICE] exec sp_addrolemember 'db_datareader', [NT AUTHORITY \ NETWORK SER...

c# - GUI + Thread, GUI exits Thread stays -> How to detect thread when GUI starts again? -

I am quite new to C #, so please support me. I am developing a small server application that includes event-driven server threads and GUI threads. I would like to create GUI and server "free" (without using two processes) I mean by the GUI once it checks That if the server thread is running then it checks, if it does not, otherwise the server notifies the thread that the GUI thread is active and that GUI thread Air can leave and the server leaves the thread alive. pseudocode: starts the GUI {if (serverThread.isRunning) inform the server that GUI is active and make Start ServerThread} GUI exits ( Notify the server to confirm that the GUI is being terminated; exit GUI GUI} This is a difficult part of how to restart the GUI and inform the server that the GUI is alive . For now I have to do this: Start the GUI and the GU Create and activate the thread server inside the e.threadik is active after leaving the GUI server, but I do not know how to be known in the contex...

c# - The requesterd URl could not be found AJAX -

I have an ASP.NET application, when I run it the page load, but the way it does not load The AJAX method is. And I get this error. Error 1: / ajax / UserControls_WebUserControl, App_Web_webusercontrol.ascx.6bb32623.ssiyzisi.ashx I reinstall AJAX Check the reference of the AJAXControlToolKit.dll path in the bin, and in the same way ... ... I am using the web.config file: & Lt; Action = Add, "Post, Gate" path = "Ajax / * .hashx" type = "Ajax.PageHandlerFactory, Ajax" /> But there is no luck. Error 2: Description: HTTP 404. The resource you are looking for (or one of its dependencies) may have been deleted, its name was changed , Or is temporarily unavailable, please review the following URL and make sure that this spelling is correct. What are you trying to use? If so, you need to enable their use in the script manager control which is on the page or master page.

c - How to form a character byte by assigning values to each of the bits? -

I have a C function that accepts one letter. I need to remove this character too. I am clear with the extraction part. Can someone give me the idea of ​​incorporating the values ​​of bits? Say that you want to check nth a bit of four: Int CheckBit (Four C, Int N) {Return C & amp; (1 & lt; & lt; n); } To set the nth bit: zero setbit (char * c, int n) {* c | = 1 & lt; & Lt; N; }

asp.net - How can I fill textboxes using dropdownlist without postback? -

I have an asp.net dropdownload entry for hours and minutes of the day. Should I choose the time shown in Texx Box, can it be done without postback? Ajax Control Toolkit is a combo box in dropdownlists and text in Microsoft. Enables the box task to select from the combo box or writing directly as a text box. Apart from this, only able to restrict free writing to the item or anything in the combo box.

Here is a Question about WPF Window Control -

Opening a new window in a second window, but when the window1.show () 'method is called , Window1 is below the taskbar with the collar window and they are grouping in that task bar, I click on window 1, but the screen is not shown, it is still in the task bar ... Why something like this can happen? Unless you specify in Windows 7 that you do not restructure the window under the same icon It is not possible to say a copy, so the only way I can think that instead of opening the window, it will be to create a new application with that window, but it will spread far enough. Why do you need it?

osx - Mac OS X Bash get /dev/diskNsM size -

मैं बाइट में उपकरण का आकार कैसे प्राप्त करूं? मैक ओएस में एक्स 10.6 मैं इस का उपयोग कर रहा: diskutil जानकारी / dev / disk0s2 उपकरण पहचानकर्ता $: disk0s2 डिवाइस नोड: पूरा का / dev / disk0s2 भाग: disk0 डिवाइस / मीडिया का नाम: macOSX106 वॉल्यूम का नाम: macOSX106 साथ यूनिकोड बच: macOSX106 घुड़सवार: हाँ माउंट प्वाइंट: / यूनिकोड के साथ बच: / फाइल सिस्टम: जर्नल्ड HFS + प्रकार: HFS का नाम: मैक ओएस विस्तारित (journaled) जर्नल: जर्नल आकार 8192 KB पर 0x12d000 मालिकों ऑफसेट: सक्षम विभाजन प्रकार: Apple_HFS बूटेबल : बूट करने योग्य मीडिया प्रकार: सामान्य प्रोटोकॉल: एसएटीए स्मार्ट स्थिति: सत्यापित मात्रा UUID: E2D5E93F-2CCC-3506-8075-79 एफडी 232 डीसी 63 सी कुल आकार: 40.0 GB (40013180 9 28 बाइट्स) (बिल्कुल 78150744 512-बाइट-ब्लाकों) वॉल्यूम नि: शुल्क स्थान: 4.4 जीबी (4424929280 बाइट्स) (वास्तव में 8,642,440 512-बाइट-ब्लॉक) केवल पठनीय मीडिया: नहीं केवल पढ़ने के लिए वॉल्यूम: नहीं ejectable: नहीं पूरे: नहीं आंतरिक: हाँ और यह काम ठीक है। लेकिन मैक ओएस एक्स 10.4 में आउटपुट हो जाएगा $ diskut...

c# - Using IsAssignableFrom with 'open' generic types -

Using reflection, I am trying to find a set of types that comes from a given base class Are there. It did not take long for simple types, but I was stumped while talking of generics. For this piece of code, the first instance is correct, but the second return is false. And yet, the last assignment is just fine. class class1 {} class class2: class1 {} class generic1 & lt; T & gt; {} Class Generic 2 & lt; T & gt; : Generic 1 & lt; T & gt; {} Class Program {Static Zero Main (string [] ARG) {Type C1 = Type 1 (Class 1); Type C2 = Type2 (Class 2); Console.lightline ("c1.IsAssignableFrom (c2): {0}", c1.IsAssignableFrom (c2)); Type g1 = typef (generic 1 So how do I determine at run time that a common type definition is taken from the other? From: Public Stable Bull. Foreign (in this interface type) {if (Generic type & amp; amp; .GetGenericTypeDefinition () == Generic type) returns true; } If (given type. Eigenic type & amp; amp; typ...

jqgrid sort and paging problem -

I am implementing a jqgrid based on online examples. Data is coming, but the sort / page is not working I'm narrowing down the problem which is: Parsing errors due to special characters (in my case '(') in json.responsetext so i have in my jquerySpecialCharHandler.js He did not help on the page tried to include. I will include my page and my controller action / function here. jQuery (document) .ready (function () {jQuery ("# List") .jqGrid ({url: '/ Home / Dynamic Gridata', Day ['Name:' 'policy', 'policy rule', 'alert status',' alert code ',' message ',' category '], colomodel:' [Jurisdiction: 'Jason', mitip: 'GET' The 'policy', index: 'alertstats', sort: true, 'policy', index: 'policy', sorted: true, type type: 'text', align: 'left', resizable: true}, {name: Align: 'left', resizable: true}, {name: 'alert code',...

winforms - Drawing a septagon in vb.net -

Does anyone have any code that can attract an equilateral Septenone in vb.net? All sides and angles should be the same. Thanks No, but if you think that with 60 minutes one The face of the clock, marks a point of your 7-sided size every 8.5 minutes.

uml - Modelling language for a process / transaction -

I am writing my BSc. About the one thesis about a transaction in which many software systems are included, basically about an ERP system's communication and information exchange and a webservice which I am about to apply. There is a module on the ERP side and the web service on the other is communication with transaction XML files. I want to model this process or transaction and do not know the right modeling language for that purpose. Is UML Component Model Right? I also want to explain party information such as programming language I am using on a certain step in the process or using the XML standard. To get and receive it in the process The asynchronous HTTP would also be nice to annotate. Thank you for your help! Marco If your primary goal is to interaction documents between the web service and the ERP module So, the most suitable UML diagram is either likely or is it. Both protocols (the sequence of interactions) will help. Both can be annotated with both of...

vb.net - Error Using An Object Array With .NET COM Interop DLL -

I have found many other references to this error while using Google but I am having trouble understanding this That is how they apply for what I am doing. Here is a VBA error, I am compiling time: "Function or interface is marked as restricted, or the function uses an Autoconction type that is not supported in Visual Basic . " The error is the VBA code: 'ftp also does not post the code here dim (f) a com object created as wooxter.ftpfile f = ftp GETFileList 'is a purpose array of type FTPFile dim I for integer = 1 for return (UBound (f) - 1) fFileExists (stg.LocalPicDir & amp; "\" & amp; (i) .FileName) If this is true then then fGetFileSize (stg.LocalPicDir & amp; "\" & amp; f (i) .FileName) = f (i) .FileSize then error 'error occurs on the above line at compile time Is specially on 'f' (i) .FileSize, But not F (I) .FileName 'fGetFileSize Returns to a VBA Long Public Interface IFTPFile ReadOnly property...

android - What are the steps required to mount the external storage (SD card) of Samsung Galaxy S from a chroot shell -

I have received an Ubuntu.img file as well as the following script in a folder on my SD card - / mnt / sdcard / ubuntu / start #! ["$ 1" == ""] if / bin / bash # Arin is compiled by http://blog.coralic.nl; Then echo "You need to specify an IMG file!" 9 exits; If `test-d / data / local / mnt`; Then export USER = Root export PATH = $ bin: / usr / bin: / usr / sbin: / bin: $ PATH mount / "/ data / local / mnt" else mkdir / data / local / mnt fi HOME = -o loop, noimate -t ​​ext2 $ 1 / data / local / mnti sleep 3 mount -t proc proc / data / local / mnt / proc mount -t departments / data / local / mnt / dev / pts chroot / data / local / Mnt / bin / bash / mnt / sdcard / ubuntu / stop #! / Bin / bash # Create Armin Colonial http://blog.coralic.nl umount / data / local / mnt / dev / pt umount / data / local / mnt / proc umount / data / local / mt start script by pre> , I get an Ubuntu Crotated Shell, but I have not got my externa...

python - Control formatting of the argparse help argument list? -

आयात बराबर पार्स = argparse.ArgumentParser (prog = 'tool') args = [('-u', '-', 'रे', '-', 'रेफरी', (), ('-एम' Args1, args2, desc के लिए, args में विकल्प: parser.add_argument (args1, args2, help = desc, ** विकल्प) parser.print_help () आउटपुट: उपयोग: कैपचेक [-एच] -यू यूपीएफ [-s SKEW] [-एम मॉडल] वैकल्पिक तर्कः -एच, --help यह सहायता संदेश दिखाएं और बाहर निकलें- u UPF, --upf UPF रेफरी अपफ-एस SKEW, - स्काई SKEW रेफरी तिरछा -एम मॉडल, - मॉडल मॉडल रेफरी मॉडल मैं रेफरी को कैसे प्रिंट करूं? मॉडल के रूप में -m मॉडल, - मॉडल मॉडल के रूप में एक अलग पंक्ति पर दिखने के बजाय जब मैं -h विकल्प के साथ स्क्रिप्ट चलाता हूं? आप formatter_class तर्क की आपूर्ति कर सकते हैं: parser = argparse.ArgumentParser (prog = 'tool', formatter_class = lambda prog: argparse.HelpFormatter (prog, max_help_position = 27)) args = [('-u', '--upf', 'ref। Upf' , '(' - '', '- स्कू', 'रेफरी ...

cucumber - SpecFlow -- Step (Given) with the same regex in different classes not executing independently -

I have two classes (class A and B) both marked with [binding]. Currently I am using one class per attribute, I is a step in both class A and B which looks like this: [given (An employee (. *) ( . *) Is (*. *) On a (. *) ")] When I run the scenario for the features defined in class A, and the test runner indicates the step is executed, Is implemented instead. What are the "steps" in the global form? Had thought that only "hook" methods are global, such as Ascenario, before Badassenario, I do not want to do this behavior for "given", "then", and "when" is there any way to correct it? - tried to put two classes in different names and it does not work either. Besides, do I have to get each "given" to be independent by putting them into different classes Probably the talk of SPE I'm using it? Yes the steps (per default) are global, then you will get in trouble if you Define two attributes in which there are...

Cocos2d Displaying a Layer Issue -

I'm trying to display a pause game layer from applicationDidEnterBackground: method and calls this method for some reason But nothing happens. Representative - (zero) applicationDidderbackground: (UIApplication *) application {ship = [[Ship Alok] init]; [Ship stops]; Stop method - Stop (zero) {BOOL is paused = [[CCDCD share director] has been blocked); If (IsPaused) {// Game Stop ccColor4B c = {100,100,0,100}; PauseLayer * pauseLayer = [[[Pozzeller Elok] Init Whistler: C] AutoCare]; [Self. Left menu item set enabled: no]; [Self. Right Manuitem set enabled: no]; [Self refreshable set is enabled: no]; [Self-composite: Pausherer z: 10 tags: 100]; [[CCCCeter Shareholder Paus]; }} Pauslayer + (ID) view {CCScen * View = [CCScene node]; Pozzarer * Layer = [Pozzlare node]; [Add View Build: Layer]; Return view; } - (id) initWithColor: (ccColor4B) color {if ((self = [super initWithColor: color])) {self.isTouchEnabled = Yes; [CCMenuItemFont setFontName: @ "Marker imp...

.net - Replace all that are NOT part of an HTML tag -

I'm trying to work through a RegEx which I can use to replace everyone & lt ; And & gt; Text string, when those strings are part of the HTML tag, then EXCEPT. For example: var str = " Standard & lt ; I> 1 has & lt; u & gt; 2 & lt; / u & gt; & lt; / p & gt; " Looking at the above example, I want a resulting string which looks like this: var str = " p> Value 1 and & lt; u & gt; 2 & lt; / u & gt; & lt; / p & gt; " It is not easy to see the official answer to any related question. Regular expressions for this type of parsing are not created. There may even be problems with tokening or dom parsing. The title of your question explains the problem: Change all & lt; And & gt; Which are not part of an HTML tag How can you know your parser if & lt; and Around the word of a HTML parser and Android; tag, or bus, are two orphaned angle brackets? Perhaps y...

c# - Binding update problem -

itemprop = "text"> Binding properties are changing when I have a problem with the binding update See the code given below I have your problem in the following example Will explain public class SettingsControl: INotifyPropertyChanged {string _value = "test"; Public Event Threaded ChangedEventHandler Property changed; Protected Zero OnPropertyChanged (string name) {PropertyChangedEventHandler handler = property changed; If (handler! = Null) {handler (new, new property change event event (name)); }} Public SettingsControl () {} public string value {get {return_value; } Set {_value = value; OnPropertyChanged ("value"); }} & Lt; Local: SettingsControl x: key = "settings" & gt; & Lt; / Local: SettingsControl & gt; & Lt; Text box height = "72" text = "{binding value, method = double, source = {settings of static resources}}" /> & Lt; TextBlock Text = "{Binding Value, Mode = One, Source = {Sta...

ajaxcontroltoolkit - ASP.NET - Ajax Control Toolkit - TabContainer always hidden -

I used the following code to add tabontaneousear to the page Asp: TabContainer ID = "TabContainer1" runat = "server" & gt; & Lt; Asp: TabPanel runat = "server" headertax = "tab one" id = "tab panel 0" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Text Box ID = "Text Box 1" Runat = "Server" & gt; & Lt; / Asp: text box & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: TabPanel & gt; & Lt; Asp: TabPanel runat = "server" headertax = "tab two" id = "tabpel 1" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Button ID = "Button 1" Runat = "Server" Text = "Button" /> & Lt; / ContentTemplate & gt; & Lt; / ASP: TabPanel & gt; & Lt; / ASP: TabContainer & gt; But when the page is presented, the tabpellel is always hidden, I added the HTML code via firebug and found t...

c - Enable port RA0 as input and retrieve value LDR from led -

I am using Picchmium18F4550 with microchip v8.63 with the C18 compiler. To enable the port to be set as input, I will connect an LDR to Port RA 0. Which is the following (I think) TRISAbits.TRISA0 = 1; & Lt; = Set RA 0 as input Now I want the value of the LDR (if any lead is turned on), can I say: int color ledge = portabits. Ra 0; And now there is the value / voltage of my leadership in the variable of type int. Correct me if I am wrong. It seems that you want to measure an analog voltage, in this case you should pin the AN0 , instead of RA0 . You should read section 21, but in short, you will need to configure the AD converter by using the registers ADCON0 , ADCON1 and ADCON2 , And read the results found on ADRESH: ADRESL . Note that you may be potentially read an LDR using digital input, but using it to check analog input is a bit more complicated, but more flexible .

java - PHP controlling a finger print device -

I have to control access to a system based on fingerprint recognition in PHP but not me I know what would be the best way to do this ... I was searching for a device and software, and maybe I will use it: This software uses some kind of SDK, so Java should be used, what is php and java? There is a way to create a bridge between . I am not an expert in Java web services, but if this is the only way, how to control fingerprint? Does the device give a image , or a md5 string , or how it works, how is it read in PHP? What is your experience in this type of thing ... And the dimension is also there. When you say "PHP", I think that you probably have digital personality (DP) device, however, is usually on the client. I used to have digital personality (probably a different device and had a different SDK) yours, but the theory is probably the same. You plug the device into the USB port of the PC, and the DP controls the SDK tool, scans the thumb impres...