Posts

Showing posts from April, 2011

Safe to change base class in python? -

Such questions exist, but not at all, and I did not get a completely satisfactory answer. I am doing an agent-based biological model. Suppose I have a class of cell type A, and one of the B. They age according to a clock. Let's say that when a cell of type A reaches a certain age, then it turns into cell of B. I have a list of cells that I just do not want to make new B cells, and want to add them to inventory and still leave A cells in inventory. It seems to work, but is it safe? Class B (object): Pass the class A (object): def changeToB (self): self .__ class__ = B Or, what Any better way? Text after " It can be safe for interpreter, it's definitely going to understand one It is unsafe to trying. Compared to organic cell, it is difficult to make object design more natural mapping and you are trying to leave it there naturally. A cell is as a function of age Age and various mechanisms are switched on and off in the world, an osteblast does not co...

jquery centering span on image hover (because it is inline maybe?) -

When the content comes to the user, I am trying to make fancy hover effects when the content appears. I want the bubble to be centered and go to the top of the images. Illustrated in this Bela: In Chrome it is particularly bad, where the duration is automatically turned on to display: Inline hover behavior differently from Firefox Does the block element help in both form but the hidden elements are pan and it is displayed automatically: inline. Any thoughts and hover about fixing this problem appear directly at the top of the right pictures? Thank you! CSS change: #features_icons li span {top: 0; To set in / * /// Chrome, go to /// * / left: 0; / * /// Added to fix in Chrome /// * / white-space: nowrap; / * /// Added this line // / * /} # feature_conle (status: relative; / * /// This line was added /// * /} and inside jquery I just added: external dimension (true) get correct dimension To: spanW = ($ (this) .next ("span") External Wide (true) / 2...

shell - script with simple flag -

मान लीजिए मेरे पास यह सरल स्क्रिप्ट है #! / Bin / sh अगर [$ # -ए 2 2] तब "उपयोग: $ 0 arg1 arg2" से बाहर निकलें 1 फाई शीर्ष $ 1 $ 2 # # लेकिन यह माना जाता है: ## अगर -f फ्लैग सेट है, ## कॉल [पूंछ $ 1 $ 2] ## और यदि झंडा सेट नहीं है ## कॉल [हेड $ 1 $ 2] तो मेरी स्क्रिप्ट में 'फ्लैग' की जांच करने का सबसे सरल तरीका क्या है? धन्यवाद एफएलएलएल = no " $ एआरजी "= -एफ एंड amp; "$ एफएलएलएजी" = हाँ टेस्ट "$ 1" "$ 2" और सिर "$ 1" "$ 2" फाई यह आसान तरीका भी व्यवहार्य हो सकता है:

c# - BackgroundWorker - Where does the control go to after work is complete? -

I'm one. I am writing NET windows form which is used to import and compute a lot of data. Each import has been made for this purpose, I have created a "main" worker and many "hair" workers. Import jobs are all listed within a MySQL database and I have set up a function that checks whether the job exists or not. I need to know that where the child labor is ending their jobs, then control is passed? Do children need to call the main worker again to run and assign child labor to them? The main worker is called on the form load event, so if I run my main worker for the first time and start work at the level of the child, will the main staff control the form load again? I would like to write my app every cost money (for API usage / hits) from my import jobs, so I want to write as much app as possible before running a test. Yes, once you start the background work, you control the return on the calling method, While the work gets processed on another t...

html - float elements right and left independent size css -

Just trying to do something like floating left and right, but independent from the height ... My problem with this example 2 and 4 is that it is not near near such a place thanks Itemprop =" text "> Place the" float left "elements in one container, and in the second place the" float right "elements then instead of the elements Float Containers.

drop down menu - WPF ComboBox bad blank value -

I have a WPF combo box that is linked to a set of data. I do not have permission to modify the controls directly, nor can I change the data I am returning 1 item to my combo box, but there are actually 2 rows; Both the blank line and my expected value have an index value of 0. I do not want to see this blank line, only my expected data in the combo box auto-selection I've looked through all related posts here, but any solution in my case did not work I was doing programming for a long time, but now thanks to a new help for WPF. XML & lt; Maikomboboks name = "MyTemplate5" MyLookup = "lookup" MyFilter = "att_idn = -37" MyData = "Detail" MyName = "comp_tmpl_idn_srt" ModCde = "31" MyEmptyValue = "0" ToolTip = "Have a nice day" Margin = " 0,2.5,30,2.5 "MinWidth =" 120 "Grid.Column =" 1 "SelectionChanged =" myTemplate5_SelectionChanged "/> C # pr...

numpy - Python package that supports weighted covariance computation -

Is there a Python statistical package that supports the calculation of weighted co-operation (i.e., is the weight of each observation)? Uncomfortable does not support numpy.cov weight Working under a narrow / narrow framework (i.e., able to use numpy arrays to speed the calculation). Thanks a lot! Models of data is weighted on the data intensive calculations . But we can still calculate it directly: # - * - Coding: UTF-8 - * - "" Descriptive statistics writer with case weight : Joseph Perktlod "" Do weightedststreet.watstats import Statsmodels.stats.weight DescrStatsW np.random.seed (987467) x = np.random.multivariate_normal ([0, 1.], [[1., 0.5], [0.5 1]], size = 20) weight = np.random.randint (1, 4, size = 20) xlong = np.repeat (x, weight, axis = 0) DS = DescrStatsW (x, weight = weight) Print To use 'cov statsmodels' print ds.cov copy expression itself = ds # china ds_cov = np.dot (self.weights * self.demeaned.T., Self.demeaned) / self.su...

linux - How do I check for syntax errors in my Apache web server configuration -

How do I check syntax errors in the configuration of my Apache server without restarting or reloading the rules? This will be done primarily from the terminal / command line. On Linux, you use on windows, you are equal to httpd.exe file Will use the command

django - sudo /etc/init.d/celeryd start generates a "Unknown command: 'celeryd_multi'" -

I am setting up celery to run using variables from your virtual environment, Demunik. But when I run $ sudo /etc/init.d/celeryd , I start the unknown order. Use 'celeryd_multi' type 'manage.py help' I have set up the following: CELERYD_CHDIR = "/ home / MyUser / projects / MyProject "ENV_PYTHON =" / home / MyUser / .virtualenvs / MyProject / bin / python "cELERYD_MULTI =" $ ENV_PYTHON $ CELERYD_CHDIR / manage.py celeryd_multi " when I run from $ /home/myuser/.virtualenvs/myproject/bin/python / home / MyUser / projects /myproject/manage.py celeryd_multi command line, it works fine. Any thoughts? I'll gladly post any other code to you :) Thank you! > the operating proper environment and it pulls packages from /home/myuser/.virtualenvs/myproject /... when you start sudo /etc/init.d/celeryd as you root Cereal which is probably not active in virtualenv /root/.virtualenvs/, then such a thing is also present and thu...

