Posts

Showing posts from July, 2010

How to display loading widget from jquery mobile? -

I have a problem with jquery mobile loading widget. I use the 1.4.3 version. I have a code, but I never see the loading widget. function .... ... () {$. Ajax ({url: "https: //.........../......./.........svc/ ... /" ... ......., Type: 'GET', Content Type: "Application / Jason; Charset = UTF-8", before: Function () {$ .mobile.loading ("Success": Work) {Return data. Reset value;}, error: "text", text: "some text", text-based: true, subject: "a", text only: incorrect, html: ""}}}; function () {return False;}});} I want this to show a loading panel with a text below. Thank you for your help.

embedded linux - Configure CRANEBOARD U-boot to load kernel images into SDcard via NETWORK -

I have a cradderboard. It has SDCD which is U-Boot v2013.04. I want to load the kernel image through the network (using the ethernet interface) in the SD card. What steps should I take to do this? Please help me. The problem is resolved. In fact, there was a problem relating to enabling some macros to include MACRO related to NET and AM 3517H file in config_account_avinici_a_850_emv.

How to remove the cloned elements using jquery -

मुझे क्लोन तत्वों को हटाने में समस्या है div मेरा कोड ऐसा है & lt; div id = "item_details" & gt; & LT; तालिका & gt; & LT; टीआर & gt; & Lt; td & gt; & lt; p class = "label_text" & gt; नाम: & lt; / p & gt; & lt; / td & gt; & Lt; td & gt; & lt; इनपुट नाम = "आइटम_नाम []" प्रकार = "टेक्स्ट" मान = "" आईडी = "आइटम_नाम" वर्ग = "इनपुट_टेक्स्ट" शैली = "चौड़ाई: 126 पीएक्स;" / & Gt; & lt; / टीडी & gt; & Lt; td & gt; & lt; p class = "label_text" & gt; ब्रांड: & lt; / p & gt; & lt; / td & gt; & Lt; td & gt; & lt; इनपुट नाम = "आइटम_ब्रांड []" प्रकार = "टेक्स्ट" मान = "" आईडी = "आइटम_ब्रांड" वर्ग = "इनपुट_टेक्स्ट" शैली = "चौड़ाई: 126 पीएक्स;" / & Gt; & lt; / टीडी & gt; & Lt; td & gt; & lt; p class = ...

c - Structure data written into file is not being read correctly -

