Posts

Showing posts from March, 2014

Adobe AIR Application to run only with CD -

Developed a desktop application using Adobe Air. Applications will be installed through a CD on the users machine. The user should fill the CD every time to enter the application. Opening without CDs requires assistance in restricting applications. has written the following code but does not help. Different Versions: Vector & Lt; StorageVolume & gt; = StorageWoolInfo. Streetswolm Infosyststajoullou (); For each one (different volumes: volume volumes in storage) {// Usage is proper asset for USB: if (volume.isRemovable) if (volume.File.name == "app") {Alert.show ("found" ); } Else {Alert.show ("NOt found", "wrong access", 4, zero, myClickHandler, null, 4, null); // Defined Button Action}}

javascript - Calculate values of textboxes automatically using jQuery -

I want to calculate the value of 1 2 text box without the command button. Example I have 3 text boxes. The first 2, where the numbers will be input and the last 1 is the sum or the product and so on. Now I want to auto-compute it. For example I have inputed values ​​2 and 3 on the first 2 text boxes, then automatically the sum or product or whatever results will be displayed in the 3 text boxes. How am I doing this? Thanks & lt; Html & gt; & Lt; Top & gt; & Lt; Script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; ($ ('#texttwo' ()); Var result = texton + textover; $ ('# result'). Val (result.toFixed (2));}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Input type = "text" name = "value1" id = "textone" & gt; & Lt; Input type = "text" name = "v...

java - Can access TextView but not LinearLayout declared in the same way -

I want to add TextView to a LinearLayout in Java, but as soon as I use LinearLayout linlay_container in make_systematics () , I get a NullPointerException. I have the exact code to define inside the LinearLayout and a text view textview_systematics I can access the text view , but the linear layout not This layout is a piece and contains & lt; Fragment & gt; -Tags are included, just this can be important. XML file (fragment_species_systematics.xml): & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" android: id = "@ + id / linlay_fragment_species_systematics" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" Android: Orientation = "Vertical" & gt; & Lt; TextView Android: id = "@ + id / textView_fragment_species_systematics" Android: layout_width = ...

cql3 - Do tables share partitions ("low level rows") in Cassandra? -

Assume that I have two tables defined by the CLL (column family). create table one (PKUUID, CKAAT, well text, primary key (PK, CKA)); Make Table B (PKUUID, CKB Text, Val 1 Boolean, Wall 2 Decimal, Primary K (PK, CKB)); If I now include one line in each table with the same partition key: INSERT (pk, cka, val) VALUES (' F47ac10b) -58cc-4372-a567-0e02b2a337'9 ', 5,' hi '); INSERT ('f47ac10b-58cc-4372-a567-0e02b2a3d379', 'x', 'hello', 'hey') in b (pk, ckb, val 1, val 2) values; Will there now be 1 or 2 rows at the storage level? There will be 2. The data in Cassandra is written in "memtables", and then the "SSTables" on-disk drive is kept both memable and SSTable based on a per-column family , So the rows in different column families (tables) always make different rows at the storage level. Cassandra writes before a committed log (for durability), and then called a memory memory structure ...

javascript - How do you put angular js expressions in Razor ActionLinks? Or is this possible? -

I am experimenting with a combination of angular JS and Microsoft MVC with the razor. I would like to use my original razor link: @ html.ActionLink ("create new", "create", new {elephant = model.alifant}} ) But instead of reading from the model, I want to read from Kangariah JS data using something equal to angular JS expression. Ie is something like this: @ html.ActionLink ("create new", "create", new {elephant = {{all animals.elephant}}]}) Of course, angular brackets above make a syntax error. I thought that the first razor @ {} is using a variable using syntax, but again the repeated use of coal brackets causes problems. I am unable to find a solution using ng-bind . I'm not thinking that razors and angular js do not mix well and I just have to convert to use standard HTML syntax with Connel JS, is that right?

Why wont eclipse generate build.xml -

Image
I am using e (fx) clips and after nothing is done after following the steps mentioned here You "Anti Build .... Can anyone help here? If someone does not have any clue then someone can help me to finish it manually this build.fxbuild But the setting is and I have eclipse 4.4 I am using sessions 2014-10-18 18:46: 48.482 ------------------------ ----------------------- Eclipse buildId = 4.4.0.I20140606-1215 java.version = 1.8.0_20 java.vendor = Oracle Corporation bootloader constant: OS = Win32, arch = x86_64, WS = Win32, NL = en_NZ command line arguments: Win32 -ws -os Win32 -arch x86_64 Log org.eclipse.fx.ide.java6 4 0 2014-10-18 18: 46 :! 49.497 Send FrameworkEvent error stack 0 org.osgi.framework.BundleException: could not resolve module: org.eclipse .fx.ide.java6 [221] unsolved need: need-ability: osgi.ee; Filters: = "(! & Amp; osgi.ee = JavaSE) (version> = 1.3) ((version> = 1.8))" org.eclipse.osgi.container.Module.start (Module. java: 434) at at...

regex - Remove Everything between Round brackets in PHP? -