security - Google Drive SDK Permissions by file/folder -

We are creating a desktop application that connects to Google Drive and performs some processing in user-selected pictures. Note that the pictures are stored in any way (assuming the user has uploaded them using the desktop Google Drive sync tool.) According to this, the app officially runs the drive app You can request permission for files created, or for all files It seems that if you create a web Google Drive application, then allow the user to file a file-by-file basis. Will have the option. However, what we want to do is allow users to view our Google Drive desktop applications folder, so our software users can clearly see the folders / files given by users only. Otherwise we need access to all of their files, and this is a security concern for the user (if they have all types of files, then anything can be sensitive, they can give us that If we are only working with a subset) Note: In my trial I am using OAuth 2, and it works fine. It is only that we are forced to r...

emulation - Android: file created not found in emulator icon -

I have created a new Android application after completing coding. I did not add any other mark in finding the application in the emulator. Anyone can help me? Check the emulator menu it is like a real phone, where your app was not installed on the home screen has gone. It's going to be inside the emulator menu, along with all other apps, settings and more. Hope it helps

osx - Objective-C: get menu information from external application -

I am trying to write additional applications in a Mac OS menu that displays an active menu that contains the currently active application The menu bar items are, when the user presses some hotkey, I can fix the contextual menu, but I can not currently get menu item of the active application. At the moment I get the name of the active applications to use the [[NSWorkspace sharedWorkspace] running applications] Filtered Horizons Used:] , but NSRunningApplication contains a lot of other valuable information . Either way, can I get information about the application menu from an external application? Update: Using a framework works great, if you are happy using 'Apple Script: system events application * sevApp = [SBApplication application with bundle identifier: @ "com.apple.systemevents"]; SystemEventsProcess * proc = [[sevApp application process] objectWithName: appName]; (Proc.menuBars in SystemEventsMenuBar * menuBar) {{Menu in SystemEventsMenuBarItem * menuB...

indexing - SQL Server indexes cause conversion issue -

