history

capturing user IP address information for audit

We have a requirement to log IP address information of all users who use a certain web application based on JEE 5. What would be an appropriate sql data type for storing IPv4 or IPv6 addressses in the following supported databases (h2, mysql, oracle). There is also a need to filter activity from certain IP addresses. Should I just treat ...

Why Python language does not have a writeln() method?

If we need to write a new line to a file we have to code: file_output.write('Fooo line \n') Are there any reasons why Python not has a writeln() method? ...

Android read browser history

I want to read browser history in Android phone. I have done some document reading, then I come to know that we can read browser history by android.provider.Browser class. It has : final static Cursor getAllVisitedUrls(ContentResolver cr) ...method which returns Cursor. May I get help to handle Cursor, or any example code to get br...

Ajax back button jquery - Need full example step by step.

Hi. I need help supporting back button with jquery ajax.load method. I have tried a couple of plugins but i cant get any of them to work. I am loading my content like this: $('.pagination a').click(function(){ var url = $(this).attr('href'); ajaxLoad(url,null,'.container'); return false;...

What's the meaning of the PHP Token Name T_PAAMAYIM_NEKUDOTAYIM

What's the story behind the ::'s sometimes token name T_PAAMAYIM_NEKUDOTAYIM I'm mainly interested in knowing if This is an abbreviation for something else This is a phrase in a language other than English, and if so what's the language and what's a rough translation This is some obscure-to-me programming term Drunk Developers T...

IE backbutton works just once (as if browser history has just one entry)

Hi, I'm trying to fix a browser history issue. A customer of ours has a ASP.Net intranet page running for a while now. A colleague made it. Recently they asked to fix the "Backbutton" we made on their page (the application). It looks at the sitemap and when clicked loads the parent page. But in some situations I have to use "javascript:...

When was the NULL macro not 0?

I vaguely remember reading about this a couple of years ago, but I can't find any reference on the net. Can you give me an example where the NULL macro didn't expand to 0? Edit for clarity: Today it expands to either ((void *)0), (0), or (0L). However, there were architectures long forgotten where this wasn't true, and NULL expanded to...

Can I have a shell alias evaluate a history substitution command?

I'm trying to write an alias for cd !!:1, which takes the 2nd word of the previous command, and changes to the directory of that name. For instance, if I type rails new_project cd !!:1 the second line will cd into the "new_project" directory. Since !!:1 is awkward to type (even though it's short, it requires three SHIFTed keys...

Does deleting a branch in git remove it from the history?

Coming from svn, just starting to become familiar with git. When a branch is deleted in git, is it removed from the history? In svn, you can easily recover a branch by reverting the delete operation (reverse merge). Like all deletes in svn, the branch is never really deleted, it's just removed from the current tree. If the branch is ...

back button to ajax gridview page wont save state

hi i have a search page using a number of items in a form to run a search that fills a gridview with data. the whole form is wrapped in an UpdatePanel. the form works a treat - it, based on the form dropdowns etc, calls a webservice and populates a gridview with the results... fairly standard stuff. however, once the grid is bound the ...

Best approach to optimize a record history database

I have a database that keeps record history. For each update to a record, the system will "deactivate" the previous record (along with all it's children), by setting the "Status" column to "0". Now it's not a problem yet...but eventually this system is going to have a lot of records, and history is more important than speed right now. B...

The unmentioned parts of COBOL's history

I'm very curious about old programming languages, especially COBOL, and as Wikipedia couldn't really tell me much about this topic, I decided to ask it here: Was COBOL the first programming language really being used in financial, stock and banking systems? Where exactly was COBOL used? Was it used more frequently than Fortran or BASIC...

After travelling back in Firefox history, javascript won't run.

When I use the back button on Firefox to reach a previously visited page, scripts on that page won't run again. Is there any fix/workaround to have the scripts execute again when viewing the page the second time? Please note that I have tested the same pages on Google Chrome and Internet Explorer and they work as intended. Here are ...

is there a way to switch bash or zsh from emacs mode to vi mode with a keystroke

I'd like to be able to switch temporarily from emacs mode to vi mode, since vi mode is sometimes better, but I'm usually half-way through typing something before I realize I want I don't want to switch permanently to vi mode, because I normally prefer emacs mode on the command line, mostly because it's what I'm used to, and over the yea...

What are the programming religious wars of the generations before our current generation?

Being 32 years old, I did not follow debates in programming, language design, and platforms in the 1960s, 1970s, 1980s, and most of the 1990s. I sometimes hear glimpse of what the major debates were and how they turned the course of history. It makes me wonder what I take for granted. I am curious, what were the debates. The ones I know...

The simplest tabs with history - back button

I looking-for the simplest tabs with history back button, but without ajax-loading files/content, like as slide divs. ...

How can I rewrite the history of a published git branch in multiple steps?

I've got a git repository with two branches, master and amazing_new_feature. The latter branch contains the work on, well, an amazing new feature. A colleague and me are both working on the same repository, and the two of us commit to both branches. Now the work on the amazing new feature finished, and a bit more than 100 commits were a...

Why do Windows environment variable names use a special escape character?

I am curious if there is any history behind why the ^ character is used to escape the special characters <, >, |, &, and ^ in environment variable names in Windows instead the \ character that is typically used to escape special characters. Please note that I realize there may be no reason for this, but I'd be interested to hear if ther...

How to restrict the number of history kept by svn?

For example, I only want 3 records of a certain branch or item. Thank you very much! Update: Thanks for you guys' answer. Maybe it is not a good question. I have one framework repo and several projects referencing the framework. I usually keep working on one project and sometimes I need to update the framework. However, I don't want to...

admin panel recent actions

hello I was wondering if I can get django admin (logged as super user) to display in some kind of "recent actions box", changes other users (non super users) made? Thanx, Luka ...