Posts

Showing posts from January, 2015

android - Why are there many icons of my App? -

When I develop my application on my mobile phone, a lot of my application appears in the icon. So I've got the icon for every action (sometimes twice). ? What's Wrong? Here's my AndroidManifest.xml: & Lt; Usage-permission Android: name = "android.permission.RECORD_AUDIO" /> & Lt; Usage-permission Android: name = "android.permission.WRITE_EXTERNAL_STORAGE" /> & Lt; Usage-permission Android: name = "android.permission.READ_EXTERNAL_STORAGE" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Use-enabled Android: name = "android.hardware.camera" Android: required = "true" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_NETWORK_STATE" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_COARSE_LOCATION" /> & Lt; Usage-permission Android: name = "android.permission.AC...

javascript - Drag & Drop Image and mantain its thumbnail -

I'm trying to create a small drag and drop gallery. I have my small gallery of images and I want to draw them and then drop them into another specific diva. At present, the images fall in the moment of drop. function drop (ev) {ev.preventDefault (); Var data = ev.dataTransfer.getData ("text"); Var cpydata = document.getElementById (data); Ev.target.appendChild (cpydata); } This makes many emotions because I am not saving any reference to the object that was drag. I'm showing this effect. After that I thought, if I would clone the object that I was pulling and adding it to the image gallery, but it would not work. It only pulls for the first time when I drag it, and the image changes in position, the second time it stops working for the first time when Data does not return drag1 back for the first time It is, but returns the image for the first time, not sure why it does this, here it is one. function drop (ev) {ev.preventDefault (); Var data = ev.da...

javascript - Google Maps Engine - Display Directions on InfoWindow -

I am very new to Google Maps Dev and need your help. I am using a Google Maps engine to load data through CSV files which automatically helps in geo-address addresses. After creating new layers and populating them on the map, I can create map and layer IDs. . I'm calling on my Maps app (JSV3 API). When I click on the marker and I want to link the directions window to the information window, then the information window pops up, is there a way to do direct service on information window like our normal My code looks like this is on Google Map Search. & lt; Script type = "text / javascript" src = "https://maps.googleapis.com/maps/api/js?key=###############" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://maps.googleapis.com/maps/api/js?libraries=visualization&key=##############" & gt; ; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; `...

codeigniter - Twig templates on volatile environment (EC2) -

I have an elastic beenstal environment with EC 2 examples as they are unstable, so we have to store those files Can not trust This is a codiguration app using Trig template system and users can edit template files. Currently these template files are stored in the file system (VPS). When we move into elastic beansstock, now we can store file templates as we do. What's the best way to do it? S3? Flexibility (Memcatch)? From your description it seems that you have two main requirements I think you should consider using elenchike supported by dynamo DD. Since you care about persistence, alone, therapeutics is not a practical solution. Dynamo DD will provide you durability that does not provide allacetic. Less reading / writing flexibility is read in Dynamo DD, so it can be very fast for your use case. Dynamo DB can read and write to you faster Here's a presentation on this topic that can help you: Your Dynamo DB schema will depend on How to structure your dat...

Virtual attributes in Rails 4 from Rails 3 -

I am making a Rail 4.10 app and I am using code from my Rail 3.2 app. In this app, I get a form where I add a virtual attribute which is called Group_ID and then use after_save to add a group for the user. In my 3.2 code: attr_accessor: group_ids after_save: add_groups def add_groups if group_ids.present? Self.assignments.user_groups.delete_all group_ids.reject! (And: empty?) Group_ids.each do | Group | Assignment = assignment.Nana Assignment.Signable_ID = Group Assignment.Signable_type = "User Group" assignment. Backend_user_id = self.id self.assignments & lt; & Lt; Assignment end and end In my 4.10 code: Controller: params.require (: backend_user) .permit (: First name, last name, group_ids) How can I use the Add_groups method in 4.10? It looks like the group_ids in the controller code is correctly whitelisted Not being added, which results in group_ids is not being set which will be in your after_save callback in group_ids.present?...

Python-bytes() vs struct.pack() -

I'm just curious here, but when I'm using bytes () bytes I learned the dragon until it was until I saw struct.pack () . I did not bother to learn how to use it because I thought it was basically like byte . But it appears that many people like to use struct.pack () . Why? What are the advantages of one over the other? bytes () literally means that the name means: Return a new "byte" object, which can be found in category 0 & lt; = X & lt; There is an unchanging sequence of integers in 256 hit.pack () makes a lot different: This module uses Python Convergence between values ​​and C strands indicates that as a python string This can be equivalent to some input, they are not all in the same operation. struct.pack () essentially produces a byte-string that represents a POD C-struct in memory, it is useful for serializing / delivering data.

iis 7.5 - How does one set up an automatic LESS compiler on IIS 7.5? -

Can anyone explain how to set up a low compilation automatically on IIS? I need to see and re-compile a folder when any lesser files, or their imports are updated - much like the Koala app or it inserts but the native low compiler and some Does not use GUI. In short, the best answer is to obtain the native and install the node, or even That only

Create page without menu item Drupal 7 -

Is there a way to create simple pages with any menu item from a custom menu in Drupal 7? I want to create a thank you page without any menu link Thanks Adam How much do you use Drupal? For example, do you know which template? If so, then just create a new template for that page and create it inside of that template: & lt ;? Php print render ($ content); ? & Gt; And you can get some extra in it, but if you use devail, you can dig inside that $ content and then only to a certain area of ​​content Can print. $ Content ['2'] Where there is ['2'] sub array, I use adaptive topics in my site, and I have page-node-64.tpl.php and examples! Hope this will be helpful. And if you do not know how to start templates, then Dopp's Theming's Guide

jquery - Ajax and MVC 5 - Upload image binary by ajax -

I am writing code using knockoutjs and mvc5 where an image is selected and the image binary by ajax Is uploaded. I can not really show much about image uploads, but I know that it works. The image is local to the browser and is stored in the binary visual model. The problem is uploading the BVI to the Binary. In my JavaScript, I am creating a post following: var customer data = {customer name: self.CustomerName (), customer image: self Customer Image () ImageBinary (), Customer Job Number: self.CustomerJobNumber ()}; // If add, enable remaining area, edit ID and edit customer (window.location.hash == "#customer-add") {$. Content Type: 'Jason', Data: JSON Strej (Client Data), Success: Function (Data) {Ajax ({type: 'POST', url: "/ Customer / SaveNew", Content Type: 'Application / Jason' / * CODE * / var title = datatyal; var msg = data message; if (data.success == 0) {// as a gurran} other {// ticklish success window .hash = "...

terminal - How can I clear another tty from C? -

After the In one terminal I can clear another terminal by running: echo -e "\ 033 \ 0143" & gt; However, if I do this by trying to do this from my program: system ("echo -e '\" / \ " 033 \ 0143 '& gt; / dev / pts / 14 "); It does not clean the screen and leaves some garbage. Any ideas about doing this? I am programming in C for 30 years and thought it would be easy. After \ 0143 escape, interpreting from C is not being opened by shell Or echo , and it is considered as the \ 014 and then the digit 3 . Instead of typing 1b 63 0A , typing tty bytes 1b 0C 33 0A ends. -e is not doing anything at this point at all. I do not understand why you would rather do this than open the tty file and write directly with the bytes write (3) , though. In any case, this is actually a programming question.

sql server - How to extract SSIS package tasks information? -

Currently our SSIS 2005 packages are responsible for data loading on our machines (Windows 2008 Enterprise Service Pack 2 64bit) . The team decided to move our database into a new machine (Windows 2008 Enterprise Service Pack 2 64bit) and continue SQL Worker (SSIS package execution) on the old machine. I started updating the configuration files of all the packages to point to the new machine. My checkpoint is that, in some packages the old server names in the OLEDB source component are hard coded. For East: Select from A.column, B.column, OldMachine. Join Tables A Other Adder.Table B .... My question is, how can I get source query information where the server name is harder than all the packages on the old machine (most packages are saved as a file location ) So that I have to open them all. Thanks Ton The SSS package contains .dtsx files, basically the XML.If you know the name of the old server and Machines, you can search for simple text on the folder where the package resid...

null - using a variable to navigate pages in an Acrobat document -

I am trying to navigate users through an Acrobat document using the buttons. If they click one of the navigation buttons, then everything works fine when they do, then I pgnum = this.pageNum Set a variable, then I send them to the requested page. When they press the Return button, I use the following this.pageNum = pgnum problem occurs if they scroll (any button Click) page and hit return I can actually send them back to the first page of the document (page 0). In this scenario, pgnum is undefined or something else I tried following without luck. if (pgnum == num) {this.pageNum = 1; // has also tried it. PageNum.value = 1} and this. PageNum = pgnum I'm sure this is a syntax problem or an issue with dealing with undefined variables. What can you do to prevent undefined? Define Pgnum as the document-level variable. Create a document-level script, in which only this line is: var pgnum = 0; Then you can simplify the code in the back button: this.p...

Introducing user specific timezones in existing high-traffic web app? -

Long story is short, we have developed a web app for internal use and one thing is moving forward for another And now it's a mother-in-law who has more than 1,000 users. The problem is that everything related to the date (which is very much!) Is hard work at Pacific Time (do not ask) and users clearly want their time zone. I have read the best I think the "big problem" has been estimated, which is the way to manage time zones in web applications, but right now Our current, live, mission-only that we are talking about the code of 100k + line, and possibly related to date of at least 100 different DB questions. What I've read, it seems like to "correctly" manage the timezone to store everything in UTC and then users have to convert them to output to texas ... But at this point there will be nothing wrong in modifying all date related queries and wrapping all the dates originally with Convert_Ties converting existing PDT timestamps into user's t...

google chrome - Why is Android not using the 196x196 favicon? -

I've just added 1 9 6x196 favicon to a web page here. This favicon is commonly used by Google Chrome in the "Add to Homescreen" from Google Chrome. This big favicon is normally added to the homescreen, but this time, instead of the small 32x32 favicon is added to the home screen (and it is good Do not seem). Is there anyone who can see what is wrong here? https://dl.dropboxusercontent.com/u/848981/psych/bt/me/memory.html Code to add favicon Used on other pages (where it works): & lt; Link rel = "icon" href = "favicon-32x32 Png" size = "32x32" type = "picture / png" & gt; & Lt; Link rel = "icon" href = "favicon-196x196.png" size = "196x196" type = "image / png" & gt; UPDATE I have just tested one of the other sites, actually the 196x196 icon is used (if I use the 32x32 icon Link), but it has been shown on the home screen as if it was a small icon! The recomm...

ios - container view not showing whole child ViewController -

I have a visual controller, dogwie controller, which should appear inside a container view. What I do with auto-layout, the container view refuses to show the whole doggie controller. The problem does not appear to be a DogViewController when I move the launcher arrow and run the app, DogViewController The scene looks full and fine. But when I move the launch arrow to the container's parents, the container view only shows the top portion of the dog viece controller. DogViewController has two views in it: a table view and a TextView only appear through the tableview container (and that's probably not the whole thing), would anyone know about fixing this problem? Have any information? (I have just finished an IOS course and I am trying to make a real app to strengthen my skills.) I have already read I can not find the exact location in the place where I read it, so summarize me: UITableViewController Only a single UITableView can control .

jQuery add class to that is closest to a ".pdf" link -

$ ("ul: होता है ('a [href $ =। Pdf]')")। AddClass ( "शोकपूर्ण घटना"); मुझे ऐसा करने में परेशानी हो रही है मैंने यह भी करने की कोशिश की $ ("ul")। निकटतम ('एक [href $ =। Pdf]')। AddClass ("त्रासदी"); लेकिन यह काम नहीं किया अगर कोई मुझे मेरी सहायता कर सकता है तो मैं इसकी सराहना करता हूं यहां HTML है: & lt; h2 & gt; चयनित शेक्सपियर नाटक & lt; / h2 & gt; & Lt; ul आईडी = "चुने गए-नाटकों" वर्ग = "स्पष्ट-बाद" & gt; & Lt; li & gt; कॉमेडीज & lt; ul & gt; & Lt; li & gt; & lt; a href = "/ asyoulikeit /" & gt; जैसा आप इसे पसंद करें & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; ऑल वेल वेल इट्स वेल वेल & lt; / li & gt; & Lt; li & gt; ए मिडसमर नाईट ड्रीम & lt; / li & gt; & Lt; li & gt; बारहवीं रात & lt; / li & gt; & Lt; / ul & gt; & Lt; / li & gt; & Lt; li ...

sql - Selecting table of properties as columns -

मेरे पास दो टेबल हैं, चीजें और properties : टेबल चीजें बनाएं (आईडी श्रेय प्राथमिक कुंजी); सारणी गुण (thing_id INT, कुंजी पाठ, मूल्य पाठ) बनाएँ; मैं वस्तुएं से चयन करना चाहता हूं और कॉलम के रूप में properties से पंक्तियों में शामिल होना चाहता हूँ। उदाहरण के लिए, मान लें कि मेरे पास निम्न है: INFACT चीजें DEFAULT_VALUES; मान लीजिए आईडी 1 संपत्तियों (चीज_आईडी, कुंजी, मान) मूल्यों (1, 'ऊंचाई', '5'), (1, 'चौड़ाई', '6'), (1, 'लंबाई', '7 '); मैं ऊंचाई , चौड़ाई , और लंबाई के रूप में स्तंभों के रूप में किस प्रकार से चुन सकता / सकती हूं? इसके अलावा, मैं विशेष रूप से ऊंचाई , width , और लंबाई का चयन नहीं करना चाहता, सिर्फ तीन स्तंभों के लिए: SELECT t.thing_id, max (CASE जब p.key = 'height' तब p.value END) ऊंचाई के रूप में, अधिकतम (मामला जब p.key = 'width' THEN p.value END) के रूप में चौड़ाई, अधिकतम ( मामले में जब p.key = 'लंबाई' तब पी .value END) चीजों से लम्बाई के रूप में, पी। पर कुछ...

jsp - TNS error on Tomcat -

I am working on a social networking website project. The user who will be displayed to shorten their code from that website page, I have created a separate class which I have included in my various pages and I use different functions defined in class. Example: I want to display user details, this is the code for it: User objUser = new user (); Results set rs = objUser.getAllDetails (userName); Rs.next (); Data = "& lt; div id = text & gt;" + "From the & lt; Table & gt;" + "From & lt; tr & gt; & lt; td colspan = 2 & gt; & lt; h1 & gt; User Details & lt; bell & gt; & lt; / h1 & gt; & lt; / td & Lt; / T & gt; & lt; TR & gt; & lt; TD & gt; First Name: & lt; / TD & gt; & lt; TD & gt; "+ rs .getString ("firstname") + '& lt; / TD & gt; & Lt; / TR & gt; From "+" to & lt; TR & gt; & Lt; TD & gt; Last na...

r - How to put multiple graphs in one plot with ggvis -

Image
नमूना डेटा: y1 = c (1,2,3,4) y2 = सी (6,5,4,3) x = c (1,2,3,4) df = data.frame (x, y1, y2) मेरा प्रश्न: मैं ggvis : df% & gt;% ggvis (~ x, ~ y1) का उपयोग करके निम्न दो ग्राफ़ को एक में जोड़ना चाहूंगा )% & Gt;% परत_पाथ () df% & gt;% ggvis (~ x, ~ y2)% & gt;% परत_पाथ () हालांकि, निम्न कार्य नहीं करता है: df% & gt;% ggvis (~ x, ~ y1)% & gt;% परत_पथ ()% & gt;% ggvis (~ x, ~ y2)% & gt;% परत_पाथ () आप मूल डेटा का उल्लेख कर सकते हैं और एक परत जोड़ सकते हैं: डीएफ% & gt;% ggvis (~ x, ~ y1)% & gt;% परत_पाथ ()% & gt;% परत_पथ (डेटा = डीएफ, x = ~ x, y = ~ y2) आप डेटा के संदर्भ को निकाल सकते हैं और यह अनुमान लगाया जा सकता है: df% & gt;% ggvis (~ x, ~ y1)% & gt;% परत_पाथ ()% & Gt;% + परत_पाठ (x = ~ x, y = ~ y2)

CMake: Keep file permissions in deb package created with cpack? -

I am creating a debug package with cpack but this target does not have the original permission on the machine. This is causing the user to be unable to execute it after installing my application. You can specify permissions with the Approval argument. There is also USE_SOURCE_PERMISSIONS here, but I have never used it. Here is a clear example: Permissions argument: Install # Monitor configuration (files $ {CMAKE_SOURCE_DIR } /ext_modules/monit.d / $ {CMAKE_PROJECT_NAME} dESTINATION $ {CMAKE_PACKAGE_TARGET_SYSCONFIG_DIR} allow OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE /monit.d) # 755 # application install program ($ {CMAKE_BINARY_DIR} / $ {CMAKE_PROJECT_NAME} destination $ {CMAKE_PACKAGE_TARGET_USER_BINARIES_DIR } Permission OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) # Install 775

python - How do I implement rstrip for arbitrary strings? -

Say I have a bunch of strings, which either end in pineapple, ham May be , or grapes . What is the best way to prepare a list of "hidden stars", which is fine as the original stars, if only the pineapple is finished, then pineapple Will be trimmed by the end, and if the string ends with ham , then ham will be trimed? For example, suppose that was my input ["I really like pineapple", "I do not like hem or grapes", "Today I ate "a lot of hams," but I eat many grapes "] then the output should be [" I really like " , "I do not like hem or grapes", "I ate a lot today", "but I ate too many grapes"] code> then . Simply join the end anchor at the end of your expression and make it only at the end. import re stuff = ["I really like pineapple", "I don" like hem or grapes "," I ate a lot today "," but I have so many grapes Eat ...

perl - The folder shows 3 files but when run the script in CMD it shows extra ` . ` and ` .. `? -

Image
I have been confused with the situation below, instead of size = 3 5 only got 3 files in my folder as ? . and .. from where? Code: My $ directory = 'c: \ modules \ SFTP \ New'; Opendir (DIR, $ directory); My @ fils = reddir (dir); Closedir (DIR); Foreign (@file) {print $ _, "\ n"; } My $ size = @files; Print "Size - $ Size \ n"; Play Perl: Only 3 files inside my folder were found, but it prints 5 records in CMD. Why is . and .. to show in CMD? update : Thanks minitech and chilemagic then . and .. is the current directory and the original directory. Additional questions: How can I only show the file, so that I size = 3 If there is no other way, then maybe I should do it manually in a manual way. . and .. are the current and root directories respectively. This is a common thing to filter by calling: Use strict; Use warnings; Use Autodi; My $ directory = 'c: \ modules \ SFTP \ New'; My @ files = ...

bootstrap grid: how can acheive a formation where i have two rows one below the other on left and one on their right -

How can I get it with the bootstrap grid system? ............................... . . Col-md-9 (div1) Call-MD-3 .................... (div2) . . . Col-md-9 (div3). . .................... ............ . . .............................. I tried the following: & lt; Div class = "col-md-9" & gt; & Lt; / Div & gt; & Lt; Div class = "col-md-3" & gt; & Lt; / Div & gt; & Lt; Div class = "col-md-9" style = "float: left;" & Gt; & Lt; / Div & gt; It gave me something like this: ..................... ........ . . Col-md-9 (div1) Call-MD-3 .................... (div2) . . . . . . . . .............................. . . Col-md-9 (div3). . .............................. What am I doing wrong? & lt; Div class = "container" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "call-sm-9" & gt; & Lt; Div class = "row" & g...

vb.net - How to read returned stream data -

itemprop = "text"> I am currently reading a section like this: WC = New System. Net. WebClient () strm = wc.OpenRead (URL) Data.ReadXml (strm, XmlReadMode.InferSchema) strm.Close () Reading the dataset section Also I want to be able To output text to a log file or to test for debug. Print details. How can I do this? I tried to add a new stream reader after wc.openread but there is no data to read the dataset. Any help would be appreciated. Rick Post data .ReadXml (strm, XmlReadMode.InferSchema) call Data.GetXml dim xmlString string = Data.GetXml Sample below, as the new dataset of WC = New System.Net.WebClient () strm = wc using .OpenRead ("Using http: //news.yahoo.com/rss/entertainment") Data.ReadXml (strm, XmlReadMode.InferSchema) as String = Data.GetXml Debug.WriteLine (xmlString) with Dim xmlString Second end use Rana Using

How to set Excel Import Preferences in InDesign CS6 using extendscript? -

It seems that it should be really simple, but for some reason I can not work it at all. The following code has no effect: function setXCellImportProjects () {with (app.excelImportPreferences) {rangeName = "A1: Z300"; SheetName = "whatever"; Table formatting = tableformattingopause. Axel formattable; }} And this does not work either: function setXCellImportProjects () {with (app.excelImportPreferences) {app.excelImportPreferences.rangeName = "A1: Z300"; App.excelImportPreferences.sheetName = "whatever"; App.excelImportPreferences.tableFormatting = tableformattingoptionsexcelformattable; }} What am I doing wrong? I have made all the goals, and I am at the end of my mind (note: I have edison CS6, version 8.0) Edit: Put in a bracket that I accidentally leave when copying and pasting Had given. I'm not familiar with these settings, but you think a bracket is missing. Get rid of all the syntax from the syntax and try set t...

ruby - a more elegant way to do this? -

Sorry I have not made the title very clear, but I can not honestly work on how to better my question ; If someone can think of a better title, please change it in all ways. Take a look at the following example: module Fu DF method (value) Bar.instance_exec (self.method (value)) End class bar def self.method (value ) The print value is the end-end end that is the only way to create bar method foo namespace Is available within the bar without the need to call or is there any more beautiful way to do this? Maybe method_milk can work, but again, a little cumbersome. Edit: Forward Example Module Fu Class SomeClassController & lt; At the end of the ApplicationController def index method (@User.Id) Bar.method (@ user.id) I am creating an engine but I do not have to do this every time I want to use the method which is available everywhere, the main namespace ( Foo in this example), as in the case of more utility methods, but they have the engine . EDIT: Exit...

Playframework 2 render two dimension form -

itemprop = "text"> I have a form with repeated values: editPropertiesForm = form (single ( "Sahara" - & gt; seq (long ("color_id" -> longNumber, "size_id" -> longNumber, "quantity" -> longNumber))) What to do next? How to render the table: Size 1 size 2 ... size color 1 q1_1 q1_2 ... q1_N color 2 q2_1 q2_2 ... q2_n ........... I do not understand the way to group values ​​and present them in the form .... itemprop = "text"> First of all is an action which fills the form if the data fills and needs to be seen. DEF showForm = Action {passes the passed request to create = & gt; Val SampleData = Seq ((11L, 12L, 13L), (21L, 22L, 23L)) Val form = editPropertiesForm.fill (SampleData) is ok (views.html.form (form))} . Form [seq [(Long, Long, Long: View Assistant Repeat () Method @ (Form with propForm can override more than seq) ]]) (Underlying request: request header) @ importport ass...

mysql - Hibernate performance tuning for multiple similar select queries -

The problem I have is that I have a lot of questions in the batch: records Select ID, A, B, C from where select A, A, B, C from A = 1 and B = 2 records where A = 5 and B = 3 ID, A, B, C. Select = 2 and select ID, A, B, C from B = 5 archives where one = 3 and B = 4 ... Generally 1000 in a batch There are queries, which end approximately 0.5, a and B sequence With injury. Auto commute is on and all connections are managed in the bonecp connection pool. The use of hibernate is used to map each result to an object in an intensification. My questions are: 1. 1. Does this make a difference if I add them in the same question, even then all DB connections remain and need to wait for connection to set up service is not? 2. If yes, what is the best practice to do in hibernation? 3. If not, then I want to make a difference in executing it all the questions in concurrent (rather than one instead of the one in the current case), although the connection pool only executes a certain num...

Android,how to disable confirm dialog when open wifi by code -

When I open WIFI by code like this: Wifi Manager Wifim = (WifiManager) reference .getSystemService (Context.WIFI_SERVICE); Wifim.setWifiEnabled (true); It woks but the Android system opens itself a confirmation dialog like this: Warning Apple WifiOpenTest is trying to True on your WLAN connection. Do you want to allow this? Allow What I want to ask is I can open WIFI in the source without showing this dialog Thanks. You need to add the following to your manifest Lt; Use-permission Android: name = "android.permission.ACCESS_WIFI_STATE" & gt; & Lt; / Usage-permission & gt; & Lt; Usage-permission Android: name = "android.permission.CHANGE_WIFI_STATE" & gt; & Lt; / Usage-permission & gt;

c++ - osx - boost and python undefined symbols for architecture x86_64 -

I am using C ++ 11 and Python 2.7.8 Boost 1.55.0. I am compiling with a universal architecture and OS X 10.9 SDK. I am compiling libRocket Python binding and it needs to be promoted and python I have installed both and generated .xcodeproj from CKK. Although I found this error on compilation and could not figure this figure for my life. I tried to promote 32 / 64bit library and download and install for python but nothing changed. I also checked with the lipo-info and both of the libraries included the i386 and x86_64 architecture. Error msg: Any help is appreciated! Python structure was changed. For future reference, to deal with these problems, I suggest these steps. 1) See all the installation. Make sure that they are not corrupt and in the right place. 2) Make sure their project is LINKED. You can tell that it is not linked because the false error will start with ld: and it will have the word Linker . 3) Ensure that the library / frameworks used for your both ...

