Posts

Showing posts from May, 2014

regex - How to get all string matching regex1 followed by a string? -

मेरी एक बड़ी पाठ फ़ाइल है I मैं फॉर्म (1, 2, 4, ...) के स्ट्रिंग्स को चुनना चाहता हूं, जिसके बाद स्ट्रिंग "फोबोर" । इन दो स्ट्रिंग दोनों को कई लाइनों पर दिखाई दे सकता है यह कैसे जल्दी से UNIX कमांड लाइन पर कर सकता है? उदाहरण (1, 2) फ़ॉबोर फ़ॉबार (3, 4, 5) फोबोड़ (23, 45) (6 , 7, 8) फ़ूबार (9, 10, 11) एफयू बार देना चाहिए (1, 2) (3, 4, 5) (6, 7, 8) (9, 10, 11) $ Tr-d '\ n' & lt; इनपुट | Grep -oP '\ ([^ ()] * \) (? = Foobar)' (1, 2) (3, 4, 5) (6, 7, 8) (9, 10, 11)

- Where Developers Learn, Share, & Build Careers

I am trying to create a button in Mac program in Maco, but I do not know how, Trying to: NSRact frame = NSMKAct (10, 200, 80, 100); NSButton * btn = [[NSButton alloc] initWithFrame: frame]; [BTN Set button type: NsmemberRepash Inbutton]; [BTN set bezel style: NSRattbeizle style]; [BTN SETTITAL: @ "Click Me"]; [BTN Set Action: @Selector (hide labels :)); [Adsview view: BTN] See; but line [BTN set action: @Selector (hide label)]; Do not work, how can I make an action here? The method hides the labels in the function, because I used it with the second button. Does your hidden label method take an argument? If not, leave it: Selector

web2py URL helper not building good URL's -

I'm starting in web2py and I need to link my still files in my view files. I am trying to use the URL assistant to create the link, but I am not working properly ... My application is called Red , My controller default and my function index My view is called index.html and inside the default folder, when I go to the page, I see the correct way, but my URL is all wrong ... So far I tried: URL ('static', 'css / bootstrap.min.css') who gave back: "/ static / css URL: "/ Default / red / static / css / url (r = request, rgr = 'static / css / bootstrap.mmcsa ') which was given: given: "/ default / static /css/bootstrap.min.css " url (a = request.application, c = 'static / css / bootstrap.min.css', f = '') What was given: "/red/red/static/css/bootstrap.min.css" I may have tried a bit, but no success was found. . and my router: router = dict (#boot router base) = Dict (applicat...

- Where Developers Learn, Share, & Build Careers

I have completed the text encoding to the QR code on Android, and the decoding part also works well. And just for fun, I want to convert the Chinese word into the QR code, encoding it on Android, Zaxing can recognize it well. However, I tried to zxing the iPhone app, it failed Chinese decoding (after long time there is no result, whereas only the recognized text takes 1 second for the Android code to return) I am now on Zaxing SDK for iOS We have not seen, why only one company's application should behave differently on those two platforms, I think the algorithm should be the same. Thanks! ZXing is not a company, it is an open source project. However, the QR code suport in Java and C ++ is very carefully kept in sync, so the result should not be very different. Your best bet is to post the code, which is causing problems in the ZXing mailing list so that people get a chance to check. (FWIW is one of the C ++ / IOS ZXing ports.)

c# - unable to properly register x64 COM dll on windows 7 x64 -

Image
Text after "itemprop =" text "> , dll is being consumed by applications created for .NET 4.0 x86 I have a C ++ ATL COM DLL that is original The form was created for x86, everything works fine Recompiling COM dll for 64, and then using it after entering c:. \ Windows \ system32 \ regsvr32 (Un after reg 86 dll), I want to fail or COM DLL reference window in Visual Studio, I HKCR with 64 and x86 versions of registered dll and HKLM \ Softwares For reg key is exported, and no keys are missing, the corresponding key pointing is the correct dll location. Additionally, after registering the 64 dll, I am able to add the folder where the file is located, and by selecting it in the context of the Dll, but it still does not execute (.net assembly error 64 with the following) is set to System.Runtime.InteropServices.COMException (0x80040154): COM class factory for component with CLSID is gaining {00000000-0000 -0000-0000-A797AD238051} Father Flow NG Fluctuations due to ...

- Where Developers Learn, Share, & Build Careers

OK, I've already used fancybox with some success, but I was thinking that Can I surrender a value? I have put together a friction solution in a little bit, but the box tells me "The requested content can not be loaded, please try again later." What I have done, a different function has been created to trigger the launch of fancybox .... First of all there is HTML of IFrame / Fancy Box (which does not see a user like a small button ): Here is my code: & lt; An id = "link2" href = "ContentPage.aspx" & gt; & Lt; Input id = "btn1" type = "button" value = "gate content" class = "small bitcnt ccls" /> & Lt; / A & gt; .. and javascript: function launch kant (get rid of {var lnk = 'ContentPage.aspx? Act = Add & amp; Id = '+ rid; $ ('# Link2') attr ('href', lnk). //alert($(''#link2').attr('href ')); $ ("# Btn1") fancybox () t...

- Where Developers Learn, Share, & Build Careers

