Posts

Showing posts from January, 2011

Save output from (void) system into a variable (C) -

यहां मेरा कोड है: # include & lt; stdlib.h & gt; # से & lt में शामिल हैं, stdio.h & gt; Int main () {(शून्य) प्रणाली ("बिल्ली json.json | ./jq.exe '। स्थान | {सड़क, शहर}' '); वापसी 0; } मैं आउटपुट (शून्य) सिस्टम से एक वेरिएबल में सहेजना चाहता हूं, लेकिन मैं यह कैसे करूँगा? आपको एक पाइप बनाने के लिए आउटपुट को सिस्टम कॉल से रीडायरेक्ट करना होगा, और फिर पढ़ें पाइप से डेटा - यह वही है जो अनिवार्य रूप से कॉल करता है, जिसका अर्थ है कि आपको केवल सिस्टम कॉल को popen कॉल में बदलना चाहिए और फिर फाइल डिस्क्रिप्टर से पढ़ें वे चर में जिसे आप पॉप्युलेट करना चाहते हैं। आप यहां एक जैसे स्टैक ओवरफ्लो पर पॉपन का इस्तेमाल कैसे करते हैं, इसके उदाहरण पा सकते हैं;

attr - jQuery replacewith anchor tag to span tag -

I am trying to remove an anchor tag and have replaced it with a span tag but class etter I have this code But it is showing "undefined" for the square. $ ("# wprmenu_menu"). Find ('li: is (ul) & gt; a'). Replacewith function () {var cathis = $ (this); Var classname = kithis.atrat ('class'); Return $ ("& lt; span class = \" "+ className +" \ "& gt;" + Qthis.html () + "& lt; / span & gt;");}); The anchor tag is removed, and the text lives inside, but does not transfer to the class. Do not see anything in your code wrong. I have made a bus perception based on your selector. Changed the escape as well as single quotes. Not affecting the result ('Li: is (ul)); Replacewith (function () {var cathly = $ (this); var className = Qthis.attr ('class'); return $ ("& lt; span class = '" + className + "'>" + Qthis Html () + "& lt; / spa...

datetime - Parsing specific time format for drawing graph by Gnuplot -

Image
I want to graph with these statistics: (cur | prev) 01: March 22, 2011? Sergio (talk | contributions)? . . (20,789 bytes) (+4)? . . (> VoIP) (Core | Previous) 01:23, 30 March 2011? Sergio (talk | contributions)? . . (20,790 bytes) (+1)? . . (> VoIP) (Cr | Previous) 01:25, 30 March 2011? Sergio (talk | contribs) | . . (20, 9 50 bytes) (+160)? . . (> VoIP) (Core | Previous) 10:15, 30 March 2011? What is Tcatm (talk | . . (21,028 bytes) (+78)? . . (& Gt; Virtual Goods) (max | Previous) 12:43, 30 March 2011? Talk talk | . . (21,173 bytes) (+145)? . . (& Gt ;? Home) (Courses | Previous) 12:43, 30 March 2011? Talk talk | . . (21,162 bytes) (-11)? . . (& Gt; home) I need to count the lines on the graph and y-axis on the x-axis Example: X-axis = "30/3" y-axis = "6" (six lines on March 30) X-axis = "31/3" y-axis = .... How can I do this article with code in GnomePlot? Assume that you have the same format for all entries, th...

performance - Difference between else if and else{if} -

क्या इन दोनों के बीच एक वास्तविक अंतर है? पहले: यदि (condition1) {// code 1} और यदि (condition2) {// code 2} और अगर (condition3) {// code 3} और यदि (condition4) {// code 4} और अगर (condition5) {// code 5} अन्य {// code 6} दूसरा यदि (condition1) {// code 1} और (यदि (condition2 ) {// code 2} else {if (condition3) {// code 3} else {if (condition4) {// code 4} और {if (condition5) {// code 5} else {// code 6} }}}} मैं जहाँ तक प्रदर्शन या बेहतर प्रथाओं या पठनीयता के लिए कह रहा हूं। BTW: मुझे पता है कि स्विच वाक्य, लेकिन मैं सिर्फ उत्सुक हूँ :) ब्रेसिज़ एक यौगिक स्टेटमेंट या ब्लॉक को चिह्नित करते हैं, i.e. एकाधिक विवरण आपके उदाहरण में केवल एक कथन है, इसलिए ब्रेसिज़ को छोड़ दिया जा सकता है, यही वह है। अंतर उन लोगों को छोड़कर कोई व्यावहारिक मूल्य नहीं है जिनके पास इंडेंटेशन पर बड़ा तर्क है।

python - focus-in-event fires even when entry is not focused -

I am creating a gtk.Entry, and want to hook into its "focus in" event, so I use virtual keyboard: Class LabelEntry (gtk.HBox): # ... initialization ... self.keyboard = virtual keyboard. Virtual key board () self.entry = gtk.Entry () self.entry .connect ('focus-in-event', auto keyboard.focus_handler) # ... gtk.Entry attached for this gtk.HBox and more Do ... This opens the Focus_Handler callback that is contained within the Virtual Keyboard class, and a new window is a current one Is displayed above. Once the virtual keyboard window is dismissed, I see the original window with the update value for that self.entry . However, if I tap anywhere on the original window (not even on gtk.Entry, the same callback has been removed and the virtual keyboard is displayed again. What will happen to Gtk.Entry to register as a "Focus in" event anywhere on the original window? Do I need to blur the focus when I open a new window, or create a flag Indicat...

python 2.7 - Anyway to optimize pdf programmatically? -

I would like to programmatically optimize (like "save at least PDF to 10" in Acrobat Pro 10) PDF A series of files I like to do this with Python 2.7.5, if possible, not with Python, maybe VBA word, and my last priority is to do it with another programming mechanism. Thoughts? One suggestion will be to look at pdfsizeopt . The Python program is meant to work as a PDF file size adapter, it can be used to convert large PDFs into small and support commandline interfaces, which you can call. Description: pdfsizeopt is a program for converting large PDF files to small ones. More specifically, pdfsizeopt is a free, cross-platform command line application (Linux, Mac OS X, Windows and Unix) and is a collection of best practices for optimizing the size of PDF files, including Tex and Latex Documents Pdfsizeopt is written in python, so it is a bit slow, but it offloads some of the heavier tasks to its fast (C, C ++ and Java) dependencies. Pdfsizeopt was developed on ...

java - Invalid start tag -

For one of my Java projects, I get an "invalid start tag linear layout" in my Java project. Eclipse by & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" android: id = "@ id / selectSuitLayout" Android: layout_width = "275dp" Android: layout_height = "wrap_content" Android: Orientation = "Vertical" Android: layout_gravity = "top" & gt; & Lt; TextView Android: id = "@ + id / selectSuitText" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: text = "select a suit." Android: Textaces = "16sp" Android: layout_margin = "5dp" Android: Text Collar = "#FFFFF" /> & Lt; Spinner Android: id = "@ + id / suitpinner" Android: layout_width = "fill_parent" Android: layout_...

Exporting to a CSV File in Java -

I am trying to export the data using CSV. I am not going to convert into an advanced encoder so it will be good to keep this in mind while helping;) I am very confused why it is refusing to access my and I There is no idea about it. Package testing; Import java.io.filewiter; Import java.io.IOException; Public class test {public static zero main (string [] args) {generateCsvFile ("c: \\ test.csv"); } Try Private Static Zero Generated CSV File (String sFileName) {{FileWriter Writer = New FileWriter (sFileName)}; author.append ("DisplayName"); author.append (','); author.append ("age"); author.append ('\ n'); Author.append ("MKYONG"); author.append (','); author.append ("26"); author.append ('\ n'); Author.append ("Your Name"); author.append (','); author.append ("29"); author.append ('\ n'); Writer.flush (); Writer.close (); } Hold (IOException e) {e.printStackTr...

c# - how to change MediaElement source when ListPicker_SelectionChanged? -

I am trying to bind the MediaElement source from the list picker when the user stores my problem list in Tagore etem I want to change I Bleep. SourcePicker_SelectionChanged source but how is my problem chosen and how it has been removed? Private Zero List Picture / Signature Switch (Object Sender, System. Windows Control. Modified Changed Ententage E) {// TODO: Add Event Handler Implement here. Bleep.Source = lp_sound.SelectedItem.ToString (); } & Lt; Grid x: Name = "ContentPanel" grid. Line = "1" margin = "12,0,12,0" & gt; & Lt; Media element x: name = "bleed" source = "sound files \ road .wow" autoplay = "wrong" visibility = "short" /> & Lt; Button x: name = "buttonplay" content = "play" horizontal alignment = "left" margin = "170,404,0,0" vertical alignment = "top" click = "buttonplay_click" /> & Lt; Toolkit: ListPicker x:...

javascript - Uncaught TypeError: Cannot set property 'innerHTML' of undefined -

I am new to javascript I am creating another function on our site to modify it in my preferences Was created for. I am getting the following error and have yet found a solution Uncheck typing error: Can not set property 'innerHTML' undefined application -10 ea3f5b8fa15aa9f943827f3d4ea7e2.js: 337 (anonymous function) application -10 ea3f5b8fa15aa9f943827f3d4ea7e2.js: 337 Z.extend.each application -10 ea3f5b8fa15aa9f943827f3d4ea7e2.js: 14 Z.fn.Z.each application -10 ea3f5b8fa15aa9f943827f3d4ea7e2 .js: 14 window.premlaneAnalysis application -10ea3f5b8fa15aa9f943827f3d4ea7e2.js: 334 onload 23,788 : 16 9 Application -10ea3f5b8fa15aa9f943827f3d4ea7e2.js 318 function () 319 {320 $ (document) .ready (function () 321 {322 return $ ("#pre_load page. ("Click", function) 323 {324 var t, e; return t = $ (this). Parent (). Parent (). Parent () .try ("id" ), 325 $ (this) .HTML ("& lt; img src = '/ assets / ajax-loader3.gif' / & gt;...

javascript - how to understand callbacks and async.parallel in node -

I am very new to javascript and callback, so my apologies if it's a stupid question, Code that came with the execution of the required method based on the docs: async = require ('async') async.parallel ([function (callback) {setTimeout (function () (Callback (tap, 'one');}, 800);}, function (callback) {setTimeout (function () {callback (tap, 'two');}, 100);}], function (error, result } {console.log (the result)}) call it node f Moving with the oo.js the result array prints [code] ['one', 'two'] as the docs states that it will happen that what I do not understand is that it How it works: When you pass callback as a parameter for each function and then callback to callback (null, res) , What is it really being said? I did not really define any function callback, nor did I have any kind of Preting is passed as the callback function parameters, but everything magically works fine I'm completely missing the point here? Or is ...

jquery: menu disappear on scroll reappear hover/mouseover/out -

I'm trying a menu below the endless scrolling page. I have a summary of this here when you scroll, I want to disappear the menu and then a hover / mouseover will appear again on the mouseout function. . I can not seem to work it out completely if you rotate with it, you will see that when you scroll, then move the mouse over it, it will come back. But if you scroll over that area with the mouse then it will slide down, then up, down, down, etc. This code looks messy and wakes out of the wack. In fact on a real page you have to reload it to work again. Can anyone give some help with this? Thanks html & lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> Br> Br> Br> & Lt; & Lt; & lt & lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> ...

How to stop app that node.js express 'npm start' -

आप एक्सप्रेस v4.x के साथ node.js ऐप बनाते हैं, तो npm प्रारंभ द्वारा अपना ऐप प्रारंभ करें। मेरा प्रश्न ऐप को कैसे रोकना है? npm स्टॉप कोड> / घर / नोडेटेस्ट 2 # एनपीएम स्टॉप & gt; nodetest2@0.0.1 स्टॉप / होम / नोडेटेस्ट 2 & gt; Pkill -s SIGINT nodetest2 pkill: विकल्प 's के लिए अमान्य तर्क - SIGINT एनपीएम ERR! Nodetest2@0.0.1 स्टॉप: `पैकेट एस एसआईजीएनटी नोडेटेस्ट 2` एनपीएम ईआरआर! स्थिति 2 से बाहर निकलें हां, एनएमएम एक स्टॉप स्क्रिप्ट भी प्रदान करता है: npm help npm-scripts क्रिएटॉप, स्टॉप, पोस्टस्टॉप: npm स्टॉप कमांड द्वारा चलाएं। सेट करें अपने package.json में से एक में से एक, और उसके बाद npm स्टॉप npm help npm-stop का उपयोग करें यदि आप app.js , = myApp; में सेट करते हैं, तो यह वाकई सरल बनाते हैं, और फिर स्क्रिप्ट्स.जेसन में , "स्क्रिप्ट": {"start": "app.js", "stop": "pkill --signal siginte myapp"} उसने कहा, अगर यह मैं था, तो मैं pm2 का उपयोग कर रहा हूं या कुछ अन्यथा इसे...

getnameinfo() - Reverse DNS lookup (IP Address to hostname) C/C++ -

66.249.68.9 for IPAddress ("DIG-X" correctly "Crawl-66-249-68-9 Tablets "Com") My sweet program claims that this is IP 68-9-0-0.ri.ri.cox.net. I do not care if I call it down in a way I want to start with just an IPv4 IP address and walk with the hostname. Bonus question, What is the service? I think I will not need it, and getnameinfo will give NULL but , W "17145" is being output for the serial service buffer. #include & lt; string & gt; # Include & lt; iostream & gt; Using Namespace STD; & Lt; netdb.h & gt; // Structure Sockdor, AFXAT, NI_NEMERCD, getnameinfo #include & lt; string H & gt; // memset #include & lt; arpa / inet.h & gt; // inet_pton int main () {Const string ipadress {"66.249.68.9"}; structure soaked stroke co-founder; memeset (& structure soak another, 0, structSockAddr); StructSockAddr.sa_family = AF_INET; Intetphone Returns Vala {inet_pton (AF_INET, IPAddress.c_str (),...

Reading integers from file in c++ -

I currently have a plain text file that has the following three tables: 0 0 0 0 20 20 0 150 150 150 150 0 0 255 255 255 0 0 255 20 100 100 100 0 100 0 100 100 250 250 255 255 0 0 100 100 0 255 0 20 100 100 100 0 0 0 100 100 20 20 100 0 255 255 255 Each table displays RGB values ​​for the image. In the first table all red, the second table is all green, the third table is all blue color. I have ARREES red [] [], green [] [] and blue [] [] that I want to store these values. I currently have a loop: string data; Int count = 0; While (gateline (infra, data)) {// iterative though store in data line and array count ++; } I definitely know if the count & lt; 5 I should put it in the red array, Use data string to start a istringstream To remove int s, example: while (getline (infile, data)) {std :: istringstream iss (information); Int i, j, k; Continue & gt; & Gt; I & gt; & Gt; J & gt; & Gt; K; Count ++; }

c++ - Duplicating Windows desktop more than one time -

I have to duplicate the desktop in a set of windows I have done this: ID3D11Device * Device; D3D11CreateDevice (... and Device) ... IDXGIOutputDuplication * DeskDupl; IDXGIOutput1 :: duplicate optup (device, deskdepple); This works fine for a window to duplicate the desktop, but for the second window I get E_INVALIDARG at DuplicateOutput () . MSDN says that this means: The calling app is already duplicating this desktop output. Is it possible to duplicate the desktop on some windows, not just one? is not from your view, see the remmars section of the method By default, only four processes can use an IDXGIOutputDuplication interface at the same time within a session. In one process, there may be only a desktop repeat interface on a single desktop output; However, in that process there may be a desktop duplication interface for each output, which is part of the desktop. But you can do it in other ways, if you want to present the same view in different windows,...

javascript - using .slice method on an array -

I'm practicing the array of JavaScript Koan and I'm not fully understanding why these answers are correct. I have added my beliefs below, if someone can explain to me / tell me that I am wrong: it should "slice arrays", function () {var array = [ Excerpt ([]]; Why do so Will not the least piece "jelly" begin with piece 3, how does the cut of 0 change it empty? Hope (array.slice (3, 100)) .toEqual (["jelly"]); If cut off If the index is beyond the current in the array, does it mean that all the indexes starting from 3 until the end of a new array array created from slices? Expect (array.slice (5, 1)). ToEqual ([undefined]; Will this always be undefined if the start index is not present in the array? }); The second argument is that App er is connected to a piece e Think from array.slice (lowest index, highest index) . When you slide from index 3 to index 100, then an item (in your case), which has an index; Gt...

jquery - How to interact with a javascript element -

I am using AC editor (via jquery-ace-rails gem) to convert textarea into code editor I am & lt; Textarea class = "my-code-area" rows = "4" style = "width: 100%" & gt; Puts 'foo' & lt; / Textarea & gt; & Lt; Script & gt; $ (Document) .ready (function () {$ ('. My-code-area'). Ace ({subject: 'twilight,' lang: 'ruby'})}}; & lt; / script & gt; I want to create a link on the page to insert text in the editor: & lt;% = link_to 'Insert', '# ',: Onclick =>' ace.insert ("some good"); '& gt%; Any help appreciated - I did not work with Javascript before This can be relevant: especially in the "Access to ACE Code Editor Examples" section. You can use ace by using the property of the data in the Ace example Then try jquery ('. My-code-area'). Data ('ace'). Ace.insert ("some good"); Ace.Instant (...

jquery - How to run the JS with on() function with Javascript -

After the JS calendar is fully started, the HTML appears below and I would like to run my JS with asynchronousViewDefault_CalendarView code> attributes However, it does not work at all. Otherwise, is there a solution to my problem, I need to make sure that I use the asynchronousViewDefault_CalendarView attribute to run my JS? HTML: & lt; Div id = "asynchronous viewDefault_CalendarView" & gt; & Lt; div class = "ms-acal-header" & gt; & Lt; Div & gt; & Lt; Table class = "MS-ARM-month" & gt; & Lt; / Table & gt; & Lt; Div class = "ms-acal-vlink" & gt; & Lt; Table & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td> & Lt; A href = "javascript: zero (0)" title = "add" evtid = "new_item" & gt; & Lt; Img border = "0" src = "/ _ layout / image / caled .gif" & gt; Add & lt; / A & gt; & L...

angularjs: Customizing resource -

I am following folder structure in my app I added the following code within the services Use the (credit card), ['$ http', function ($ http) {function CreditCardFactory ()). {Function parseMessage (message) {if (message.response) {return message.response;}} function credit card (value) {angular.copy (value || {}, this);} credit card. $ Get = function (id) {var value = Credit card of this example? It: new credit card (); $ Http ({method: 'GET', url: '/ creditcards /' + id}) Then (function (response) {var data = response.data; if (data) {Angel copy (parsmessage (data), value);}}); Return value;} credit card. Prototype $ Get = function (id) {credit card. $ Get.call (this, id);}; Credit card return;} credit card factory;}]}}}; I have followed this question and have added the above code to the factory In this question, the app.controller ('CreditCardCtrl' , Function ($ scope, credit card) {$ scope.creditCard = CreditCard (.) Get (3);}); Credit c...

Qt graphics performance on soft-float ARM? -

I would like to create a car dashboard such as QT interface (gauge, dial, dome etc.) My device has an 800x480 lcd, powered by an IMX 287 ARM SOC (no hardware float, or with no GPU weapon). The problem is that it is very slow, a single gauge (background PNG image, in which the rotating PNG dial image) is drawn to 20 fps, ~ 20% CPU time uses a rendered text string Adding up to 40% of CPU usage increases. I am using QGraphicsScene which I use a lot of floating point calx ... a problem because my SOC does not have any hardware float capability. Is there a choice of QGraphicsScene that will work well for me? This is what is currently doing: main window :: QWidget * parent): QMainWindow (parent), UI (new UI) :: MainWondo) (UI-> SetupUI (this); bg.load ("rpm.png") needle.load ("needle.png"); visible = new QGraphicsScene (this); visible-> gt; ; SetCentrect (0,0, 800,480); scene-> addPixmap (bg); NeedleItem = scene-> Pixmap (needle); needleItem-...

javascript - Create dynamic column Kendo Grid -

Image
I am trying to create a dynamic column of kando grid using javascript. Now I can dynamically generate columns. But every time I give an error like this Here is the code I used function createDetailsGrid () {gridDetails = $ ("# gridDetails"); remove gridDetails.children (). GridDetails.kendoGrid ({Columns: [], Data Source: []}) // var column from Cheema = []; //columnSchema.push ({title: 'one', field: 'one', width: '100px'}); //columnSchema.push ({title: 'two', field: 'two', width: '100px'}); Var DataSourceTent = GetCustomers (); Var len = dataSourceContent.model.length; Var columnSama = []; Var data source = []; (Var i = 0; i & lt; len; i ++) {columnSchema.push ({title: String (dataSourceContent.model [i] columnname), field: string (datasource resource. Model [i] .columnName) Width: '100px'}); } // (var i = 0; i & lt; len; i ++) {// dataSourceSchema.push ({columnSchema [i] .field: 10, smv: 2.3, tot_ta...

Sending message through java mail -

Hello I'm able to send mail from my web application. But the problem here is only able to send a message to the message. I want to send a message: Your username is: xxxx Your password is: xxx message message = new mime message (session); Message.setFrom (new Internet address ("xxx@gmail.com")); Message.setRecipients (Message.RecipientType.TO, Internet Address.Prase (Class.email)); Message.setSubject ("Confirm registration with SK Business Group"); Message.setContent ("& lt; h1 & gt; Congratulations on successfully registering us & lt; / h1 & gt; & lt; h2 & gt; Your username is: " + Class uname, "text / html"); Message.setContent ("& lt; h2> your password is: " + Class.pass, "text / html"); Transport.send (message); But when the mail reaches the recipient, only the user name is displayed ... I want to display the username and password. Someone please help me to solve this..Than...

Java Processing 2.0 (Using Eclipse) : Switching from window to fullscreen and back -

I am using processing 2.0 in Eclipse and about transition between windowed mode and fullscreen for a running application There is a question at the startup window or fullscreen, which is easily resolved) Resolves the problem of going through fullscreen mode in window processing in window mode. However, I would also like to know how to switch back from window mode to full screen using processing using the process. Does anyone have a solution to this problem? is a bit, but you can try to create a separate edul frame that is fullscreen and processing Let's applet it Usually for fullscreen you do not need a frame with just screen dimensions and any decoration (title bar, close button, etc.). The catch is that you can not see 'java.awt.frame'. If you set false visibility, then try to redraw the scene without any frames), then going around it will be just an example of a different frame, which is already resolved and with the right dimensions We leave the frames of t...

xslt - retrevial of Item Name from GUID in a Multilist Sitecore -

& lt; xsl: टेम्पलेट मैच = "*" & gt; & Lt; xsl: चर नाम = "आईडी" का चयन करें = "कॉनटैट (sc: fld ('MyMultilist',।) '|')" / & Gt; & Lt; xsl: कॉल-टेम्पलेट नाम = "प्रिंटटिटल्स" & gt; & Lt; xsl: के साथ- param नाम = "id" चुनें = "$ ids" / & gt; & Lt; / XSL: कॉल-टेम्पलेट & gt; & Lt; / XSL: टेम्पलेट & gt; & Lt; xsl: टेम्पलेट नाम = "प्रिंटटिटल" & ​​gt; & Lt; xsl: परम नाम = "id" / & gt; & Lt; xsl: if test = "$ ids" & gt; & Lt; xsl: चर नाम = "itm_id" चुनें = "उप--से पहले ($ आईडी, '|')" / & gt; & Lt; xsl: if test = "$ itm_id" & gt; & Lt; xsl: चर नाम = "itm" select = "sc: आइटम ($ itm_id,।)" / & Gt; मान: & lt; xsl: मान का चयन = "स्क: एफएलडी ('शीर्षक', $ आईटीएम)" br / & gt; & Lt; / XSL: यदि & gt; & Lt; xs...

regex - Regular expression in Selenium xpath to select different table row -

I have two possible xpaths on which I can find a solution. What is a way that you can add 2 xpath possible with an xpath string with regex? For example. For example, it will find all the book or all chapter nodes: // book | // Chapter Normally do two nodesets with or query_a and query_b: query_a | Query_b

jquery - How to set height and width of images in colorbox iframe? -

I am using the colorbox iframe. Images are opening inside iframe . Images are of different offers. I have not set the scrolling: incorrect , if the height and width of the image increases. But I can not see a full image, if its size is 3000X2000px. I need the resize image to some height and width. How could this be possible? Thanks for any help thanks $ ('MyImage'). Attr ('style', 'height: xxx; width: xxxx;');

javascript - Grunt Task - Get Filename from path without extension -

Is it possible to get filename without extension from SRT file path I as an example Suppose that the src file is my file - the images are located on / my-file.png In my work this is the time: var processname = options.processName || Function (name) {return name; }; Var filename = Process name (file path); When he references, I Without the path and without extension, I want to return the actual file name: my-file.png How can I achieve it Can i may be very old but if someone else finds it then Comment of User3143218: The last 4 characters will be removed from the name of the piece (0, -4), so for example my-file.png we get my-file but Script.js for us we'll get scrip I suggest removing everything from the last point and using a regex.

asp.net - Sales force App Integration ( .NET Development) & more detail for New bee -

Please note that I am very new to Salesforce, so please understand if I am not clear or clear I am / P> I'm new to Salesforce, and I need to create an app in ASP.NET which helps the client / user add hours / few field details in cellphone. So what I want, I need to create a web application that will get details from the sales force (this description is a custom object which I am explaining) and my web app Do some calculation on the app. Return results & amp; Display it in a sales force. So in summary: 1) How can we require a customer / page, which we are going to use on the web app and app. ; Display on Salesforce page. 3) We have custom UI & amp; Fields in Salesforce? 4) How can this field be achieved when submitted on the web app? ** 5) Which API is to use? (In my case, we are planning that we will provide a method on Salesforce that a user can invest in total hours, some hours of today, remaining time ... based on these, we can bill them, so all these Whi...

windows - delete a file using a child process in .net -

My app uses a file and tries to delete it after using it, however, a third party libraries Due to this, my app can not release the file handle of this file, so can not delete the file, because the file itself is used by the process itself to start process.start () to start a different process Tried, whose work only ul The written file is to be deleted. I am using Net 4.0. However, it seems that the new process has inherited the file handle and can not delete the file. Any suggestions? Will a separate process be able to delete a file which can not delete your own process? It's not how it works. If this is the case then you can just bypass the limitations of usage by starting a new process. You must close the handle to delete the file. If the library can not be made to shut down correctly, in which you can start a hair process that includes all library functions. After you finish your work, you get out of the child. The handle is closed as part of the cleaning proces...

html - ASP javascript write at the point of execution -

I am trying to develop a simple back-end widget for asp. Since I'm new to ASP, I have chosen JavaScript as ASP language. I think I do not have the right tools for writing output. Response Type () at the beginning of the page sends the output directly What am I missing here? I have made his code: which is giving the following output: Hello JS There is a very good answer on this subject but basically if you want to change it The above code block is as follows; & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Body & gt; & Lt; H2 & gt; Hello World & lt; / H2 & gt; & Lt;% Call Response Write ("Hello JS"); & Gt%; & Lt; / Body & gt; & Lt; / Html & gt; You can & lt;% = "Hello JS"%> as the short form of Response.Write can change the line above the code () method.

Android NFC restart App -

I use NFC to send a text app to my app on the device app on my app Device Nr.2 Then the device is in touch, both device popups "Touch the beam" UI. If I send touchscreen and beam messages NR.1 (by adding OT to the part) on the device - message sent, it's okay to do everything. But if I get the device number Touch 2 "touch the ray" UI (the message should be received) - Then my app NR on the device 1 has been reloaded The log code is not showing anything wrong, no error seems, this case app gets any kind of empty NFC message? But why does not it do anything on it? Why reload? I am using foreground despatches , I can make "program / text" without any manifest. How can I control this situation, so users "touch the beam" "UI"? If you do not set the Android beam in your app, then default behavior on the beam of Android is either Instructions have to be directed to another device to open the same app (first activity, which ...

Mysql - Find increased value over a week -

स्कोर तालिका user_idx (int) तिथि (दिनांक समय ) स्कोर (इंट) मुझे यह पता लगाना होगा कि आज की तारीख से एक सप्ताह में कुल स्कोर कितना बढ़ गया है। मुझे पता है कि मुझे user_idx द्वारा समूहीकृत किए गए एक ही उपयोगकर्ता तालिका में से दो की आवश्यकता है जिसमें से एक से अतीत से आज के कुल अंक होते हैं और दूसरे में अतीत से एक हफ्ते पहले की तिथि तक कुल स्कोर होता है। उसके बाद , दूसरे से एक को अलग करके मुझे जवाब दे ... लेकिन मैं प्रभावी एसक्यूएल क्वेरी लिखने के लिए संघर्ष कर रहा हूँ। मैंने कोशिश की है यूजर_एबल_डेटा_संदर्भ से यूजर_टेबल की तारीख की तारीख और लेफ्टिनेंट; = डेट् एसयूबी (अब (), इंटरवल 1 सप्ताह) यूजर_आईडक्स द्वारा ग्रुप) जहां से एक है ..... क्या आप मेरी मदद कर सकते हैं :(? मुझे बताएं कि आपको कुल गिनती पिछले हफ्ते। क्वेरी से नीचे की कोशिश करें SELECT * FROM (user_idx, COUNT (*) के रूप में last_week_study_amount user_table WHERE दिनांक से & lt; = date_sub (अब (), INTERVAL 1 सप्ताह) यूआरआइ_आईडीएक्स द्वारा ग्रुप) जहां एक के रूप में .....

php - Series and categories data not changing dynamically -

I have these two fiddles - and I have written before - var chart = $ ('# container'). Highchurch (); Chart.xAxis [0] .setCategories (['J', 'F', 'M', 'A', 'N']); This code is the block within the first and I have written it in a separate block. I doubt that only in the second category why add it - Please change the data set on here's Bela -

Android social network sdk or framework -

I wanted to develop a social network app for Android, I wanted to know if you know any SDK or framework It is easy to create such an app. I'm glad that someone can help me with this. Thank you Modular and SocialHouse is easier than Android You can add the dependency of the chosen network and install a small application using the normal interface. dependency {... compile 'com.github.asne: asne-facebook: 0.2.1' compile 'com.github.asne: as-tweeters: 0.2.1' compile 'com .github.asne: asne-googleplus: 0.2. 1 'compilation' com.github.asne: ASSE-linkedin: 0.2.1 'compile' com.github.asne: ASSE-GSM: 0.2.1 'compile' com.github.asne: asne-vk: 0.2.1 ' Compiled 'com.github.asne: asne-odnoklassniki: 0.2.1' ...} In fact, choose a dependency from the Maven central - it's easy By the way it uses native labs for social networks, you can contact the established social network app

javascript - Validating Email using html5 -

मेरे पास मेरे टेक्स्ट में एक टेक्स्टबॉक्स है: & lt; input type = "text "पैटर्न =" / ^ ([A-Za-z0- 9 _ \ - \।] +) \ @ ([A-Za-z0- 9 _ \ - \।] +) \। ([ए-ज़ा-जेड] {2,4}) $ / "title =" मान्य ईमेल आईडी दर्ज करें "name =" NEmail "प्लेसहोल्डर =" नया ईमेल आईडी "id =" txtNewId "/ & gt; अब, भले ही मैं सबमिट बटन क्लिक करने पर एक वैध ईमेल आईडी दर्ज कर देता हूं, यह अभी भी अमान्य दिखाती है। कृपया मुझे गलत कहां मदद करें। ऐसा करो। & lt; इनपुट प्रकार = "ईमेल" नाम = "NEmail" प्लेसहोल्डर = "नया ईमेल आईडी "id =" txtNewId "/ & gt; फिर पैटर्न लिखने की आवश्यकता नहीं है। :)

php - Nested select with left join in yii ActiveRecord -

I have a few tables main table contractors and a linked table in it Address is , in which a certain type of address is (1, 2, 3) . When it is necessary to do LEFT JOIN ORDER BY type , because 1 or 1 of some situations can be used with 2 or 3 type of address, but sometimes the fields do not consist of field There are type . I made a request that meets my needs, but can not create the same query in ActiveRecord Then my request directly to the database looks like this: Select t.id, join from address.address contractor as t (address from address * address as address address address). = '' And address contractor_id = t.id where ((t.type = 'store') and ('t name'% name% 'or address.address' like '% name%')) Group TID In model relationships it now appears: public function relation () {'addresses' = & gt; Array (auto: HAS_MANY, 'address',' contractor_id ',' on '= & gt; "address.address! =...

php - How to represent hit count with Domain Driven Design -

Suppose context is a job portal website. I have a requirement that says something like this: When a job site maker sees the vacancy, the number of vacancy increases. How do I show it in the web? As far as I can think, it depends on which controller has requested a vacancy, maybe something like this: Class Emptiness Controller {Public Celebration View ($ vacancyId) {$ vacancy = $ this- & gt; Repo-> ($ VacancyId); $ Vacancy-> IncrementView (); $ This- & gt; Repo-> Continues ($ spacing); Return $ spacing; }} Is there a way to represent such a rule in the domain level? Syncing an updated view number is not a good idea, especially when using the RDBMS database update vacancy_view set count = count + 1 where vacancy_id = $ id Many users may be blocked if a lot of users are in one place Duration of time only visible space I suggest using "insert" instead. The inclusion may be synchronous or asynchronous, depending on the benchmark. But...

jquery - AngularJS Numbers and Return -

There is no way to accept numbers and returns (/ N / R) in text only to use English ? By the way: & lt; Textarea & gt; 2344 5335 55555 2222 234 & lt; / Textarea & gt; The only thing above is that I am trying to ban the text area. Any suggestions would be great. Thanks! Theoretically you can use ngPattern like this: ngPattern = "/ [0-9 \ r \ n] * /" With this setting texts will be able to type anything, but Treats only with numbers and returns as valid. Perhaps you can use ngChange for example, to do some non-valid filter.

c# - winforms&Infragistic controls readonly property does not work for clicked control -

I wrote this code to make all the rules read only MakeReadOnly (Control Control, bool bIsReadOnly) {for (int i = 0; i & lt; control.Controls.Count; i ++) {if (control.Controls [i] .control.ft> 0) {makeReadOnly (Control.Controls [i], bIsReadOnly); } And if (Controls Control [i] .GetType () == Type (UltraTextEditor)) {(Control.Controls [i] as UltraTextEditor) .ReadOnly = bIsReadOnly; } And if (control control [i]. Gate type () == type (ultra numeric editor)) {(control. [I] as ultra anumaric editor) .Redonly = Bis readonly; } And if (Controls Control [i] .GetType () == Type (ListBox)) {(Control.Controls [i] as ListBox) Enable =! BIsReadOnly; }}} This works but if the user clicks on a control box like a control box, then click on the edit button (call the makeReadOnly function). The function for the clicked textbox does not work (it works for other controls). Private Zero editButton_Click () {foreach (control in this control) {makeReadOnly (control, wrong); }} "...

c# - Doubts on sending more than one email asynchronously in MVC3 -

In my application, I have a functionality to save and publish articles. So when I click on the "Save and Publish" button, there are three things: Published articles are saved in the database. A notification email leads to a group of users new articles are available. After sending the email page, redirect to the "Articles List" page, do not show any success or failure message for the email. Now the number of users who receive emails can vary, such as 10, 30 50 and so on. I want to send the notification email asynchronously, so that until all the mails are received from the receptionist, that page will not be blocked, the code below is a piece of code from the "PublishArticle" action method foreach (string in email id) {ArticleNotificationDelegate proc = Email.Send; IAsyncResult asyncResult = proc.BeginInvoke (subject, body, from, to, cc, null, null, void); } Below I have defined a representative to use the send method personal repre...

javascript - bmi_SafeAddOnload Automatically comes in webpage source -

I'm having a php page where at the end of the page I am automatically viewing the bmi_SafeAddOnload javascript function. I do not know what this is. Where is this coming from ? Will this be the cause of any issue? & lt; Script language = "javascript" & gt; & Lt ;! - bmi_SafeAddOnload (bmi_load, "bmi_orig_img", 0); // -> & Lt; / Script & gt; Also, please tell me, how to stop it? Maybe this is your ISP which injects it, but you certainly can not know, it There can also be a man in the middle attack. Whatever and whatever, can cause problems even if a person can injure things in your page. The best way to stop this will be to run your page on TLS and remove such problems. You can enable the certificate to use with TLS, by proxy traffic with CloudFlare and TLS or wait for the launch and get a certificate.

javascript - AngularJS: Function call on ngSwipeLeft -

The title tells too much all this. NgSwipeLeft input = "some function ()" is not working because I hope it will be. Maybe I am doing it wrong, but what are your thoughts? There is documentation for ngSwipeLeft. Thanks, Ben I think that What you need to do is create a controller for that JavaScript, and then work through its scope & lt; Div ng-show = "showcase" data-ng -swap-left = "some function ()" & gt; Some list content, such as an email in the inbox & lt; / Div & gt; & Lt; Div ng-show = "showActions" data-ng-swipe-right = "some function ()" & gt; "gt; & gt; Button ng-click =" Answer () "> Answer & lt; / button & gt; & lt; button; ng-click =" Delete () "& gt; Delete & lt; / button & gt; & lt; / div & gt; and JS $ scope.showActions = false; $ scope.someFunction = function () {$ scope.showActions =! $ scope.showActions;} Sim...

node.js - Technology to minimize latency in real-time connection -

I want to transmit some telemetry data from a car to a web app. Hardware is taken care of already, it will send data to every 100ms through an Android device. I was wondering what is the low latency, web sites (socket.io) or VBRC (data channel)? Thanks WebSocket works on TCP, oriented for customer and server communication . Works on UDP It seems that it is more oriented for peer-2 peer communication. I do not think there is a big difference in the time of delay. It is up to you whether you need a reliable delivery (TCP) or not (UDP).

bash - Running script existing in another folder - paths -

मेरे पास तीन स्क्रिप्ट हैं: - bin ------ start Sh - स्क्रिप्ट ------ निर्देशिका_आ ------------ निर्देशिका_ब ------------------ स्क्रिप्ट_1.sh ----- ------------- स्क्रिप्ट_2.sh start.sh चलाता है script_1.sh , और फिर script_1.sh चलाता है script_2.sh समस्या पथों के साथ है: start.sh: पथ_to_script = "../scripts / directory_a / directory_b / script_1.sh"; कमांड = "$ path_to_script param1 param2"; परिणाम = `$ command`; script_1.sh: path_to_script = "। / Script_2.sh"; कमांड = "$ path_to_script param1 param2"; परिणाम = `$ command`; समस्या यह है कि script_1.sh गलत निर्देशिका में script_2.sh की तलाश कर रही है: / bin / script_2 Sh । मैं इसे इस तरह पूर्ण पथ से गुजारने से ठीक नहीं करना चाहूंगा (क्योंकि 'directory_a' नाम बदल सकता है): script_1.sh: path_to_script = "../ स्क्रिप्ट / निर्देशिका_अ / निर्देशिका_ब / स्क्रिप्ट_2.sh"; कमांड = "$ path_to_script param1 param2"; परिणाम = `$ co...

asp.net - SQL count all of the column that has a value greater than 10 and sum it up -

I want to count all the columns in my table, which has the value & gt; = 10. Here is my table: Date ##### || Value1 || Value2 || Value 3 23/04/2014 || __ 1,2 || __ 12,3 || __10 || 23/04/2014 || __ 11,2 || ____ 3 || __10,3 || 24/04/2014 || __10 9 || ____ 3 || __ 1 || I want to display it: Date ##### || Calculation || 23/04/2014 || __ 4 || 24/04/2014 || __ 1 || Let's say I have a lot of time, I want to display this only the last 3 rows. This is my first code: count (*)> = 10 group from tbount to date as tcount Select the count (*); Based on the solution from collapsar it has been changed: String = as the slow stromm = "select td, sum (t.valcount) cnt From (select [date] as d, case when t1.ManualAssists1 & Gt; = 10 THEN 1 ELSE 0 END + case when t1.ManualAssists2> = 10 THEN 1 ELSE 0 END + case when t1.ManualAssists3> = 10 THEN TD "by T / TT Group Group TBBooth T1 as 1 ELSE 0 END" This works , But I only want to di...

java - Passing String with Otto between Fragments -

I am trying to exceed the string value between pieces while using otto. It seems that @Produce and .post does work well but Subscribe is not working ... I have two contracts Registered on bus provider but it is not working. What should I do to make this work? Aepdrayrfrejmentkjawa Vrkspesfragmentkjawa Bspraivrkjawa AddAppShortcutToHomeEvent.java I BusProvider.getInstance (). Registrar (this); Instead of BusProver .get instance (). Register (getActivity ()); BusProver.get Instance (). Unregistered (this);

google app engine - Gsutil setting All Authenticated Users permission -

The reference to my Google app engine application is in storage bucket. I've uploaded them using the Developer Console Now when I load my application and the error occurs. Fatal error: 'Access denied image' with 'unsolicited exception' google \ appengine \ api \ cloud_storage \ CloudStorageException 'message.' In ... I can correct this error by changing the "All Authorized User" for each object using the Developer Console. Practically this is a time-consuming job because I have many images in my bucket. What All Certified Users All Items in my storage bucket via GSUTL? Yes, it is possible, you can use something like this: gsutil -m acl ch -R -g AllAuth: RGS: // Mary-Bucket / For more information:

php - How to get catalog product data in Magento 1.8? -

I use these lines below to get the CMS page data, // Get current message from CMS page: getSingleton $ cms_id = Dana :: getSingleton ('cm / page') - & gt; GetIdentifier (); $ Cms_title = Dana :: getSingleton ('cm / page') - & gt; GetTitle (); $ Cms_content = Dana :: getSingleton ('cm / page') - & gt; GetContent (); Var_dump ($ cms_content); What if I want to receive a catalog product data? I want to get the name of the product for example, $ _ assistant = $ this-> Assistant ('list / output'); $ Product_id = Dana :: getSingleton ('list / product') - & gt; GetIdentifier (); $ Product = Dana :: MillModel ('catalog / product') - & gt; Load ($ product_id); Echo $ _helper- & gt; ProductActivate ($ _products, $ _product- & gt; getName (), 'name'); Result, Fatal error: Call a member function at getName () on a non-object in C: \ wamp \ www \ mywebiste.com \ App \ Design \ foreground \ mywe...

javascript - Best practise to give JS its initial dataset on page load -

Imagine a news that shows newsfeed as soon as a user requests a page, we go to the database (or whatever) and The Get News Feed page has already been loaded, we have dynamically added new news items (via AJAX / JSN) that means we have two mechanisms to effectively create a newsfeed. With our server-side language for initial page request, and one for javascript for any new item. It is difficult to maintain (because when some changes happen, we have to change the JS system and server side system) What is a good solution for this? And why? I have come up with the following conditions: Javascript set an interdisciplinary set, somewhere in html, and let it create initial view when the document is ready; To make JavaScript an AJAX request on the document to get initial data; Or To keep it as mentioned above, the JS version and an SS version I bend towards the scenario first, and for that I have a follow up question: How do you give datasets to JS? In a hidden divis or somet...

python - Splitting database throwing errno 9 bad file descriptor with CON file -

I have done some research and what I can say with this is usually when a file is closed before it closes Goes off? But for whatever he is doing, he does not understand. This is my code: import csv dicto = {} name = Open to the line in the reader (input ("here here filepath here", "r" ): Reader = csv.reader (mainfile) as main file: name = line [8] .lstrip ("'") name = Name.lstrip ("\ xa0") name1 = name name = name.upper () If not named [: 3] In Dico: Dicto [Name [: 3]] = [Name [: 3] + ".JS", 0] Open (Dicto [Name [: 3]] [0], "W" ) As file 1: # problem line file is 1. Write ("Tags = ["] Other: Dict [Name [: 3]] [1] = = If name [: 1] == "#": file In form of Print (name) with open (disco [name [: 3]] [0], "a"): if dicto [name [: 3]] [1] & gt; file2.write ('various spam') other : File2.write ('Different Eggs') for dcto.keys () in the key: Open3 (with Dico [Key] [0], ...

lastaccesstime - last accessed time gets updated though I do not open it -

Normally this is the other way, but I am checking file properties and it shows the current date and time - Even files I never really opened. A few days ago I was read right, but today others are displayed properly, not others, do anyone know anything that can help? My OS X is x32 supporter - In the case of images, if they are displayed as thumbnails, should change the time? In these circumstances, will the digital forensic program get the right time or will it also update it? Since they display it, they should be unaffected. For thumbnails, it should be a secret, unless someone is a forensic device, then email me to answer the prime minister.

c# - Cut beginning of a sound effect / silence -

I would like to know whether it is possible that there is no other way to cut the beginning of the XNA framework or sound. I record sound via a microphone and I am handling such sound frequency: The stream is defined as such: Private Memory Stream Stream = New Memorystream (); Is it possible to modify the stream in any way and cut the beginning of the sound? Sound effects sound = new sound effects (stream. Tuare), microphone sample rate, audio channel. Mono); Var voice transfer = Soundtrack (); Which bin I set to remove? Or is it possible to find "silence" / "background" and cut automatically before listening to the voice of the real person? Thank you You will need to know the exact waveformat of the sounds recorded. If you've got an accurate WaveFormat (eg, 16-bit PCM mono), you can read it again through all the samples, check whether it is within a specific category or not. If all samples are less than 0.1 for example, then it is silen...

android - Cannot add buildConfigField in productFlavors -

In my Android {} section I tried to enter two different building types for free and paid apps. Unfortunately I'm getting the Gradle error: Gradle 'android-transport' project failed to refresh: Script error creation, unsupported Gradle DSL method found: 'buildConfigField () '! Possible reasons are: - You are using the Gradele version where the method is absent - you have not implemented the Grade plugin that provides the method - or there is a mistake in the build script this is my Android {} Gradle is part of the building: Android {compileSdkVersion 19 buildToolsVersion "19.0.3" defaultConfig {minSdkVersion 10 targetSdkVersion 19 versionCode 1 versionName "1.0"} {compileOptions sourceCompatibility JavaVersion. VERSION_1_6 targetCompatibility JavaVersion.VERSION_1_6} {buildTypes release {runProguard true proguardFiles getDefaultProguardFile ('ProGuard-android.txt' ), 'ProGuard-rules.txt'} {debug debug true runProguar...

javascript - Azure Mobile Services : Get Server DateTime and compare it -

I want to run a scheduled job every 10 minutes which will do the following: Check the tables records 'Has not been updated for 10 minutes. How is it possible to compare the current server date to javascript? Use the JavaScript date object. Creating a new date object without just the parameters will give you the date and time of the server. This will definitely be in GMT because all servers running the Azure on GMT, however, are aware of the clock drift. Each server can be a little away from the second time, so it can not be accurate when comparing time on the server. var cutOfDate = new date (); You can also load a JavaScript data libraries like moments or something like if you need to format or evaluate too much dates. There is only one stored procedure of another option that is asked to clean for you. Then the stored procedure can be used to determine the current date of GETDATE and if deleted based on it

sql - HiveQL INNER JOIN -

I am trying to connect a simple INNER between the two tables in the hive, I have a table of command and the other one The log table is the structure of both of them: order: id_operacion string filtered string id_usuario string id_producto string unidades int id_bono string precio float precio_total flap ip string LOGS: Host Identity STRING User STRING Time STRING Request STRING Status STRING Size STRING Referer STRING GENT STRING All 'IP' order table has a value, some of them are nullified I want to get the value order.id_usuario , order.id_producto, logs.host, logs.agent . In those cases that order.ip = log.host. I'm trying this query: Log in to SELECT order.id_producto, order.id_usuario, log.host, Order.ip = log.host. log in. I do not know why but the question lasts for logs with all the agents, and not only matches the IP address of those two tables. I hope I have explained this issue. Any ideas? It may seem like a problem with the in...

What is an algorithm to split N line segments into M segments (N <= M) in a balanced way? -

Probably a trivial question, but I'm looking for an algorithm that can break the N segment segment into M sections (M> = N) in a balanced way (for example that R ^ 2 R-Square Max). Edit (An example added as requested by the commenter): For example, N = 5 Length segment: {1, 10, 7, 15, 1} which we want to divide into the M = 7 parts. will be a good solution: {1, 1, 5, 5, 7, 7, 8} (split 15 and 10) One bad solution would be: {1, 1, 5, 5, 5, 7, 10} (split between 15 to 3) I think, A greedy algorithm with distance from code> can do as well as Avg , but it was not certain that there are some corner cases with it. Thank you, In fact this problem not NP-hard, because it is not possible to reconstruct the pieces. As a result, there is an O (M log n) -time algorithm for the problem of determining the reduction in the sum of the squares of the length of the pieces. I will start dividing the count on each segment and put them in the priority queue. (I wi...

web2py - Flash message not getting displayed even after form gets processed -

I wrote the code to create a custom form. This is a simple form that has some text box elements on it. When I submit the form, it gets processed but it does not show the flash message. I do not want to extend my view from layout.html , but I am using .js files which are layout.html / P > My code in the controller is given below: myform = SQLFORM.factory (field ('Field 1', 'Unicode', = IS_NOT_EMPTY () is required, field ( 'Form2', 'unicode', = is_NOT_EMPTY ()), submit_button = 'add', formstyle = "divs", _ id = "form1") if myform.process (formname = 'myform', keepvalues = True). Accepted: response.flash = 'form accept' used in my. The e.js files are given below: href = "{{= {URL ('static', 'css / payment / css / style.css')}} "Relay =" stylesheet "/>