java - Will one FileOutputStream constructor call another one? -

I looked at JavaDocs for FileOutputStream and saw that a constructor has taken only one file object and the other is a file object Have taken and added a boolean, will the first constructor call only the second constructor which will pass incorrectly as append? Java docs did not talk about it If you use a constructor without boolean, then it happens. FileApplyput stream (file file) Flannnet throws foreign exposure {This (file, incorrect); } Generally, these types of scenarios are assumed to be true or false, depending on the operation most commonly used. So if you are writing on the outputstream then you are creating a new file for a long time, so it passes as default false . Cheers!

validation - How can I constrain XML content to other content in the XML (as a reference)? -

I want to be valid if and only when there is id = * from > Method / Key and {*} in substrings method / call . Valid because each {*} corresponds exactly with id = * and vice versa. & lt; Format & gt; & Lt; Phone & gt; / Tags / {1} / top-ask / {2} & lt; / Call & gt; & Lt; Major id = "1" & gt; & Lt; Name & gt; Tag & lt; / Name & gt; For site & lt; Discussion & gt; Tag & lt; / Discussion & gt; & Lt; / Key & gt; & Lt; Major id = "2" & gt; & Lt; Name & gt; Period & lt; / Name & gt; & Lt; / Key & gt; & Lt; / Format & gt; Invalid because there is no id = * no related {*} . & lt; Format & gt; & Lt; Phone & gt; / Tags / {1} & lt; / Call & gt; & Lt; Major id = "1" & gt; & Lt; Name & gt; Tag & lt; / Name & gt; For site & lt; Discussion & gt; Tag & lt; / Discussion ...

