Bunny's Code Burrow

this is a JS world


  • Home

  • About

  • Archives

  • Tags

  • Search

elicpase update java src

Posted on 2017-04-23

elicpase update java src

  1. stop tomcat
  2. delete the original one
  3. remove and add in server
  4. start the tomcat again

git commond

Posted on 2017-04-23

git

  1. GIT INIT
  2. GIT ADD
  3. GIT STATUS
  4. GIT COMMIIT
  5. 看不同 git diff
  6. git reset+版本号回退
  7. 登陆git,create a new repo

Git基本常用命令如下:

mkdir: XX (创建一个空目录 XX指目录名)

pwd: 显示当前目录的路径。

git init 把当前的目录变成可以管理的git仓库,生成隐藏.git文件。

git add XX 把xx文件添加到暂存区去。

git commit –m “XX” 提交文件 –m 后面的是注释。

git status 查看仓库状态

git diff XX 查看XX文件修改了那些内容

git log 查看历史记录

git reset –hard HEAD^ 或者 git reset –hard HEAD~ 回退到上一个版本

(如果想回退到100个版本,使用git reset –hard HEAD~100 )

cat XX 查看XX文件内容

git reflog 查看历史记录的版本号id

git checkout – XX 把XX文件在工作区的修改全部撤销。

git rm XX 删除XX文件

git remote add origin https://github.com/tugenhua0707/testgit 关联一个远程库

git push –u(第一次要用-u 以后不需要) origin master 把当前master分支推送到远程库

git clone https://github.com/tugenhua0707/testgit 从远程库中克隆

git checkout –b dev 创建dev分支 并切换到dev分支上

git branch 查看当前所有的分支

git checkout master 切换回master分支

git merge dev 在当前的分支上合并dev分支

git branch –d dev 删除dev分支

git branch name 创建分支

git stash 把当前的工作隐藏起来 等以后恢复现场后继续工作

git stash list 查看所有被隐藏的文件列表

git stash apply 恢复被隐藏的文件,但是内容不删除

git stash drop 删除文件

git stash pop 恢复文件的同时 也删除文件

git remote 查看远程库的信息

git remote –v 查看远程库的详细信息

git push origin master Git会把master分支推送到远程库对应的远程分支上

visit a wordpress from anthoer pc

Posted on 2017-04-23

visit a wordpress from anthoer pc

  1. set the wamp on:put online
  2. go to the wordpress:setting:change the url address ip/wp instead of localhost/wp
  3. connect another pc within LAN

type ip/wp

then you will find it

promotion edit

Posted on 2017-04-22

promotion edit

<p>Click <a href="http://microanalytix.co.nz/producttag/22/christmas">here </a>to add all these wonderful items into shopping cart!</p>
<p><iframe style="width: 600px; height: 800px;" src="/Content/files/Promo-Christmas-2016-NZ.pdf" width="600" height="150" frameborder="0"></iframe>&gt;</p>

postFullText_IsSupported

Posted on 2017-04-22

FullText_IsSupported

I moved my website v3.7 from Arvixe to Host4asp.net
In the Backend clicking on Configuration/Settings>General and Miscellaneous Settings I get the following error:

Could not find stored procedure ‘FullText_IsSupported’.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Could not find stored procedure ‘FullText_IsSupported’.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

solution

Run the SQL script “App_Data\SqlServer.StoredProcedures.sql” against your new database to make sure that all your stored procedures are there.

postsolve the problem of Responsive Layout

Posted on 2017-04-22

solve the problem of Responsive Layout

  1. add in styles.css

    .master-wrappermain{
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    }
    
  2. remove the width off

    .master-wrapper-main
    / width:75%;
    margin:0 auto;
    max-width:1170px;
    background:#fff;
    /

  3. add div in root :views/shared/_root.cshtml

        <div class="master-wrapper-main clearfix">
            @RenderBody()
        </div>
    </div>
    

    upload to FTP and test
    considering the IE browser
    change with another way

  4. add text-align in master-wrapper-main
  5. add
    .master-wrapper-main .side-2 li{
    text-align: left;
    
    }
  6. add in master-wrappermain
    master-wrappermain{

    text-align: center;
    

    }

    .master-wrapper-main {
    font-family: arial,helvetica,sans-serif;
    color: #5C5B5B;
    display: inline-block;
    /width:75%;
    margin:0 auto;
    max-width:1170px;
    /
    background:#fff;
    }

    / one column master page /
    .master-wrapper-main .center-1 {
    float: left;
    width: 910px;
    min-height: 400px;
    padding: 10px;
    background: #FFF;
    display: inline;
    border-radius: 5px;
    }

    / two column master page /
    .master-wrapper-main .side-2 {
    float: left;
    width: 190px;
    margin: 10px 0 10px 5px;
    display: inline;
    }
    .master-wrapper-main .side-2 li{

    text-align: left;
    

    }
    update 24012017
    due to the modify of master-wrappermain{

    text-align: center;
    

    }
    it effected other layout including:one column;two column and three column
    we need to add text-align into them.

postadd hover to promotion

Posted on 2017-04-22

add hover to promotion

  1. add class=”has-mega-menu” to li
  2. add div class=”mega-menu”
  3. add class=”row” div
  4. add class=”col-xs-4 col-md-4” //here is the bootstrap desigining ,could be changed according to the different layout
  5. add class=”img-holder”
  6. add a
  7. add img
  8. add ul and li