I want to remove round brackets and anything between them. Which RE I used? I have experimented under the code but like some languages ​​Hindi does not work for some time. Please help me anybody. nl2br (preg_replace ( "/ \ ([^)] + \) /", "", $ main_ary [$ y] "" ")); // ex. 4.4. 2 (KitKat) operating system // I want Android 4.4.2 on the operating system you can use regular expressions ( ) ) lazy choose to leave the characters of all kinds to the first occurrence of the next character ( . *? ) was. preg_replace ( "/\(.*?\)/"/""$$$$$$$$$$$$$$$$$$$$$% >

css - Some-size some-colour square in background of div without resizing div or editing html -

I have a wide spread of the viewport, and the horizontal center is an alliance through the use of margins, and this In the center of a red square, say, that 100px to 100px is just using CSS in that div. Background color: red will not work because it will expand the entire divas, which is larger than 100 pixels, I currently have the following solution: div {background-image: linear-gradient (Right, red, red); Background-size: 100px 100px; Repeat Background: No Repetition; Background-position: center; } This works, because there is no change in the gradient, but it looks like laughing using linear shield, which makes the solution less useful. . Can the purely red square of a shape be created without using the HTML editing of the page or without the size of the division with the CDS? Preferably, I would like to save the image of 1 red pixel from scaling (I can not easily change the color). Thanks for reading! You add : after pseudo selector to add a block with these dime...

memory - Virtual address space size vs physical address space size -

Image
In this picture, the virtual address space is larger than the physical address space. Is it possible for other ways? How will this work because everything in the physical address space for the virtual address space will be enough space for reference if it is small? How will this work because there is enough space in the address space to reference everything in the physical address space, if it is small? This will not be enough space, which will not be a problem at all. Why do each virtual address space need to cover all physical memory? And in fact, it is practically never done on most computers, part of the motivation of virtual memory is to separate the memory of each process so that they can not move on each other's toes. Even in your photo, the virtual address space does not reference everything in the physical address space. Red pages are not related to the process, which means that they are not in the virtual address space. 32 bits of computers using m...

c - Almost half curl tests are being timeout -

I was using some SSL tests using curl (curl 7.19.7) One of my Apache server / ubuntu But there is something strange on my test machine that was running on Linux and the exam is in C. Posting the entire program will be tricky so please see which parameters are in the examination program: curl_easy_setopt (curl_handle, CURLOPT_URL, url_req); //https://10.240.253.5 curl_easy_setopt (curl_ handle, CURLOPT_SSL_VERIFYHOST, 0L); Curl_easy_setopt (curl_handle, CURLOPT_SSL_VERIFYPEER, 0L); With the above option, my program ran for a host of 1.2 m exams and I finished the time for 600k tests. In the microscopic level these are 180 tests at 180 seconds intervals. When I run some 10 questions per minute, I am not out of time but it is ending time in heavy loads. I tried to catch those packets but they were not able to understand them. I recently started working in Curl and SSL / TLS. Therefore any quick solutions / sugages for my problem are highly appreciated. PS: I'm seeing some...

facebook - FB.ui 'apprequest' not working anymore on mobile devices? -

This code works well in many Facebook applications on mobile devices: FB.ui ({Method: 'apprequests', message: 'some messages'}, function (feedback) {console.log (feedback);}); But no more dialogue opens, but the friend list is not being loaded to send its praise. There is no error, no changes have been made on my behalf. It seems that Facebook left any kind of mobile support? This bug looks like a report: Can you confirm Is that the same? If so, subscribe to that bug report to post.

matlab - Unable to use the output of inputdlg in the get function -

I want to use input value from the dialog box and save it as sp_name. Saving it directly to sp_name is giving me an error Please help me It looks as soon as inputdlg stops, ans variable is lost What should I do? Code: ans = inputdlg ('Save As:', 'New User'); Sp_name = get (handles.ans, 'string'); Error: References to non-existent fields 'ans' sp_name = ans {1}; In your code above, Matlab does not recognize the structure and throws this error.

javascript - Capturing map from wikimapia.org with PhantomJS results in Parse Error -

I have read some posts on this subject, but they are not very specific for my needs, this is why I ask why I am using Linux with installed FATKOMOS. I have a WikimapiaOro (Map Map is similar to map). I want to open URL with "http://wikimapia.org/#lang=en&lat=13.34674&lon=74.748418&z=18&m=m" Tried code test.js . var page = requires ('webpage'). Create (); Page.open ("http://wikimapia.org/#lang=en&lat=13.34674&lon=74.748418&z=18&m=m", function () {setTimeout (function () {console.log (Page content); PageRedder ("screen page");}, 5000);}); Then I run: Fatigue test.js with this also generates this screen 1 page. Neither shows the desired map, but instead shows a loading icon. An error has also been reported: Syntax error: type error parse: Draw: 'undefined' is not an object (evaluation 'ns.Utils') Current fandomJS (1.9.7) is an old fork for QtVebbit which is equivalent to Chrome 13...

php - Use git for two branch -

Looks like I'm going to use these three files in the master branch Master: index.php & lt; B & gt; Hello & lt; / B & gt; NewBranch: Index.php & lt; B & gt; Hello & lt; / B & gt; Test.php img.jpeg And now I will edit the master index .php file, and I will add two rows to the master branch Master: index.php & lt; B & gt; Hello & lt; / B & gt; & Lt; A & gt; Trial & lt; / A & gt; & Lt; P & gt; Good & lt; / P & gt; And I'll change some code in NewBeck Newbank: index.php & lt; P & gt; Hello & lt; / P & gt; & Lt; Div & gt; This new branch line is & lt; / Div & gt; I want to update Newbank so that I can have my own edit lines on my new branch and also update the lines on the master branch Newbank: (As should be as given below) index.php How can I get it? I pulled and received Netbeans, but did not work. I do not even want to ...

javascript - Order of execution for console statements for different browsers -

I tested the following code in both Firefox (32) and Chrome (38) var starttime = (new date ()). GetTime (); Console.log (STARTTIME); Var data = []; Var tCat = "ABCDEFGHIJkLMNOPQRTUVX". Split (""); Var datapoint = 2000000; (Var i = 0; i & lt; data points; i ++) for {var r = Math.random; Data.push ({value: Math.pow (1 - Math.cos ((r ()) * Math.PI) / 2), 3), Cost: + r (). ToFixed (2), Category: tCat [Math .floor (r () * tCat.length)]}); } Var endime = (new date ()). GetTime (); Console.log (ENDTIME); Console.log (end time - starttime); You can view it on In Firefox, it seems that all three consoles are fire at the same time, after Loop over execution, but the first console statement in Chrome is shown that the loop execution starts. This code works by itself, but execution deviation of the first console statement in Firefox is deviation. Can anyone explain this? TL; DR: Console is not controlled by any standard and depends on browser. It works as ...

c++ - Is having a active MySQL Connection for long periods of time bad? -

I am developing an MMORPG, it is quite far away. However, now I see that the MySQL server has an automatic connection timeout. So after X time, a connection has ended. So what is happening with my server, after the run time of 8 hours, users can not login at logout or update their letters. The value of an easy fixed time is to be enormous, but I want to know that this is a bad idea? Another solution would be to check whether the connection is still valid before creating a SQL query, and do not start a new connection even though I prefer the first option if it has any No side effects. If you are not already doing that I would like to say that the best option is to have a connection Instead of reusing it to be fair use on the server. Now, should be secured in timeout, but the MySQL memory leak (of type) that is tied to the connection, it can be safer to leave the connection periodically . For example, if you are generating dynamically questions (some APIs do to protect...

java - How to use ActionListener when the button function is in another class -

I have three different classes: main, window-frame dynamics and validation of number-of-man-call window -frame dementines This main square window -frame demat Is - call (well I'm trying to call) Validation number is a class that creates a frame, pane, label for the box, and button for the program. Validation off number - it is all that calculates for number recognition. Originally this class confirms that the numbers used are within the limit of 1..100,000. Goal: The goal is to connect WindowFrameDimetnions with the verification using the ActionListener. Package BlueBlueMainFiles; Import javax.swing.JButton; Import javax.swing.JFrame; Import javax.swing.JLabel; Import javax.swing.JPanel; Import javax.swing.JTextField; Public square WindowFrameDimentations JFrame (final static int WINDOW_WITH = 950; // pixel in the window final static bit WINDOW_HEIGH = 650; // Fixed height of the window in pixel; JPanel panel; // Panel to refresh the JLabel message label; // Use labels to st...

php - Laravel: HTTPS in Form::open() -

I change SSL to my website (I change my website to SSL version and it is http For example: & lt;? = Form :: open (array ('id' = & gt; 'submit'))? & Gt; ... & LT ;; = Form :: Pass ()> and the result will be: method = "POST" action = "http : //example.com "accept- charset =" UTF-8 "id =" submit "> me verb needs the HTTPS link. If you want to use https , then you need to manually provide the path that will be set to take action. & lt;? = Form :: open (array ('url' = & Gt; URL :: to ('/', array (), true), 'id' = & gt; 'submit'))? & Gt; To submit to / url (which will be equivalent to example.com ) and pass the 3 parameters as true to protect it

Android - Open File with another specific app -

My app will download to open with another app called .zip, .js, and .png and I Bloklancr them. There is a specific activity setup of the blocklink to open these files. There is an intent filter setup for .js files, so open them open. But .zip and .png files are not so easy here is how the .png file activity Blocklaunchers appear & lt, activity android: name = "net.zhuoweizhang.mcpelauncher.api.ImportSkinActivity "& Gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "net.zhuoweizhang.mcpelauncher.action.SET_SKIN" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Data Android: mimeType = "image / png" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; Activity aka android: name = "net.zhuoweizhang.mcpelauncher.ImportSkinActivity" Android: export = "true" Android: targetActivity = "net.zhuoweizhang.mcpelauncher.api.Imp...

Detecting Whole Words for JAVA -

Currently with the program, if the user uses "cat" then the ketobot will spit back " Tell me more about. "As was thought. However it is also true if letter cat is part of another word. Then the catch holder will be picked up as a catch and Chebbot will come back "tell me more about my pet." How do I go and know how to go to the keyword? If (statement.indexOf ("cat")> = 0) {response = "tell me more about my pet."; Certain ways to improve keyword detection: Create a list / set Use the split ("") function on your string to get only the words (this gives a string [] from which you can loop)

function - Python class taking in only two arguments? -

Then I have a python class named player () for which there are 20 arguments a simple combat algorithm problem is, when I import combat function Player () and a main file, and I have been imported correctly, then I get the error: traceback (make the most recent last call): file "c: \ user \ Thomas \ desktop \ paradisium \ main_draft.py", the row 53, & lt; Module & gt; 'Speed', 'agility', 'patient', 'Hitpoint' Acpiargen 'Ipiargen' Mulacpi 'original AP', 'Apiaraan' original 'AP', 'original MP' MP 'Mjikregen' Mjike Defens 'Mjikttak' Dibf 'Bref' Sattaip 'weapons' and 'name' as you can see Due to this, it is importing correctly and due to grabbing the player () class, due to some reason it only takes in two V-variables which are defined here: / P> feeding 1 = Player (90,20,50,90,20,1000, .03,1,1000,20,20,20,1,90,100,2,2,3, none, "Sword Mu...

java - Cannot get data from JTable because of NullPointer Execption -

This code is an action listener for a button. I have JTable that the user enters the data. It is filled with integer. For some reason, I'm able to println (each one of the values) though, I have to store them in my ArrayList due to a NullPointerException Not Enabling btnCalculate.addActionListener (New ActionListener) {@Override Public Null ActionPerformed (ActionEvent arg0) {ArrayList. & Lt; Integer> Blade = New ArrayList & lt; Integer & gt; (); DefaultTableModel DTM = (DefaultTableModel) tableBlades.getModel (); Integer Nrow = dtm.getRowCo For Unt (), nCol = dtm.getColumnCount (); println (Nrow + "," + nCol); (int i = 0; I & lt; nrow; i ++) {(for int j = 0; J & lt; nCol; J ++) {blades.add (Integer.parseInt (dtm.getValueAt (i, j) .tar ()));}}}}); (Edit: Added brackets for readability) Depending on the error log, I am able to narrow down the line where I add value Array list I know that getValueAt () returns an object, so I used to make ...

mysql - JOIN tables by DATE column in MYSQLI' -

Text after "div class =" itemprop = "text"> I have some tables with the time series whose first column corresponds to the date of the data. I tried to merge them together on the basis of that column, but the query takes a lot of time. Since the series is not very short, I guess it is trying to search through several entries to join this command. What is a way to optimize search? Maybe use a hash function, or MYSQL knows that the data has already been sorted Thank you, thank you, the code below which is part of the execution is delayed. Select a.PERIOD, a.INFLATION, b.GROSS_PRODUCT, c.EMPLOYMENT, d.EXCHANGE_RATE to add FLOOR_DATE to one of inflation Product B (a.PERIOD, 'Quarterly') B =. Include the period of employment on FLOOR_DATE (a.PERIOD, 'month') = join c.PERIOD PESO_DOLLAR d on FLOOR_DATE (d.PERIOD, 'month') = d.PERIOD I have made the FLOOR_DATE () order to match the corresponding date, rounding down to the nearest qu...

jquery - How to select all inputs with type="text" but with specific names? -

In my form, I have different inputs. What do I want to do now, with all the specific fields of all the text fields Select and then check that all were filled. For example, I have an email, user name, organization and address field. My goal is to hide a message text area and it will only show if All the fields are mentioned in the values ​​I How can I share these, when all these fields are filled out, the message will show textiera and then any of these areas will be cleared again? I'm thinking $ ("input [name = email], input [name = address], input [name = user name], input [name = address]") And I do not think it's efficient. The way the message textaria will populate on the basis of inputs from these areas. Example: For whom it may be worried: ....................... Group of texts already assigned ........... ................................... ......................... Regards, username.val () & lt; Email.val () & gt; Institution.val () addr...

Different ways of instantiating class instances in PHP -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब सक्षम नहीं होने के लिए क्षमा चाहते हैं बेहतर इस मुद्दे को स्पष्ट। मैंने कुछ सरल परीक्षण करने की कोशिश की है और बहुत प्रकाश डालने में सक्षम नहीं हैं। किसी भी स्थिति में, मुझे आश्चर्य है कि, यदि कोई है, तो निम्न दो उदाहरणों के बीच अंतर मौजूद है: & lt; php वर्ग foo {सार्वजनिक फ़ंक्शन __construct () {}} $ foo1 = new foo; और यह: & lt;? Php वर्ग foo {सार्वजनिक फ़ंक्शन __construct () {}} $ foo1 = new foo (); ध्यान दें कि दूसरे उदाहरण में मैं 'नया' कीवर्ड के साथ कोष्ठक का उपयोग कर रहा हूं। अगर यहां मतभेद नहीं हैं, तो क्या मेरे फू क्लास घोषणापत्र में कुछ ऐसा हो सकता है जो अंतर पैदा करेगा? और अगर अंतर मौजूद है, तो क्या वे PHP के लिए विशेष हैं? धन्यवाद। मुझे लगता है कि कोष्ठक का उपयोग करके अपने वर्गों को इन्स्तांत करना बेहतर है, भले ही कन्स्ट्रक्टर को ' टी किसी भी तर्क की आवश्यकता है जबकि आपके उदाहरण एक ही काम करते हैं, वे नहीं होगा अगर कन्स्ट्रक्टर बदल दिया। यह स्वाद और शैली का मामला है। यह आपका पहला उ...

actionscript 3 - How do I open native google plus app from inside my app for android? -

I want users to share URLs links to Google from within the Google as3 app using the Navigating URL Yes, but I want to open the native Google Plus app, do not go through the mobile web browser. I am using the AS3 function below for iOS which works perfectly well: function ShareOnGooglePlus (Event: Event): Zero {var inte Block: URLRequest = new URLRequest ("gplus: //plus.google .com / share? Url =" + URL_LINK); NavigateToURL (Request, "_blank")} This function is not doing anything on Android only and I do not know why anyone knows something about it? Thanks in advance

android - When I add a new item in Listview previous values ​​are deleted -

When I add a new item to my ListView, it is losing the values ​​present. This was added only to the new value that was added. The goal is to add a new value without losing the existing ones. My code: list & lt; String & gt; List = new list & lt; String & gt; (); Zero btnAddItem_Click (object sender, EventArgs e) {ArrayAdapter & lt; String & gt; Adapter; String edttxNewItem = FindViewById & lt; Editingtext & gt; (Resource.ind.nuitim). Text; ListView ListItm = SearchWebID & lt; ListView & gt; (Resource.ind.listoff items); List.Add (edttxNewItem); Adapter = New Arrayheader & lt; String & gt; (This, Android. Resource Layout. Simplelist ITM1, list); ListItems.Adapter = Adapter; ListItems.DeferNotifyDataSetChanged (); } I am unfamiliar with xamarin , but It looks like you are trying to create a listview example on btnAddItem_Click then start listItems in the form of oncreate method listItems = FindViewById & lt; Lis...

f# - Changing an FSharpList in C# -

एफएसएचआरपी लिस्ट & lt; FSharpList & lt; int & gt; & gt; newImageList; FSharpList & LT; पूर्णांक & gt; पंक्ति; के लिए (इंट आई = 0; आई & lt; वर्तमान इमेज। हैडर। हाइट) {पंक्ति = पीपीएमएमईज लाइब्रेरी। ग्रेस्केल इमेज (वर्तमान इमेज। इमेज लिस्टडेटा); NewImageList.Head = पंक्ति; } ऊपर मैं एक int सूची सूची लेने की कोशिश कर रहा हूं और प्रत्येक अनुक्रमणिका को पंक्ति में सेट करना है जो कि एक int सूची है। जाहिर है मैं इसे .ead के साथ नहीं कर सकता, और अगर मैं केवल पहले सूचकांक को बदल सकता है, मैं सोच रहा हूं कि मैं यह काम कैसे कर सकता हूं, मुझे पहली जगह में नए इमेजलिस्ट के किसी सूचकांक को प्राप्त करने में कठिनाई हो रही है। FSharpList एक अपरिवर्तनीय सूची है इसलिए आप अपने सिर और पूंछ के गुणों को कुछ असाइन नहीं कर सकते हालांकि, आप अपनी FSharp सूची को एक सामान्य सी # सूची या किसी संग्रह में जोड़ने का प्रयास कर सकते हैं जो एक IEnumerable को प्राप्त करता है। उदाहरण के लिए अपने कोड से: सूची & lt; int & gt; NewImageList = नई सूची & lt; int & gt; ...

list files/folders in owncloud with php curl -

This is a strange question, but with some self-adhering APIs and working with curls, I can get an XML output of and lt; Url & gt; /cs/v1.php/apps/files_sharing/api/v1/shares/c> If files_sharing is the only app that works or is for example files The app has other parameters which are not documents. Thanks in advance. There is only one API specific to get information about sharing files / folders and to share them. . To obtain the list of files / folders you must use the access via webdive interface that is locked under your server's remote remote.fp / webdiv /. For example, you can use this command to get the list of files in the root folder: curl -X PROPFIND -U user: password "http : Http://yourserver.com/owncloud/remote.php/webdav/ " In addition to this you have more HTTP to create more things: Get the list of files / folders Make mkkol = folder Upload a file or rename folder PUT = upload file GET = D Download File / Ul...

visual studio lightswitch - Implementing audit trail using multiple tables -

In my previous applications, I successfully installed an audit trail using the approach. His attitude worked perfectly and it was very easy to follow. However, he is using only one table to store the audited record. I need to do something, except that I have an audit table for each table that will audit which is approximately 7-8 tables, if I can find out the passage of normal table objects, then I could possibly have the solutions of Paul Van Bludal I can reconstruct Is there any other example that is possible online? Or any suggestions on how to properly implement audit tracing for more than one table. ps I tried to use the example but it seems that it was not used in VS 2012 LightSite because it does not work box? Your question is incredibly broad, possibly very broad, from what I am collecting though There are several tables, which are more likely to be with different columns What you can do and what to do: Write to those people Determine the content needed for au...

php - submit file in form in twig and get local path in controller symfony2 -

मेरे पास यह फ़ॉर्म एक टहनी में है : & lt ; Form method = "post" action = "{{path (" enviar ")}}" enctype = "multipart / form-data" & gt; & Lt; input type = "file" id = "foto" name = "foto" / & gt; & lt; br / & gt; & Lt; इनपुट प्रकार = "सबमिट करें" मान = "भेजें" / & gt; & Lt; / प्रपत्र & gt; और मेरे नियंत्रक में : / ** * @ रुट ("/ enviar", नाम = " Enviar ") * @Method (" POST ") * / सार्वजनिक फ़ंक्शन एन्जायर (अनुरोध $ अनुरोध) {$ file = $ request- & gt; अनुरोध- & gt; मिल ('फ़ोटो'); नया रिस्पांस लौटें ('आपके डेस्कटॉप में फ़ाइल का पूर्ण पथ है:'। $ This- & gt; GetFullPath ($ फ़ाइल)); } मुझे फ़ाइल का पूर्ण पथ प्राप्त करने की आवश्यकता है I उदाहरण के लिए अगर मैं सी: \ files \ foto.jpg से फ़ाइल अपलोड करता हूं, तो मुझे सी: \ फ़ाइलें \ फ़ोटो.जेपीजी प्रतिक्रिया में प्रिंट करना होगा। धन्यवाद ...

output - Powershell Search -

Here's what I'm trying to do: For files ending Find my computer to output a .doc, .docx, .xls, or .xlsx in a text file named "File_Summary.txt" in the file name and size (in the group by the file extension). I should also consider the total number of files and the total file size for each file extension listed in the output. I can not even get it before the check part of the folder: $ folder_to_heck = c: \ AIU $ report_file_location = "file_Summary.txt" $ Files = Get- childitem-path $ folder_To_Check-Include * Doctor, * docx, * xls, * Xlsx $ report_file_location $ totalfiles = ($ files | measure-object). Issue $ totalsize = ($ files | measurement object -Sam length) .Sum Update I am changing the code again with some changes from my suggestions, but I am still I am also coming out empty. $ report_file_location = "file_Summary.txt" $ files = Get-Childitem C: \ AIU- "* Doctor", "* docx", "* xls", ...

performance - Find match over Array of RegEx in MongoDB Collection -

मेरे पास इन क्षेत्रों के साथ एक संग्रह है: {"category": "ONE "," डेटा ": {{" regex ":" / ^ [0-9] {2} $ / "," प्रकार ":" TYPE1 "}, {" regex ":" / ^ [az] {3} $ / "," Type ":" TYPE2 "} // आदि]} तो मेरा इनपुट" abc "है इसलिए मैं इसी प्रकार (या सर्वोत्तम मिलान प्राप्त करना चाहता हूं, हालांकि शुरू में मैं मान रहा हूँ RegExes अनन्य हैं)। क्या सभ्य प्रदर्शन के साथ इसे हासिल करने का कोई संभव तरीका है? (जो RegEx सरणी के प्रत्येक आइटम पर पुनरावृत्त नहीं करेगा) कृपया ध्यान दें कि यदि संभव हो तो स्कीमा को फिर से व्यवस्थित किया जा सकता है, क्योंकि यह परियोजना अभी भी डिजाइन चरण में है। तो विकल्प का स्वागत किया जाएगा। प्रत्येक श्रेणी में लगभग 100 - 150 रेगएक्स हो सकते हैं। मैं लगभग 300 श्रेणियों की योजना है लेकिन मुझे पता है कि प्रकार परस्पर अनन्य हैं एक श्रेणी के लिए वास्तविक दुनिया का उदाहरण: type1 = ^ 34 [0-9] {4} $, प्रकार 2 = ^ 54 [0-9] {4} $, प्रकार 3 = ^ 39 [...

ruby - Pass a function into another function and call it -

Functions in Ruby are not first-class objects, but I want to be able to pass a reference to a function in another function. And it should be executed. How can this be done? Example: def run_a_function_twice (my_function) # Call the function once. Call again #function and saydehello say "hi!" Finally run_A_function_ty (say_hello) I am reading the document, but I'm not sure that I should try Lambda, Processes or call (I only know the concept of call I can do it in two different ways: You can do it in two different ways: Ol> Pass the name of the method (usually as a symbol, but a string will also work): send def run_a_method_twice (method_name) (metho D_name) Send (method_name) end run_a_method_twice (: Say_hello) It depends on say_hello as if run_a_method_twice , same as Available in the scope if they are both examples in the same class, if say_hello was defined on another object, then you will do this some_obj.send (: say_hello) . You can pr...

Python - parallel construction of a matrix -

What is the correct method in Python to parallel the creation of Python Matrix M? Ideally, each thread will be responsible for setting the values ​​of a subset of rows. The resulting matrix will be input for a classifier. Can Python Global Interpreter Lock be able to prevent efficient parallel? I consider the input list composed of the template (I, j, k). I wish i for all tuples for [i, j] = i. I: M [i, j] = k m = scipy.sparse.dok_matrix ((num_rows, num_cols)) for i, j, k All updates of the matrix can be done concurrently, the list of tuples does not contain incompatible data, i.e. Each matrix element is most often set. When GIL is out of the way and the matrix can be shared in any number of threads, then it boils down to whether scipy.sparse.dok_matrix is ​​capable of accepting concurrent updates. Unfortunately neither scipy.sparse.dok_matrix nor the answer seems to be answered.

c# - Properly use Background Worker in a WPF application -

I am stuck in using the background worker properly, the app needs to communicate with the database, It takes a little more time and the UI freezes for a while, I need to build database things and wait until the work is finished, for this time, I want to display a window of type that gives the user an app state Indicates (loading C, which, to download). My code I have not written any code yet, but what I want here: / / Instructions initializeComponent (); // Do this in the background and wait until it finnishes GetEntitiesFromDatabase (); Institutional Review ITSource = Some List; (GetEntitiesFromDatabase will initialize this list) // .... How can I move forward, I know that this question can already be asked in the forum but I If it can be done in another way, please help me, thanks in advance. If you're going to be able to manipulate the UI directly, you'll need to Dispatcher.BeginInvoke is required when you are not on the UI thread (read in Background...

Does TFS download all working folders in build definition? -

In the definition of my creation under "Working folders", I have $ / MyProject / main / source $ (SourceDir) . Does this download all files from $ / MyProject / Main / source to $ (SourceDir)) ? Or does it download only what is included in the solution that I am making if it is $ / MyProject / Main / Source ? This will download all the files under that folder. If you want to limit it then you can add other paths to the workspace mapping and mark them as "cloak", which indicates to TFS that they do not download loose folders. .

c++ - Compare two integer arrays and check if they have equal values -

I want to know what is the best way to compare two unsorted arrays and if Are they the same value using C ++? I have found a solution in O (NILAN) but is there an O (N) solution for this? How, if yes? Please tell me that this is not a university question, I have the information to solve the problem of ACM. Thank you. Div> It depends on your values ​​and how much of your memory is there to spend on this one for arrays (N) solution in which ; = X & lt; In the unique integers are x; In C, you can use an Assistant array of four count [C] and do something like this: int array1 [N]; Int array 2 [N]; // get values ​​in array 1 and 2 with a few quarters [c] {0}; {Count [array1 [i]] ++; (size_t i = 0; i & lt; n; i ++) for [Array2 [i]] ++ count; } Now, two arrays will be equal if and if all the elements of count are 0 or 2 then it can be checked in O (n) By running the same loop again, only this time, the value of counts [array1 [i]] (and the same as array...

javascript - breaking into form element event from DOM -

I am new to a company that is characteristic of many millions of SOLCs. The reason for some, when clicking on a text field (in any browser), an associated radio button is de-selected. I'm not sure what the JavaScript text field is going to be starting from onclick, and I'm starting to wonder if the unobtrusive code code that directly mark upward flow Encapsulating -while not hunting it down to hunt down and makes it vulnerable to break into important sections of the source. Is there a way for Chrome developers to use a console to break the javascript which is unselecting radio buttons? ( Bonus :: I have tried some options, have not made any profit? There is a downside to this unobtrusive javascript edit : Here's the HTML:

java - Messages from .properties file do not display UTF-8 characters -

Image
In the form of a title, I can only add that if I enter the html file manually, then it Okay. View Rolver: & lt; Bean id = "templorellolver" class = "org.thymeleaf.templateresolver.ServletContextTemplateResolver" & gt; & Lt; Property name = "prefix" value = "/ web-nf / templates" /> & Lt; Property name = "suffix" value = ". Html" /> & Lt; Property Name = "Template Mode" Value = "HTML5" /> & Lt; Asset name = "cacheable" value = "wrong" /> & Lt; Property Name = "characterEncoding" value = "UTF-8" /> & Lt; / Bean & gt; & Lt; Bean id = "Template Engine" class = "org.thymeleaf.spring3.SpringTemplateEngine" & gt; & Lt; Property Name = "Temploreolar" ref = "Templarolver" /> & Lt; / Bean & gt; & Lt; Bean square = "org.thymeleaf.spring3.view.Thymel...

ruby - How to refresh CSRF Token per request in Rails? -

I am creating an app for a client, where they require a new CSRF token changeable request is. How can I enable it in the railways? Each request will use Angular.js for your client front-end, then an ambient module That which hooks it right! Ruby gem: Angular model for tokens:

php - Using URL data in laravel views -

It is trying to understand what I would normally do in simple PHP. I have the following URL: / viewbuild / 2 The objective is that the viewbuild view is 2 and 2 of the database row ID is. Normally this would be: $ id = $ _GET ['id']; But it correctly detects it to use larval. This is my route: Root :: find ('Viewbuild', function () {return see :: create ('view');}); And on my idea I have done this:. Id}} This searches for the build table for a row with the ID of 2 and then displays its ID. I now have to draw the '20' value from the URL. I have tried: Root :: find ('/ viewbuild / {build_id}', function ($ build_id = null) {$ data = array (' Build_id '= & gt; $ build_id,); Return View: Creating (' View ', $ Data);}); And then on my thoughts: $ build = build :: find (build_id); But I get chaotic constant errors. Any help on this? Actually I can look at your code quickly and...

actionscript 3 - Starling move around huge Image -

I am using Starling Framework and Flash Builder. I have a large map image (around 5500x4500px) where the player is flying around, it is non-repeater, not based on tile but vector based. I'm taking the camera around the following player on every entry freet event, the camera displays approximately 800x400 maps per frame. The camera movement is simulated by changing the X and Y coordinates of the map. What I have now (attemp with maximum FPS on mobile): 9 starling images with maximum texture size: 2048x2048 ( Or lower on the edges). I get 53-60 FPS, but I need stability, I think I'm already killing the limited range. What I tried (gives less FPS): Each different map object (more than 9 But small size) Attract sprites Using the Claiming Solutions In fact you only need 4 images, which is not of your size. Wrap around with tape atlas and sample which is a screen and a starling Implementation is great for movie clips because you can change your content...

rust - "does not live long enough" error when iterating through a linked list -

I'm trying to iterate through a linked list and a list to iterate. enum catalog & lt; T & gt; {Contract (T, box & lieutent; list & lt; T & gt; & gt;), zero,} Straight list earrings & lt; 'A, T:' a & gt; {Tax: & amp; A list & lt; T & gt; } Impl & lt; 'A, t & gt; Iterator & LT; T & gt; For Lists IITs & lt; 'A, t & gt; {FN Next (& self) - & gt; Options & lt; T & gt; {Match self-cure {& amp; Bracket (val, next) = & gt; {Self.cur = & amp; next; Some (val)}, and neil = & gt; None}}} but I get the following error: error: `next 'does not stay too long and opposition (val, next) => in the hand of your match {Self.cur = & amp; next; Some (val)}, are trying to immerse a list item in and cons (wall, next) to move It is not allowed in the back of an attempt to valid and next lending indicator but if this happens, then val and next Local tim...

ios - Make a single view application to table view application -

I have created a single visual application, it's like an alarm app and like an alarm app in the iPhone (which basically If I tap the plus button, I want to make the application a cell in the table view, and when I tap the cell, I want a single view (which I already have I have made it) How can I do this? A few steps to proceed: When you tap the + button To add 1 cell: To tap the cell -> Different view: Try downloading and testing sample code from Apple Hope That's it helps.

ios - Symlinks get messed up in TFS -

I have a crashkick on my application and have a complete building on my local machine. But a TFS store, Jenkins Build Server fails to build the project. I had two setup tests: - 1- General setup (ie dragging. I get this error : - Fatal error: 'Crashicals / Crashlitics' file not found Import CrashKit / Crashlytics.h ^ 1 error generated 2- Install via cocopodes I get this error: - file was created for unsupported file format (0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74) is not linked to the architecture (Armv 7): {PATH} / Krashikatfremvrk / Krashaitikskfremvrk / undefined symbols Architecture armv7 to Krashiletiks: "_OBJC_CLASS _ $ _ Crashlytics", refer to: ViewController.o in objc-class-ref in AppDelegate.o objc in LD-class-ref: architecture symbol armv7 (s) not found error: linker command failed code to use -V to 1 (Involv) How to fix this error No clue ray? ** Update ** I have seen that the S...

php - Fatal Error, ArrayObject::offsetGet() must be compatible with that ArrayAccess:offsetGet() with Zend framework 2.3 on Linux Debian 2.6.32-46 -

Hello I have a problem with ZF2, When trying to access public / index from the browser I got this fatal error from the server: PHP Fatal Error: the announcement of the Zendi \\ Stdlib \\ ArrayObject :: offsetGet () should be compatible with ArrayAccess :: offsetGet () / var In /www/semvirtualhost/vendor/zendframework/zendframework/library/Zend/Stdlib/ArrayObject.php on line 23 I already composer.json update: {"name": "zendframework / skeleton-application", "description": "Skeletal Application for ZF2", "La Sense ":" BSD-3-segment "," keyword ": [" frame "," zf2 "]," homepage ":" http://framework.zend.com/ "," requirement ": {" php " : "Zendframework / zendframework": "2.3. *"}} ":" "Name": "zendframework / skeleton-application", "description": "Skeleton app for Z2 "," L...

A java program that can terminate another java program -

I have written a Java program which can read the APC code of the RFID card when the card is shown to the sensor. Now, I need a separate program that can finish the program reading the card. In my program, I have written a work that can stop reading the card, but I do not know how to use that function in another program to run the current program This question is very open and is not really Java-specific Some options above: When you store the PID of the first process in the file, you start it Es, and then the second process can stop it by sending a kill signal. This is a light option because it does not need to modify the first process, but there is no loss of platform-specific and the machine is not able to cross the boundary. The first process works as a socket-based server and the second process accesses it as a client. This is good because it works on the network, if you need to expand the scope of the IPC, then you can take advantage of the existing prototype (such...

Can anyone explain to me in JavaScript language what "pointers" are? -

I am a JavaScript coder who is learning Go: I am following this tutorial: Package main import ("fmt" "math") type Vertex struct {X, Y float64} func (v * Vertex) Abs () float64 {return mathemat .Sqrt (vX * vX + vY * vY)} func main () {V: = & amp; Vertex {3, 4} fmt.Println (v.Abs ())} What I have given in Wikipedia and GoDocs, but I still can understand them. Can anyone explain me in javascript language? These are similar to object references in js and others, but not much powerful than indicative references (And thus, more dangerous) consider the following JS code. var a = {foo: true}; Var B = A; A.foo = false; Console.log (b); // Output: "object {foo: false}" Both a and b are like expressions here when you B = a , you do not clone an object, you create b (or point if you do so) such as you can do both: type T struct {Foo bool} a: = T {Foo: true} b: = a a.Foo = false Fmt.println (b) // b is a copy, so it has not been c...

c++ - Replacing a dependency DLL in Visual studio -

मेरे पास एक विज़ुअल स्टूडियो 2008 प्रोजेक्ट है जो libcurl.dll का उपयोग करता है (रन-टाइम पर डायनेमिक लिंकिंग) )। मैं एक नया संस्करण में libcurl.dll को अपडेट करना चाहता हूं। मैं फ़ाइल सिस्टम में मैन्युअल रूप से डीएलएल की जगह, साफ और समाधान बनाया। लेकिन डीबग के दौरान, परियोजना libcurl.dll संपादित नहीं कर पा रहा है: नया डीएलएल libssh2 से अतिरिक्त निर्भरता के साथ बनाया गया था। नया DLL का उपयोग करने के लिए मुझे क्या सभी बदलाव करना चाहिए? दृश्य स्टूडियो 2008 में एक DLL को अपग्रेड करने का सही तरीका क्या है? किसी भी DLL से संबंधित समस्या का पता लगाने के लिए उपयोग करें। जांचें कि 32-बिट / 64-बिट सिस्टम पथ समस्या पैदा कर रहा है। जांचें कि निर्भर डीएलएल किसी भी समस्या का कारण बना रहा है, या यदि आपके डीएलएल की DllMain लौट रहा है।

python - Differentiate between strings and embedded messages -

As an exercise I am trying to write a GPB decoder. The document is of the same type as string and embedded message (among other), how do you differentiate between string and embedded messages? In my opinion, a string must be decoded using a different method than an embedded message. This information is explained in the .proto file. In order to properly decode a protob message, the decoder will already know the type of message and accordingly the .proto file is available. .proto The file can be easily compiled first by using the file protoc and then read the output file, Has defined proto-message. In this file, the identifier explains the difference between types using the same wire_type in the identifier TYPE_MESSAGE and TYPE_STRING encoding.

multithreading - wait, notify in java ExecutorService if future work not define previously? -

How to Apply, Java > Execution Service after declaring a thread pool Notify Executable service es = Executor. NewfixedThreadPool (10); Future tasks are not already defined

xml - Android API level 21 backward compatibility? (Since the new update of the SDK came out) -

Image
I have a problem with API level 21. I want to use Material Design and still have less API levels such as 18 (Android 4.3.1) capable of running the application. But I always get the error: My reveal SDK so Looks like: and build Eg .gradle: Hope this helps to get some help For information about information, I really need it: ( Cheers. As described in the doctor : Note: content content is only available on Android 5.0 (API level 21) and above This means that you Values ​​will be used-v21 for your content theme. However, to provide content design style themes for some widgets, v7 support libraries . This is an example, using AppCompat Theme. & lt; Style name = "theme. My theme" original = "theme.AppCom pat.Light" & gt; & Lt ;! Here we have the setting of the action of epomate in the Bayerstyle - & gt; & Lt; Item name = "actionbars" & gt; @Style / MyWestBarstyle & lt; / Item & gt; & Lt ;! -...

javascript - Getting error when running grunt-contrib-imagemin -

I am getting a permissions error - or it seems - when I try to run a tight-looking image Script I installed bitter-contrib-imagemin like this: npm install --save-dev grunt-contrib-imagemin installed in my node and npm My local user is my setup for Grant-Contrib-ImageMin in my GrantFile to avoid the need to use root sudo: grunt.initConfig ({imagemin: {dynamic: { Files: [[expand: true, cwd: 'content /', src: ['** / *. {Png, jpg, gif}'], dest: '/ dist'}]}}}); Grunt.loadNpmTasks ('grunting-contribution-imagemin'); But when I run the command grunt imagemin I get the following error: is running "Image: Dynamic" (Imagemin) WORK WARNING: ERROR: Use -force to use EACCES, file content / 01-projects / 01-corner-in-kiss-in / 04-dana / lanningsmith_cornersdetail3.jpg. > I have checked the permissions on these directories, and all of them write: The directories are 775 and 666 files. Owners are my users and _www (user for my server)...

c++ - Cannot compile moses due to old boost version -

I tried to compile Moses (one of the statistical machine translation system) to follow the steps that I specified So, I do not have the root privileges. I used the wget to install a new version of the promotion as the above documents say, I tried to compile the MOSE with the following command . .bjam --with-boost = ~ / bin / boost_1_55_0 -j8 But this is failing the following error. You've boosted 104100. This package requires at least 104400 (and preferably new) promotions. I am not familiar with the banquet, but I guess that refers to the old version of the promotion even if I specify the location of the new version of promotion. How can I control this problem?

javascript compatibility chrome, safari, and opera on string search -

I am making my first JavaScript application and I have seen that it only works in Firefox (I do not test IE can). I have created this software to do some practice, in some words it allows searching for a given word in a given text, and renders it on a div block, the original text highlighting word search ( If it exists) and also tells the variable string is the text where the search is being performed, the variable target is the search term For search result collection inside string The variable is the result . The problem is that I feel completely searching the code every time in Firefox, the word is present in the second lesson (on the basis of WebKit?) It only gets the word once. Here is the JavaScript code: function wordfinder () {'strict use'; Value, target = string.match (target, 'g'), marked = string.replace (target, 'and lier; var string = document.getElementById (' paste '). Value, target = document.getElementById (' target...

This working in iOS 7 not iOS 8 -

The button has become toggled in iOS 8 and it works fine in iOS 7. There is more button back button in iOS . I'm new to iOS Kripa Marie. if (isBlurView) {moreButton.titleLabel.text = @ "Back"; [More button set enabled: no]; [UIView AnimatedDiscussion: 0.4 Animation: ^ {[Blurview Setframe: CGRactMake (0, 65, Blur.Frame.im.width, 0)]; } Closing: ^ (BOOL End) {isBlurView = FALSE; [Blurview set hiped: yes]; [More button set enabled: Yes]; MoreButton.titleLabel.text = @ "more"; }]; } And {{more button set enabled: yes]; [BlurView sethead: NO]; MoreButton.titleLabel.text = @ "Back"; [UIView animatedDudication: 0.4 Animation: ^ {[Blurview Setframe: CGRactMake (0, 65, Blur.Frame.im.width, 568)]; } Closing: ^ (BOOL End) {isBlurView = TRUE; [More button set enabled: Yes]; MoreButton.titleLabel.text = @ "Back"; }]; The proper way to set text to UIButton is to set code: setTitle: method [more button settings: @ "back" forState:...