php - Trying to decrypt a password stored in MySql -

मेरे पास एक ग्राहक है जो मैं अपने वर्तमान उपयोगकर्ता सिस्टम को asp.Net में बदलने की कोशिश कर रहा हूं। मेरे पास मौजूदा डेटाबेस है पसंदीदा समाधान मौजूदा आंकड़ों को आयात करना होगा और इसे बिना पासवर्ड के आंकड़े और सभी उपयोगकर्ताओं को पुनः जोड़ने के बिना काम करना होगा। डेटाबेस में उपयोगकर्ता की जानकारी जानकारी मेरे पास है इस प्रकार है: (यह एक परीक्षण उपयोगकर्ता) उपयोगकर्ता नाम: pixelrazor पासवर्ड: d5f916bb8d603a8db3300337e0af02e41a3e496aea850efd621bcfe6bbf4c210c634e5d8a298419eee504cb8875e6545bb79f3a6c1a8c9c8fa7482e74bf48b86 नमक: NVzjxi # U + 2nZqB "! यू 9 ^ हे & LT; 6 @ UZY $ 2% 5doY [: obpNh & LT; 7 पी: बीटी & gt; rm.O_r} ओ" X3 [eEGP / fo0, यू, डी:? drBea1x% zW8 "जी @ एल एम; YX ~ t + = f ~ .x8q! 11Ymr?% 0eCY $ ty (sl ./ 'CWZD uniquekey: be6727dbd1c2755d1ac887c770d34c9f1f3a65bd crypt-key: fc3b8255ff0a719d0c2074adb949b73fee636776 (अनशैश या एन्क्रिप्ट किए गए पासवर्ड क्या यह पता लगाने का कोई तरीका है कि इस पासवर्ड में किस प्रकार की सुरक्षा है? यह ए...