here is the code

<li class="has-mega-menu"><a href="@Url.RouteUrl("Topic", new {SeName = Html.GetTopicSeName("promotions") })">PROMOTIONS</a>

   <div class="top-menu-triangle"></div>
    <div class="mega-menu">
        <div class="row">
            <div class="col-xs-4 col-md-4 "  >
                <div class="img-holder">
                    <a href="products-on-promotion">
                    <img style="width:50%;height:50%;float:left" src="../../Content/images/step1.png" >
                    <ul style="float:left;margin-top:5px;text-align:left">
                        <li style="list-style:none;color:#757b81">Enjoy our website</li>
                        <li style="list-style:none;color:#757b81">Enjoy our promotion</li>
                        <li style="list-style:none;color:#757b81">Enjoy your account</li>
                    </ul>
                   </a>
                </div>

            </div>
            <div class="col-xs-4 col-md-4">
                <div class="img-holder">
                    <a href="products-on-promotion">
                    <img style="width:50%;height:50%;float:left" src="../../Content/images/step2.png" >
                    <ul style="float:left;margin-top:5px;text-align:left ">
                        <li style="list-style:none;color:#757b81">Find your items</li>
                        <li style="list-style:none;color:#757b81">Add to shopping cart</li>
                        <li style="list-style:none;color:#757b81">Just check out</li>
                    </ul>
                   </a>
                </div>
            </div>
            <div class="col-xs-4 col-md-4" >
                <div class="img-holder">
                    <a href="products-on-promotion">
                    <img style="width:50%;height:50%;float:left" src="../../Content/images/step3.png" >
                    <ul style="float:left;margin-top:5px;text-align:left">
                        <li style="list-style:none;color:#757b81">Convenient</li>
                        <li style="list-style:none;color:#757b81">Fast</li>
                        <li style="list-style:none;color:#757b81">Easy</li>
                    </ul>
                   </a>
                </div>

        </div>
    </div>

postreact native use swipe out

Posted on 2017-04-22

react native use swipe out

The component I use is https://github.com/dancormier/react-native-swipeout
but there is some codes needs to be updated.
for some of them should be updated from ES5 TO ES6
and for index

import React from 'react';
var tweenState = require('react-tween-state')
import {PanResponder, TouchableHighlight, StyleSheet, Text, View} from 'react-native';
var styles = require('./styles.js')

posthow to add hover for Aboutus

Posted on 2017-04-22

how to add hover for Aboutus

<li class="has-mega-menu"><a href="@Url.RouteUrl("Topic", new {SeName = Html.GetTopicSeName("aboutus") })">ABOUTUS</a>

    <div class="top-menu-triangle"></div>
  <div class="mega-menu">
      <div class="row">
          <div class="col-xs-4 col-md-4 "  >
              <div class="img-holder">
                  <img style="width:50%;height:50%;float:left" src="../../Content/images/who.png" >
                  <ul style="float:left;margin-top:5px;text-align:left">
                      <li style="list-style:none;color:#757b81">MicroAnalytix is an Australian owned laboratory supply company which was established in 1988. Since then, the organisation has grown to providing laboratory products ...<a href="about-us" style="text-decoration:underline">Learn more</a></li>
                  </ul>
                 </a>
              </div>

          </div>
          <div class="col-xs-4 col-md-4">
              <div class="img-holder">
                  <img style="width:50%;height:50%;float:left" src="../../Content/images/what.png" >
                  <ul style="float:left;margin-top:5px;text-align:left ">
                      <li style="list-style:none;color:#757b81">We have purpose built offices in Melbourne, Queensland with our head office and warehouse located in Sydney. Auckland, in New Zealand's North Island is our NZ head office ...<a href="about-us" style="text-decoration:underline">Learn more</a></li>

                  </ul>
                 </a>
              </div>
          </div>
          <div class="col-xs-4 col-md-4" >
              <div class="img-holder">
                  <img style="width:50%;height:50%;float:left" src="../../Content/images/about.png" >
                  <ul style="float:left;margin-top:5px;text-align:left">
                      <li style="list-style:none;color:#757b81">More recently, Microanalytix has been focusing on the introduction of new product lines and have become sort after technical advisors on numerous applications and products...<a href="about-us" style="text-decoration:underline">Learn more</a></li>

                  </ul>
                 </a>
              </div>

      </div>
  </div>

postadd keywords in searchbox

Posted on 2017-04-22

add keywords in searchbox

path:theme/customMicroanalytix/views/shared/headers.cshtml

add in

<div class="search-box"> the following codes as below
     <div>You may like:&nbsp;&nbsp;
        <ul>
            <li style="width:100px;"><a href="search?q=Filter+paper" target="_blank">Filter Paper</a></li>
            <li style="width:100px;"><a href="search?q=Filter+paper" target="_blank">Membrane filter</a></li>
            <li style="width:100px;"><a href="search?q=Filter+paper" target="_blank">Syringe filter</a></li>
        </ul>
  </div>
1…141516
Jenny Zeng

Jenny Zeng

Loving code ,especially javascript, React Native

155 posts
37 tags
GitHub Linkedin
© 2020 Jenny Zeng
Powered by Hexo
Theme - NexT.Pisces