Posts

php - Fatal error: Call to a member function, on a non-object, codeigniter controller -

यहाँ मेरा नियंत्रक profileinfo.php & lt; php वर्ग प्रोफ़ाइल में जानकारी CI_Controller का विस्तार करती है {function सूचकांक () {$ this- & gt; लोड- & gt; सहायक (सरणी ('फ़ॉर्म', 'यूआरएल')); $ This- & gt; लोड- & gt; मॉडल ('एल्यूमिंसर्ट', '', TRUE); $ इस- & gt; load- & gt; पुस्तकालय ( 'form_validation'); $ This- & gt; form_validation- & gt; set_rules ('नाम', 'नाम', 'अपेक्षित'); $ This- & gt; form_validation- & gt; set_rules ('शाखा', 'ब्रैम', 'आवश्यक'); $ This- & gt; form_validation- & gt; सेट_रेल्स ('शैक्षिक रुचि', 'शैक्षणिक ब्याज', 'आवश्यक'); $ This- & gt; form_validation- & gt; सेट_रेल्स ('इंटर्नशिप डिटेल्स', 'इंटर्नशिप विवरण', 'आवश्यक'); $ this- & gt; form_validation- & gt; सेट_रियल्स ('interest_hobbies', 'रुचि और शौक', 'आवश्यक'); $ This- & gt; form_val...

performance - Monitoring Kafka Spout with KafkaOffsetMonitoring tool -

I am using Kafka Split which came with Hurricane- 0.9.2 Distribution for my project This spout I want to monitor the throughput of I tried to use very offset monitoring, but this is not showing any consumer reading on my subject. I suspect, because I have specified the root path in Zuckair to store consumer offsets. How would the cafeteria offset monitor know where to see the data about my cough scout example? Does anyone really tell me where Zokipar keeps data about the subject and consumers of Kafa? Zookie has a file system, how does it arrange data for different topics and their partition? What is a consumer group and how is it translated by Zuciperer while storing consumer offsets? If anyone has ever used a high offset monitor to monitor the throughput of the Kuffa step, please tell me how can I find my toy? Thanks a lot, Pal Shah I used to use a fairly offset monitor Not done, but I can answer the second part. ZuckPer.Connect is the property where you can spec...

javascript - filter defects by dates, selected from combobox rally -

Image
The defects are to be filtered by three conditions: open defect, defect release start date and defect release end date. I'm choosing from date combobox for the release date and the end date of the release. Below is my code _prepareChart: function () {that = this; Console.log ("Start Date", that. _startDate); Console.log ("End date", that._endDate); The property: 'state', operator: '=', value: "open"}, {asset: 'property', 'property': 'state', operator: 'state', auto-load: true, store config: {filter: [ISI] property: ' Release ReleaseStartdate ', operator:' = ', value: that._startDate}, {property:' Release.ReleaseDate 'operator:' & lt; = ', Value: that._endDate}],}, listeners: {load: this._onDataLoaded, // load: this._onDataLoadedfirst, radius: this}}); }, I'm selecting dates from the app screen below You can use the Javascript method Such as va...

Convert Text to Date in SQL Server -

How do I convert text values ​​like "18/06/11" such as "Date 2011-06-18 I have tried the following Convert (char, [InstrumentText], 106) But the value remains in only one format Thanks The correct format for your string will be 103. More Importantly, you do not need to convert datetime to char : (date, [Ins trumentText], 103) If you want to convert it back to string in yyyy-mm-dd format, you can do this: Convert (varchar) (10), Convert (date, [InstrumentText], 103), 120)

c++ - using a conditional type in a .cpp file -

I have a templated class and a type that depends on the template. How can I use this in my CCP file? object.hpp: pair_d = std :: pair and lt; Double, double> Pair_f = std :: pair & lt; Float, float & gt; Template & lt; Typename T & gt; Class Object {Public: Static_AstTort (Study :: ISIm ; value; std :: is_same : value, "type is not allowed"); Pair = typename std :: conditional & lt; Std :: is_same & lt; T, float & gt; :: value, pair_f, pair_d & gt; :: By typing; // conditional type const pair doSomething (T, T) function using const; } object.cpp #include "object.hpp" template & lt; Typename T & gt; Const pair object & lt; T & gt; :: doSomething (TT1, TT2) const {// ....} but I'm getting: Error: Unknown type name 'pair' How can I use the 'pair' type in my .cpp file? Arguments have been named with the same name (t T, TT) , separate those names. Do not do this, yo...

java - What happen in Thread program if start() method calls within it's own body? -

Please give me some vivid explanations in this regard. I have tried a lot, but I could not understand it. I am completely messing with the program's code segment from below, called below in the program like repetition, and even how to start the first method before starting Start method body Thanks in advance. package appletexample; Import java.awt. *; Import java.applet *; Public class appleton extension extends runanble {string str = "this is a simple banner"; Thread T; Boolean B; Public zero init () {setBackground (Color.gray); setForeground (Color.yellow); } Public Zero Start () {T = New Thread (this); B = false; T.start (); } Public run zero () {Four f; (;;) {Try (Paint); Thread.Sleep (200); Ch = str.charAt (0); str = str.substring (1, str.length ()); Str = str + ch; } Grip (Interrupted predefined E) {}}} Public Zero Color (Graphics G) {g.drawRect (1,1,300,150); G.setColor (Color.yellow); G.fillRect (1,1,300,150); G.setColor (Color.red); G.drawString (str, ...

xcode - Black screen in iOS simulator -

I am trying to launch titanium app in iOS simulator, but I get a black screen. Everything worked fine till now, I do not know why it does not work anymore. I get this error: [trace] ** BUILD SUCCEEDED ** [INFO] Finished 14s applications in 136ms [INFO] The application running in iOS is building Simulator [debug] All iOS simulators [Info] IOS Simulator [Debug] Simulator Launches App Launch In Order: "/ Users / Carl / Library / Application Support / Titanium / Mobilesilesdk / OSX / 3.3.0 / iPhone / ios-SIM" Launch /Users/carl/Dev/test/build/iphone/build/Debug-iphonesimulator/test.app "--xcode-directory" /Applications/Xcode.app/Contents/Developer "--sdk 7.1 --family iphone - Rate No --Tall [INFO] IOS Simulator [ERROR] The project failed to produce after 1m 44s 479ms I tried to reset the content and settings in the simulator, but It does not work. In addition, try to reboot, and re-install Xcode with no luck. The project was launched correctly on one de...

Git history graph compared to SVN history graph -

I am trying to understand the difference between a GET and SVN graph. Example: GET History Graph: Example SVN History Graph: For example, I do not really know how to apply that knowledge - my sees like. here: It states that: Em> Second-generation tools seem to be a repository history as a line But it really does not fit with the above SVN example of history graph - either SVN is not the second generation equipment or article is wrong. Can someone help clarify the above? The difference is that, in SVN, everyone is always the same sequence sequence in SVN, one Completely up to date working is a defined thing, and it always orders like nodes. In Git, a repository can be completely "up-to-date" for any other repository but after a certain point in the shared history, the third repository may have a completely different set of nodes. In other words, if I make version 5 in SVN, chronological order is version 4, then finally everyone on the project will ha...

awk - Check which string in certain column is repeated -

I have to see that the string has to be repeated in my column 2. For example: An apple b peach C grapes D peach e peach F. apple My output will be: An apple f apple peach d peach e peach Showing the entire line on the second row with the normal string. If you do not want to store all the files in memory, the best part is that the file Have to read twice $ awk 'FNR == NR {a [$ 2] ++; To print the other lines, in which the second column is counted at least twice. As you reproduce the exact output you received, just pipe it on sort indicates that it was first column 2 and then column Sort by 1: awk 'FNR == nr {a [$ 2] ++; Next} one [$ 2] & gt; 1 file file | Sort -2.2-K1

php - Show images in view from http header -

I create an image in my controller (I use Symphony 2) and when I have my image with my If the reaction comes back, I get it: HTTP / 1.0 200 OK cache-control: no-cache content-configuration: inline; File name = "" content-type: image / JPEG I need to show an image in my view, but if I put it: & lt; Img src = "& lt;? = $ Response?" / & Gt; The browser shows a 404 error and if I I only get HTTP / 1.0 200 OK cache-control: no-cache content-configuration: inline; File name = "example.jpg" content-type: image / jpeg Date: Wednesday, 08 October 2014 14:55:24 GMT X-Sendfile: 67902 I want to show that image Any thoughts? Thank you! You can use the path that displays your image Your controller In:: Header-> Set ('cash-control', 'private'); $ Response- & gt; Header-> Set ('content-type', 'image / jpg'); $ Reaction-> Header-> Set ('content-dispute', 'attachme...

excel - VBA macro find first empty cell on next page -

Is it really true that Excel is impossible to create a macro that jumps on the first cell of the next page ?? Best Relationship sheet. Use Index to find the current sheet indicator, then use Range.Find () to find the last captured cell in column A in the next sheet: Dim NextSheetIdx as Long NextSheetIdx = ActiveWorkbook.ActiveSheet.Index + 1 if NextSheetIdx & gt; ActiveWorkbook.Sheets.Count again as the range set, exit the sub-inset entry category. Insert = ActiveWorkbook.Sheets (NextSheetIdx). Column ("A") _. Find ("*", SearchDirection: = xl pre) if it is not inserted, then do not set anything InsertRange = InsertRange.Offset (1) or set InsertRange = ActiveWorkbook.Sheets (NextSheetIdx). Range ("A1") End if InsertRange.Value = "ayy"

ruby - How to Post data to Volt app? -

I have a case to use, where I want to post some data in my Walt app, but there is not To think a clear way. The app / main / config / routes.rb does not recognize the post method as a Sinatra route. I also tried the walt-outer class connected to the app through config. Ru, and I can post my data in the same Mongo collection which is using Volt. But this data is not reflected in the app unless I refresh the page, which is less than the norm. I was hoping that my responsive models would see changes in DB and reflect on the front end. I think Volts are in Beta, so this feature can not be implemented (or even planned for it). Is it possible to do this? I'm going to create it for a long time so that you request a reverse job (or Maybe another set of classes) In the short term, using the rack is the right way I am in the process of adding a cover to the Mongo API, which knows how to trigger updates. Should be out in a day or two, when I update it here

sql server - Identifying the unique values that form part of a SQL sum query -

I have 2 questions that I would like to work together: 1) A question of geometry The number is within a certain distance of another and the result is only where the count is more than 6 digits; 2) A query returns unique IDs for all points within that distance (without any counting and without at least records) I generate a single query All (and only) records are expressed in the first query, which will be t2 from the new_ref table. (Ideally the output will be in the form of columns in one line, but at the moment I can get the records listed against several rows in the same column, so this is my first objective and I leave the pivot bit later). Obviously, the system is identifying the record to count them, so I think it is possible to ask which records are they? | The second question rejects the result. Should I structure it as a sub-query and if so, how do I do it? The question is 1: DECLARE @radius float = 50 SELECT t1.new_ref, t1.hatrisref, SUM (case when t1.ge...

java - Why does super not refer to the variable in super class? -

In the code below, why is super still reference of subclass variable, and not super class variables? Class Fellin {public string type = "F"; Public fault () {System.out.print ("cat"); }} Public class spreads to cougar felin (public cougar) (system.out.print ("cougar");} public static zero chief (string [] args) {new cougar (.) Go ();} zero go ( ) {Type = "c"; System.out.print (this.type + super.Type);}} Is the subclass variable? You have not declared, therefore this.Type refers to the variable in the Superclass. If you have public String Type is declared; both superclass and subclass, as it is We are expecting you to do the work. But now, only one type variable that you have declared is on the superclass. In addition, this Spoil the kind of erase, because it easily gets confused type what do you mean.

Clojure macro inside another macro: how to generate string from symbol -

The title is not 100% accurate, but let me show you this problem: In short: there is a macro called defxetch (this is part of lib quil , but it does not matter). This signature is basically the defxetch [applet -name] is & amp; Options] , and it creates something and it is tied in a var called applet-name . For the reason, I want to wrap it in another macro - in another thing - - takes an applet-name parameter, to name that name as applet-name-viewport , And I go to defsketch . However, I'm unable to (pprint (macroexpand (nvp test-name 500 500)) , me To understand how to use macroxpand at the above code (def (closeor.core / symbol (closeor.core / stroke (cl.j.or / name 'my-namespace.core / test-name) "-viewport") (quil.applet / applet: Title (clojure.core / name 'my-namespace.core / test-name))) (clojure.core / symbol (clojure.core / str (clojure.core / Name "my-namespace.core / test-name" "-viewport") - This par...

java - Tomcat System.out redirection -

We've got legacy Java application, running on Tomcat. It logs its events in some way incompatible manner, sometimes the system. These stdout / stderr records end in catalina.log where they are mixed with "proper login" events, we want to separate stdout / stderr log streams into separate files (and eventually get rid of them), But we do not know how to do it. The server runs the default composite configuration, but we are open to any other option (such as SLF4J + logback). This explains completely: Just log in to the web: log4j.jar and log4j.properties Web -Inf / Lib and Web-INF / Classes in your web application Create a file called log 4 j.properties with the following content and log it in to $ CATALINA_BASE / lib example4j.properties Example that the output in stdout will end: log4j.rootLogger = info, yourapp #define all appenders log4j.appender.CATALINA = org.apache.log4j.DailyRollingFileAppender log4j.appender.CATALINA.File = $ {catalina.base} / log /...

arrays - How to do Sumif using non-adjacent values in excel only using one instance of unique value matches -

I have data that looks like this in Excel (like Gunt chart): column A column B column C phase 1 phase required to complete 1 day first line 1 1.1 2 line 2 1.2 1 line 3 1.3 1 1.1 line 4 1.4 0 line 5 1.5 1 1.1 You can start steps 1.1, 1.2, and 1.4 just now, but you must start with step 1.3 or 1.5 before completing step 1.1. What can I use to get a total = 3 result in a cell in my spreadsheet? I tried to understand but my column A and column C values ​​do not get close to each other in each row. Apart from this, if this column says phase 1.1 twice in C, then I want to add it only once in line 1 column B. Thanks in advance! If you can use two columns, then I will do this, check the column C in advance. And if it is empty then give the value of column B to the cell: = IF (C1 = "", B1, 0) and Then when you apply it to match your data, you can add that column to a cell using: = SUM (D1: D10)

wininet - How can I download the HTML contents of a webpage using C++ -

इस सवाल का पहले से ही एक उत्तर है: 27 जवाब यहाँ मेरा कोड है #include & lt; iostream & gt; # शामिल & lt; Windows.h & gt; #include & lt; WinInet.h & gt; नेमस्पेस एसटीडी का उपयोग करना; Int main () {HINTERNET h सत्र, एचएआरएल; Char * बफर = नया चार् [1024]; DWORD बफ़र लैन, बाइट्स लिखित; हैंडल फ़ाइलहैंडल; hSession = InternetOpenA (शून्य, 0, शून्य, शून्य, 0); hURL = InternetOpenUrlA (h सत्र, "http://www.google.co.uk", NULL, 0, 0, 0); FileHandle = CreateFileA ("सी: \\ temp.txt", GENERIC_WRITE, FILE_SHARE_WRITE, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, 0); बाइट्सड्राफ्ट = 0; करना {InternetReadFile (hurl, बफर, 1024, और बफ़र लैन); लिस्टफाइल (फाइलहाण्डल, बफर, बफ़र लें, और बाइट्स लिखित, नल); } जबकि (बफर लैन! = 0); CloseHandle (filehandle); InternetCloseHandle (उछालना); InternetCloseHandle (hSession); शेलएक्सिक्यूटेए (0, "ओपन", "सी: \\ temp.txt", नल, शून्य, 1); Cout & lt; & lt; "ऑपरेशन पूर्ण!"; प्रणाली ...

recursion - Stuck with Prolog -

I just started learning Prolog One of the exercises wants me to write back / 2, a real meaning is that when the second list argument is behind the first list argument. And I have to use a paste plant to write backwards. Paste ([], L, L). Paste (L-, L2, L3) I worked for hours for this But still the answer is not answered. What do I have here: Behind [H | T], LREV): - Paste ([X | T], X, LRV) backwards ([], []). Prologues lists are very simple data structures. An empty list has been marked with atomic [] . A non-empty list structure '.' / 2> where the first argument is major and the second argument is tail , the second list is not empty or empty. Has empty list. For non blank lists [a] structure is . '(A, []) [a, b] is the structure . '(A,'. '(B, [])) [a] , b, c] structure is .) tail] absolutely '.' (Head, tail) . [one | [B, c]] is exactly [a, b, c] and t is equal to '.' (...

How to find all the strings in a cell that contains a given substring in excel -

In Excel sheets, each cell contains more than one string. I have to find all the strings containing the given substring. I Example: A1-> What is the formula for printing all the strings containing sub-string in another cell is? In A2, I have to print the string in which the "1" has the A1A2-> As an alternative, you can use this UDF: Public Function GETMATCHES (String as String, String in the form of String) String as GETMATCHES = Join (Filter (Split (worksheet function. Trim ("striginational", ""), Stamach), "" ) Function function Then cell A2 will have this formula: = GETMATCHES (A1, "in")