printItems () always prints the previously entered item when I choose to update the item details so that the file is updated Are doing but printItems () does not display the updated ones. structure canteen {four item IDs [15]; Four names [15]; Int price; }; Zero print items () {FILE * fp1; FP1 = fopen ("items.txt", "R"); Structure canteen c; Printf ("\ t% -15s% -30s% -5s \ n", "item id", "item name", "value"); While (Fred (& amp; c, sizeof (struct canteen), 1, FP1)! = Null) {printf ("\ t% -15s% -30s% -5d \ n", c.itemId, c.name , C. Value); } Fclose (fp1); } Int updateItem (four id []) {FILE * fp; Int pos = 0; Fp = fopen ("items.bin", "r +"); En found = 0; Structure canteen b; While (Fred (and B, Size (Structure canteen), 1, FP) = = Faucet) {pos = ftell (fp); If (strcmp (b.itemId, id) == 0) {found = 1; Fasek (FP, -Secef (Structure canteen), 1); Printf ("Enter new item ID:"); Sc...

javascript - Open differents divs from the same function -

I try to divs open divs from the same function, I think it's random to make the name of the div in each click

android - How to create XML from Java to save information? -

I have an application that has some information on the mobile. I have decided to use XML every time and it My project file How can I create an XML and save it to a file in my project? Please, check out this documentation: it clearly states how to write in a file. Again, I recommend you use "JSON" instead of "XML" because it's easy to use to add your data to JSONObject and JSONObject in the file using myJsonObject.toString () . . Back, read your file content and make it a new JSONObject in the same way: JSONObject jsonDatas = new JSONObject (fileContent);

sql - where clause in mysql pivot qyery -

तालिका + ------- ---------- + ------------ + -------------- + | Submit_time | Field_name | Field_value | + ----------------- + ------------ + -------------- + | 1410098760.2225 | टोपी | 40128 | | 1410098760.2225 | प्रांत | बोलोग्ना | | 1410098760.2225 | स्थानीयता | बोलोग्ना | | 1410098760.2225 | अनिरुद्ध | वाया रोमा | | 1410098760.2225 | ज़ोडियाको | पेसी | | 1410098760.2225 | सालाना | 1 9 64 | | 1410098760.2225 | मेस | 03 | | 1410098760.2225 | जीरोनो | 10 | | 1410098760.2225 | कार्ड | 12 | + ----------------- + ------------ + -------------- + यह मेरी क्वेरी है, SELECT submit_time, अधिकतम (यदि (field_name = 'nome', field_value, NULL)) नोम, मैक्स (यदि (field_name = मैक्स (यदि (फ़ील्ड_नाम = 'एननो', फ़ील्ड_वल्यू, नल)) एएसए, मैक्स (मैक) (जैसा कि (फील्ड_नाम = 'मेसे', फ़ील्ड_व्यू, नल) अगर (फ़ील्ड_नाम = 'कार्ड', फ़ील्ड_वल्यूए, नल)) एएस कार्ड, मैक्स (यदि (फ़ील्ड_नाम = 'स्थानीयता', फ़ील्ड_वल्यू, नल)) स्थानीयता के रूप में, मैक्स (यदि (फ़ील्ड_...

wso2is - WSO2 IS : Add new claim(field) of type checkbox to user profile -

I am using the latest version of WSO2 detection server 4.6.0. I am adding some custom claim on the user profile. Is there a way to add a checkbox of type? Where the user may be able to check / uncheck. I have tried to set the attribute = true, checked through a PS script, by creating a map of the claim. But, he did not help either. It seems, the first time it presents itself as a text box, once I set the value to the right / wrong value in the WSO2 console it starts working as a checkbox Is this the default behavior? I just need it, is there a way to set default value for this area? I tried through the value property but, it does not seem so. Ravi Yes. The correct / incorrect value is treated as a boolean value and is displayed by default as a checkbox. You can not currently set a default value for a claim.

joomla - How to Create WebRTC + PubNub Open Source Video Chat,voice chat, using Javascript -

It is possible to create live video and voice chat applications in my website using WebRTC + PubNub. Finding and how to integrate. I am using Joomla 2.5 I need multiple and single channel video and audio streaming. I Yes, they have a There is a demo on which you have to sign up to try. It seems that you write code with WebRTC libraries, and in PubNews fashion, the PubNub Library provides both methods for subscribing and listening to new connections. (The PubNub library comes with the functionality that the users come online.) Is this looking for you? Is there a type of presence of a chat with the ability to call users who are available? If so, then it is probably a good idea to use Pabanab. If you are actually starting a WebRTC and are trying to make a basic video call between your Joomla website users, then you can open source SIP. JS (sipjs com) and ONSIP have been written at the top of the WebRTC and SIP. You can get a quick user at getonsip.com like making a video call...

selenium - How to generate key strokes from a batch file? -

I want to create a batch file to do the following: Start Selenium Server Run Protractor Test (Prometector Conf.JS) Block Selenium Server () Since it requires 2 different command prompt WebDrive Manager is starting and it is necessary to execute tests as well I have achieved the following so far. A .bat file has been created with the following content: start runTests.cmd webdriver-manager start Ctrl-C (** ** does not work) However, I'm not able to understand a way to turn off Selenium server (which is achieved by pressing Ctrl + C on the same window on which the webdriver-manager start command is executed) You can generate keystrokes using the VB script, which is batch file I can follow this post. I followed this post: Replacing {F5} with {C} for Ctrl + C {c} So my file looks like this: set obzhelle = create object ("WScript.Shell") objShell.SendKeys "^ {C}" VBS "to save the extension. I also came to know about how to set...

email - Send mails through localhost with Play Framework instead of Gmail SMTP? -

I am using play framework for one of my projects and it is very important to send email. Right now, this is done through Gmail using Google Apps for Business. However, the problem is that after some time without access through the web interface, Google blocks the connection through SMTP in this specific account. Maybe for spam reasons, I do not know, but this is a real problem for us, because I have a separate browser window running in order to be able to send an email through the Play application using the SMTP protocol. Is there any other possibility of sending mail except SMTP? I hate setting up a mail server and can not get it running on my local host, so if there is anyone, what's the Sendmail option? Or would you recommend using any other service than Google Apps for Business? Thank you very much "post-text" itemprop = "text"> I do not know that it helps, but the mail Play plugin is for sending. , for example your problem may be solved. Bu...

html - Disable landscape orientation for mobile users in responsive website -

I have a website which is responsive (there is a separate media query for mobile). This picture looks good on orientation, but there is a mess on the scenario, so we want to disable landscape orientation for mobile devices (at least Android and iOS at least) before fixing it. I tried to do this with the vieport meta tag, but it does not do too much, shows me the correct zoom and does not allow the user to scale, but still allows to change the orientation. & lt; Meta name = "viewport" content = "width = device-width, initial-level = 1.0, maximum-scale = 1.0, user-scalable =" not "& gt; How can I get such effects? Only fine I window.orientation $ (window) .bind ("orientationchange", function (), I am ready to rotate my body or cover, {var orientation = window.orientation; var new_orientation = (Orientation)? 0: 180+ orientation; $ ('Body'). CSS ({"-webkit-transform": "Rotate (" + new_orientation + ...

How can I exclude a page from .htaccess rules? -

यह मेरी .htaccess फ़ाइल है: विकल्प -इंडक्सेस रीव्रेटइन्गइन ऑन रीवरइटकॉन्ड $ 1! ^ (इंडेक्स \ .php | css | images | jscript | user_guide | login | en | favicon.ico | uploads | script.php) * रीव्रेटआर्यूल ^ (। *) $ Index.php / $ 1 [एल] और मैं इस पते को सीधे टाइप करने में सक्षम होना चाहता हूं: mysite.com/system/application/views/req-php.php?_INPUT&amp=fxxx आप इस नए URL के लिए नए सिरे से लिखने से बचने के लिए एक और नकारात्मक RewriteCond जोड़ सकते हैं : विकल्प -इंडक्सेस रीवरइटइन्गइन रीवरइटकॉन्ड% {THE_REQUEST}! \ S / system / application / views / req-php \ .php \? _ INPUT और f = [एनसी] रीराइटकॉन्ड $ 1! ^ (इंडेक्स \ .php | css | images | jscript | user_guide | login | en | favicon.ico | uploads | script.php) * रीव्रेटआर्यूल ^ (। *) $ Index.php / $ 1 [एल]

refresh - jQuery load txt file -

I use this script to refresh data on div #puu. If .load () everything works fine in the existing .php file But if I use the existing .txt file then Load is nothing, why is it? & lt; Script & gt; Var refreshId = setInterval (function () {$ ('# puu'). Feeds ("slow") load ('152 and 153.txt'). Feedine ("slow");), 5000); & Lt; / Script & gt; You can specify the blank space in the file name for % 20 There is also firing in your feedin before loading. Feedout ("slow") .load ('152% 20 and% 20153.txt', function () {$ (this). FadeIn ("slow");});

raspberry pi - shell script that takes a string input by the user and outputs the number of characters in it? -

Can you show me a shell script that takes string input by the user and outputs the number of characters in it? I've tried many times but I can not get it right. Use wc functions like this: Echo-N ABC | Wc -c or echo -n abc. Wc -m - Check the manual for the last press Newline which will be counted as an additional character

javascript - Making a div always visible while scrolling through another specific div -

Image
I have created an image upload widget in my webpad, I want this widget to be visible while separating a specific partition For the vast form (in this division I need to enter some image URL provided by my widget), here is the scenario: To achieve this I have done the following: $ (). Ready (function () {var $ scrollingDiv = $ ("# scrollingDiv"); $ (window) .scroll (function () {$ scrollingDiv. Stop () .animate ({"marginTop": ($ (window) .scrollTop () + 30) + "px"}, "slow");});}); Assuming that scrollingDiv is the ID of my widget ( DIV3 ). The problem I am facing is that when I scroll to DIV1 , then scrolling is going to push down, so I Due to this, you can not see the end of your form: My question is Edit: Click on analogous case When I DIV3 my DIV2 PS: This is my first question on JQuery ... please do not close the post and And give me the chance to correct it if necessary ...

android - Is a TiTouchImageView working in an alloy project? [UPDATE] -

I am currently developing a titanium app with an image vee for Android and IOO, which is scrollable and scalable (Via the slider). I'm already working on iOS but it's really hard to get scrolling behavior on Android. I have decided to use the module, but the document only shows how to use it in a non-mixed project. My current code looks like this: if (T.VI.name == "Android") {var TiTouchImageView = need ('org.iotashan.TiTouchImageView'); Var androidImageView = TiTouchImageView.createView ({top: 0, left: 0, zoom: original scalveview, maximum zoom: original scalveview * 2, minimum zoom: original model slave, image: blob,}); $ .androidInnerImageScrollView.add (androidImageView); } And {$ .ios graphic; selves (Blob); } But is it possible to load through view.xml as a composite component? Edit ScrollView id = "androidInnerImageScrollView" & gt; & Lt; Module module = "org.iotashan.titouchimageview" id = "Android picture...

Add the ability to go to another HTML page in dynamic table made using javascript -

I am writing a web page that has a table with a button in the table that goes to the information page Clicking on the button takes you to the information page. The table is also dynamic, as you wish, add and remove rows. Buttons will go to all the same information page because the information on the page will be filled using the websites that can be used in other programs. I can dynamically add buttons and rows to the table in JavaScript, but the dynamically added buttons have the onclick attribute to go to the info page when I click on the notification button I do not, then nothing happens. Click here to add the dynamically button and click on the button when the information is known on the page var cell6 = row.insertCell (5); Var element5 = document.createElement ("button"); Element5.type = "Button"; Element5.name = "button []"; Cell6.appendChild (element5); Element5.innerHTML = "Information"; Cell6.style.textAlign = "center"...

asp.net mvc - SAP .NET Connector, Connect to a Single RFC destination using multiple SAP user accounts -

I have one. Net application that uses SAP to make sales order through it. When I used a (normal) single SAP user account to create rfcDestination , it works perfectly with many users. But when I use the login user's user account, it gives the following exception. RFC online standout exception: Portal. Infrastructure.Data. Bangalore context ScreenPop Sp. the provider. SPEPHATION: Destination MACU is invalid - - & gt; SAP.Middleware.Connector.RfcInvalidStateException: Destination is invalid SAP.Middleware.Connector.RfcFunction.Invoke (RfcDestination destination) on MAQ Portal.Infrastructure.Data.BoundedContext.ScreenPop.SAP.Provider.SapConectionProvider.Invoke [T] (IDataRequet request , string username, string password, IRfcFunction & amp; rfcFunction) --- inner exception end of the stack trace --- Portal.Infrastructure.Data.BoundedContext.ScreenPop.SAP.Provider.SapConectionProvider.Invoke [T] (IDataRequet on request , String Username, String Password, IRfcFunction ...

JavaScript: fill HTML form using JavaScript and submit -

मुझे इस तरह HTML फ़ॉर्म भरना होगा: & lt; form action = "http : //www.example.net/index.php "विधि =" पोस्ट "& gt; & Lt; div class = "poll" & gt; & Lt; p वर्ग = "चुनाव-उत्तर" & gt; & Lt; लेबल & gt; & lt; इनपुट प्रकार = 'रेडियो' नाम = 'option_id' मान = '12 '/ & gt; एबीसी & lt; / label & gt; & Lt; / p & gt; & Lt; p वर्ग = "चुनाव-उत्तर" & gt; & Lt; लेबल & gt; & lt; इनपुट प्रकार = 'रेडियो' नाम = 'option_id' मान = '34 '/ & gt; डीईएफ़ & lt; / label & gt; & Lt; / p & gt; & Lt; इनपुट प्रकार = "छिपा हुआ" नाम = "poll_id" मान = "56" / & gt; & Lt; इनपुट प्रकार = "सबमिट करें" मान = "सबमिट करें!" / & Gt; & Lt; / div & gt; & Lt; / प्रपत्र & gt; मुझे जावास्क्रिप्ट का उपयोग करके उसे भरना होगा और इसे भेज देना होगा। मैंने ल...

javascript - Position a pop-up div relative to the link -

Image
I am facing a problem I have 10 images in a page, each clicking on a pop up Will be displayed and the content of the clicked image is loaded from the database and it is shown in the div (pop up). This is the first group of images (first line). But when I click on the second and third sets of image lines. Pop up opens up, but I have to scroll all the way and see pop up and its contents. (Since the image is at the bottom and displays the pop at the top of the page) I created the situation and tried the following: Fixed! Important (View part I was partially successful in making popup center center.) But if the pop-up content is higher than the viewport height, then the remaining content is hidden and there is no option to scroll down to see more information. .) Please refer to this image for more clarity javascript // viewport internal height $ (diarrhea Waze) to bring the height of pop-ups based on .ready (function () {function setHyight () {windowHeight = $ (window). Win...

Setting and getting variables in .Net hosted IronPython script -

I am trying to prototype a validation rule engine by using a hosted IronPython in the .Net console application. I have correctly stripped the script which I believe is the basics var engine = python Cretegenine (); Engine.Execute ("From System Import" ""); Engine. time. Global .Set Variable ("Property_View", "TB Test"); Engine. time to time. Globe Set variables ("result", true); Var sourceScope = engine.CreateScriptSourceFromString ("result = properties_value = none and lane (property_value)> = 3"); SourceScope.Execute (); Bull results = engine. time to time. Globe Meets ("result"); Engine.Runtime.Shutdown (); It can not detect the global variable which I think is set up. The global name 'property_value' is not defined But I can check the global variable in the realm and this is there - this statement is correct when I Runs in the debugger sourceScope.Engine.Runtime.Globals.ContainsVaria...

c - Unsigned int field of struct got automatically initialized? -

Does C guarantee that an unsigned integer area inside a structure is started at zero? In my system, it seems (or I'm very "lucky" (actually unlucky).) In code words, what will happen in the following scenario? structure node {unsigned int rec_size; }; Structure node node; // what is the value of node .rec_size? Undefined or 0? Relevant, but not so, because in my example, there is only one field and there is no initialization. The answer depends on the storage category: If it is _Thread_local or is static If it is auto or dynamic storage, then no one starts. 6.7.9 Initialization 10 If the time of automatic storage has not been explicitly started in an object, its value is uncertain if an object that contains constant If the thread is a storage period then it is not explicitly started, then: If there is an indicator type in it, then it is started for a null pointer; If this is an arithmetic type, this (positive or unsigned) is started at ...

php - Facebook Access Token Invalid for search endpoint -

I'm through with this request Graph API and I get this error: (# 200) the conclusion must be a valid access_token to access point a few days ago I was doing the same request without any problems and now I get this error message I do not know why, I do not know why. What I am requesting is the following: / search? Q = some other type = event and field = id, name, description, cover, start_time, and_time, location, owner, venue & amp; Border = 5000 & amp; Access_token = ACCESS_TOKEN . This query works on the graph API API (including access token). My question is, is my error or Facebook? Thank you. Keep access token in the debugger and check whether it is valid: If Yes, then file a bug:

Looking for a way that a page load time can decrease for a page that has lots of HTML5 audio -

In the example of a page with a great deal of HTML audio, and to maximize load time efficiency (i.e. - To make it load as fast as possible), could not we set a value in the preload parameter to achieve it? Currently, I have preload set on "Auto", but what if I do not want to load all the audio before the page is fully loaded? Since a user needs all the audio on any one visit, or not at the same time, so how will we obtain that the audio files are loaded only on demand, and thus the maximum load efficiency for the scenario are obtained? Thanks in advance for insights. Preload > attribute for none : Automatically The author thinks the browser should load the whole audio file when the page loads Metadata Authors think that the browser should only load metadata when the page loads any The author thinks that the browser should not load when the page loads Audio file Sector is taken

c# - getting unassigned variable error on a variable that is assigned -

userInput is assigned, so I'm not sure why I get the error I already He has tricked through the same questions, Gog, Benges and I did not know what I wanted. Ps for programming new static zero main (string [] args) // // declared variable int hour, minute, second, balance, user input; Const int SECONDS_PER_MINUTE = 60; Const int SECONDS_PER_HOUR = 3600; UserInput = getUserInput (userInput); // Error hour = Calculate (user input, SECONDS_PER_HOUR); Balance = count dimension (user input, SECONDS_PER_HOUR); Minutes = calculated end (remaining, SECONDS_PER_MINUTE); Seconds = calculate seconds (balance, SECONDS_PER_MINUTE); DisplayResults (hours, minutes, seconds, user input, seconds); } / / URI indicates to enter the constant number of users, static static int getUserInput (int userInput) {Console.WriteLine ("How about you enter several seconds" and sick I can see that I What can I do for you.);); Return userInput = int.Parse (Console.ReadLine ()); } // This method m...

bash - Output of optimum Linux results -

I am currently working on a project that includes benchmarking of Linux server system and recommending on it the most Well, this project includes commands that run on server versions of SMEE 11, Ubuntu 12.04 and CentOS 7 like VMSTAT. Commands will be planned for the party and a dialog box box will be created to output the results for the user's ease. However, we have now been advised that after checking and discussing the benchmarking results, we want to make a part of those software which is the best of these. So for example, if vmstat figures are best on Ubunutu and iostat Centos is best and boot time is fast on SUSE, is it possible to put them all on one system? I'm not even sure how to make my own Linux OS to store it or if possible within the time limit It is certainly not possible that syntax is different between server versions - The different way and the only way would be to ping the files in order to ensure that they are only on one operating system? Do anyon...

java - Error installing jython on mac os x -

I'm trying to run jython-installer-2.5.3.jar on Mac OS X and I get: Java-Zer-Generator-2.7-B 3.Java Lngkkuc method: org.apache.commons.cli.Options.setSortAsedAdded (Z) V at org.python.util.install. On Org.pyththon.util.install.Installation.internal (installation. Java: inst.file.InstallerCommand.createOptions (InstallerCommandLine.java397) org.python.util.install.InstallerCommandLine. & Lt; init & gt; (InstallerCommandLine.java the: 1221) 371) org.pyththon.util.install.Installation.main (Sthapanakjawaiiti) in I find it Java OS X Snow Leopard and the same result with 1.6 and Java 1.7 Also Yosemite has been updated. About the issue Jiython is virtually no reference to the mailing lists, or searching through Google makes no how to fix it?

asp.net - HttpClient: Only one usage of each socket address (protocol/network address/port) is normally permitted -

का उपयोग कर (var क्लाइंट = नया एचटीटीपी क्लाइंट ()) {client.BaseAddress = new URI (यूआरएल); client.DefaultRequestHeaders.Accept.Clear (); Client.DefaultRequestHeaders.Accept.Add (नया MediaTypeWithQualityHeaderValue ("एप्लिकेशन / xml")); का उपयोग करते हुए (वर कार्य = client.PostAsJsonAsync (यूआरएल, शरीर)) {if (! task.Result.StatusCode = HttpStatusCode.OK) नया अपवाद (task.Result.ReasonPhrase) फेंक; } } सुनिश्चित नहीं है कि हमें प्रत्येक सॉकेट एड्रेस (प्रोटोकॉल / नेटवर्क एड्रेस / पोर्ट) का एकमात्र उपयोग केवल xx.xxx.xxx की अनुमति है। Xx: 80 त्रुटि सिस्टम। अगागेट अपवाद: एक या अधिक त्रुटियां हुईं --- & gt; System.Net.Http.HttpRequestException: अनुरोध भेजने में एक त्रुटि हुई --- & gt; System.Net.WebException: दूरस्थ सर्वर से कनेक्ट करने में असमर्थ --- & gt; System.Net.Sockets.SocketException: पर System.Net.Sockets.Socket.EndConnect (IAsyncResult asyncResult) पर 80: प्रत्येक सॉकेट पते (प्रोटोकॉल / नेटवर्क पता / पोर्ट) का केवल एक उपयोग सामान्य रूप से xx.xx.xx.x...

WSO2 Stratos OpenStack network ID -

People, do you know the option to set up Opencast Net ID for deployment? I believe there should be an option in cloud-controller.xml , but I will not see any definition of this. If you want to use the network to create eggs for example, then in the cartridge definition iaasProvider > "network interface" in the networkInterfaces section: [{"name": "net 0", "network uid" code>

Rails app render external API json response in view after page load with Ajax -

I have a rail app that has many pages to pull information from the external API (Salesforce API). I have been successfully pulling data through the API, although I want to provide a better experience to my users and first want to load the scene, then call the API and load the AAPX response with Ajax. I have two applicable routes i first loads the scene and the second route requests the API Get the routes.rb "Lmbit_on ', for:' lender_account #pending_loans get 'to,' pull_pending_loans': 'lender_account # pull_pending_loans' look like the same controller functions: lender_account_controller.rb def pull_pending_loans @user = current_user if @ user.activated? Customer = Restforce.new @account = client.find ( 'Account', @ user.salesforce_id, 'Eid') pending_query = "Loan__r.Business_Name__r.Name, Loan__r.Id, Loan__r.Name, Loan__r.Loan_Risk__c, Interest_Rate__c, Amount_Lent__c selection render Status__c, Loan__r.Time_L...

vb.net - Find all permutations from 1-9 and A-F -

I'm trying to find all the possible permutations of the following conditions: Number Category 1 99 letter limit AF 32 digit long string What would you recommend to make my life easier? Try to find out about the permutations in Vb, but not found them yet, and I do not know why, but it does not work so hard: s Sample: 9A E5 4 B CA BD 93 dE 2E 01 00 00 01 00 00 00 00 6E C7 9A CF CB A 7 67 D9 17 EE 6B 70 F0 5E e 4 32 64 86 00 EA 91 71 65 67 1F CE EF EB B1 CC 07 84 63 C0 8A e F7 9F 5D F3 06 01 00 07 00 00 00 00 51 16 15 7 56 9 F 0A FF 55 1C 20 91 58 CD AA CF 48 61 56 FF 41 6E49F8 45 7049EF 54 75 52 1B 45 BA B8B742 52E3 77 03 00 00 03 00 00 00 00 40D 0 F4 04 BF AF B B 99 02 00 00 00 00 00 00 00 40 30 90 00 3F 7C 83 3E 68 98 D5 D5 6D D9 A3 E9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FE A1 CE 6D A6 82A 9 D 00 00 00 00 00 00 00 00 Thanks for the help! In Edit: This is my code Integer Public Class Form1 Dim C Dim P1, P2, P3, P4, P5 String Dim Combo St...

java - How to attach large files (stored online) to an email without copying the entire file to memory -

How do I send an email using the Java Mail API, which has large attachments (~ 25 MB)? Attachments are stored files online with our Cloud Storage Provider (Google Cloud Storage) The API provides an InputStream object or a Reidblabel channel object for each file for the service. I can not use BioArchivedata to create the MaitiBodaPart because it creates a copy of the entire file that stays in memory, and we get an out-of-memory exception If it has a physical file, then we can create a file data source object and attach the email. But what can we do with the inputstream object? I can not increase the size of the heap because it is growing up to 25 MB seems like a very bad idea. If you have any other ideas, please let me know on the Google App Engine platform. Are working. Try instead or otherwise, otherwise you should return your given input stream directly to your own Can create adapter class. Public class InputStreamDataSource implements javax.activation.DataSource {P...

css - Highcharts tooltip hidden behind second chart -

Our page contains a large number of horizontal bar charts that are generated by the higher one. Short story short, tooltips from the chart are being covered by the charts given below and on both sides. I have been roaming with the Z index and it does not seem that it does not matter. I have seen the same previous questions, but they are not helping anybody. Here's my example: If you hover over the first chart, you will see that the tooltip is covered from the second chart. I have tried to play with the z-pointer on the container and tooltip and I do not see any difference: . HighTrans Container {Overflow: Visible! Important; Z-index: 0! Important; }. Highchurch-Tooltip {z-index: 998; } For me, simple CSS Z index set on hover: . Highchart-Container: Hover {z-index: 1! Important; }

How to enable audio recording in Android emulator? -

I have received many answers (like one) that it is possible to record audio in Android emulator. But I did not find any suitable settings in Android Virtual Device Manager and I still get an exception on line recorder.SetAudioSource (AudioSource.Mic) . In your documentation, you can see that: Note: Currently, In the last API too. But I noticed that there is no note for this in the classroom. And then, I have received this code: audio recorder = new audio recorder (media recorder.audio esores.mic, 8000, audioformat.CHANNEL_CONFIGURATION_MONO, audioform.ncodidididid6_16bit, 500000); Recorder.startRecording (); From and the author of the code said that it works in code emulator.

css - Wordpress Responsive Widget Containers -

I have found a very specific problem that I'm running and went to theme developer MIA. I have linked this issue with a screen call and I will try and describe it as much as possible, even here If more information is needed, just tell me and I will provide as much as possible. Screen Cap: I am using a very modified version of this topic, but it should not have any effect on the subject's functionality: As you can see - homepage widgets, opposed to custom page layouts, each is designed to display in their own container (we are ignoring the top slider because it there is no problem). Widgets which are included in the theme's work are just fine and the size is displayed correctly. The homepage layer structure (back-to-front) is: Background Image -> Sidebar / Menu & amp; Page Backgrounds -> Page Content (Sliders and Widgets) The problem is with third party widgets / plugins and much more any interactive content, these containers do not extend correctl...

angularjs - Go + Angular: loading base html -

I'm trying to write an app in the go with thumb. I'm not sure that I have the concept correct, but basically I should serve a simple HTML that loads angular and app (js) and the rest is controlled by AJAX requests. I do not know how the HTML file is served on each non-ajax request on every path? I would like to use the Gorilla Mix but I do not know how to do it. Is this the right direction? On every request that does not have any known url, index.html - or whatever your base Send Appellar App file There is a NotFoundHandler in Gorilla / Max, which is a handler for everyone that does not match any other routes, you can assign your own handlers to: Solution with Gorilla / MQ: func main () {r: = mux.NewRouter () r. HandleFunc ("/ foo", fooHandler) r.NotFoundHandler = http.HandlerFunc (notFound) http.Handle ("/", r)} is not, while not: func notFound (w http.ResponseWriter, r * http.Request) {http.ServeFile (w, r, "static / index.html...

shell - passing string value in GCC comand using variable -

I have to pass the string value in GCC command using the variable something like the bottom gcc -dname = '' abc '' but it will come in "ABC" anime variable like name1 = ABC please tell this work GCC-Demon = $ name1 if you use Are working here $ name1 = abc $ cat main.cpp NAME $ gcc -DNAME = \ "$ name1 \" -E main CPP "ABC" If you are using a different shell, i.e. zsh or fish, then you can include information and man pages that tell you how variable replacements work for them.

Ranking Google Sheet Info Uniquely -

I am trying to rank data in a column in my Google Sheet so that no ranking is duplicated. I have seen some solutions like = RANK (A2, $ A $ 2: $ A $ 10) + COUNTIF ($ A $ 2: A2, A2) -1 , but the problem is that it grows Duplicate on the basis of events occurring in Sheet's Sheet. Let's assume the place where I want to rank is as follows: 1 1 1 2 No, spreadsheet formulas do not have "awareness" with native spreadsheets functions, of which recently Prices were recorded in You will need to resort to running Google Apps Script on the trigger "on edit" trigger.

enums - C# XNA - any way to "refresh" game states? -

After then I'm using enum for game states. When I am in the game play position, I can stop and come back to the main menu . But if I'm playing the play game and click to move to the game again, everything is as I left it. I'm finding some way to "restart / refresh / flush" the way to playing playing state. So if I go back to it then I have to start. Now you have some code (an estimate) that initiates your game statement , When the program starts. You need to take out that code (if necessary) so that it can be asked to start playing the game at any time. Like when you are starting a new game, like running your game state in "playing games". In fact, most of the initialization code (i.e. everything except the baggage, which is not needed to restart a new game), you probably want to run only When you start the program and then it is redundant then it will be run and the boot bar will slow down.

html - How to add a footer on the bottom of the page -

I can not add a footer to the bottom of the page. This is always displayed in the middle of the page or something like that. Even after adding more stuff at the top of the page / page (if there is no fixed position), there is a way to modify the footer divill element to always appear on the bottom of the page. is that I am in CSS: (the "footer" of the Div's ID) #footer {text-align: center; Margin: 0 px auto; Status: Bottom; Bottom: 0 pixels; Font-size: 10px; Padding: 10px; } I used something similar to my headers, and on that basis I tried to work with the footer and did not get success. Here's my title CSS only, for reference: #logo {position: center; Margin: 0 px auto; Top: 0px; Text align: center; } I used only one text for any text and footer for the logo. Let you stick the following styles in your footer div to your website To add: # Foot position (status: full); Bottom: 0; }

javascript - Problems with Lazy Load and Mix It Up plugins -

I have a problem in my lazy-load target condition every time I use my list (which uses the Mix It Plugin) ), My images will not be loaded on Skaldown, 'Lazelod is targeting its old state. How can I control lazy loads of my images properly? The old jquery lazyload is not actually built for dynamic webpages. In general, the plugin only checks for the user scroll and there are some flaws with runtime performance and management memory. I made an aliilerarar, which is actually different from all other aliology: it uses a very efficient code and b) automatically present the DOM elements in the present and future. There is a simple demo with mixing here: All you have to do is add it and write the following markup: & lt ; Img data- src = "img.jpg" class = "lazyload" />

javascript - Adding milliseconds to timer in html -

Is there any way that I can add milliseconds to my timer? I am currently using this timer but in this count it is only in seconds. var number = 99; Var counter = set interval (timer, 1000); // 1000 will run it every 1 second function timer () {count = count-1; If (count & lt; = 0) {clear interval (counter); Return; } Document.getElementById ("Timer"). InnerHTML = count + "seconds"; // clock for spelling} thanks won the timer 'T run with millisecond accuracy - not only the standard JS is below the minimum timeout, timer events queue and all other types of issues in any event (no pun intended) You can not actually see a timer count 1000 times . Instead use only the window.requestAnimationFrame and show the difference between the time and the timer's reference start time near that function. var timer = document.getElementById ('timer'); Var termination = + new date () + 10000; (Work update () {var now = + new date (); var ...

r - Selecting & grouping dual-category data from a data frame -

I really need help with facing a problem. I have a data set that looks like this. . Name Sex Total Anna F10 Jamie M2 Jamie F7 Mike M13 Sam F6 Sam M3 Structure (List (name = c ("Anna", "Jamie", "Jamie "M", "Sam", "Sam"), Sex = C ("F", "M", "F", "M", "F", "M"), Total = C (10 L , Name = C ("name", "gender", "total"), class = "data.frame", line name = 2, 7L, 13L, 6L, 3L) (NA, -6L)) Whatever I have to do, get the name, which are both men and women names, so the results will be shown .. Name Gender Total Jamie M2 Jamie F7 Sam M3 Sam F6 But I'm really stumped on how to get in touch. d : In this way I can understand this Get the vector by the name of the data d pre> #, which are used by both M and F. Name & lt; # Intersect (d $ name [d $ gender == 'm'], d $ name [d $ sex == 'f']) # Use dupl...

vb.net - vb Could not load file or assembly Mysql -

I applied in vb 2010. And everything works very well on my computer. I released and when I saw the application published! File or assembly could not load mysq ... In addition to what I would like to do in my application Can I install 4.5 framework 4.5? You can include the .NET Framework at least in the Visual Basic 2010 ... You open the project properties through the Project tab. Then in the tab publish you click on the button of something else. There you can select the things you want to distribute and the way they will be distributed.

sql - MySQL join doesn't return results even when it should -

I have a seemingly straight forward problem. I am matching a list of IDs with the second list of IDs in the second table. The following queries perform properly and return the results: Select from data * ID = 3888; * Select * with more ID where mmid = 3888; The statement to join, however, does not give any returns. Select from data> Connect to internal data moreIDs data.table = moreIDs.mmID; Any idea why I am not getting any result from being involved in it? As you have completed the comments, your problem is related to the data type. The following fleet shows some tests: First of all, I have created three tables as the following: Make Table Table 1 (id varchar (15)); Create table table 2 (id varchar (15)); Create table table 3 (id int); And put some data: Include table 1 values ​​('3888'); Include table 2 values ​​('3888'); - Include additional spaces in table 3 values ​​(3888); If you compare the varchar column to a int value...

json - parse html within ng-repeat -

I am searching for hours now and I can not find that ng-repeat on parsing the HTML code. I've checked $ sce.trustAsHtml but I do not know how to implement it in my code. html file: & lt; Div ng-app = "myApp" & gt; & Lt; Div ng-controller = "MyCtrl" & gt; & Lt; H2 & gt; My link & lt; / H2 & gt; & Lt; Table class = "table-table-range" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; TD & gt; Name & lt; / TD & gt; & Lt; TD & gt; Url & lt; / TD & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; Tr ng-repeat = "Accessories in myStuff ()" & gt; & Lt; TD & gt; {{Stuff.name}} & lt; / TD & gt; & Lt; TD & gt; {{Stuff.url}} & lt; / TD & gt; & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; / Div & gt; Javascript var myApp = angular...

Compare two sets of strings and then return whole strings that are different in Python 3.4 -

I am writing a small API listening program, and I'm trying to figure out that something new has been published. is. I have got more information about this, but I have a problem in the final stage - where I want to print something new. I can compare two lists of objects in the form of set and get the set of characters in the correct answer, but I can not seem to print the actual string. A list of two lists (both new_revised_stuff and old_revised_stuff strings, like "Bob likes to eat / code> returns: set ('b', 'o', 'l' ...) I can get rid of 'set' notation by writing: list (new_stuff) but it does not really help. I like "Bob likes ..." if this is a new line I have also tried: new_stuff = [] for a new_revvisest_stuff: B in old_revvisest_stuff: if a! = B: '' .join ( A) New_straf.append (A) Which result is in the actual stack overflow, then it is clearly bad code. If you want to join any str...

IOS XCode Tuxedo button shows wrong class -

There are multiple storyboards and multiple view controllers in my app A custom in my signin storyboard I press the tuxedo button and it opens the screen It is always wrong View the View Controller File (MasterVC). I can open the correct VC file manually, but when I click on a control (to begin binding), then it will proceed and open MasterVision This makes my controller binding through my controller How can this solve it? The above interface builder is a breadcrumb like controls with a list of documents. Press the Manual button and select the correct view controller.

objective c - How To Use Variable Value Outside Block? -

I have the following code that is checking the connectivity of my app. I want to display a connectivity state in a UILabel which is on a custom UIView that slides while connectivity status changes. __ block NSString * strConnectivityStatus = @ ""; [[AFN Network Reachability Manager Shared Manager]] StartMoning]]; [END EDIT] And then I call my custom UIV, which slides into position: OLSlidingMessageVC * msgConnectivityVC = [[OLSlidingMessageVC alloc] initWithTitleAndPosition: @ "Status" message: StrConnectivityStatus msgHight: & amp; ViewHead message message: & amp; View Width msgXPos: & amp; View Expeduce Message: & amp; See YPOS]; But strConnectivityStatus is always empty because I can not access its value outside the block. How do I reveal the status on UILabel on my UIView? The block is not called synchronous, so the strConnectivityStatus is not set Anywhere out of the block Just create a strConnectivityStatus with a l...

javascript - jQuery Load Local html file in Phonegap -

Image
I am creating multi page phone gap app I have basic structure including scripts in CSS and index is. Html, I'm trying to load content dynamically in containers from other HTML pages. When I load the contents of other dynamic page css then the page is not visible. I have a locally-style sheet script cdn path index .html & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Meta name = "msapplication-tap-highlight" content = "no" /> & Lt; Meta name = "viewport" content = "width = device-width, initial-level = 1.0, maximum-level = 1.0, user-scalable =" /> & Lt; Meta charset = "UTF-8" & gt; & Lt; Meta http-equiv = "X-UA-Compatible" content = "IE = edge, chrome = 1" /> & Lt; Meta name = "apple-mobile-web-app-enabled" content = "yes" /> & Lt; Title & gt...

c - How to port POSIX system calls fork() and wait() to Visual Studio 2010 express? -

Is any possible for port or copy of UNIX / POSIX system call, i.e., kanka () and wait () , For Visual Studio 2010 Express Edition? I have tried to integrate the SUA with Visual Studio, however, it was set up due to inconsistency with my processor. :( Any help would be appreciated. How closely on this Depending on you want to copy the waiting and fork. If the fork is used only to make another process and you are not worried about inheritance handles, semaphores, then CreateProcess Try it. From your parents. One of the parameters for creative processing Waiting is equal to WaitForSingleObject's handle of the process (from process information) and the second parameter with the first parameter as INFINITE. / P> Both of these function calls are on top of windows.h.

powershell - Catching Get-EventLog errors -

I am writing a simple script to parse some event log, but I do not have an error, or if instanceid Invalid: PS: \ & gt; Get-eventlog application -instanceid 1111 Get-EventLog: No matches found on line: 1 character: 13+ receiving-event log & lt; & Lt; & Lt; & Lt; Application -instanceid 1111 + Series information: ObjectNotFound: (:) [Get-EventLog], ArgumentException + FullyQualifiedErrorId: GetEventLogNoEntriesFound, Microsoft.Power.Shell.Commands.GetEventLogCommand I can do And silence it, but it will also silence other errors: PS: \ & gt; Try {get-eventlog application -instanceid 1111 -erroraction stop} catch {} I tried it but it does not work: PS C: \ & gt; {Hold Get-eventlog application -instanceid 1111 -erroraction stop} [ObjectNotFound] {} type [ObjectNotFound] thus unable to find: Make sure that this type has been loaded on the assembly. In line: 1 character: 91 + Try {get-eventlog Application-Instant 1111-Terrorism Prevention} Hold ...

multithreading - Ruby - Using a Mutex to keep threads from stopping prematurely -

I am writing a Ruby application (Ruby v2.1.3p242 x86_64 in Linux) which will repeatedly process online data and To store things in a database, I have multiple threads running simultaneously and I am working to stop all threads at command and completely while lifting exceptions from a thread. The issue is that some threads will continue to run many code after the #do_stuff which is said after the saver.stop . After all, they are closed, but after the rest are closed I see some thread going 10-50 times. Each threads' Mute X is locked before each recurrence and unlocks later. Code, @ mutex.synchronize {kill} is running on every thread when called server.stop . This should kill the thread immediately after its next recurrence, but it does not seem like this. Edit: works as a code, so if you wish, do not hesitate to test it. In my tests, after calling server.stop 30 seconds and several minutes to stop all threads, note that each transfer takes between 1-3 seconds...