c# - How to Show Image in CustomMessageBox -

I need to display an image as the contents of the CustomMessageBox. I have tried to set it up, still no image has been displayed, but everything else looks fine. image image = new image (); Bitmap image BMP = new bitmap image (new urie ("/ assets / image page", uricind .relative)); Image.Source = bmp as ImageSource; CustomMessageBox Message Box = New CustomMessageBox () {Caption = "\ n" + "Caption", Message = "\ n" + "Message +." \ N ", LeftButtonContent =" left button ", content = image}; messageBox.Dismissed + = (S1, E1) => {switch (e1.Result) {case CustomMessageBoxResult.LeftButton: MessageBox.Show (" left Button "); break; Case CustomMessageBoxResult.None: MessageBox.Show (" None "); Break: Default: MessageBox.Show (" default "); break;}}; messagebox.Show (); You can add a custom UI as a content of a custom message box. I did this. This is a code from my project. It has an...

android - If I use CWAC-Presentation, can I access phone`s screen? -

I am searching the phone's screen mirroring API. I wrote in the Google Developer, I got the reply presentation API. But, I still do not know how I can get the phone's screen. If I use the CWAC Verification API, can I make an application? (Just like the mirroring function of Chromecast.) Provide "mirroring presentation classes", it's easy and great API. But I can not understand it Therefore .. I have a question .. Can the "Presentation API" access the phone's screen without the root? - & gt; how it works? Does it provide "display capture"? Or just "display location"? Can I create a mirroring application such as the mirroring function of Chromecast? Should I choose "Performance Manager" or "MediaRaster"? What about any specimen or app "mirroring?" (Not Miracast, this is the phone for PC (TV)) Finally, I want the phone screen buffers what I do? Please help me please ...

python - How to use mechanize to fill search form and get results back? -

I am trying to use mechanisms with dragon to search keywords using a search form. This is the form code: & lt; Form id = "searchform" action = "http://www.example.com/" method = "get" & gt; & Lt; Input id = "s" type = "text" onfocus = "if (this.value == 'search') {this.value = '';}" onblur = "if (this.value == '') {This .value = 'Search';} "name =" s "value =" search "& gt; & Lt; Input type = "picture" style = "border: 0; vertical-alignment: top;" Src = "http://www.example.com/wp-content/themes/SimpleColor/images/search.gif" & gt; & Lt; / Form & gt; I want to present and get results so that I can remove information from the results. Thanks in advance. From , you can create a browser object by br = mechanize.Browser () And follow a link with the object - br.open ("http://www.example...

asp.net - VB.NET Web Form Project Reference Issue -

I have a project solution that has several classroom library projects and a main web application in which the project reference for other class library projects is . Class libraries have 2.0 frameworks, but the web application has a framework of 4.0. For example Ecommerce. GoogleCheckout (Class Library / 2.0 Framework) Ecommerce IV1. Core (Class Library / 2.0 Framework) Website (Web Application / 4.0 Framework) I do not have the framework for the class library project Can change because this project has already been developed and has many dependencies, I have got this project for maintenance. The problem is that when I add new classes in class from one class to another, prepare the Library Project and project separately, but it is compiled completely, but when I complete the solution I create the following error: - Type 'ecommerce.iv 1.core.cnlxxxxxxxxx' is not defined. I've added the appropriate import statement to access project namespaces - Impor...

eclipse - How to run my Java Selenium program automatically every hour -

Image
I have developed a test case in Java and Selenium webdriver. I have developed it in Eclipse IDE Can you please tell me whether I want to execute this code every hour. How should I do this? I do not use Maven or anything and I do not know how they work We do. I click on the execute button in all Eclipse IDE. But I want to do it automatically instead of clicking Execute button in Eclipse. Please suggest. This is the one that I want to execute every hour: wd.get ("http://www.google.com"); Thread.Sleep (100); Web Element Logo = wd.findElement (By.id ("abc")); Logo.click (); Try {getscreenshot (); } Grip (exception e) {// Tudo auto-generated cache block System.out.println ("found an exception"); }} Static Simplified Format Format = New Simple Format ("YYMEMMDHHMSSSA"); Public stabilizes zero () throws exceptions {Calendar now = Calendar.getInstance (); Robot robot = new robot (); BufferedImage screenshot = robot.createcrescache (new rectangle (...

How to delete existing project in eclipse -

I'm new to eclipse when I want to import an existing project then the problem has to be faced first Once I imported the same project, I forgot to forget the "copy project in the workspace" and when I came to know about it I tried to import it again but it was said that the project is already present. I could remove that project to import it again, but I did not find it anywhere in my workspace (I do not know why). But suddenly a thought got stuck in my mind and he also worked. Create another workspace and import that project again into that workspace, it will work. LOL :) Delete project details from the following location. /. Metadata / .plugins / org.eclipse.core.resources / .projects

javascript - Loading gif not working in IE & Chrome -

I have been searching and finding some similar questions about this problem but it still does not work for me Does. / P> This is my function: function ajaxruz (url, type, datatype, content type, data, display img img) {var result = ""; DisplayLoadingImg = (type displayLoadingImg === "undefined")? 0: displayloading img; If (displayLoadingImg == 1) {$ ("# loadingImgAging") CSS ("display", "block"); } $ .jax ({url: url, type: type, data type: datatype, content type: content type, data: json.trive (data), success: function (race) {result = resident; if (displayLoadingImg == 1) {$ ("# LoadingImgAging"). CSS ("display", "none");}}, error: function (race) {result = "";}, async: false}); Return result; } How do I call it: setTimeout (ajxurist (url, "gET", "jason", "app / jason", 0 , 1), 500); I have tried to use () before ()> but it does not work eithe...

php - Select specific data from input form in yii -

I have trouble choosing a field in an input form. I need to put a new manager permission when adding new manager and it Does not work. if (isset ($ _ POST ['manager'])) {$ model-> Properties = $ _ Post ['Manager']; If ($ model-> Save ()) {$ sql = "Enter in the assignation (item name, user-id, dip, data) value (: item name, user id, dip, data)"; $ Parameter = array (": itemname" = & gt; 'manager', ': userid' = & gt; $ _POST ['username'], ': bizel' = & gt; null, ': data' = & Gt; null); Yii :: app () - & gt; Db- & gt; CreateCommand ($ SQL) - & gt; ($ Parameter) implementation; $ This- & gt; Redirection (array ('visual', 'id' => gt; model- & gt; username));}} The problem is on the parameter array ': UserID ' placeholder thanks. In your controller, check the postal data by using print_r ($ _POST); Your username must be $ _...

javascript - process angular function on view renedring -

I have the image URL in this format in the database http: // www. nobrok .com / roomrent1 / public / uploads / 5269 / b4a3263f52c1c4725096ee299fa2c64051cb9b4d.jpg :: I'm trying to pass the image URL to an angular controllers method like this & lt; Img src = "size image (comment pictures)" & gt; I have written a function to process the $ scope.sizeImg = function (image) {return 'http like URL: / / Www .nobrok.com / roomrent1 / public / upload / 5269 / b4a3263f52c1c4725096ee299fa2c64051cb9b4d.jpg '; } but the function is not working T do not work now in src straight JavaScript, and mentioned angular documentation ngSrc using angular markup like "{{hash}} in the src attribute see" Anji- src. & lt; Img ng-src = "{{sizeImg (comment.pictures)}}" & gt; Coding example:

Parsing YANG Model in java -

How can I analyze the YANG model in Java? I need to change the yang model to XML format. I have already tried pyanga but since it is in dragon, it does not deliver to my requirement. Yes, that's true. Use hang-parser-install from open daylight, it provides a yang parser and gives a set of parse modules. You can query further to get more node objects.

c# - BitConverter.DoubleToInt64Bits equivalent in python -

I really understand the best way to feel about double exact numbers, play a bit with them, and One of the things I want to do is to see their (almost) binary representation, in C #, the function BitConverter.DoubleToInt64Bits is very useful because (after converting to hexadecimal ) I want to say "real" of the temporary point number Puts a look at Riti. The problem is that I do not seem to be able to find equivalent function in Python, is there a way to do the same things in a BitConverter.DoubleToInt64Bits a python function? Thank you. Edit: The was used in the suggested answer. In the form of hexlif (struct.pack ('d', 123.456) inascii.hexlify (struct.pack (', D', 123.456)) Returns ' 77be 9f1a2fdd5e40' , but if I run the code that should be equal in C #, i.e. BitConverter.DoubleToInt64Bits (123.456) .ostring (" X ") I get a completely different number: " 405EDD2F1A 9FBE77 " .w I have made my mistake h...

Issue with Ruby gem install -

I'm trying to install json on windows, but it's not working. Please help me with possible re-correction for this. C: \ Ruby193 \ bin> Gem Install - Local JS-1.5.1. To add gem debit temporarily the path is being extended ... native making extension This may take a while ... Error: Error installing json-1.8.1.gem: Error: Failed to create gem country extension C: /Ruby193/bin/ruby.exe -r ./siteconf20140725-4216-11o740j.rb Make the makefile makeup file: 165: *** There is no `% 'in the target pattern to stop. Makefile: 165: *** There is no `% 'in the target pattern to stop. Unsuccessful, exit code 2 gems file will be installed in C: / Ruby193 / lib / ruby ​​/ gems / 1.9.1 / gems / json-1.8.1 for inspection. Log results in C: /Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/json-1.8.1/gem_make.out RubyGems 2.4.1 Ruby Version 1.9.3 and will not create native extensions in Windows first. You will need to downgrade Ruby Games 1.8.29 To do this, run the...

angularjs - Web api model binding doesn't bind the list -

Developing a web API and angular applications, I'm trying to post a list of things that save serverside. Send me a public blank message (list & lt; somethingModel & gt; model) {// model tap is here} array contains the request body but the model does not bind if I add the ModelBinding attribute to: Generic Zero SendMessage ([ModelBinder] list & lt; SomethingModel & gt; Model) I got an empty list, so the question is how do I put a Web API in a list of complex objects Can i bind myControllers.controller ('MessageCtrl', ['$ scope', 'somethings', 'message', function ($ scope, somethings, Message) {$ scope.somethings = somethings; var message = new message ($ scope.somethings); $ radius Save = function () {message. $ Save (). Then (function () {$ scope.go ('/ somewhere);});}}])); More views: & lt; Table & gt; & Lt; Thead & gt; & Lt; Tr role = "row" & gt; & Lt; Th & gt; &...

