w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to view notes in notepad
You can create a new activity. Copy and modify stuffs from the NoteEdit class if you want to make it quick and dirty. If you have time, you should spend some time think about design and follow DRY as Code-Guru suggests "Copy and paste coding is a poor design". public class NoteView extends Activity { private NotesDbAdapter mDbHelper; private TextView mTitleText; private TextView mBodyText; private Long mRowId; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mDbHelper = new NotesDbAdapter(this); mDbHelper.open(); setContentView(R.layout.note_view); setTitle(R.string.edit_note); mTitleText = (TextView) findViewById(R.id.title); mBodyText = (TextView) findViewById(R.id.body); mRowId = (savedInstanceState == null) ? null

Categories : Android

Web Deploy Command Line Logs in Event Logs (Updated / Inserted / Deleted Files) in event logs
I don't believe you can log the activities to the event log, but what you can do is use the -xml parameter to output the changes in XML format. You could then use this to log to the event log via a Powershell script, for example.

Categories : Iis

I can't view logs from my database
You should look at using a content provider and cursor loaders, it's a bit of work but it's probably the best way to be able to share data due to a couple of reasons, see for my opinion on content providers see Android: What is better, using a SQLiteCursorLoader or implementing a ContentProvider? These links might also help How to use Loaders in Android and Content Providers part 1 Hope this helps

Categories : Java

View all transaction logs in SQL Server 2014
As far as I know your only options for this are: Third party tool ApexSQL Log (Red Gate has a free tool but only for SQL Server 2000) Undocumented commands such as DBCC LOG or fn_dblog. Change data capture – this is SQL Server feature that automatically creates history tables but its only available in enterprise edition We are also evaluating SQL Server 2014 CTP 1 for it’s in memory features but I haven’t been able to find anything on this topic. I don’t really believe MS is going to allow this any time sooner. Right now their focus is on enterprise level features such as high availability, in memory queries and such… Also, they have their own version of this in CDC.

Categories : Sql Server

Transaction Performance Impact of Materialized View Logs
Yes, there will be an impact. The materialized log needs to be maintained synchronously so the transactions will need to insert a new row into the materialized view log for every row that is modified in the base table. How great an impact depends heavily on the system. If your system is I/O bound and you've optimized it so that physically writing the changes to the base table is a significant fraction of the wait time, the impact will be much greater than if your system is CPU bound and most of your wait time is spent reading data or performing computations. If you are really concerned about the performance of the OLTP system, it would make sense to offload reporting to a different database on a different server. You can replicate the data to the reporting server using Streams (or Gol

Categories : Oracle

Is there a way to view my web-apps tomcat logs in a browser real time?
A simple example would be: Servlet (change path of log file as needed): @WebServlet(name = "Log", urlPatterns = { "/log" }) public class LogServlet extends HttpServlet { private static final long serialVersionUID = 7503953988166684851L; public LogServlet() { super(); } @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Path path = FileSystems.getDefault() .getPath("/path/to/tomcat/logs", "catalina.out"); StringBuilder logContent = new StringBuilder(); logContent.append("<pre>"); try (BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8);) { String line = null; while ((line = reader.readLine()) != null) {

Categories : Java

How to conveniently store common logs and client specific logs
I would have an xml file that contain the appenders to specify what packages go into what log file. You can then load the xml file in your application entry point. Below is an example I have used in my current project <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <!-- appenders --> <appender name="console" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.out" /> <param name="threshold" value="error" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%t] %p %c - %m%n" /> </layout> </appender> <appender name="codebaseXAppender" class="org.apache.log4j.RollingFileAppender"> <

Categories : Java

How to set intellij to show logs in the logs tab and not the output tab
In the application server Run/Debug configuration open the Logs tab and specify the full log file path there. You can just search your disk for algo_js.log file and specify its location.

Categories : Spring

Get iPhone Logs(not crash logs)
Got a breakthrough!!. We need to re-direct NSLog to a file like this and then access the file. - (void)redirectNSLogToDocumentFolder{ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *fileName =[NSString stringWithFormat:@"%@.log",[NSDate date]]; NSString *logFilePath = [documentsDirectory stringByAppendingPathComponent:fileName]; freopen([logFilePath cStringUsingEncoding:NSASCIIStringEncoding],"a+",stderr); } http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/

Categories : IOS

Intellisense in notepad++
I don't know if this is exactly what you're looking for, but Notepad++ (current releases) have a form of this known as AutoComplete - go to Settings > Preferences > Auto-completion and tick the enable auto-completion for each input* button. As for the Firefox OS API specifically, I don't know if that works. But I know you can achieve the intellisense effect with languages themselves, anyway. Keep in mind the differences between "Function Completion" and "Word completion" inside auto-complete: Function Completion uses external cues to tell you exactly what you're trying to write in, as it autocompletes functions from an API. Word completion meanwhile may be more helpful in your case; If Firefox OS API can't be worked into NPP, you can at least auto-complete functions that you've already

Categories : Firefox

Notepad++ Any Character
Turn on regular expression mode in Find, with ". matches newline" enabled: Search for: ID.s.*[ ]+Debt:s.*$ Older versions of Notepad++ have difficulty matching multi-line regexes, be sure to have version 6+ Notepad++ for this to work.

Categories : Search

Am I stuck with Notepad++?
Any IDE can be used to use MSSQL with PHP, the IDE doesn't actually do anything in relation to the database. Your PHP interpretor only sees PHP text files and executes them when needed, and manages everything that is database related. If you are looking for a good IDE, PHPStorm is a very good choice : http://www.jetbrains.com/phpstorm/

Categories : PHP

Using regex in notepad++
You might try: Find: d*.d* MB (yes, there's a space before the first d). Replace with nothing. d stands for a digit in regex, and you need to escape the dot since the dot is a wildcard in regex. * is an operator and means 0 or more times. The square brackets is a character class and would otherwise match any one of space, M or B. Just remove them here.

Categories : Regex

RegEx Notepad++
I suggest a two step approach. First get all the lines with the STNO and a number. Second remove everything except the number. Select the Mark tab in the find dialogue. Ensure Bookmark line is ticked. In the Find what box enter STNO:s*d+ and then click Mark all. Access Menu => Search => Bookmark => Copy bookmarked lines. Then paste into another buffer. Alternatively, to work in the same file use Menu => Search => Bookmark => Remove unmarked lines. Now you should have all the wanted lines in a buffer. Do a regular expression search and replace setting Find what to be ^.*STNO:s*(d+).*$ and Replace with to 1. Then click Replace all. The above assumes that there is only one number to be found per line. ========================= As only the numbers are wanted, another method would be to p

Categories : Regex

regular expression in notepad++
If you want to match everything from to_date( up to the closest ), search for to_date([^)]*) (using the Perl regex option). Explanation: [^)]* matches any number of characters except ).

Categories : Regex

.append not working in Notepad++
You're appending a div to the html element: $("html").append("<div><form> Category Name: <input type = "text">") You should put it in the body or below, not in the html element. $("body").append("<div><form> Category Name: <input type = "text">") While some browsers may show the div anyway, you're creating an invalid structure. Sticking to a valid one is probably best. (Note that creating this via the DOM is totally different from actually writing an HTML file with that content. There are "optional" tags in serialized HTML — such as that from a file or URL — but that's different from building an invalid structure via the DOM.) It's also probably a good idea to include the closing tags in the fragment you're appending: $("bo

Categories : Jquery

Regex substitution with Notepad++
replace _(.) with U$1 will give you: cdCodBus nmNumberEx cdGoal and for your I can also use other tool but if it doesn't get the problem more troublesome I suggest you try vim.

Categories : Regex

Need help creating an expression in Notepad++
Check the Regular expression box in the Replace dialog. Use (.*.)([A-Z]) in the Find what, and 1</p><p>2 in the Replace with. Given this text: tradition of storytelling.Advertisers, TV programmers, tradition of storytelling".Advertisers, TV programmers, tradition of storytelling'.Advertisers, TV programmers, tradition of storytelling).Advertisers, TV programmers, Replace All using the above values results in tradition of storytelling.</p><p>Advertisers, TV programmers, tradition of storytelling".</p><p>Advertisers, TV programmers, tradition of storytelling'.</p><p>Advertisers, TV programmers, tradition of storytelling).</p><p>Advertisers, TV programmers,

Categories : Xml

Delete every other line in notepad++
I don't think there is a feature in Notepad++ that will automatically delete every other (or every nth) line, but if you wrote a short conversion program it would only take a few minutes. The pseudocode would look something like this: 1. Create a StreamReader and StreamWriter (make sure you are not trying to read from and write to the same file) 2. While (StreamReader is reading lines) increment i. You could mod it by whatever number n you wanted in order to delete certain lines. Then have a conditional clause that would write out if i%n == 0 or whatever you specify. 3. Close the program. That doesn't exactly answer your question, but I hope it helps.

Categories : Csv

Understand how to use backtick with notepad(MS)
Notepad exclusively uses Windows CRLF EOL markers. To get your line breaks to show in Notepad, use this: `r`n Reasonable text editors (read: almost everything but notepad.exe - I'm partial to Notepad++) handle all EOL styles properly - CRLF, CR, and LF.

Categories : Powershell

Any suggestions for the c++ debugger for notepad++?
As far as I know there isn't a debugger for c++ on notepad++. You might wanna check out some IDE's like Eclipse with CDT, or you can try Microsoft's Visual Studio if you are using Windows.

Categories : C++

Accessing data of notepad
An alternative to a simple load is to use fscanf or textscan, as in fid=fopen('accessing_data_of_notepad.txt') dat = textscan(fid,'%s') fclose(fid) Your data will be in cell array dat. You can modify the format specifier to suit your needs, for instance if you want all of the numbers you can use something like fid=fopen('accessing_data_of_notepad.txt'); dat = textscan(fid,'%d %d:%.3f %d:%.3f %d:%.3f') fclose(fid); Values 0.009 0.056 6.009 will be in dat{3}, dat{5} and dat{7}

Categories : Matlab

Notepad++ How to replace everything in between certain lines
Regex is your friend. Ctrl-H (Find/replace) and enable regular expressions (bottom left of dialog). {s*}$ replace with: { whatever you want } Regex Match Explanation: {} are reserved, so escaping them will match the actual brace character s of course will match all whitespace (including new lines and tabs) $ would be the end of the line; this just helps the match in the replace would insert new lines where it makes sense; these are optional.

Categories : Regex

Notepad++ range replace
You might be able to leverage regular expressions. The range limitation makes it more difficult, but with 2 different replaces, I think we can manage it. (The complication comes from the fact you don't want to replace values like 900.4.3.) Back up your file, just to be safe. Open the Replace dialog, and change Search Mode to "Regular expression". Enter birth_date="[678]dd.d+.d+" in "Find what:". Enter birth_date="451.1.1" in "Replace with:" Press Replace All. Change "Find what:" to birth_date="900.1.1". Press Replace All. Then check to make sure it did what you wanted. A differencing tool might be helpful there. (You can compare the modified file with the back up.) The two different regexes are necessary because of the range. The first one catches anything starting with 6, 7, or 8 plu

Categories : Python

Turbo C Database in Notepad
Just few easy steps. Your notepad is a file so open that file by fopen(const char * filename, const char * mode). When you open the file read the file by fread(void * ptr, size_t size, size_t count, FILE * stream) Now final step... Print that on console or anywhere you want, You can use fwrite(const void * ptr, size_t size, size_t count, FILE * stream) for that operation. I hope will help you to write the code. do not forget to apply all error checks.

Categories : C++

Opening a notepad from a button in VB.net
I think you may be using the wrong approach with a FileStream. Instead look to allow a user to select a file, then use Process.Start to open Notepad. Take a look here for examples on selecting a file. The page here then details Process.Start. I'm happy to provide more code samples directly here, but those two pages should be sufficient.

Categories : Vb.Net

Vim and Notepad++ show different indentation
Marius gave the correct answer in comment, I suggest using set listchars=tab:»·,trail:· set list in your .vimrc. It will display tabulations and trailing spaces at the end of lines. You might also want, but this is a matter of personal reference, to add the following to make sure, that every every time you use Tab, you actually insert the same number of spaces. In my example, a tabulation corresponds to 4 spaces, but you can use something else. set shiftwidth=4 " used by >>, << and tab. set tabstop=4 " number of space characters used when displaying TAB set expandtab " replace TAB by spaces set softtabstop=4 " will erase 4 spaces at once when using BS in the begining of lines only Finally, to apply these new setti

Categories : Vim

Updating a clock on a notepad tab
Use after which will call the function after given time. from Tkinter import * from ttk import * import time root = Tk() root.geometry('1000x900') root.title("Astronomical Observing Recording Program") frame1 = Frame(root, name='frame1') frame1.pack(fill=BOTH) welcome_message = "Hi" #shortened root.protocol("WM_DELETE_WINDOW", frame1.quit) nb = Notebook(frame1, name='nb') nb.pack(fill=BOTH, padx=2, pady=3) welcome_screen = Frame(nb, name='welcome_screen') Label(welcome_screen, text=welcome_message).pack(side=LEFT) nb.add(welcome_screen, text='Welcome') time_screen = Frame(frame1, name='time_screen') lb_current_time = Label(time_screen) lb_current_time.pack(side=TOP) lb_gmt_time = Label(time_screen) lb_gmt_time.pack(side=TOP) nb.add(time_screen, text='Time Bar') def update_time():

Categories : Python

Notepad++find/replace regex
I think something like this should work. It's not tested, though. Find: ^d{5}) + d{4}:d pushstring "(.*)"$ Replace: http://static-0.farmville.zgncdn.com/1

Categories : Misc

svg edit in notepad and stream in browser
Ok im kind of a kind of a novice but here's my go. How about using an iFrame as the window that displays the needle and puting a timer that refreshes the iframe every 5 seconds for example?

Categories : C

Notepad++ Regex for URL case to lower
This regular Expression should work to find the URL with capital letters: (http.*[A-Z].*.[a-zA-Z]{2,4}) Note that you do need to check the "Match case" option Under "Replace with" use L1 How it works: The parentheses mean you are going to store the result found with what is between them. In this case the whole thing is stored in 1 We then start by looking for http followed by anything (.*) until a capital letter [A-Z]. Then more anything until a period followed by 2-4 letters (.[a-zA-Z]{2,4}) If you have further questions, leave a comment.

Categories : Regex

empty notepad file instead of the one written on in c#
The problem here is that you are opening the file first in notepad and then writing data to it. Since file is already opened in notepad so it will not show changes. But if you open file again in notepad it will display data written to it.

Categories : C#

is there a way to open notepad++ inside of my form?
Is there a way to do this? You can't embed a program like Notepad++ directly into your form. However, you could use ScintillaNET to add an editor directly within your program. ScintillaNET is based on Scintilla, which is the underlying code used by Notepad++ and many other software products.

Categories : Vb.Net

Opposite regex for years notepad
This is the best I could come up with: Find: ^.*?(?<digits>d{2}-d{2}|d{2,4}).*?$ Replace with: 1 Here's an online test: http://regex101.com/r/nY6uE5 It replaces all rows OK, except the one that doesn't match (QASHQAI 2+) After applying this replace, you can get rid of the non-match rows, by replacing ^.*[^d-].*$ with an empty string. Update: OK now I understood the requirement that the digit pattern must be preceded by a space. The regex should be: ^.*?s(?<digits>(d{2}-d{2})|(d{2,4})).*?$ (http://regex101.com/r/dN2sH9)

Categories : Regex

Launching notepad using JButton and ActionListener
Try something like... Desktop.getDesktop().open(new File("C:/Users/Computer/Desktop/text.txt"))); Take a look at How to Integrate with the Desktop Class for more details...

Categories : Java

Getting perldoc to work in notepad++ and NppExec
Perldoc is not a part of the Perl language. It is a program that is part of the core distribution. You'll likely find a perldoc.bat in your ActivePerl install if you look for it. So that's why: perldoc perldoc works from the command line (because that's how it is intended to be invoked. But fails miserably when you ask Perl to execute 'perldoc' command. It tries valiantly to find a method, defined somewhere in all of the modules that have been included, but finding none, tells you so. So if you want to write a Perl program to execute perldoc, you could use something like this: print `perldoc perldoc` But you're much better off using a bat file, or its equivalent in your version of windows.

Categories : Perl

Matching a line not containing a word in Notepad++
Make sure that you upgrade Notepad++ to version 6, as they changed quite a lot in the regex engine. Especially line breaks and lookarounds were a bit problematic in earlier versions.

Categories : Regex

How to change the path for "run command" "notepad"?
If you are like me you use windows run command all the time. I hate using the mouse to point and click a shortcut on the start menu. WIN-R are probably the two most over used keys on my keyboard. After thinking about if awhile I hunted down how the run command works. It turns out that it makes a call to ShellExecute, which I guess is not too surprising. The next thing I wanted to find out was exactly how the commands are resolved. The following is an ordered list of how they are resolved ([1]): The current working directory The Windows directory (no subdirectories are searched) The WindowsSystem32 directory Directories listed in the PATH environment variable The App Paths registry key Naturally the next thing I wanted to do was customize existing commands or add new comm

Categories : Windows

Using Regex in Notepad++ to Replace a Character
There are two options. You could use capturing and write back what you matched (in addition to the quotes): ([a-zA-Z0-9]{16},)([a-zA-Z]+) Each set of parentheses generates a captured group. You can reference what they matched with $n in the replacement string: $1"$2. Note that there is no need to escape the comma. The alternative is lookarounds. What you match inside a lookaround is not part of the match, so it doesn't get removed. If you put everything around the desired position in lookarounds, you'll match a position instead of a string, and the replacement string will simply be inserted in that position: (?<=[a-zA-Z0-9]{16},)(?=[a-zA-Z]+) And replace that with ". In any case, make sure to upgrade to Notepad++ 6. Finally note that in both cases the + at the end is irreleva

Categories : Regex

html beginner coding with notepad
I guess you just forgot to close <p> and also the span id is missing a quote This should work: <body> Dit is mijn eerste website. <p> Mijn naam is: <span id="naam"> Stijn Bastiaansen. </span> </p> <p> <span id="schuin"> Ik volg deze opleding aan het ICT-Lyceum van het Roc Tilburg. </span> </p> <p> <span id="centreren"> Tekst centreren </span> </p> <p align="right"> of rechts uitlijnen </p> <p>kan ik ook al.</p> </body>

Categories : HTML



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.