I know how to do it, how to do it, but I have to do without the element Ambiguity, backend-image ambiguity I do not want to modify the image in the Image Editor, so I am looking for the ambiguity set by the CSS. possible? In my CSS below, I want to modify the "disabled" status with a sharp no-opacity limit. Please advice ... Examples of use: Button style: div.button, div.button: hover {background: none; Border: 2px solid # 6C7B8B; Range radius: 8px; Explicit: none; Color: Transparent; Cursor: indicator; Display: Inline-block; Filter: Alpha (Opacity = 100); -M-filter: "Progress: DXimage Transforms. Microsoft. Elfa (Opacity = 100)"; Float: None; Height: 24px; Margin-down: 0 pixels; Margin-left: 3px; Margin-right: 0 pixels; Margin-top: 7px; Opacity: 1; -Moostness: 1; Profile: None; Hidden flurry; Padding: None; Vertical-alignment: top; Width: 24px; } Click the effect: div.button: active {left: 1px ; Status: Relative; Top: 1px; } Add...

multithreading - Sequential and running in one thread time difference c++ -

My source code for testing multithat performance in C ++. Please tell me that 5x short time to run a thread Why is WaitForMultipleObject () so first sequential performance. I expect almost the same result for sequential performance and I am just going with one thread. Thanks The OS will decide when your thread should be running and also fixed To do that the dispatch is needed, perhaps. Add to it, this is also to create a separate pile for your thread, maybe read about overhead on thread construction. Everything is overhead system specific,

- Where Developers Learn, Share, & Build Careers

Image
Does anyone help me understand the different "likes" symptoms of the Scala archive API? I am reading and reading and trying to compare everyone without luck. I think I can see that for example the map increases mapline - adding 2 concrete methods but why does this raise the question why do all this? Why not map 1 map in Collections API instead of map and map? Thank you! The best source of these details is: Scala archive library code Duplication avoids and receives "same-result-type" principle using generic builders and traversals from the collections of so-called implementation properties . These symptoms have been named as the as suffix; For example, there is an implementation property for IndexedSeqLike IndexedSeq , and similarly, is a traceable type traversable Collection codes such as traversal or IndexedSeq receive all their solid method implementations with these symptoms. Instead of the one for the general collection, there are two...

osx - How and where to install Git for MAC OS X 10.5.8 -

I get some instructions on how to install git, but they do not need leopard or something , Or do not require some skills to manually install. I suck with the computer, so I will actually look for an answer for the computer. My computer is MacBook Air with Mac OS X 10.5.8. You can try MacPortes - MacPorts Install the DMG file, then in the terminal, do the following: sudo port install git If you want a GUI front end for GII, then you Check for Mac and / or GitHub. (I believe the latter will work with non-GitHub accounts) There is also software which is paid.

visual studio 2010 - VS2010 RDLC Body Background Image Preview -

I created a report (RDLC) in VS2010 and the body has chosen an embedded image as "background image" but While working with RDLC Designer, I do not see a preview of that image, if someone chooses an "External" image file then I do not make any difference - there is still no preview in the designer. Is there a switch that I want to flip to make VS 02010, I have no way to see the image in the background report designer, or the background image of the body at design time? You may have to set MIMEType from the dropdown in the Properties section, fill in the sub-section: Image / BMP Image / JPEG Image / GIF Image / PNG Image / X-PNG

python - wxpython widgets within not responding to events -

I am a newbie in wxpython and am trying to put some widgets to me in books (bookbook, notebook, favorite book). Often ended up with some widgets placed inside containers not responding to incidents. I'm not sure what I'm doing wrong below is one of my codes import wx square ChoicePanelTwo (wx.Panel): def __init __ (self, guardian, seed): wx.Panel .__ init __ (self, parent = parent, id = Wx.ID_ANY) self Bakgroundcolr ( 'blue') sizer = wx.boxSizer (wx.HORIZONTAL) self.List = wx.ListCtrl (self - 1, style = wx.LC_REPORT) for the category (in seed): itself .List.InsertStringItem (i, str (i)) sizer.Add (self.List, 1, wx.ALL | wx.EXPAND, 5) Self.SetSizer (sizer) class ChoicePanelOne (wx.Panel): def __init __ (self, parent, seed): wx.panel.__init __ (self, mum Ita = parent, id = wx.ID_ANY) self.SetBackgroundColour ( 'green') sizer = wx.BoxSizer (wx.HORIZONTAL) self.RegisterList = wx.Choicebook (self, wx.ID_ANY) sizer.Add (self. RegisterList, 1, wx.ALL | wx.EXPAND...

Android Large Scale Project - Is it ok to divide in to several library projects? -

I am going to develop an extensive Android project, which has thousands of classes and resources. I am planning to separate the application in the module and are planning to develop them separately as library projects. Combine them together later (the application can contain 5-6 modules, so 5-6 libraries plan to create projects and combine them) Is this approach okay? Or Android experts, please suggest a way to maintain and develop such a big project? Edit: Libraries share code for many applications - & gt; Yes 100% agreed on the truth But this project is like a combination of several projects. Like this: The Home screen dashboard has 8 buttons which click the 8 modules on a button - & gt; It opens an activity and has its own thousands of pieces, layouts, devices, etc. which is independent of other modules Similarly, cases of interdependent use can be easily separated from me, and 4-5 developers are going to join this project, so if I can separate several lib...

javascript - How can I load a stylesheet through ajax AND have a callback when the loading is done -

I have to load a bunch of CSS files via AJAX and call the animation when the stylesheet is loaded, otherwise Animation unsuccessful. I have done this and used to work very well till I came to do this cross-domain: $ . Get (resource.url, {Cache: true}, function (CSS) {// Now that the stylesheet browser is in the cache, it will load immediately: $ ("head"). App ($ ("( Link & gt; ", {rel: stylesheet", type: "text / css", href: source.url});}). Then (function () {// animation depending on the CSS loaded here Is}}; This works fine on the same domain as resource.url . Once I have to load CSS from any other domain If I try, then $. Get will fail like this: XMLHttpRequest can not load https://example.com/style.css.Using access-control-permission of https://example.com-not allowed by the original So I tried to add the CORS to the header via .htaccess : & gt; ; #cross is good for domain access resources (# 107) & lt; Files...

- Where Developers Learn, Share, & Build Careers

I am trying to call gravatar_for one of my models. (Yes, I realize this is not strictly MVC, but I have a valid reason to do that I'm not going to). I am trying to include helpers for Gravatar, but I have not been able to know what they are. By adding this to my class so far does not work: Announcement of the class posted activity & lt; GravatarHelper :: PublicMethods in Newsfeed Activity Assume that you want to generate an image tag There are some problems to overcome using. Note that the gravatar_for method takes a user object as its first argument. Commenting in your in GravatarHelper :: PublicMethods class all the examples gravatar_for (user, option = {} ) .) Then you will say: alice = user.new () alice.respond_to? (: Gravatar_for) = & gt; Error for true alice.gravatar_ logic: Wrong number of arguments (1 to 0) # (You need to argue - method became zero, but one was expected) alice.gravatar_for (alice) = & gt; "& Lt; img class = ...

java - Assign "this" to a variable -

Is there any such way in Java? In PHP you can type $ someVar = $ this; and in javascript var something = this; Yes, accepting the name of your class MyClass MyClass thisObject = this; Alternatively, if you are in an internal, anonymous class, or something of choice, then the following will be done (given that you have MyClass right now Too) MyClass thisObject = MyClass.this;

- Where Developers Learn, Share, & Build Careers

I am selecting one of the following to test with: Telereak Free Trial Framework and Selenium is a web site written in C # and Javascript. Can you please tell which of the testers to make a selection and why? To highlight the differences of the above devices for testing? Full disclosure: I am an evangelist for testing telereak studio and test framework, so I get some favoritism. has gone. Awesome of WebDriver I still do many workshops and talk around it. There is also a big story of Taylor's trial frameworks (free, with a paid support option), cross-browser compatibility, vested and apparently waiting around and some other areas. This is a natural progression from the full commercial version of Test Studios - however, you do not have to explicitly go to the paid tooling if you do not want to. Either tool will get the work done. The more important aspects of your long-term success with test automation are to focus on using page object patterns (despite which framewor...

java - how to find two's best answers -

I'm trying to find two largest numbers from the console. I got it for the first time, but the solution for the other is not working. The program is compiling and running. Here's the code. Import java.util.Scanner; Finding public squaresCancersChemicalScgi09 {public static zero main (string [] args) {scanner input = new scanner (system.); Double max = 1; Double score 2 = 0; String firstname = ""; String secondName = null; System.out.println ("Enter the number of students:"); Int x = input.nextInt (); While (x> 0) {System.out.println ("Enter the name of the suente"); String name = input.next (); System.out.println ("Enter student's score"); Double score = input NnxDouble (); // get maximum (score> max) {max = score; First name = name; } // Find the second maximum (maximum lie 2) {max = score2; Score = Score 2; } And if (Max> Score 2 & amp; Score 2 & lt; score) {Score 2 = Score; SecondName = Name; } X--; } System...

Why jQuery ajax jsonp request gives error? -

"fnServerData": समारोह (SURL, aoData, fnCallback, oSettings) {oSettings.jqXHR = $ .ajax ( { "url": SURL, "डाटा": aoData, "सफलता": fnCallback, "त्रुटि": समारोह (एमएसजी) {चेतावनी (एमएसजी);}, "डेटाप्रकार": "jsonp", "कैश": झूठी}) ; }, जब मैं यह अनुरोध करता हूँ, तो सर्वर प्रतिक्रिया देता है। स्थिति कोड: 200 ठीक कैश-नियंत्रण: अधिकतम-आयु = 0 सामग्री- भाषा: एन सामग्री प्रकार: आवेदन / जावास्क्रिप्ट समाप्ति: गुरु, 12 जुला 2012 06:23:18 GMT Last-Modified: गुरु, 12 जुला 2012 06:23:18 GMT Vary: Accept-भाषा, कुकी और रिस्पांस बॉडी में एक जेसन डेटा। लेकिन अजाक्स कोड का कहना है कि इसमें एक त्रुटि है, और "त्रुटि" कोड ब्लॉक में जा रहा है। इसकी स्थिति 200 है, जबकि यह त्रुटि क्यों दे रहा है? अद्यतन: Django सर्वर कोड में: response_dict = {} response_dict.update ({ 'aaData': aaData}) response_dict.update ({ 'sEcho': sEcho, 'iTotalRecords': iTotalRecords, 'iTotalDispla...

- Where Developers Learn, Share, & Build Careers

I'm in the process of creating a web-based chat app written in Ruby. I also want to provide the ability to connect to this chat server using an XMPP client. That's why I'm looking for a library which is a real XMPP server that I can add to my existing ruby ​​code (or using something like radis in between). However, I have a hard time finding a server library (though I can find many libraries to work as a customer who consumes or interacts with the server). I'm not feeling too much with XMPP so that I can demand the wrong thing. Can you use XMPP server libraries? XMPP server libraries usually do not mean much, because XMPP servers (such as an HTTP server for example) run as standalone long-term processes. You usually do not embed them into your application. XMPP is also one step ahead of HTTP - there are there HTTP server libraries that allow you to listen to a port, and send a response. The XMPP is completely different in this aspect - the XMPP sessions last lon...

Cucumber: Instance variable defined in support file not being passed to step definition -

मेरे पास सुविधाओं / समर्थन में फ़ाइल api_extensions.rb है: की आवश्यकता होती है 'मेकेनाइज' की आवश्यकता होती है 'जेसन' मॉड्यूल की आवश्यकता होती है ApiExtensions def initialize @agent = Mechanize.new @api_header = {'Accept' = & gt; 'एप्लिकेशन / जेसन', 'कंटेंट-टाइप' = & gt; 'आवेदन / जेएसन'} @ एपीआई_आर्स = {'कैंपस की सूची' = & gt; 'Http://example.com/servicehosts/campus.svc', 'सेटिंग की सूची' = & gt; 'Http://example.com/servicehosts/setting.svc', 'लॉगिन' = & gt; 'Http://example.com/servicehosts/Student.svc/login',} एंड एंड वर्ल्ड (अपिया एक्सटेंशन) हालांकि, मुझे अभी भी त्रुटि मिल रही है अपरिभाषित विधि ' [] 'शून्य' के लिए: NilClass (NoMethodError) चरण परिभाषाओं की दूसरी पंक्ति पर फ़ाइल जब मैं ककड़ी चलाता हूं: जब / ^ मैं एक वैध उपयोगकर्ता नाम और पासवर्ड $ / do api_uri = @api_uris ['login'] request_body = {: username = & gt; का प्रयोग करके लॉ...

- Where Developers Learn, Share, & Build Careers

I have restored the database with another database named Database DB 01 It is in STARTED position (Not mounted) and it seems that I can not change the name if it is not mounted, and I can not mount it due to the name, how is it possible to solve this problem? I have a full backup from RMAN DB on my existing server which is hosting database db 01 initdb01.ora is ready and configured with db 01 I will be forward What can I do nid did not help! It asks for the database to mount! I can not mount it ORA-01103: The database name in the control file is not 'DB' 'DB 01' Then set DB_N as DB, restart after opening the database, you can change the database name using the NID utility. SQL & gt; Optional system set DB_NAME = DB scope = sphile; Please see the link:

- Where Developers Learn, Share, & Build Careers

I have a list of strings, which is as follows: 4: 00- 5: 00PM 11: 00-2: 00 PM 12: 00-1: 00 PM 11: 00-1: 00AM And I try to find an effective way of creating the object twice (I think this is the only way to keep track of a limit of time, which I will later add to a date object). It is clear to humans what we mean 11: 00-1: 00 AM, but considering what is an effective way to change it: datetime.time (23, 0 ) Datetime.time (1, 0) Take my current view for the first time, and prepare a PM and AM version, take timeliness with the end time (which is specified) , And less than two differences are correct. This is a simple implementation. & gt; & Gt; & Gt; Def Timelines: ... T1, T2 = Timestar Split ("-") ... Timeformat = "% I:% M% p" ... t1AM = datetime.datetime.strptime (t1 + " AM ", time format) ... t1PM = datetime.datetime.strptime (t1 +" PM ", time format) ... t2 = datetime.datetime.strptime (T2, time format) ... ......

- Where Developers Learn, Share, & Build Careers

I need a report from a database where I need an end result, such as men, women, against city In the end I started with something like the state against the show. SELECT p.StateName, d.CityName, as the API at API Inner Join DB.State P as dbo.Application_Personal_information (APJender). State = PIID Inner Join Dabo CT D on API.City = DT Group by P.T.T.NET, DCT when I do this SELECT p.StateName, d.CityName, count (api.Gender = 'Male) as male, count (api.Gender =' female) as female, dbo.Application_Personal_information as api INNER join dbo.state as p But api.state = p.ID inner jiO dbo.City D on api.City = D.ID Group P. In the form of STATEName, d.CityName this gives me an error in the wrong syntax = pass I also select statement COUNT (select API from API) where As the man's API Gender = 'male'), but but this is not working ... any thoughts? SELECT p.StateName, d.CityName, sum (case when gender = 'male' Then 1 and 0 in the form of a m...

sql server - Avoid generating duplicating random number -

that requires the first 4 four modules per file to be in the form of the name length, as 8 characters Trying to get a random number from the database using the DDMM and the remaining four characters function and the view, similarly I am using the database I have pasted below: Function: create function [dbo] [GenerateRandomNumbersLetters] (@NumberOfCharacters TINYINT) Return as VARCHAR (32) (left (REPLACE ([NewID], '-', ''), @NumberOfCharacters) from dbo. Retrieve Newweed; End: See . See [dbo] Create [RetrieveNewID] as selection [NewID] = NEWID (); My question: is selected in place of SUBSTRING (changed (varchar (10), getdate (), 3), '/', ' For example: 0907CCE7 Each line will be included in the fileNamerandomNUM for example: dba.GenerateRandomNumbersLetters (4) For this, it will provide a random number, but in a scenario randomly generated duplicate, how can I survive from such scenarios, please advice Post-text "itempro...

google maps tiles' center coordinates -

I am trying to create tiles for Google Maps. I use a third-party handler which provides me map images. Handler requires input of the coordinates of the center and the geographical value of the scale. I want to use this handler to create all Google tiles, but I need all tiled centers. Is there any way to calculate the centers of tiles of any zoom level? Thank you in advance! I asked before this question, and felt it later in itself: Watt allows you to change the div pixel center point you want (in my case: wave long).

css - IE showing gap between two div but not in chrome -

We have a simple div. Here's the difference between div GPS data and map div IIE. The second GPS data is a field with a dynamic table using this method document. Tag elementbid ("gpsdad"). InnerHTML = htmlString; And then in IE the table goes down right and does not stop to say 400px so there is no scroll bar generated in Chrome or Firefox. & lt; Body & gt; & Lt; Div id = "left" style = "width: 220px; height: 350px; float: left; background: white;" & Gt; & Lt; Div id = "gpsDataDiv" style = "overflow: auto; maximum-height: 400px; background: white;" & Gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "map" style = "top: 0px; left: 220px; height: 100%" & gt; Map goes here & lt; / Div & gt; & Lt; / Body & gt; you do not have div map with div not position : In full styling, do you have it in a different stylesheet? Some suggestions...

database without operating system -

Is there a database that can work without any operating system? I need to close some code on an embedded device, which runs on a microcontroller without the OS. Give me the best database or alternative suggestions for this scenario. I think you will apply it to an embedded system. If you write your application using C / C ++, use SQLite. C / C ++

How to get the current view name from layout template in Rails? -

Is it possible to get the name of footage presently present in the layout? I did something similar to the CSS name space: # Config / initializers / action_view.rb ActionView :: TemplateRenderer .class_eval do def render_template_with_tracking (template, layout_name = zero, local = {}) # With this gsub, we get a file path / folder1 / folder2 / sffolder / filename.arb To subfolder-filename @ view.instance_variable_set (: @ _rendered_template, template.inspect.gsub (/(\..*)/,) .split ('/') [- 2 ..- 1] .join Do ('-')) Out = Reader_Template_with_tracking (template, layout_ Village, locals) @ view.instance_variable_set (: @_ rendered_template, zero) last alias_method_chain: render_template back tracking end # application.html.erb & lt; Body class = "& lt;% =: @_render_template% & gt; & Gt;

How to get feedback on errors in PHP? -

I wonder how I can activate the errors in .php. When I do PHP at home, I do not always get messages like "No closing bracket on line 232" and there are stuff like this, but when I work, there is no such facility on PHP. It seems that there is something like this from the domain / server, so how to activate it, so that I can easily get errors? display_errors and or a group of php.ini files In you are used at work. In addition, if you use something like this, it will give you a beautiful working environment.

- Where Developers Learn, Share, & Build Careers

I need to print notes in the rdlc report. I due to the long notes to reduce the size of the notes I have a substring function It was written that it works perfectly for notes with more than 30 lengths. But this error shows for notes with a length of less than 30. So I decided to give the status of IFF for the rdlc report field But again this error shows (for notes in length less than 30). Please suggest that there is something wrong with this IFF situation, otherwise please suggest some alternative solutions for this problem. Here's my code. = IIF (field! Notes.toString (.) Length ()> 30, (Field! Notes. Value.ToString (.). Substring (0,30)), Fields! Why not: = iif (lane (fields! Notes value)> 30, left (Fields Notes Value, 30) Fields Notes .Value) And if you are not sure if the datatype notes of the field are a string, then just change the 'Fields! Notes.Value' CSR (field! Notes Value) everywhere

java - Communication between two war files without hardcoding the context root -

I have one ear app with two war files The application flows from one war file to another war file to click on a hyper link. In this case I am working hard on the URL for the spring war. Either way I can define it as a variable. Thank you You can use the HttpClient or AsyncHttpCLient library to send requests from one web application to another web application A reference has been given about AsyncHttpClient. This request will send from one wise file to another with a URL parameter.

Visual Python 2.7 on Kubuntu 12.04 Segmentation fault core dumped -

I have some problems with vpython I used it earlier, Ubuntu 10.4, but I updated it to Kubuntu 12.4 . Ubuntu was working perfectly on vPython 10.4 but now I have a problem with Kubuntu 12.4. I have installed the package Python view with the Maine package manager and when I run a simple code I tried it: Python 2.7.3 (Default, 20 April 2012, 22:44:07) [GCC 4.6.3] Type linux2 on "Help", "Copyright "," Credit "or" license "for more information. & Gt; & Gt; & Gt; * & Gt; From view import & Gt; & Gt; P> 1) 2) sudo apt-get install libgtkglextmm-x11-1.2-dev but it does not help ...

javascript - Inclusion of java script path in JSP -

मेरे पास संरचना के नीचे एक वेब अनुप्रयोग युद्ध है रूपांतरण। रूपांतरण। वाह \ index.html रूपांतरण। वाटर \ एमईएटीए-आईएनएफ कनवर्ज़न। वाइआर \ वेब-एनएफ़ \ वेब। एक्सएमएल रूपांतरण। वायर्ड \ वेब-आईएनएफ \ वास्तविक.जेएसपी रूपांतरण। वेब-इनफ \ जेएस कन्वर्टमेप.जेएस जब मैं अनुप्रयोग का उपयोग करता हूं तब मैं actual.jsp और actual.jsp मुझे यह convertmap.js को शामिल करने की आवश्यकता है जो काम नहीं कर रहा है। मैंने कोड के नीचे की कोशिश की & lt; script type = "text / जावास्क्रिप्ट "src =" / js / ConvertMap.js "& gt; & lt; / स्क्रिप्ट & gt; कृपया आगे बढ़ने का प्रयास करें रूपान्तरण। WEB-INF जे जे कन्वर्टमेप.जेएस से कनवर्ज़न.वर \ js \ convertmap.js यह & lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "/ js / ConvertMap" के लिए संदर्भ से मेल खाता होना चाहिए। js "& gt; & lt; / स्क्रिप्ट & gt;

- Where Developers Learn, Share, & Build Careers

The svn server is behind a proxy server behind the firewall. svn http: // * / * returns does not work: repository permanently transferred; Please move , while svn co svn + ssh: // * / * works well within the local domain of the proxy server. Do you really use the correct URL with the http protocol? Keep in mind that the web access (such as provided by VVVC) is different from svn access ... If you can, You should also verify

events - ActionScript simulate keyboard press -

I'm trying to emulate the pressure of the tab key I searched for a while and I have no answer to this met. I tried: sender event (new keyboard event (keyboardEvent.cdiand, true, wrong, keyboard.TAB, 0, 0, false, false, false); But nothing happens .. Any sign on what is doing wrong? How do I press the keyboard? You can not completely press a key because all users are not input and programmatic. However, a program The user responds (mostly) to input from. By starting an event through the event of dispatch, you (most) are going to rebuild what will happen if that user originated through input. . What are you trying to achieve? Switch focusing on UI-elements?. Insert tab location.

java - How not to audit a join table and related entities using Hibernate Envers? -

I use Eners to be hibernate to audit my institutions. I have an audit entity, Foo , which includes a list & lt; Bars & gt; However, I do not want to audit the bar institutions, in the form of properties, I have written that: @inti @edicated public class Foo {@JoinTable (name = "T_FOO_BAR", joinColumns = @JoinColumn (name = "FOO_ID"), inverseJoinColumns = @JoinColumn (Name = "BAR_ID")) @ManyToMany (Cascade = Persist) @ Indited (targetAuditMode = RelationTargetAuditMode.NOT_AUDITED ) Public listing & lt; Bars & gt; GetBars () {Return bars; }} Now, I want to retrieve an amendment of foo : AuditReader reader = AuditReaderFactory.get (GetEntityManager ()); FU modification = (FU) reader.CreativeTeA () .entensEtrevision (Foo Class, 42) .getSingleResult (); Unfortunately, when I want to retrieve all the data (i.e. when it loads lazy times ), error me ORA-00942: table or view is not present , because Tried to query this: Sel...

ruby - Building has many through relationship rails from existing records -

I am a bit stuck on a form for many through the relationship. At the moment, my models are that many of the songs The Settleist and vice versa can be through allocation. I am currently working on an edit page in which a user can add songs to a setlist. The scene currently looks like this: & lt; H1 & gt; Edit a Setlist & lt; / H1> & Lt; Div class = "row" & gt; & Lt; Div class = "span8" & gt; Do & lt;% = form_for (@setlist) | F |% & gt; & Lt;% = f.label: Date, "Date Set"% & gt; & Lt; Span & gt; & Lt;% = f.date_select: Date% & gt; & Lt; Span & gt; & Lt; Div & gt; & Lt; Div id = "library" & gt; & Lt;% = Renderer 'Library'% & gt; & Lt; / Div & gt; & Lt;% = Renders 'songs_in_set'% & gt; & Lt; / Div & gt; & Lt;% = f.submit "Save", Category: "BTN BTN-Big BTN-Primary"%> & Lt;% end% ...

css - iframe height but not width -

In my Facebook page I've added my iframe app with settings: fixed canvas width (760 px) and height fixed Of 800 px; I am FB Canvas. Sutetogro (90); And it works fine for height but not for width, is it normal? I want my IFrame width to be about 740 pix. I tried with setSize and it only works for height, what do I remember? This is a tabs tab and the settings you specify for the canvas app - for the Pages tab Settings are on the main page of the app settings, in the same section you enter page tab urls and secure page tab url values ​​

php - Block access to files -

संभव डुप्लिकेट: मैं कुछ फ़ाइलों तक सीधी पहुंच को अवरुद्ध करना चाहता हूं ताकि वे केवल शामिल या की आवश्यकता के द्वारा PHP द्वारा उपयोग किया जा सके। मैं क्या कर रहा हूं प्रत्येक फ़ाइल की पहली पंक्ति पर यह है: & lt;? Php अगर (stristr (__ फ़ाइल __, उपस्ट्रैक्ट ($ _ सर्वर ['PHP_SELF'], स्ट्रॉपो ($ _ सर्वर ['PHP_SELF'], "/") + 1))) {हेडर ("HTTP / 1.0 404 नहीं मिला"); बाहर जाएं; }? & Gt; क्या यह करने का एक अच्छा तरीका है, या क्या कोई बेहतर तरीका है? धन्यवाद। एक बेहतर विकल्प वेबसाइट सार्वजनिक क्षेत्र से बाहर एक निजी निर्देशिका में ले जाने के लिए होगा, फिर को शामिल करने के लिए (या समकक्ष सर्वर कॉन्फ़िग) का उपयोग करें और आवश्यक उन्हें ढूंढने के लिए

xcode - Parsing a .csv file from a server with Objective-C -

I have searched for a long time and still no one has found, so I thought I would ask questions myself. In my iPad app, I have the ability to parse the CCV file to populate the table. I'm using to parse CSV files, however, I've only been able to parse local files. I'm trying to use a file from a server, but I'm not getting anywhere. - (zero) alertview: (UIAlertView *) AlertViews clicked Button atindex: (NSITer) button index {if (button index == 1} {// UITdefilled * Answer = [Warning View TextFilmIntex: Button Index]; NSString * fileName = input.text; NSLog (@ "filename% @", filename); CSVParser * parser = [CSVParser new]; If ([filename length]! = 0) {NSString * pathAsString = [[NSBundle main bundle] Pathfoser resource: Type the name of the file: @ "CSV"]; NSLog (@ "% @", Path Asstring); If (pathAsString! = Zero) {[Parcel OpenFile: PathSTestring]; NSMutableArray * csvContent = [parser parsefile]; NSLog (@ "% @", csvContent);...

- Where Developers Learn, Share, & Build Careers

I have a VS The 2008 web application is running on IIS 6. In the web Conif Willy is a section like this: & lt; Location Path = "Public" & gt; & Lt; System.web & gt; & Lt; Authority & gt; & Lt; Allow users = "?" / & Gt; & Lt; Allow users = "*" /> & Lt; / Authorization & gt; & Lt; /system.web> & Lt; / Location & gt; I have a user control that is used on many pages of different places to provide content. I want control for filtering the content based on the location of that page which is current. For example, if there is a control over the ASPX page located in the "Public" folder specified in the above sample, then I should not see some information. How can I do this in my code? It may also be that the web The config setting is completely irrelevant, for this question, you decide. VB or C # OK, I can translate. Maybe something like this? If Path Includes ("public"...

c# - When retrieving records from a MongoDb collection, do the records come back sorted based on the index that was set up for that collection? -

I have a case that looks like this: For example, there is a collection called "Archive" and I Index is set for this and the index looks something like this: {"A": 1, "b": 1, "c": 1} In my code, I am retrieving the record that holds a certain value based on "A": list & lt; Test & gt; Test = test Search (query .aec ("a", fixed value)). ToList (); And all the records are coming back for my surprise in the order stated in the index (climbing "B" climbing "C") I was thinking If this behavior is always expected, whether the records are always sorted by the index, or are I imagining things and this is just a closed matter? PS Records are not recorded in the archive so that it is not a natural order of records. Just with many other dictionary implementations, and subject to change at any time: In the "Natural Order" compilation, the object is defined as the database...

ruby on rails - Rake Task not inserting into database -

I have a ruby ​​on the rail application where I need to run a rake function which will kill twitterstream api and one Enter tweets from a few places in a database For this, I prepared a table called uncat_tweets. My rake job looks like this Tasks: get_uncat_tweets = & gt; : Environment Tweetstream.configure do | C | ... ... Finally "# {UncatTweets.count} Client =" ColorStream :: Client.Nue () Client Place (coordinate). Position | Puts "# {status.text}" in the form t = UncatTweets.new (") T.text = status.text t.long = ... t.lat = ... t.time = .... t. My uncat_tweets model looks like this: Class UncatTweets & lt; ActiveRecord :: Base attr_accessible: lat ,: long, .save! End : Text: time, user end When I run rack get_uncat_tweets works tweetstream and spews out tweets. But rake does not push the database to work. The line puts " # {UncatTweets.count} " . I went to the Rail Console and tried to include the Dummy Value of UncatTwee...

- Where Developers Learn, Share, & Build Careers

I am trying to test for cookies in my request: The 'spec_helper' 'description of cookies' should be set correctly '' request.cookies ['foo'] = 'bar' and end but it will give me the Undefined method returns 'cookies': NilClass . How do I fix it? request object will be zero inside you test case unless you have a method get , post , delete , put , etc. . For example, if you get root_path before request.cookies ['foo'] = 'bar' then your code works Will do

bind jquery event on event -

I'm listening to a click event. When triggered, I need to force a different event (for another element), but it keeps on triggering both at the first event. My code: $ (". Element1"). ("Click", function () {console.log ("trigger element 2" on ("click", function () {console.log ("trigger element 1"); $ (".element2"). );})}); A separate copy of the event handler for .element2 every The bar will be clicked on .element1 . If you want to stop it, remember in a variable that you have already made the handler. var e2bound = false; $ ("Element1") ("Click", function () {console.log ("trigger element 1"); if (! E2bound) {$ (". Element2"). ("Click", function () {Console.log ("Trigger element 2");}) e2bound = true;}}); An alternative solution will be to shut down the first driver when it runs: $ (". Element1"). ("Click", function...

- Where Developers Learn, Share, & Build Careers

I am using configurationmanager.appsetting and I'm getting an error in Cn.Open line The web form code is as follows: Public partial category admin_CheckDocuments: System.Web.UI.Page {SqlConnection cn = New SqlConnection (Configuration Manager. AppSettings ["con" ]); String sql; String str; Secure Zero Page_load (Object Sender, EventEurge E) {cn.Open (); Str = Request.QueryString ["taxid"]; If (! IsPostBack) {filldata (); }} web.config : & Lt; / AppSettings & gt; error A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the example name is correct and SQL Server is configured to allow remote connection. (Provider: SQL Network Interface, Error: 26 - Error specifying server / instance) Due to throwing this problem wrong server name, disabled remote connection and firewall may be blocked. Can you follow the steps g...

haskell - Can any function be reduced to a point-free form? -

A lot of functions can be reduced to point to the free form - but is this true for everyone? For example, I do not think how this can be done: apply2 fx = fxx is the compositor for your apply2 function (if I'm reading things correctly): () Of (s (s (s)) (k (s (s (s))) ((SK))))) "lark", page To ( Edit-In: ) Ends 1 \ fx -> F (xx) . According to the comments of "@GearRatator" given below, it is known as "lark", whereas the function \ f x -> Fx = S (S (K (S (S (K)) (KK) SI Fx = S Q & A; request is requested in the book (aka) made before "Warbler", ( S (KB) S) (KK) SI Fx = CSI Fx = SFIX = FXA . here: (s (s (s) of s (k) (k (s (s))) ((s))))) fx = s (s (s) (k) SK K) (SK K) (SKK)) Fx = - SKK == IS (S (K) K) (K Ii) Fx = = BSB (K) of S. (K) Fx = BF (K) S) X = BF (SIi) X = F (Sii X) = F (XX)

Displaying collections within collections with Backbone.Marionette -

I need to display / edit data that does not fit naturally with the built-in views, which Marianette provides an example to give me examples. Say that I want to list / edit books, each book has an ISBN, a title and 0 or more tags. Basically, the display of information will be tabulated (each word under the tag is a separate tag and can be separately edited / deleted): + -------- - + - --------------- + ----------------------------- + | ISBN | Title | Tag | + ================================================== ======= + + 12345678 | My last summer vacation diary kids | + --------- + ---------------- + ---------------------- ------- + | 12354389 | Day after Novel Future | + --------- + ---------------- + ---------------------- ------- + If the book is only a tag, the composite view / item view will work very well. What I'm thinking, is to create the dynamically fields in the last cell of each row and then use the overall view / help to handle the list of tags. Perhaps it is...

Drupal: How to make a form that captures a value from $_REQUEST[] -

This is a clone: ​​(currently no response) I try to create a form I am getting that value passed from $ _ request . A field is displayed only when the $ _REQUEST variable is present (done) The user The field can be modified The field is valid in any way (modified) value is used In this specific case, Using the user function, but I hope the solution applies to any drop form. Here is a simplified version of my code where there is an additional field to specify the user, they have a favorite result, if they want to register using the following URL: Frequent_User ($ op, $ edit, & $ user, $ category = NULL) {switch ($ op) {// Add additional fields if their case 'register' in $ _REQUEST The values ​​for: if ($ _ request ['fruit'] == 'pineapple') {$ fields ['user_reg_info'] ['Profile_fruit'] = array ('#type' => gt; Stfild '# Description' = & gt; 'your favorite fruit (if applicable)', '# L...

mysql - Manual order in SQL -

If I have a table of things ... ThingName | Thing Category ------------------------- Item 1 | Cat 1 chees 2 Cat 2 thing 3 Cat 3 I first have them type in cat2 , then cat1 , then cat3 Is this also possible? select * ThingCategory = 'cat2' from the case of things, then 1 when ThingCategory = 'Cat1' then 2 when ThingCategory = 'cat3' then 3 and 4 - Maybe the default case should be, the very end

How to highlight lines in Xcode that have been changed -

Is there a way to highlight rows in the file that highlights or changes Xcode? Something like this would be good for search results or warnings and errors. In the toolbar of Xcode, it shows you the current version of the file as compared to the file in the "Show version editor" Will appear as a side view because it was with your last commit (I assume that you are using git).

jar - Eclipse 3.7 Required Plug-ins -

I am currently running Eclipse 3.7 Indigo. My current project is a plug-in project I Wanted to try a product named ISPDF in my current project. That's why I downloaded two essential jar files from binary downloads. Icepdf-core.jar and icepdf-viewer.jar So I have created a new plug-in project from the existing jar. Two jar files have been added to me and the plug-in project has been created. I then exported the project and produced a project jar file. I came back to my existing project where I want to use features of ISPDF. Dependence went on - & gt; Required plug-ins - & gt; My new icePDF plugin was added I am sure that I am missing an important step. Because as soon as I close the ICPDF project in the package explorer. I get an error in my main project. ERROR: The required plug-in is unavailable I do not understand, I have at least 12 other required plug-ins, none of them open it Was this the right way to add and add snow pdf jars to my current project? ...

eclipse - The most oversold java warning? -

संभव डुप्लिकेट: इस के साथ क्या है "धारावाहिक वर्ग एक स्थिर अंतिम सीरियल घोषित नहीं करता है प्रकार का क्षेत्रवार यूआईडी क्षेत्र लंबा" चेतावनी जो एक दशक से अधिक समय तक मुझे गुस्सा दिलाना रखती है? मैं चाहता हूं कि मेरे कोड को चेतावनी दबाने के साथ प्रदूषित न करें और न ही अतिरिक्त कचरा स्थिरांक वहाँ ग्रहण की स्थापना "मुझे उन धारावाहिक चेतावनियों के साथ परेशान मत करो (मैं इस निर्णय पर पुनर्विचार कर सकता हूँ अगर मैं कभी भी इस ख़राब होने पर यात्रा करता हूं)"? विंडो - प्राथमिकताएं बाएं पर फ़िल्टर बॉक्स में "serialVersionUID" टाइप करें पेड़ में हाइलाइट नोड का चयन करें। फिर दाएं पर फ़िल्टर बॉक्स में "serialVersionUID" लिखें। कॉम्बो बॉक्स में "अनदेखा करें" चुनें।

- Where Developers Learn, Share, & Build Careers

Image
I'm on Solar 3.6.1 and trying to figure out that the admin for a non-default handler How to use the console. I tried the following differences: / customhandler / select & amp; Qt = customhandler / select / customhandler None of those works and I have been haunting myself that I am missing something very clear, but I do not think about it can. By looking at the definition of the request handler, I believe you have to add a forward slash in front of the name & lt ; RequestHandler name = "/ customhandler" class = "solr.SearchHandler" & gt; .... and & lt; / RequestHandler & gt;

python - how do i write my function so that when entered it will print the delimeter is too long? -

I was having trouble writing my function so that when more than one character is entered, this statement is That the delimiter is too long and does not return any value. But I do not know how to do it. New to the Python and it will be a great help with some information. Thanks to what I did in my advance. Def my_split (_, _): my_sep = input ("separator:") my_str = input ("sentence:") def main (): # print your main program here (" My_sep "): Print (" Enter Delimiter Character ") (" my result ": my_sep): if (my_sep & lt; 1): print (" delimiter is too long "). Print any of the print ("Enter a string to split:") ("Enter the delimiter letters:") Print ("Result:") Main () if lane (my_sep)> 1: Print ("delimiter is too long") None return But it is not clear where you want to put it in your code. What are you trying to return none ? I think you want something like this: d...