asp.net - How to trying to avoid message from device if The message is same -

How to try to use a restricted message from the device if the message is the same. I want to receive messages from the device "OK" while it is connected. So it will respond to me "OK" message, the device sent me a message "OK" after sending me new messages. How can I avoid this message var list = new list & lt; String & gt; (); ... // loop or other duplicated code list. Add ("OK"); ... // Summary abstract = string at the end of the code. Joint (".", List.ToArray ()); GotNewmesage (summary); Show a message directly, gather all the messages and show them in the verb / Method. Example: var list = new list & lt; String & gt; (); ... // loop or other duplicated code list. Add ("OK"); ... // Summary abstract = string at the end of the code. Joint (".", List.ToArray ()); GotNewmesage (summary); If you want to avoid duplicate, check it before adding a message, for example if (! List.C...

web services - Java EE: Perform one database transaction in two webservice calls -

I'm working on the Java EE application hosted in Weblogic (10.3.4.0) I use UserTransense for running a database operation for a Oracle database. Operation by calling a webservices call from a C ++ client I have two webservices that I would like to act as a atom operation , I.e. rollback in the initial position if an exception occurs during the second website call Note: I can not merge two webservices at once. I tried with the first container-based transaction , but it does not seem like I can not control when the commit is done (I do not want these two servers I am currently trying for state-wide beans, but I have not found a piece of solution yet, all the webservices are stateless, should anyone get some advice on my problem, or any sign that shows it Is not possible? thanks you ws-transaction / ws-coordination Module or service compensation may be required.

