Recently debug public number function, do not want to submit to the server every time to read the log
So on the server with the Nginx reverse proxy to the server 80 port received the request forwarded to the 127.0.0.1:9000
Then using SSH to tunnel the server 9000 port mapped to my local development machine 80
SSH Tunnel Reference http://my.oschina.net/magicly007/blog/480706
Assume server external domain name www.site.com
The Nginx proxy configuration
' com.google.dagger:dagger:2.0 'Compile ' org.glassfish:javax.annotation:10.0-b28 'It does not rely on the Domain,app,model module. It uses a third-party class library to provide functionality to other modules. Use the Dagger Dependency Injection framework for dependency injection and the Otto Class library for bus-mode communication.second, the entire implementation process brief analysisApp module: Moviesactivity,moviespresenter.Domain module: configurationusecase, Getmoviesusecasecontroller.
Using Redis for seckilling and throttling, and using redis for thinkingI have talked about seckilling and throttling in the group recently. I have never done similar applications, but I have encountered more data and concurrency at work.
Therefore, a simple model is proposed:
Var count = rds. inc (key );
If (count> 1000) throw "already available! "
Using the Redi
[Spring] Send emails using Spring and send emails using spring
The core of Spring Email abstraction is the MailSender interface. The MailSender can be connected to the Email server to implement the mail sending function, such:
The implementation of a MailSender in Spring is JavaMailSenderImpl, which also uses the JavaMail API to send an Email. before using it, y
Original: upload more than 30M files using swfupload, upload components using flashA period of time members of the upload components to use flash swfupload to upload, can be very friendly to display the upload progress, but also fully meet the large file Upload.Later server upgrade to Windows 2008, after changing to IIS7, upload files once more than 30M, there will be 404 errors, and is the upload progress
When I see the CPU time of I/O waiting time is very high, the first thing to check is whether the machine is using a lot of swap space, because the speed of hard disk operation is much lower than RAM. So when the system is running out of memory, start using swap space. The performance of the system can be severely impacted.No matter what you want to access the hard disk operation is finished with the hard d
Forwarding requests using the forward () method of the Requestdispatche R and using HttpServletResponse's Sendredirect () method redirection can make the page go to another page, and now collect the difference between the two:I. Requestdispatcher.forward () methodForward is the server requests the resource, the server directly accesses the URL of the destination address, reads the response content of that U
In Java, it is better to save a password using a character array than to save the password using string.Two reasons:
It is difficult to purge from memory.String is a non-mutable object that is placed in a string buffer to facilitate reuse, so it may be retained in memory for a long time.Any person with access to the memory can easily see the plaintext passwordOf course, the plaintext password should n
Example 1:
void F () {}
int main ()
{
using functionptr = void (*) ();///equivalent to typedef void (*FUNCTIONPTR) ();
FunctionPtr ptr = f;
}Example 2:
typedef unsigned char U1;
typedef unsigned short U2;
Using U4 = uint32_t;
Using U8 = uint64_t;
Example 3:
Using Line_no = std::vectorEquivalent to
the difference between using the left, right, full, and inner joins and using the Where condition statementFrom learning the SQL statement to the present, never used the left and right connection, perhaps someone would be surprised, but it is not, because I have been using the WHERE condition statement. I also want to try the effect, I did a test today, and final
I. Xshell using XFTP to transfer filesClick the Submit button will send you to fill out the mailbox sent an e-mail, which has the download address, click Download xftp-6.0.0085.exe file, download the completion of the installation, after the installation is complete, first switch off, in the Xshell login to their own virtual machine, and then in Xshell press Ctrl+alt +f, it will automatically pop out the following interface just installedDouble-click
Tags: sync digital var size each note MySQL Strong nameFirst, Trigger 1. Triggers are stored in the database as separate objects,2. Triggers do not need to be called, it is triggered by an event to run3. Triggers cannot receive parameters --Application of TriggerFor example: Xiaonei, Happy Net, Facebook, when you send a log, automatically notify your friends, in fact, when you add a log to do a start, and then write entries to the table. --Trigger efficiency is highExample: forum posts, each
Tags: 14 weeks three lessons (March 28)15.4 Xshell using XFTP to transfer filesGo to the page after the download is complete, install and then connect.Both sides can transfer files to each other.15.5 using PURE-FTPD to build FTP serviceVim/etc/pure-ftpd/pure-ftpd.confCheck the process with Port 21Useradd ftp_usera Create user Ftp_usera,-u pure-ftp Specify System user pure-ftp, specify directory-d/data/ftpPU
By-page and by-page sorting, using skip and Take, and using linqskip
Dbconn. bidRecord. orderBy (p => p. bid_id ). toList
The above is the paging sorting method.
Let's talk about what to do.
Dbconn is the Modle object
BidRecord is an entity
P => p. bid_id is the sorting condition.
OrderBy is sorting (followed by conditions), and then you need to query all the data. In all the data, you need to query the da
Notes for using jqGrid and jquery Datatables on the server page using ASP. net mvc + EF, jqgridjquery
Introduction:
I want to publish my blog website. The technical route is ASN. NET MVC5 + EF6 (Code First) + ZUI + various Jquery plug-ins. With this idea, I began to select the UI. After reading a lot of bootstrap templates, I found that even if you use bootstrap, you still need to write css styles by yours
This paper is the official HTML5 training course for Brother Lian it educational institution, mainly introduces: writing html5--with the syntax of ActionScript, using Sprite to realize animationIn the previous article, I have imitated as, joined the Lbitmap and Lbitmapdata classes, and used them to achieve the display of static pictures.This time use a sprite to animate the picture.Still follow the previous idea of handling the display object, add the
PHP blog, PHP technical blog, PHP template-based Smarty usage, PHP template-based Smarty installation, how to configure smarty, smarty tutorial, smarty installation and use, and how to configure smarty
When using PHP to develop large and interactive websites, we often encounter the problem of how to cooperate with the artist. Generally, our solution is to design the page and deliver it to the program designer for development, the delivery artist impro
When using PHP to develop large and interactive websites, we often encounter the problem of how to cooperate with the artist. Generally, our solution is to design the page and deliver it to the program designer for development, the delivery artist improved the page and repeat it several times back and forth. If the programmer is unfamiliar with HTML, it is even more difficult for both parties, and the efficiency is also lower, in this case, template s
Automatically log on to linux (ubuntu) using the putty program on windows using ssh)
Method 1: Use puttygen.exe
Step 1: generate a keyRun puttygen.exe, select the type and length of the key, and use the default SSH2 (RSA). Set the length to 1024.Passphrase can be blank to avoid entering a password at login.
Click Save private key to Save the private key, for example, key. ppk;Copy the content in the puttyge
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.