I have a table with two columns- for any reason the date stored in the form of ID and nerve as IT A non-package index was recently created on the ID field. Now in my query, when I change the date of narration from date to date, it gives me an 'arithmetic overflow error in expression, at the date of the data type.' exception. If I extract the id field from my query, the conversion works perfectly, so if I remove the date field conversion from my query, it works completely again. If I leave the index, the original query works perfectly. My question is, why is an index on the ID column messing up the conversion in the Cas-I-Think-Us-unrelated, Date column? Any explanation on this is very much appreciated. And the query is: Select e.date, e.id as id from dbo.table1 e, with dbo.table2d (nolock) where e.id = d Convert .id and convert (datetime, E.date, e.id (date time, '07 / 01/2012 ') and convert (date time, '07 / 02/2012) Div> There are invalid d...

string - Varying argument values and number -- is this legal C++? -

I am trying to declare the following two functions to keep a token string back together (one vector or other Iterator-compatible data structure): std :: string composeTokens (std :: vector & lt; std :: string & gt; token); Std :: string ComposeTokens (std :: iterator first, std :: iterator last); In the implementation file (not available here - it is quite obvious), as the Intelalex validity of Visual Studio is not validating either implementation, saying that both announcements With both disputes. Compiling creates a message that the itater should have a template. What am I trying to do, here? Is this etter and lt; String & gt; Do I need a prompt, etc.? And what is STL or Boost or some other library already done? You can use: #include & lt; Algorithm & gt; # Include & lt; Vector & gt; #include & lt; String & gt; # Include & lt; Iostream & gt; Int main () {std :: vector & lt; Std :: string & gt; V {"put",...

Python: function, passing argument -

I am new to python and I have a stupid problem to pass through logic. class MyClass (): @staticmethod def add_group (name, parent_id): print "add_group method, name:% s, parent_id:% s"% (name, parent_id) Other classes def (): print "work method, name:% s, group_id:% s"% (name, parent_id) MyClass.add_group (name , Parent_id) Output: function method, name: blabla, group_id: 15 add_group method, name: blabla, parent_id: (15L,) What's happened with parent_id argument? Any help would be appreciated! In one case you 15 in the second case you (15L ,) (i.e. a tubal whose first value is 15 L, it is passed long, representing (15) or a arbitrary-precise number 15). When the number is very high, such as 10 ** 20, but in this case it is very small, then the number changes naturally in a long time; The only way I can think that you would have had a long time, you were not expecting that something was doing something like 10 ** 20 - 10 ** 20 +...

grails - Does removing a property from a domain class cause an automatic update to the schema, whereby the corresponding column is dropped? -

I'm kind of new on Grails. I've worked a bit with it, but not so much though I am very familiar with Java. Regarding the question schema update, I understand that Grails creates mapping to be seen in hibernation by looking at domain classes, and so if I add a new property, Grails will automatically add a column for that property in the database. Is Reverse also True? If I remove an asset, is that column removed? I am not seeing that behavior and so I am thinking that this is a configuration problem. If I want to go into a more robust database-management, then I guess I have to use something like Database-Management plugin or LIQUIDB. However, the project I am working on is very simple and for the moment, we have not decided that we are still going in that direction. In your dbCreate settings DataSource.groovy Depends on If it is create or create-drop , then everything is all set to start again. If this is a update , then get new tables and columns. If this is...

- Where Developers Learn, Share, & Build Careers

मेरे पास ऐसा html कोड है & lt; html & gt; & Lt; शीर्ष & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; a href = '001' & gt; & lt; img src = 'chp1.png' / & gt; & lt; / a & gt; & Lt; a href = '002' & gt; & lt; img src = 'chp2.png' / & gt; & lt; / a & gt; & Lt; / body & gt; & lt; / html & gt; मुझे 001 या 002 में स्ट्रिंगबीव्यूलेटिंग javascriptfromstring जैसे [self.webView stringByEvaluatingJavaScriptFromString: @ ""] प्राप्त करना चाहते हैं। ; किसी को भी यह कैसे पता है thx मुझे नहीं लगता कि -stringByEvaluatingJavaScriptFromString: एक अच्छा विकल्प है यहाँ। एक NSScanner : NSScanner * स्कैनर = [NSScanner scannerWithString: yourHTML] का उपयोग करने का प्रयास करें; जबकि ([स्कैनर स्कैनअपटॉस्ट्रिंग: @ "a href = '" स्ट्रिंग: नाइल]) {[स्कैनर स्कैन स्ट्रिंग: @ "a href ='" स्ट्रिंग: नाइल]; NSString * परिणाम =...

build - Can I configure git to run a command (on push)? -

I'm using hosted guit and I'm enjoying it very much. I will run the unit when I push my GIT repo, then tests and I have to run this test on many different machines (which are on different platforms which I want to support ). It would be very easy to install GIT repops as a server that I can push code, but I know there is no easy way to fire. & Amp; Examine when some are pushed into repo The option that comes with me is to push on a repository (I can keep my hosted repo in such a way) and After that, my test server has a git pull & amp; & Amp; Make & amp; Amp; Test it This is probably more beautiful but I think this is not an ideal solution. I would also like to report program output or at least one return value for my server so that I can tell whether the tests have failed or not. But it is beyond the scope of this question. You get a "post update hook".

- Where Developers Learn, Share, & Build Careers

Since I use different languages ​​(Latin and non-Latin) in my work and some of them (for example Syrilic languages ​​for) are symbols that look similar to Latin people, sometimes I find those stupid mistakes that accidentally occur when I mistakenly use the syrilic symbol in my code instead of Latin. For example, the following variable names (PHP-style) look exactly the same, although the other name contains half of the letters Cyrillic symbols (and thus different codes): $ Iicuxiphametod vs $ Ñ ?? ??? Formula Line Line Line So I came up with ideas to use for style configurations, whose fonts have different forms of Latin and Cyrillic symbols. I have used several fonts like that - Simons. -Extbie, NSIMSon, Ming Liu-Exbbee - but the problem is that I want to use a font that I have created. Does anyone know what fonts are used in Notepad ++? Whether they are their own fonts or system fonts and whether it is possible to use different (non-system, user-built) fonts in Notepad ++ (...

bash - Shell insert line after last empty line -

I am trying to insert a line of text after the last last line in the middle of a file. Example file: some text more text blah blah blah more blah some more text and even more text The inserted text should be on line 6 for that file I have tried such orders so far: sed '/ \ n / i some text' file but nothing works yet Have not any thoughts? Thank you. A different solution with grep and awk: awk - V end_art_line = $ ([grep-nE '^ [[: empty:]] $ $' your_file | tail-1 | cut-c1 '"{print; if (nr == final_image_line) print" -> something new The text here is inserted with the appropriate grapple which searches for an empty line (or Filled with blank characters only), to choose the last one Pipe Unc.

- Where Developers Learn, Share, & Build Careers

In a tutorial he said If you use the Goto statement to jump mid The automatic variable of the block is not started. Then if I can be accessed / declared in the code below, why is not it started? int main () {hereo here; {Int i = 10; Here: printf ("% d \ n", i); } Return 0; } ps: Output is some garbage value. there is no logic behind your question "if i Can be reached, why ... ". Despite being able to "access i ", there is no argument for something or against it, this means that the printf statement is the same as the I . However, since you jumped on the starters, then the variable has not been started (like your tutorial says). Reading an unexpired variable is an undefined behavior, so your program is bad. Memory is already kept separate on compiled time for the variable i , because the variable exists inside the internal block. Memory is not dynamically allocated, as you can imagine. It is already there, but it has never ...

iphone - UIWebView in UINavigationController not scrolling -

Image
I have an application that is basically a tabbar where tabs are the UI navigation controllers that have separate ViewControllers with UIWebViews Move forward and forward between My problem is that although I can click for the button of UIWebViews, then I can not scroll content when it is larger than the screen. Creating TabController tabbar controller = [[Main tab controller allocation] Init]; [Tabbar controller set output: self]; When switching between tabs, I have this code: WebViewController * wvc = [[WebViewController alloc] initWithNibName: @ "WebCentroler" bundle : Zero] ; UIWebView * wv = [[UIWebView alloc] init]; [Wv setUserInteractionEnabled: Yes]; [Wvc setTitle: [nc title]]; [VV set Deliegate: Self]; [Wv loadRequest: [NSRR request request with url: [ns url URLWithString: requestURL]]]; [Wvc setWebpage: wv]; [VVC Setview: VV]; [Nc push viewcontroller: wvc animated: no]; NSLog (@ "NC.viewControlroll count:% d", [nc.viewControllers count]); [NC...

- Where Developers Learn, Share, & Build Careers

I'm trying to store a bitmap (which I've already read from a file) in a better shape After decoding BitmapFactory.Options.inSampleSize . The problem is that the file size of the stored bitmap is at least double the size of the original file. I have searched a lot and how can I find out how I can work with it, because I do not want to do it for memorable efficiency (I can reuse archived bitmap later) This is my way What I describe: personal bitmap decodeFileToPreferredSize (filef) {bitmap b = empty; {// decode image size Log.i ("bitmap", "imported image size:" + f.length () + "bytes"); Bitmapfile Option o = new bitmapfile Option (); O.inJustDecodeBounds = True; BitmapfinderDiscoverFile (FAAA.S.O.O.O.O.L.O.T.), O); // Check that the user defined the custom image size int scale = 1; If (pref_height! = -1 & amp; pref_width! = -1) {if (o.outHeight> gt; pref_height || o.outwidth & gt; pref_width} {scale = (Math) Math.pow (2, (Int) Math...

javascript - Blackberry Webworks: strange behavior when closing the keyboard -

On turning off the virtual keyboard in Blackberry WebWorks, the page sometimes does not use the location of the keyboard, this is the place Empty. Is there any way to stop this bug? Any help will be appreciated, thank you in advance! I'll check that you can use webwork SDK for your platform (Smartphone, Tablet, BB10) Using the latest version, as well as the latest OS. your device. If you are still seeing problems, then I will log it in as a bug:

matlab - unresolved external symbol mxDestroyArray referenced in function mexFunction -

Hi I am integrating the CUDA prog through the MATLAB MEX interface. This combination gives 1.MATLAB 64 bit 2012 R2 2.Windows runs fine with the 64-bit OS following but when I try to do the same thing on a 32-bit 64-bit version of MATLAB 2008 windows add error LNK2019 following it: Unsolved external symbols mxDestroyArray function referred to in mexFunction. I have set up the nvmexopts64.bat link path like this Reminker parameter ray ************************************** **************************************************************************************************** LIBLOC =% MATLAB% \ extern \ lib \ win32 \ microsoft set LINKER = link set LINKFLAGS = / dll / export:% ENTRYPOINT% / MAP / LIBPATH: "% LIBLOC%" libmx.lib libmex.lib libmat.lib / implib :% LIB_NAME% .x / machine: X-64 Col 32. Lib users 32. Lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib set Do LINKOPTIMFLAGS = set LINKDEBUGFLAGS ...

python - Changing the background color of the axes planes of a matplotlib 3D plot -

Based on matplotlib, how can I change the brown background of 3 axis grid planes? I would like to set it grid lines in white form with the default brown color I found but I could not apply it for example. Thank you. Using the same example. You can set the panel color by using the set_pane_color method as described here. You can set color by using RGBA Tuple: # scatter3d_demo.py # ... # Background color of the panel YZ ax.w_xaxis.set_pane_color ((1.0, 1.0, 1.0, 1.0)) plt.show ()

search engine - is there any link to show all public repositories in GitHub? -

Yesterday, I was trying to get a list of all public repositories in GitHub, but I did not find any link. / P> For example and in Source Forge you can list all the categories by categories or in the Google code, you can search all for all the projects. Yes, I can see only this page, such as "*" or "%" or empty string, but You can list all the repositories in the Gitub by using the following request: This id> 0" 0 "treasures before JSON will return to the array as the array you should process on "n", "id" should be stored when you reach the end of the "page", then you just hit it again with the previous id: eg For loan: This is all the way I have been searching for a list of all the treasures, because there is a limit of 1000 repo per search in the search API, if you have all the repo If you intend to process, then you should be prepared to deal with the rate range: Certified users get better limits...

javascript - How to let marked and google-code-prettify work together? -

I am using some markdown code to convert html, which contains some code blocks, so I highlight the code I want to use. Callback is given for the marked code, as documented: marked .setOptions ({gfm: true, pedantic: false, notation) : True, // Callback for Code Highlighter Highlight: Function (Code, Lang) {if (lang === 'js') {return javascriptHighlighter (code);} Return code;}}); But I have not found any method like Google Code-Prettify with javascritHighlighter (..) . How do they work together? Just did it yourself The function you are looking for is: / ** * @ The ultimate source codehit {string} is a lot of HTML printing. * The name of the language to use the * ultimate opt_long extension {string} * Typically, filename extensions such as 'CPP' or 'Java' * @ Palom opt_numberLines {number | The boolean} is the right number for the number lines, * or the 1-indexed number of the first line in the source codeheel then you want to do something...

php - Display dropdown based on checked box -

I have a group of checkboxes 'box' Now I want my dropdown list to show name based on the checkbox database . Code: $ sql = "Choose empname from mstEmp where teamtype = '$ d' by command 'empname"; $ ObjDB- & gt; SetQuery ($ SQL); $ Res = $ objDB-> GetQueryReference (); If (! $ Res) exit ("Error in SQL: $ sql"); If $ ($ objDB-> GetNumRows ($ res)>) {while ($ line = mysql_fetch_row ($ res)) {print ("& lt; option value = '{$ row [0]}' & Gt; {line row [0]} & lt; / option & gt; "); }} Mysql_free_result ($ res); 1.select.jsp & lt ; % @ Page Import = "java.sql. *"% "% & Gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; Function Shodeta () {if (document.form.check.checked == true) {xmlHttp = GetXmlHttpObject () var url = "select2.jsp"; XmlHttp.onreadystatechange = stateChanged xmlHttp.open (...

GWT wrap a html table and add cels -

I am using a live app in my web app and I have an html panel in which & lt; Table & gt; . & lt; Tbody valign = "top" & gt; . I wanted to be unable to do this because I have chosen to make it unable to throw it due to some annoying issues to know whether it is possible to wrap html table & lt; Table & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; Name & lt; / Th & gt; & Lt; Th & gt; Path & lt; / Th & gt; & Lt; Th & gt; & Lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; / Table & gt; In a class like FlexTable, can I easily control rows and columns via Java? something like Label.wrap ("id"); But for tables. You can also format your data in FlexTable You can use flexTable.getRowFormatter () , flexTable.getColumnFormatter () or flexTable.getColumnFormatter () . You can apply style, alignment to rows, columns, ...

logging - How to reference jboss-client.jar as a module? -

I am using jboss 7.1.1.final and I have a logging module that I have written The org.jboss .logmanager.ExtHandler and writes the log to DB, the problem is that the ExtHandler class is in jboss-client.jar, which is under JBOSS_HOME / bin / client. So I have to refer to it in my reference logging module, but it seems wrong to copy under the module because it makes duplication, is there a better way to go to my logging module, Depends on the jar? Here's my module Xml is: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;! - OG-Logging represents the module - & gt; & Lt; Module xmlns = "vase: jboss: module: 1.1" name = "com.mycomp" & gt; & Lt; Resources & gt; & Lt; Resource-root path = "OG-logging-1.0.jar" /> & Lt; / Resources & gt; & Lt; Dependency & gt; & Lt; System export = "wrong" & gt; & Lt; Paths & gt; & Lt; Path name = ...

c++ - Issue with string literal and integer constant -

यह क्या है? #include & lt; iostream & gt; Int main () {std :: cout & lt; & lt; "स्ट्र" 1 & lt; & lt; '\ N'; } मुझे लगता है कि यह असंभव है, लेकिन जीसीसी इस कोड को संकलित करता है (जबकि कमयू कंपाइलर नहीं)। क्यूं कर? और इस कोड के आउटपुट के बारे में क्या है? str " और सी कोड के रूप में संकलित होने पर क्यों अनुमति नहीं है? यह एक बग जीसीसी 2.7.2 प्रतीत होता है। "somestring" अधिक से अधिक के बाद , यह इसे प्रभावी रूप से "somestring \" अधिकतरफाफ़ाफ़ " में परिवर्तित कर देता है (ध्यान दें कि अनुगामी आर को" "में परिवर्तित किया गया था।)।

- Where Developers Learn, Share, & Build Careers

संभव डुप्लिकेट: मैं jQuery और जावास्क्रिप्ट सीख रहा हूं। मुझे आश्चर्य है कि क्यों $ () फ़ंक्शन jQuery का document.getElementById () जावास्क्रिप्ट का कार्य। क्या यह $ () ? यदि नहीं, तो $ () की भूमिका क्या है क्योंकि मुझे यह प्रश्न मिला क्योंकि $ ()। कोड> $ चयनकर्ताओं, HTML स्ट्रिंग्स और नियमित जेएस ऑब्जेक्ट स्वीकार करता है getElementById केवल एक तत्व का id विशेषता स्वीकार करता है वे अलग-अलग चीज़ें करते हैं। आप एक DOM ऑब्जेक्ट प्रॉपर्टी एक्सेस करने का प्रयास कर रहे हैं, लेकिन एक jQuery ऑब्जेक्ट से। JQuery ऑब्जेक्ट्स को लपेटें, लेकिन वे उन्हें प्रतिस्थापित नहीं करते। DOM ऑब्जेक्ट तक पहुंचने के लिए, आप $ (...) [0] (या $ (...)। प्राप्त करें (0) ) और आपका कोड ठीक काम करना चाहिए: $ (...) [0] .उटरहाइट

ruby on rails - Nested Model Form unknown attribute error -

मेरे पास एक मॉडल विषय और नेस्टेड मॉडल सबक मैं अज्ञात विशेषता की समस्या का सामना कर रहा हूं: subject_id मैंने सुझाए गए विभिन्न समाधानों की कोशिश की है, लेकिन मुझे अभी भी त्रुटि मिल रही है। मैं रेल के लिए बहुत नया हूँ और मुझे यह पता नहीं लग पाया कि गलत क्या हुआ। विषय मॉडल attr_accessible: subjectcode, विषय_आईडी है_मैं : सबक,: आश्रित = & gt; : नष्ट करें accepts_nested_attributes_for: lessons,: reject_if = & gt; लैम्ब्डा {| एक | एक [: सामग्री] .blank? },: Allow_destroy = & gt; सच का अंत पाठ मॉडल attr_accessible: lessonName is_to: विषय विषय नियंत्रक डीएफ़ शो @ विषयक = विषय.फंड (पाराम [: आईडी]) एफ़ डीईफ़ न्यू @ विषय = विषय.नई @अनसन = @ विषय.अनतन.बिल्ड अंत डीआरएफ बनाओ @ विषय = विषय.न्यू (पाराम [ SubjectCode]) अगर @ विषय.सर्व redirect_to @subject,: notice = & gt; "सफलतापूर्वक बनाया विषय।" और प्रस्तुत करना: एक्शन = & gt; 'नया' एंड एंड विषय फ़ॉर्म & lt;% = form_for @seubject do | f | & Gt%; & Lt;% = f.error_...

algorithm - Multi-variate maximization over a table -

I am doing a simple search to implement the algorithm that can find the row of the maximum value on a certain column Are there. Then, he should get all the rows that are close to the maximum value on a particular column (can these 2 steps be combined?) Then, out of the selected rows, I have to find someone who is the least in any other column The value is. Bonus: If there are many such entries, then I will need to be of the lowest value on another column. Yes, I know that it is easy to do this with SQL (ITE), but I do not want to waste time in parsing the data in the data test. I am interested in a simple idea on how to do this (pseudocode is okay) and, right now, I can think of some complex as well as these lines: Repeat on all rows & amp; Find the minimum value in the new list of rows Repeat all the rows again and "close" the list to the maximum. You are doing the right thing as long as your line values ​​are , you can not go through all the values...

c# - use Linq to process groups of items in a list -

संभव डुप्लिकेट: मेरे पास कई मदों की एक सूची है, और ऐसी विधि जो उन वस्तुओं की छोटी सूची पर अच्छी तरह से काम करती है। क्या मैं बड़ी संख्या में एन तत्वों को खींचने के लिए LINQ का उपयोग कर सकता हूं, और उन्हें पास कर सकता हूं विधि में, एन एक समय में? मुझे यकीन है कि "int i = 0" बनाने के बिना इस पर एक शानदार तरीका है; चर। मुझे स्पष्ट हो, मुझे पता है कि फू। ले लो (10) मुझे सूची से 10 आइटम मिलेगा। लेकिन मुझे 10 के अगले सेट को संसाधित करने की आवश्यकता है, फिर अगले 10 का अगला सेट और इतने पर। छद्म कोड कुछ ऐसा होना चाहिए: var shortList = BigList.NiceMethod (10); विदेशी (शॉर्टलिस्ट में शॉर्ट) {विधि (लघु); } यह शायद कुछ समूह कॉल है। यह होगा आपको सूचियों की एक सूची दें जहां हर सूची में अधिकतम एन तत्व हैं। int n = 3; सूची के & lt; पूर्णांक & gt; सूची = नई सूची & lt; int & gt; () {1, 2, 3, 4, 5, 6, 7, 8, 9}; Var ListOfLists = list.Select ((x, inx) = & gt; नया {item = x, group = inx / N}) .GroupBy (g = & gt; जी समूह, जी = & gt; g.Item)।...

Powershell - Listing failed IP addresses from security log including count -

I have the following powers to output a list of IP addresses for the failed logon events: $ dt = [datetime] :: now. Adides (-1) # $ l = get-event log-logname 'security' only in the last 24 hours -Estance ID 4625 -Intern $ $ DT | Select object @ {n = 'IpAddress'; E = {$ _. Replacement strings [-2]}} $ g = $ l | Group-Object-Property IpAddress | Where {$ _. Calculation-GT2} Select - Property Name | Export-csv c: \ users \ export.csv I would really like to improve it so that it's the IP address as it is, still $ _ I have tried some things but I think I am stuck in the SQL world! I think all of you in the second pipeline, select -property name requires change with - choose - property name, calculation (but I will check by looking at the properties returned from group-object to mill-member ).

- Where Developers Learn, Share, & Build Careers

What are the risks of running an XE on a SQL Trigger? This is a closed server, intranet, only with limited user access to the server where the script runs and the SQL Server connection. I temporarily store outgoing email in a table in my database system. Then it is sent through a trigger which runs and exe. Draws the topic, CC, and body from the Exchange directly, from the DEB and sends the email through the CDO. I just have to use an external method of sending the email instead of sending the code back from the back to the website to avoid slwodown I asked about this specific problem in another post, but exec risks Asking about a different issue seemed to direct any of the options for the related post If this is a closed server and Exe is known, I do not know if there are any more risks. I could see that the only risk would be when someone changed your extension to something else, which would begin, but it seems that the scenario you described was about. Our situation...

html - Frames in Internet Explorer 9: CSS styles not loaded correctly -

I have a web site with URL and I want to send www.example.com to that domain the FRAME I am redirecting in the form. When I try to load www.example.com from IE 9, I get this error: CSS3111: @ font-face encountered an unknown error. Abeatbykai.TTF The font is placed here: My CSS file is called from welcome.php in this way: & lt; Link rel = "stylesheet" href = "css / iflikeu.welcome.0.1.css" type = "text / css" /> This is my CSS code: @ font-face {font-family: 'abeat'; Src: url (../normal/font/abbeatbyKai.TTF); } If I enter src: url ('http://myapp.herokuapp.com/common/fonts/abeatbyKai.TTF'); still does another example: this image is loaded from welcome.php like this gt; & Lt; / A & gt; On the CSS file, this code is: .lang_flag img {width: 25px; Height: 12px; Vertical-row: middle; } However, the image is not displayed. Just button ( btn ). This error is only in IE when there is a frame ...

phpinfo and php -v show different version on mountain lion -

I am trying to upgrade my PHP from 5.4.1 to 5.3.15 on Mac OSX 10.8.2. I have downloaded and executed the source code of php 5.4.8 manually: ./configure --prefix = / usr / local sudo to install Code> php -v shows 5.4.8 while still shows 5.3.15. & lt; Any thoughts about getting php phpinfo (); ? & Gt; to indicate the newly installed php version? This is happening with you because you have two versions of php installed in your Mac, a web As an extension with the server and the other one (one from CLI) is installed by default in your OS. I installed PHP and Apache via Mac ports would solve this problem for you. Try it!

python - Is there any way to remove a QWidget in a QGridLayout? -

What do I need to remove a widget completely (purge it, delete it, etc ...), but It's a gridlate, so even when calling removeWidget , it still keeps an indicator, so the dragon does not want to remove the object. Here is the (hidden) code: def addRow (auto, line): self.entries.insert (line, QtGui.QLineEdit ()) self.gridlayout.addWidget (self.entries [ Line], line, 0) ... def remRow (self, line): self.gridlayout.removeWidget (self.entries [row]) del (self.entries [row]) ... (in other functions) foo Deletes the widget from the gridlate, but it does not completely delete it, so it actually gets packaged under the (?) Layout, and the widget is apparently larger than the layout (not sure though , As i Can not see the end.) Then, is there any way to completely remove any program from within a QGridLayout? Thank you in advance! Contains the widgets for containers again even if you remove it from the layout, the container widget Still have parents, so that the widget can ...

Bootstrap: affix navigation blocking scroll-to section title -

I have a side scrolling navigation with scroll detective (I've got it with bootstrap) and everything is working fine Except that section titles are scrolled till it is scrolled then sticky navigation is being covered by I have the scrolls- detective.j in the 75's offset, but I'm not sure the content is down How to push or scrolling each experience Ask to focus above the actual title c so that they are not Any ideas? You can see what I'm doing about "url" has been removed code> & lt; Section & gt; Add elements above your padding, which are targeting your navigation links In your case, you can add it to your Style Sheet only: Section {padding-top: 30px; }

scala - Meaning of strange class name from an object -

ऑब्जेक्ट इनिशियलाइजेशन {डीईफ़ मुख्य (आर्ग्स: ऐरे [स्ट्रिंग]): यूनिट = {val सूची = ट्रैवर्सबल (1 , 2,4,5) //list.foreach (println) println (list.getClass.getSimpleName)}} यह $ colon $ colon प्रिंट करता है, लेकिन मुझे सूची की तरह कुछ उम्मीद थी यह अस्पष्ट नाम क्या है? ऐसा इसलिए है क्योंकि एक मुहरबंद सुपर वर्ग है जो कि मामला वर्ग और ऑब्जेक्ट पर है ( सूची प्रलेखन के तहत ज्ञात उपवर्ग अनुभाग देखें)। :: को विपक्ष , सबसे पारंपरिक कार्यात्मक प्रोग्रामिंग भाषाओं में सूची विपक्ष ऑपरेटर के नाम पर रखा गया है। चूंकि आपकी सूची का सिर वास्तव में है :: मामला वर्ग का एक उदाहरण है, और स्काला ने जेएमवी पर गैर-शब्द वर्ग के नामों का प्रतिनिधित्व करने के लिए नाम संगति का प्रयोग किया है, आप $ colon $ colon जब आप नाम प्राप्त करने के लिए प्रतिबिंब का उपयोग करते हैं। अपडेट: मुझे बिल्कुल यकीन नहीं है कि आप किस वर्ग के नाम का उपयोग करने का प्रयास कर रहे हैं, लेकिन आप इसके बजाय उपयोग करें यह कुछ भी विस्तार के लिए परिभाषित है, जो हर स्काला संग्रहण प्रकार का होगा। यदि आप कक्षा के ना...

- Where Developers Learn, Share, & Build Careers

I'm not very good at htaccess, so here's some help looking for help. I have a web app running on myserver.com/index.html and I'm sending the request ( GET , PUT, delete an administrator ): myserver.com/controller.php?id=5 is there a way I can use myserver.com/controller/5 I have toyed with my htaccess , but like Manage to create 500 errors while attempting to hit the index.html page to deposit via a url ... If you send a request: myserver.com/controller/5 and you want to rewrite it at /controller.php?id=5 , you can use these rules: RewriteEngine RewriteCond% {REQUEST_FILENAME}! -f Rewrite Convert% {REQUEST_FILENAME}! -d Records Rules ^ /? ([^ /] +) / ([^ /] +) $ / $ 1.php? Id = $ 2 [L] Or less common: Reviving OnReitRound% {REQUEST_FILENAME}! -f rewrite %% {REQUE ST_FILENAME}! -d Records Rules ^ /? Controller / ([^ /] +) $ /controller.php?id=$1 [L]

python - list to string in df.to-csv() -

I have a data frame containing a column in which there is a list when I write dataframe in a file, then reopen it, I Finish changing the list to string. Is there any way to safely read / write dataframes with lists as a member? df1 = DataFrame ({'a': [['John Kuni', 'Tom Jones',' Jerry Rice '' '' 'Bob Smith' ',' Sally Ride ',' Small [9, 2, 4, 5], 'C', ['seven', 'eight', 'nine'], ['ten', 'eleven', 'twelve']], 'b' : [7,3, 0, 0]} df1.to_csv ('temp.csv') df2 = read_csv ('temp.csv') # Note how to list (DF1) string (DF2) DF1 ['A' '] [0] [' John Quincy ',' Tom Jones ',' Jerry Rice '] is converted to DF2 [' A '] [0] "[' John Quincy ',' Tom Jones ',' Jerry Rice '] " There is no need to hide, the list will automatically be converted into a string, just type a li...

sql - How to save records from one table to another table using stored procedure in mysql? -

I have tried, but I do not know how to do it. I want to move from one table to another using a stored procedure in a table. I started with a simple procedure to print the record based on certain conditions (it is not sure whether it is right or wrong). Here is the code by which I have tried: start the purchase process () DECLARE INT DEFAULT FALSE; A VARCHARCHAR (16); Discovery / Cursor cursor1 for selection from user_name. Open Cure 1; Repeat one again; if one! = '' Then select one; end if; Repeat the end; Stop 1; End; If the user_name column is blank, then I need a stored procedure to transfer those records to another table. Can anyone guide me? Why should this be a stored procedure? You can make a copy of records in a query, then delete them with the other. Copy to another table where the user_name is empty: other_table (id, user_name, other) SELECT (id, user_name, other) Discovery_configure from WHERE user_name faucet or Trium (User_name) = ''; ...

asp.net - Sending mails not working in production environment - same settings -

send e-mail to my website. ConfiGing is similar on both sites: My status is that these mails are being sent when using my local development machine, & lt; System.net & gt; & Lt; MailSettings & gt; & Lt; Smtp = "info@domain.dk" distribution method = "network" & gt; & Lt; Network host = "mail.domain.dk" userName = "info@domain.dk" password = "mypassword" port = "26" & gt; & Lt; / Networks & gt; & Lt; / Smtp & gt; & Lt; / MailSettings & gt; & Lt; /system.net> In my code, I send it like this: smtpClient client = new smtpClient (); Client.Send (mail); I do not know how to debug this problem, because it has the same code on both production and development. Edit: I have been able to get a log from the server. The error is: 2012-11-01 20: 41: 58,383 [11] Trade of spare goods Administrator Mail Manager [(empty)] - Email Exception: Mailbox is unavailabl...

Facebook Slide menu-slide to right in android? -

Image
I used the slide menu library to apply a Facebook like slide bar. It works fine, sliding from right to left Now what I want to do is slide from left to right in the form of a new Facebook app in Android. What amendment should I use to make this change? Does anyone know how to slide both sides as a new Facebook app? I thank you for Android-Menudrayer JK Wharton. I tried it out yesterday and it seems that it fits your needs. If you create and install Sample APK, you will see an example called "right menu" which I think you are looking for. Other examples are variations of the normal sliding menu. Here are screenshots of this sample APK (Menudraversam) in action. The first screenshot shows an example of the right menu with the menu drawer. Tap the overflow menu item in the top right corner and then appears from the menu, as shown in the second screenshot. If you are desired, you can trigger it with any other action bar button or other button.

c# - SelectedValue which is invalid because it does not exist in the list of items -

Image
मैं GridView का उपयोग कर रहा हूं और इसमें मेरे चार कॉलम हैं: labelID , fName , lName और ग्रेड । ग्रेड एक सरल पास या असफल रेडियबूटोनलिस्ट है। एक बार डेटा अपडेट हो जाने पर मैं इसे अगले रीलोड पर डेटा खींचने के लिए चाहूंगा कि वह चयनित मान को दिखाएगा यदि उपयोगकर्ता पास हो या विफल हो। यहां कोड है: & lt; asp: TemplateField & gt; & LT; ItemTemplate & gt; & Lt; asp: RadioButtonList आईडी = "rblChoices" runat = "server" ऑन-चुने गए सूचकांक = "rblChoicesSelectedIndexChanged" Text = '& lt;% # Eval ("ग्रेड")% & gt;' & gt; & Lt; asp: ListItem मान = "पास" टेक्स्ट = "पास" & gt; & lt; / asp: ListItem & gt; & Lt; asp: ListItem मान = "असफल" पाठ = "असफल" & gt; & lt; / asp: ListItem & gt; & Lt; / एएसपी: RadioButtonList & gt; & Lt; / ItemTemplate & gt; & Lt; / एएसपी: TemplateField & gt; सी # कोड: संरक्षित शून्य प...

ios6 - iOS 6 Game Center Turn Based Match Starts With Minimum Number Of Players -

Image
We have found that if you have a variable number of players and then "Auto-match", Game Center players It will start the match with the "minimum" number, even if the game center match-maker UI is showing auto-match spaces for the maximum number of players. For the above mentioned examples, even if 3 players , The match will be started with only 2 participants ("me" and an "auto-match"). How this match request looks: GKMurrest * request = [[GKMasteAlive] IIT]; Request.minPlayers = 2; Request.maxplayers = 4; request. PlayerOvoight = PlayersOviWeight; Request.playerGroup = 0; Request.defaultNumberOfPlayers = 4; Is this just a game center bug? I am the only issue I found, to add players immediately after doing the best work Made the match afterwards and increased my minimum players to 3.

c# - Task.Wait vs Task.RunSyncronously where task has call to WPF Dispatcher.Invoke -

I have a task that I'm starting and ending in the WPF app I want to wait. Inside this work I call a verb on the dispatcher. If I Tasks. I use. Waiting () It appears that the method has never expired. In addition, breakpoints inside the dispatcher Invoke never hits. If I Tasks. I use. Sensational () This works correctly and breakpoints are hit within the dispatcher. Why is there any difference? Sample the code below: Public Zero ExampleMethod () {// Following: var work = New workload (LoadStuff); // It never returns: Work. Start (); Task.Wait (); // This version, however, does: task.RunSyncronously (); } Private Zero LOADSTOFF () {Observable Collection & lt; StuffObj & gt; Accessories = materials. Lod (arg1, true); Dispatch Helper.RunOnDispTouch ((= = {...}); } Public Static Class Dispatches {Public Static Zero Runon Dispatcher (Action Action) {Application.Server.Dispactor. Invoke (action); }} Yes, a big difference is if you RunSyncronously You...

c# - How to debug this or possible causes? System.NullReferenceException was unhandled by user code on Moq.Verify -

I have something in my unit test public class MyTestClass () {private} Fake & lt; IAccountRepo & gt; AccountRepo; Private Admin Service Administration Service; [Setup] Public Zero Setup () {accountRepo = fixture.freeze & lt; Counterfeit & lt; IAccountRepo & gt; & Gt; (); AdminService = Stability. Create anonym & lt; AdminService & gt; (); } [Test] Public Test () {accountRepo.Setup (X => x.Insert (It.IsAny & lt; IUnitOfWork & gt; (), It.IsAny & LT; MyDomainObject & gt; ())); AdminService.ApplyAdminFee (1, 1, today); AccountRepo.Verify (x => x.indert (It.IsAny & lt; iUnitOfWork & gt; (), It.Is & lt; MyDomainObject & gt; (a => a.Id == 1)) ); }} I get this error. System.NullReferenceException by User Code was unrestricted Message = object reference is not set for an instance of an object. Source = Anonymous Host DynamicMethods Assembly StackTrace: lambda_method (Closed, MyDomainObject) Moq.It. On & lt...

ios - Text Field on Top of Button - iPhone -

So I'm trying to understand the ideas in xCode for my registration page - something like this: At any rate, I can not understand how he is using to achieve this performance. Does it look like a TextField at the top of a button? If so, then I can never find the text field to sit on the top, it always goes behind the button, thus making it invisible. Any suggestions or suggestions? This button does not have a text field. Actually it's a text box inside a table view. You must do the following: Take a table view on the Nibb Create the outlet and set the delegate and the data source. Then add the following code to your .m file. This is a number of rows in the table view before this set. - (UITableViewCell *) Table Views: (UITableView *) Table cellForRowAtIndexPath: (NSIndexPath *) indexPath {UITableViewCell * cell = [Table dequeueReusableCellWithIdentifier: @ "cell"]; If (cell == blue) cell = [[[UTTEWview alloc] initWithStyle: UITableViewCellSty...

- Where Developers Learn, Share, & Build Careers

मेरे पास ऐसा कोड है: वर्ग ओबीटी {सार्वजनिक: शून्य रहित (int **); शून्य लिखना (इंट **); बुल चेक (इंट **); शून्य बैक्राक (इंट **, इंट); }; शून्य ओ बी टी :: साफ (इंट आर [8] [8]) {के लिए (इंट आई = 1; आई & lt; = 8; आई ++) के लिए (इंट जे = 1; जे एंड एलटी; = 8; जे ++) आर [आई] [जे ] = 0; } शून्य ओबीटी :: लिखना (इंट आर [8]) {के लिए (इंट आई = 1; आई और एलटी; = 8; आई ++) {के लिए (इंट जे = 1; जे एंड एलटी; = 8; जे ++) एसटीडी :: सीओएटी & एलटी; & lt; आर [i] & lt; & lt; ' '; std :: अदालत के & lt; & lt; '\ n'; } Std :: cout & lt; & lt; '\ n'; } Bool oBT :: जांच (इंट आर [8], इंट आई = 1) {के लिए (इंट जे = 1; जे एंड एलटी; = 8; जे ++) {for (इंट क्यू = 1; कश्मीर & lt; = 8; k ++) {if (आर [आई] == आर [जे]) झूठी वापसी; यदि (आर [जे] == आर [जे] वापस लौट आए; } I ++; } वापस सच; } शून्य ओबीटी :: बैकटाक (इंट आर [8], इंट आई = 1) {के लिए (इंट जे = 1; जे एंड एलटी; = 8; जे ++) के लिए (इंट क्यू = 1; कश्मीर & lt; = 8; कश्मीर ++) {आर [ j] = 1; अगर (चे...

- Where Developers Learn, Share, & Build Careers

Image
Coding My project was going well, but today I noticed a problem. My main notebook has full HD (1920x1080) resolution and I'm coding my projects here. When I changed the resolution of my main notebook to 1280x1024 or 1280x800 or 1024x768. there is no problem. The resolution of my application is 1024x768 and it does not collapse. This is the Princescreen. But my other notebook has 1366x768 resolutions and I am running this application to this notebook. Oh, is that so! It's a disappointment that my IATAtitan screw was transferred. This is a bad printer screen. I do not understand why you can help me, I would like to correct this error What can I do for Kind regards This is generated from various DPI settings, you can load it in the form: // dpi width float x go = it. Vector graphics (). DPIX; // If the screen width is, get a bigger image from (x == 120) // resources. Background image = properties Resources. Big Image; Get the small image from Else // resources. Bac...

- Where Developers Learn, Share, & Build Careers

OK I know there is an answer to other Morse code, but I've seen many people, but none of them Does not even work. Give me a file for my assignment, Morse. The test was to be read in parallel eras. Instead I have two files, Morsi Texty and alphabet. One is created with code and second number and alphabet. I should use a class designed for the translated part and in the main it should translate the user input. I have not been able to do this work. I have tried to do a lot of things by using the classroom or the use of the storking, but when I put it in the loop, which I think is to be there (if it makes sense Is not back). Anyway here my code is main: import java.util. *; Import java.util.Scanner; Import java.io * *; Public class again throws IOException {Stable [] arguments {String Line], file 2 = "Morse test"; String line, file = "alphabet.txt"; File open file = new file (file); File open file 2 = new file (file2); Scanner infix = new scanner (openfile); ...

grails - Creating a new entry with preset values -

Resolved I really do not know what I did, but it worked. One of those moments ... My domain object is "Actiune" I want to add a new entry with 4 preset fields which is the ID given to the "createNewEtapa" method. So I check that entry (with ID) and get its values, set it in the form and save the hit but it does not work. Savings will not work. What am I doing wrong? I am going around this for hours please help with the stack overflow again :) If you have not been feeling like checking all the codes, please tell me how did this I have or have an example link :) Thx! This is the reallight part of my code This is my GSP form: & Lt; G: form action = "save" antipype = "multipart / form-data" & gt; & Lt; Fieldet class = "form" & gt; & Lt; G: applyLayout name = "form" & gt; & Lt; Tmpl: / template / form / & gt; & Lt; / H: applyLayout & gt; & Lt; / Fieldset & gt; ...

- Where Developers Learn, Share, & Build Careers

I am working on a very complex project and I am very new to the windows project. I have 2 forms ViewSchedule.cs scheduler.cs (this is a dialog form / ul> viewable CS to select two dates are selected. They have been saved in the answer: _fromDate = dtFromDate.DateTime.ToUniversalTime (); _toDate = dtToDate.DateTime.ToUniversalTime (); Form 2 is the Scheduler CS is a dialog form I " text "> You need to set these properties before creating a public property in the dialog form and displaying the dialog. Then use these on-value property values. Add to form2 Date Properties: Public Partial Category Form 2: Form {Public Date Time Date 1; Set; } Public Date Time Date 2 {Received; Set; } Public Form 2 () {Initialization (); }} and access to Form 1 as follows: Private Zero Form 1_load (Object Sender, EventEurge E) {Form 2 FM = 2 Form 2 (); Frm2.Date1 = DateTime.Now; Frm2.Date2 = DateTime.Now; Frm2.ShowDialog (); }

jquery - get selected li from url -

I am trying to add the appropriate class in my selected li, with the selected HTML text retrieve url substrings. To give an example I have the following list & lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "" & gt; Trial & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "" & gt; Test 2 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "" & gt; Test 3 & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; If I click on test2 , then a parameter may be passed and my URL will look like this as localhost / page / test2 and the second should be found after the selected category. I tried but it is not working You have to check each link in UL against variables What you'll find 'find again: $ ("# tier_0"). ("A"). Each (function () {if ($ (this) .text (). Match (variables [1]) {$ (this)....