web browser submit button not invoking second time c# -

The button is trying to submit a webform practically on 1 click. In the first attempt i.e. after launching my web browser from Visual Studio, it automatically submits the form, but then clicking on button 1 loads the webpage, but the submit button is not used. While debugging its show, the line of code is executed but no action is taken Private Zero Button 1_Click (Object Sender, EventArgs e) {webBrowser1.Navigate ("xxxx"); WebBrowser1.DocumentCompleted + = webBrowser1_Document Complete; } Zero webBrowser1_DocumentCompleted (Object Sender, WebBrowserDocumentCompletedEventArgs e) {if (webBrowser1.Url.OriginalString.ToString () == "xxxx") {if (webBrowser1.ReadyState == WebBrowserReadyState.Complete) {HtmlElementCollection doc = webBrowser1.Document.All; Leading (HtmlElement ele in doctor) {if (ele.GetAttribute ("name"). ToString () == "username") {ele.SetAttribute ("value", "xxxx"); } If (ele.GetAttribute ("name...

jsp - Changing data in display tag table based on condition -

मैं display-tag जैसा का उपयोग कर डेटा प्रदर्शित कर रहा हूं & Lt; display: table export = "true" keepStatus = "true" sort = "external" id = "cUSt" class = "table_1_outer" शैली = "चौड़ाई: 98%" नाम = "requestScope.results.rows" pagesize = " 25 "& gt; जहां परिणाम एक रोससेट डायना क्लास ऑब्जेक्ट है। मेरे पास दो फ़ील्ड हैं & lt; display : स्तंभ संपत्ति = "CUST_CREATION_FLAG" शीर्षक = "कस्ट सत्यापन" क्रमबद्ध = "गलत" / & gt; & Lt; प्रदर्शन: स्तंभ संपत्ति = "ACC_CREATION_FLAG" शीर्षक = "एसबी एसीसी सत्यापन" / & gt; इन क्षेत्रों के लिए मूल्य या तो वाई या N मेरी आवश्यकता यह है कि जब हमारे पास मूल्य होता है N तो उस मान को लाल रंग में प्रदर्शित किया जाना चाहिए। मैंने ऐसा कुछ करने की कोशिश की JSTL & lt; c: if test = "$ {CUSt.CUST_CREATION_FLAG ईक डाइनाबेन्स [$ {results.CUST_CREATION_FLAG}]। Value}" ...

c# - Determine the expected run times of an SQL agent within a timeframe -

Is a fixed SQL Agent a reliable way to schedule time to run within a time frame? I have a Microsoft.SqlServer.Management.Smo.Agent.Job object, but to calculate the time of running on the basis of my programs, to make the argument again I'm hoping that something has been made in the functionality for this. No, unfortunately there is not. And when you have many job programs, it is more complex to find out. However, for the simple case when you have just 1 schedule, I think you can do the following Its NextRunDate Set the Schedule to the Next Run Date Unless you cover your gaps Do not, repeat Be sure to set your initial value to ActiveStartDate > You can do this only once, when the job is created , And the results continue. Thus, every time you eliminate the risk of revising the work needed to evaluate run time (because changing the adstandards will actually modify the program)

python - Is there an other way to parse args with groups? -

मैंने उनसे कोशिश की: arg = argparse.ArgumentParser (description = 'मुर्दा v0.1a स्थिर अल्फा प्रयोग') arg.add_argument ( '- के बारे में', मदद =, कार्रवाई = 'store_true' '। लेखक और लाइसेंस जानकारी के बारे में') gr_root = arg.add_mutually_exclusive_group ( ) gr_render = gr_root.add_mutually_exclusive_group () gr_render.add_argument ( '- आर', '--render', मदद = 'यह कोष डेटाबेस में प्रस्तुत करने के लिए एक कच्चे पाठ।') gr_render.add_argument ( '- संलग्न', मदद = 'यदि पहले से ही एक डेटाबेस है, इस विकल्प को उपयोगी होगा।', कार्रवाई = 'store_true') gr_load = gr_root.add_mutually_exclusive_group () gr_load.add_argument ( '- एल', '--load', मदद = 'एक डेटाबेस सामग्री की रिपोर्ट करने के नाम ') gr_load.add_argument (' - पी। ',' --pattern ', मदद =' टोकन पैटर्न है कि सूचित किया जाना करने की जरूरत है ') gr_load.add_argument (' -। कम ', मदद = 'गिनती की तुलना में ...

php - yii console command custom help information -

मैंने मेरी yii संचालित प्रोजेक्ट में फ़ाइल commands / TestCommand.php बनाया है: वर्ग टेस्टकॉमांड CConsoleCommand तक फैलता है {सार्वजनिक फ़ंक्शन कार्रवाई इंडेक्स () {गूंजता "हैलो वर्ल्ड! \ N"; }} और यह yiic के माध्यम से दिखाई देता है: Yii कमांड धावक (Yii v1.1.14 पर आधारित) उपयोग: yiic.php & lt; कमांड- नाम & gt; [पैरामीटर ...] निम्न कमांड उपलब्ध हैं: - संदेश - माइग्रेट - शैल - परीक्षण & lt; & lt; & lt; - वेबएफ़ व्यक्तिगत कमांड सहायता देखने के लिए, निम्न का उपयोग करें: yiic.php मदद & lt; कमांड-नाम & gt; अगर मैं इस कंसोल कमांड के बारे में कुछ मदद जानकारी प्राप्त करने की कोशिश कर रहा हूं: php yiic.php सहायता परीक्षा मैं डिफ़ॉल्ट टेक्स्ट देखता हूं: उपयोग: yiic.php परीक्षण सूचकांक मैं अपना टेस्ट कॉमांड क्लास कैसे लिख सकता हूँ जो मेरी सहायता जानकारी दिखाएगा? क्या यह कुछ सार्वजनिक क्षेत्र या विशेष पद्धति है जो सहायता पाठ को वापस करता है? मुझे ऐसा कुछ चाहिए: php yiic.php help webapp परिणाम की तरह मुझे चाहिए: USAGE yiic ...

Prestashop var in sql query -

मुझे ग्राहकों की सूची प्राप्त करने की आवश्यकता है WHERE date_add & gt; $ Select_date इसके साथ मैं चयनित तारीख को आउटपुट कर सकता हूँ: $ this-> संदर्भ- & gt; चतुर- & gt; असाइन करें ('select_date', कॉन्फ़िगरेशन :: मिलें ('तारीख़ चुनें')); तो var: select_date और value: SELECT_DATE (इसकी इनपुट प्रकार = "दिनांक") sql = 'का चयन करें firstname, ps_customers से अंतिम नाम date_add & gt; ; = ("2014-07-21") '; इस क्वेरी के साथ यह सही काम करता है यदि मैं का उपयोग करता हूं: sql = 'प्रथम नाम का चयन करें, ps_customers से अंतिम नाम कहाँ date_add & gt; = $ select_date'; मुझे सिर्फ त्रुटि मिलती है: PrestaShopDatabaseException - अज्ञात स्तंभ '$ select_date' में 'कहां खंड' ऐसा लगता है कि मैं एसक्यूएल क्वेरी में अपने वार्स का इस्तेमाल नहीं कर सकता, तो यह कैसे सही काम करने के लिए? इसके अलावा मुझे लगता है कि एआरआरई में सभी क्लाइंट्स को पाने के लिए बेहतर होगा और टीपीएल फाइल में शर्त का उपयोग कर...

Php SQL Syntax error by a database alignment (?)! -

If im just blind, but that does not make sense, because I always write it like this and I see Anything wrong with it, besides I used several SQL solution bits in syntax ... Here is my PHP code: $ sql1 = "Select Table 1.File_Name, Table 2 with table 1. AS T1 Left job table 2 as T2 on T1.File_Name = T2.Today where T. Carrie Or T Lkfail_nam & lt; & gt; T 2kfail_nam or t1.file_name & lt; & gt; T 2kpath "; $ Sql2 = "Include table 3 (file_name) values ​​(". $ Sql1. ")"; Shopware () - & gt; DB () - & gt; Query ($ sql2); My error message: SQLSTATE [42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; Zend \ Db \ statement \ Pdo.php on 'Select Table 1.File_name, Table 2' on line 1. To use 'Before (2 letters before 1 table)', check the manual related to your MySQL server version for the correct syntax. Line 234 has been written as: INSERT ... select ... from ... ... no...