-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote.txt
More file actions
678 lines (517 loc) · 32 KB
/
note.txt
File metadata and controls
678 lines (517 loc) · 32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
sow/plant ð seeds
grow avocado tree from seed
mulch : a protective covering (as of sawdust, compost, or paper) spread or left on the ground to reduce evaporation, maintain even soil temperature, prevent erosion, control weeds, enrich the soil, or keep fruit (as strawberries) clean.
m-w.com/dictionary/griddle
merriam-webster.com/dictionary/poached%20egg
sow/plant the seeds of something: to do something that makes a process or feeling start to develop.
programmatically enter text and click button, click link in website
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
liquid sandbox
Knowledge-Hoarding Expert
wreak havoc
content agnostic
System.gc();
java log TRACE
bug bounty program
crack coding interview pdf
code complete pdf
java pass by value or pass by reference
java best way to pass large objects
animated image
BPG (Better Portable Graphics)
best alternative to animated gif
classic chess game -> animated image
en2mn
underwear
thumb tack (North American English) or push pin
裾上げ/すそあげ hemming
hem stitch
octet stream vs binary file
e.g. 7z
https://www.guerrillamail.com/compose
@SuppressWarnings("finally")
finally block fails to execute only when system.exit() is invoked or current execution is interrupted or JVM itself crashes due to some reason.
How to stop smirking and laughing during a serious situation or an inappropriate time?
credit vs debit
sql injection
wifislax.com
http://itscompiling.eu/2016/04/11/generating-random-numbers-cpp/
[0] https://github.com/PenturaLabs/Linux_Exploit_Suggester
[1] https://code.google.com/p/unix-privesc-check/
* The Web Application Hacker's Handbook
* Hacking: The Art of Exploitation
* The Database Hacker's Handbook
* The Art of Software Security Assessment
* A Bug Hunter's Diary
* Underground: Tales of Hacking, Madness, and Obsession on the Electronic Frontier
* TCP/IP Illustrated
http://pastebin.com/raw/0SNSvyjJ
Phineas Fisher hack back
vigilante : a member of a volunteer committee organized to suppress and punish crime summarily (as when the processes of law are viewed as inadequate); broadly : a self-appointed doer of justice.
the whole exposé is quite a long read, we're going to provide a summary, but we recommend checking out Phineas Fisher's post for the finer tips on various hacking techniques and pen-testing tools.
Safe Clearing of Private Data
memset()
stack heap
http://www.viva64.com/en/b/0388/
http://www.viva64.com/en/b/0391/
Detecting Overflows of 32-Bit Variables in Long Loops in 64-Bit Programs
http://www.viva64.com/en/b/0385/
採番 id bigint NOT NULL DEFAULT nextval('wz11tt_002_id_seq'::regclass)
sql select all data inserted after particular time
registry hack that will enable “Open Command Window Here” item without holding down the shift key.
neo is a prefix from the ancient Greek word for young, neos (νέος).
xls -> save as CSV -> replace ?(NULL)? with EMPTY -> save as utf-8 -> DB import
Multi-Dimensional Data Structure(mdd)
Purely Functional Data Structures
Trunk-Room for luggage (self storage)
griddle
wok
saucepan
poached egg
Simmer the stew for 40 minutes or until the sauce has thickened.
The dispute simmered for years before any progress was made.
Long-simmering tensions between the two groups eventually sparked violence.
simmer
1: to cook (something) so that it is almost boiling for a certain period of time
2: to be filled with a strong feeling that is difficult to control or hide
3: to be felt strongly by someone without being directly shown or expressed.
patzer: an inept chess player
inept
1: lacking in fitness or aptitude : unfit <inept at sports>
2: lacking sense or reason : foolish
3: not suitable to the time, place, or occasion : inappropriate often to an absurd degree <an inept metaphor>
4: generally incompetent : bungling <inept leadership>
Canadian English (CanE, CE, en-CA)
The core of Canadian English is a pervasive ambivalence.
ambivalence
1: simultaneous and contradictory attitudes or feelings (as attraction and repulsion) toward an object, person, or action
2
a : continual fluctuation (as between one thing and its opposite)
b : uncertainty as to which approach to follow
Creating and using a .this pointer in C language structs
http://techdiagnosys.blogspot.jp/2016/04/creating-and-using-this-pointer-in-c.html
RMI (Remote Method Invocation)
stopwatch utility C++
stopwatch utility Java
stopwatch utility Python
ack-grep
grep -Ril "text-to-find-here" /
•i stands for ignore case (optional in your case).
•R stands for recursive.
•l stands for "show the file name, not the result itself".
•/ stands for starting at the root of your machine.
grep -rnw '/path/to/somewhere/' -e "pattern"
•-r or -R is recursive,
•-n is line number, and
•-w stands match the whole word.
•-l (lower-case L) can be added to just give the file name of matching files.
•Along with these, --exclude or --include parameter could be used for efficient searching. Something like below:
grep --include=\*.{c,h} -rnw '/path/to/somewhere/' -e "pattern"
This will only search through the files which have .c or .h extensions. Similarly a sample use of --exclude:
grep --exclude=*.o -rnw '/path/to/somewhere/' -e "pattern"
Above will exclude searching all the files ending with .o extension. Just like exclude file it's possible to exclude/include directories through --exclude-dir and --include-dir parameter; for example, the following shows how to integrate --exclude-dir:
grep --exclude-dir={dir1,dir2,*.dst} -rnw '/path/to/somewhere/' -e "pattern"
extract hard-coded string literals from java project
Eclipse Source>Externalize strings
occulted their house from prying eyes by planting large trees around it.(: to shut off from view or exposure : cover, eclipse)
sidewalk
hemorrhoids 痔疾(じしつ)、痔
spartan : a person of great courage and self-discipline.
bank invoice
last straw : the last of a series (as of events or indignities) that brings one beyond the point of endurance.
Clinton Goofs on Russian Translation, Tells Diplomat She Wants to 'Overcharge' Ties.
goof : 1. a silly or stupid person; 2. a careless or stupid mistake.
simpleton : someone who is not very intelligent or who does not have or show good sense or judgment.
Should the benchmark measure time/iteration or iterations/time, and why?
It depends on what you are trying to test. If you are interested in latency, use time/iteration and if you are interested in throughput use iterations/time.
ð
ø
∓ ±
○
excel use cell address as cell value
reference a class in different project in eclipse //project A-->Properties-->Build Path-->Projects-->Add Project B
java :: operator
Stream.of("a1", "a2", "a3")
.map(s -> s.substring(1))
.mapToInt(Integer::parseInt)
.max()
.ifPresent(System.out::println); // 3
//debug/log/info... get current line number function name class name file name at runtime
java thread safe log github
try-with-resources statement
should c++ instance variables explicitly initialized
validate timestamp
Fastest way to tell if a string is a valid date time
public static boolean isNotNullNotEmptyNotWhiteSpaceOnlyByJava(final String string){
return string != null && /*!string.isEmpty() &&*/ !string.trim().isEmpty();
}
https://boldanddetermined.com/how-to-make-money-by-being-yourself/
REST (representational state transfer)
SOAP (Simple Object Access Protocol)
pertinent: relating to the thing that is being thought about or discussed; having a clear decisive relevance to the matter in hand.
delete Windows usage trace
index.dat
Java Persistence query language (JPQL) is used to define searches against persistent entities independent of the mechanism used to store those entities. As such, JPQL is "portable", and not constrained to any particular data store. The Java Persistence query language is an extension of the Enterprise JavaBeans query language, EJB QL, adding operations such as bulk deletes and updates, join operations, aggregates, projections, and subqueries. Furthermore, JPQL queries can be declared statically in metadata, or can be dynamically built in code.
www.java2s.com
http://www.javapractices.com/
Unchecked exceptions:
represent defects in the program (bugs) - often invalid arguments passed to a non-private method. To quote from The Java Programming Language, by Gosling, Arnold, and Holmes: "Unchecked runtime exceptions represent conditions that, generally speaking, reflect errors in your program's logic and cannot be reasonably recovered from at run time."
are subclasses of RuntimeException, and are usually implemented using IllegalArgumentException, NullPointerException, or IllegalStateException
a method is not obliged to establish a policy for the unchecked exceptions thrown by its implementation (and they almost always do not do so)
Checked exceptions:
represent invalid conditions in areas outside the immediate control of the program (invalid user input, database problems, network outages, absent files)
are subclasses of Exception
a method is obliged to establish a policy for all checked exceptions thrown by its implementation (either pass the checked exception further up the stack, or handle it somehow)
It's somewhat confusing, but note as well that RuntimeException (unchecked) is itself a subclass of Exception (checked).
http://howtodoinjava.com/best-practices/java-exception-handling-best-practices/
Initializing fields to 0-false-null is redundant in Java
javap - The Java Class File Disassembler
>javap -c -classpath . Quark
Don't declare local variables before use
http://www.javapractices.com/topic/TopicAction.do?Id=126
Braceless if considered harmful
http://cafe.elharo.com/blogroll/braceless-if-considered-harmful/
Single statement if block - braces or no?
en ru
Get things done in russian: Добиться цели
For convenience, the Java compiler automatically imports three entire packages for each source file: (1) the package with no name, (2) the java.lang package, and (3) the current package (the package for the current file)...
per se
: by, of, or in itself or oneself or themselves : as such : intrinsically
: being such inherently, clearly, or as a matter of law <a per se conflict of interest>
e.g.
Once the state police made it clear that they did not believe his story […] the boy was asked why he had done it.
"I'm not sure," he answered with a small sigh. "I didn't really have a plan per se."
I spooled out a lot of textbook stuff on Jean Dubuffet, Art Brut, the anticultural movement. "Usually we're referring to work created by prisoners, children, and the insane, and I'm not sure that Cracke was any of those, per se."
But she still has weekly appointments with the woman who helped her make the decision about the Summerlin house, and who Michelle insists is not an astrologer per se and who she strongly suggests Chase meet because—like Michelle—his Saturn will be in return soon, too, and that may explain a lot.
enterprise service bus (ESB)
Web Services Description Language (WSDL /ˈwɪz dəl/) is an XML-based interface definition language that is used for describing the functionality offered by a web service.
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
Skip to next Breakpoint (F8 Eclipse)
javax.interceptor.Interceptors
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Formatter;
import java.util.Random;
Java
java Best Practices for Exception Handling
Exception thrown in catch and finally clause
java will finally block be executed if exception is thrown from within catch
java throw exception in catch
Practicum
https://www.cs.cmu.edu/~pattis/15-1XX/15-200/lectures/writingclasses/lecture.html
public class Wz11tm007 extends AbstractPersistable<Wz11tm007>
final TypedQuery<?> query = entityManager.createQuery(criteria);
Why Java does not allow function definitions to be present outside of the class?
a.
String.format("%1$02d",arg1)
java.util.Formatter
// Format a string containing a date.
import java.util.Calendar;
import java.util.GregorianCalendar;
import static java.util.Calendar.*;
Calendar c = new GregorianCalendar(1995, MAY, 23);
String s = String.format("Duke's Birthday: %1$tm %1$te,%1$tY", c);
// -> s == "Duke's Birthday: May 23, 1995"
Y m d -> 2016 03 01
b.
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S",Locale.ENGLISH);
Calendar cal = Calendar.getInstance();
try{
cal.setTime(sdf.parse(date));
}catch(ParseException e) {
}
cal.add(Calendar.MONTH,1);
cal.set(Calendar.DAY_OF_MONTH,1);
cal.add(Calendar.DATE,-1);
Date dt = sdf.format(cal.getTime());
c.
parameter validation best practice
d.
java generate random 0 1 sequence
char[] charr = new char[31];
for(int i = 0; i < 31; ++i)
charr[i] = (char)((char)(2 * Math.random()) + (char)'0'); //(1 + 2 * Math.random())%2
e.
http://www.newthinktank.com/2012/09/java-reflection-video-tutorial/
Clean way to call functions based on string value
http://stackoverflow.com/questions/4138527/how-to-call-a-java-method-using-a-variable-name
I actually ran into a case for this once, where using reflection + a HashMap made more sense than a massive if/else of string comparisons and conditional method calls.
Use reflection:
Method method = obj.class.getDeclaredMethod("Method" + var, String.class); //or getClass(), getMethod()
method.invoke(obj, (Object)String.valueOf(char_array)); // (Object)
http://stackoverflow.com/questions/4737388/problem-using-model-getclass-getmethod-in-case-of-inheritance
f.
catch (IllegalArgumentException | SecurityException | IllegalAccessException | NoSuchFieldException e) { //JDK 7+
e.printStackTrace();
}
g.
new String() vs literal string
http://stackoverflow.com/questions/3052442/what-is-the-difference-between-text-and-new-stringtext
http://stackoverflow.com/questions/14757978/new-string-vs-literal-string-performance
h.
http://www.newthinktank.com/2012/10/interpreter-design-pattern-tutorial/
http://www.newthinktank.com/2012/09/abstract-factory-design-pattern/
java adapter class
i.
Eclipse java debugging: source not found
window->preferences->java->installed jres and delete the jre, then do "add" and look for the JDK not the JRE!
j.
http://stackoverflow.com/questions/1200621/how-to-declare-an-array
k.
Integer.valueOf() returns an Integer object, while Integer.parseInt() returns an int primitive.
l.
http://programmers.stackexchange.com/questions/133381/why-should-identifiers-not-begin-with-a-number
m.
java.util.MissingResourceException: Can't find bundle for base name standard-message, locale ja_JP
http://stackoverflow.com/questions/20142002/java-util-missingresourceexception-cant-find-bundle-for-base-name-property-fi
n.
String strPtrn = "^\\d{4}\\([-/]\\)\\d{2}\\1\\d{2}$";
Pattern dfPattern = Pattern.compile(strPtrn);
if(!dfPattern.matcher(strFormat).matches())
throw new EnterpriseRuntimeException("フォーマットエラーです");
BigInteger bgIntDate = new BigInteger(strDate,10);
long numDate = bgIntDate.longValue();
export JAVA_OPTS="$JAVA_OPTS -Xms5000m -Xmx6000m -XX:PermSize=1024m -XX:MaxPermSize=2048m"
•Xms = Minimum memory allocation pool
•Xmx = Maximum memory allocation pool
•XX:PermSize = Initial size that will be allocated during startup of the JVM
•XX:MaxPermSize = Maximum size that can be allocated during startup of the JVM
CppCMS — The C++ Web Development Framework
JAXB (Java Architecture for XML Binding)
linux kernel data structures github
linux kernel data structures
http://luisbg.blogalia.com/historias/74062
umatrix
svn difference between export and checkout
Becoming a Substantive Person in a Superficial World
discrimination of unattractive men in nowadays
low self-esteem low confidence men
superficial shallow world
myopia and astigmatism
HQL and JPA QL
Why there is no local static variable in Java?
The Java language spec doesn't seem to defend the omission of variables that correspond to C static variables.
Hiding state in class methods has a few drawbacks when seen from a Java perspective. Generally the existence of a function-level static variable isn't the sort of implementation detail that you'd want to expose outside of that function.
But the method's state is actually part of the class's state, and method-level static variables would have to be serialized / deserialized any time the object is persisted. This might not sound common, coming from a C background, so I'll note a few common examples.
Application server clusters can pass user session objects between nodes in order to provide fault tolerance.
JAXB could be used to marshall an object into an XML document
JPA can be used to persist object state to a database
If the variable's value is worth saving when the object is persisted, then there's a good chance that code outside of that class will need to reference that value. And suddenly that means defining access levels -- is a static variable in a public method automatically public? Or would a programmer have to declare it so?
We also have to think about extensibility. Would derived classes be required to implement the same static variable? Or would there be a reference to the variable from the function in the base class?
It's more likely that the C method that would use a static local variable would be a good candidate for a class in Java. It has state and hopefully exists for a single purpose. There's little drawback to encapsulating the functionality into an object, and it makes for a cleaner separation between transient values (such as local variables) and more long-term state.
Turn off Automatic login Windows
netplwiz (Advanced User Accounts Control Panel)
XML 文章は、XML 宣言、DTD(Document Type Definition)、XML インスタンスの3 つの部分で構成
される。
XSL(Extensible Stylesheet Language)
XSLT(XSL Transformations)
XSL-FO(XSL Formatting Objects)
Eclipse key bindings
jump to matching brace/parenthesis/bracket[]<> : Ctrl + Shift + P
Organize Imports : Ctrl + Shift + O
java calling close on a "wrapper" stream will automatically call close on its underlying stream
closing a stream a second time has no consequence?
StringBuilder strPath = new StringBuilder(dir);
String strPathSeparatorNO = System.getProperty("path.separator"); // ;
String strPathSeparator = System.getProperty("file.separator"); //Character that separates components of a file path. This is "/" on UNIX and "\" on Windows.
System.out.println("System.getProperty(\"path.separator\") : " + strPathSeparatorNO);
System.out.println("System.getProperty(\"file.separator\") : " + strPathSeparator);
if(null == strPathSeparator || strPathSeparator.isEmpty()){
if(dir.contains("\\"))
strPathSeparator = "\\";
else
strPathSeparator = "/";
}
if(!dir.endsWith("/") && !dir.endsWith("\\"))
strPath.append(strPathSeparator);
strPath.append("品目グループマスタ_");
String tmpStr = new SimpleDateFormat("yyyyMMddHHmmss").format(new Timestamp(System.currentTimeMillis()));
strPath.append(tmpStr);
LOG.debug("Wz1140002ServiceImpl::postgre2txt()|full path of file to create:["+strPath.toString()+"]\n");
import java.io.OutputStreamWriter;
import java.io.FileOutputStream;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(strPath,false),"utf-8"));//overwrite
java EOF -1
How to force Google search to only return English results?
https://encrypted.google.com/webhp?hl=en&gl=en#safe=active&hl=en&gl=en
1.Go to Chrome settings
2.Under Search, click on Manage search engines
3.Scroll to the bottom, fill Add a new search engine and Keyword with whatever you want
4.Fill the URL field with
https://encrypted.google.com/webhp?hl=en&gl=en#safe=active&hl=en&gl=en&q=%s
5.Press Done
6.Go back to Manage search engines and make it your default
System.out.format("%s: %s\n", e.getKey(), e.getValue());
String tmpStr = new String();
LOG.debug(tmpStr.format("(\"\".equals(new String())):%s,(new String().length() == 0):%s,new String().isEmpty():%s\n", ("".equals(tmpStr)), (tmpStr.length() == 0), tmpStr.isEmpty()));
DEBUG c.a.w.w.w.a.s.Wz1139001ServiceImpl - ("".equals(new String())):true,(new String().length() == 0):true,new String().isEmpty():true
java @Override
The @Override annotation was added in JDK 1.5. It functions more or less as a new method modifier. Its presence indicates to the compiler that the annotated method must override an existing supertype method, either from an interface, or an abstract base class.
(When it was first introduced in JDK 1.5, @Override was only applicable to methods defined in a superclass, and not in a supertype. That is, it originally applied to overriding methods in a base class, but not to implementing methods defined in an interface. This was changed in JDK 7, and now @Override can be applied to both.)
The most common use case for @Override is with Object methods:
@Override public String toString(){...}
@Override public boolean equals(Object){...}
@Override public int hashCode(){...}
The main reason @Override was created was to deal with simple (but nasty) typographical errors. For example, a method mistakenly declared as public int hashcode(){...}
is in fact not an override - the method name has all lower case letters, so it doesn't exactly match the name of the hashCode() method. It will however compile perfectly well. Such an error is easy to make, and difficult to catch, which is a dangerous combination. Using the @Override annotation prevents you from making such errors.
You should be in the habit of using @Override whenever you override a superclass method, or implement an interface method.
Any method which is not private, static, or final can be overridden. Allowing a method to be overridden should always be done intentionally, not by accident. Overridable methods, and any methods which call them, represent unusual places in your code, to which special attention must be paid. This is because subclassing violates encapsulation, in the sense that it's possible for a subclass to break its superclass's contract. See Effective Java for more information.
If you don't intend a method to be overridden, then you should declare it as private, static, or final.
When you do override a method, you should use the @Override annotation. This allows the compiler to verify that the method is indeed a valid override of an existing method. For example, your implementations of toString, equals, and hashCode should always use @Override in the method header.
//org.apache.commons.io.filefilter.WildcardFileFilter
FileFilter ff = new WildcardFileFilter("*"+Wz11PropertiesUtils.get(CsvMetaConstant.FILE_WZ1139001_NAME)+"*");
File[] tmpfls = folder.listFiles(ff);
//java.io.FilenameFilter
File[] infiles = folder.listFiles(new FilenameFilter() {
@Override
public boolean accept(File dir, String name) {
return name.contains(Wz11PropertiesUtils.get(CsvMetaConstant.FILE_WZ1139001_NAME));
}
});
LOG.debug(new String().format("filtered via java.io.FilenameFilter %d file(s), via org.apache.commons.io.filefilter.WildcardFileFilter %d file(s)\n", infiles.length,tmpfls.length));
DEBUG c.a.w.w.w.a.s.Wz1139001ServiceImpl - filtered via java.io.FilenameFilter 3 file(s), via org.apache.commons.io.filefilter.WildcardFileFilter 3 file(s)
java Interface = new Implementation()
http://stackoverflow.com/questions/9852831/polymorphism-why-use-list-list-new-arraylist-instead-of-arraylist-list-n
http://stackoverflow.com/questions/18329311/reason-for-list-list-new-arraylist
To properly write code to upload files to a FTP server using Apache Commons Net API, the following steps should be followed:
◦ Connect and login to the server.
◦ Enter local passive mode for data connection.
◦ Set file type to be transferred to binary.
◦ Create an InputStream for the local file.
◦ Construct path of the remote file on the server. The path can be absolute or relative to the current working directory.
◦ Call one of the storeXXX()methods to begin file transfer. There are two scenarios:◾ Using an InputStream-based approach: this is the simplest way, since we let the system does the ins and outs. There is no additional code, just passing the InputStream object into the appropriate method, such as storeFile(String remote, InputStream local) method.
◾ Using an OutputStream-based approach: this is more complex way, but more control. Typically we have to write some code that reads bytes from the InputStream of the local file and writes those bytes into the OutputStream which is returned by the storeXXX() method, such as storeFileStream(String remote) method.
◦ Close the opened InputStream and OutputStream.
◦ Call completePendingCommand() method to complete transaction.
◦ Logout and disconnect from the server.
NOTES: we should check return value of the storeXXX() and completePendingCommand() method to ensure the upload is completed successfully.
Remove Guest Session from Ubuntu 16.04 Login Screen
#check
less /etc/lightdm/lightdm.conf.d/50-no-guest.conf
sudo mkdir /etc/lightdm/lightdm.conf.d
sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" > /etc/lightdm/lightdm.conf.d/50-no-guest.conf'
printf and format methods are overloaded. Each has a version with the following syntax:
public PrintStream format(Locale l, String format, Object... args)
%n is a platform-independent newline character
linux command to determine cd/dvd writable
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
import java.sql.Timestamp;
wz11tm011.setRnewDay(new Timestamp(Calendar.getInstance().getTime().getTime()));
wz11tm011.setRnewDay(Calendar.getInstance().getTime());
generate sequential numbers in notepad++/sakura-editor
FOR /L %A IN (1,1,100) DO ECHO %A >> sequential_num.txt
jpa 1.0 filter in clause
jpa 1.0
Wz11tm011RepositoryImpl
final Query query = service.createNativeQuery(sql.toString(), "WZ1140003Wz11tm011ResultSetMapping");
Wz11tm011
@Entity(name = "WZ1140003_Wz11tm011")
@Table(name = "wz11tm_011", uniqueConstraints = { @UniqueConstraint(columnNames = { "hojinCode","guid","trxType" }) })
@SqlResultSetMapping(name = "WZ1140003Wz11tm011ResultSetMapping", entities = { @EntityResult(entityClass = Wz11tm011.class, fields = {
java 6 comparator collections of different size
Comparator
Convert case using regular expression
_(.*)
_\U\1\E = "\1";
\U converts all backreferences up to the next \L or \E to uppercase. \L converts all backreferences up to the next \U or \E to lowercase. \E turns off case conversion.
^((?!NotThisStr).)*$
Explanation:
( group and capture to \1 (0 or more times (matching the most amount possible))
(?! look ahead to see if there is not:
<string>
) end of look-ahead
)* end of \1 (NOTE: because you are using a quantifier on this capture, only the LAST repetition of the captured pattern will be stored in \1)
$ before an optional \n, and the end of the string
(.*?)\.equals\((.*?\(\))\)( &&|\) \{)
((isNullorEmpty(\1) && isNullorEmpty(\2)) || (!isNullorEmpty(\1) && !isNullorEmpty(\2) && \1.equals(\2))) \3
\s*\n -> ,
excel compare columns
=IF(AND($F$2:$F=$G$2:$G,$H$2:$H=$I$2:$I),"○","×") incorrect
=IF(AND(MATCH ($F2:$F,$G2:$G),MATCH ($H2:$H,$I2:$I)),"○","×") incorrect
=IF(EXACT($F$2:$F, $G$2:$G),"○","×") incorrect
Line Break in Cell Formulas
=IF(Sheet1!A1<>Sheet2!A1,"old:"&Sheet1!A1&CHAR(10)&"new:"&Sheet2!A1, "○") + Wrap Text from menu
& -> str concatenation, CONCATENATE() function
eclipse shortcut key to insert todo task tags
// TODO inserted by ${user} [${time} ${date}]
//↴未設定
ping 208.67.222.222
ping 208.67.220.220
// BOM付き
bw = new BufferedWriter(new FileWriter(writefile));
bw.write(0xef);
bw.write(0xbb);
bw.write(0xbf);
近視のなかには、度数がマイナス8D(ディオプター)を超える「強度近視」に進行するものがある。
asparagus - хэрээний нүд
+ butter sesame seeds black pepper
システム設計仕様書の書き方
実務家のための形式手法
厳密な仕様記述を志すための形式手法入門
新基盤開発環境インストール
加減フラグ
西暦(せいれき)
西暦4桁+月2桁+日2桁の形式で指定 YYYYMMDD
正午 midday
慰労会/いろうかい thank‐you party
疎通 そ つう
熟達/じゅく たつ
厳密/げん みつ
極秘/ごく ひ
機密
志す/こころざ・す
カルキ臭 bleach odor, chlorinous odor
同じ轍を踏む/おなじてつをふむ:先人(せん じん)が失敗した同じ失敗を繰り返すこと。
牧場/ぼくじょう/ ranch
フリーランス高単価案件/たん か
書(き)写す/かき うつ・す
恒久/こう きゅう
※宛先漏れは転送願います
該当するアプリケーションには大変ご迷惑お掛け致します。
Artemis(新基盤)の前受サーバのHULFT後続JOBのESBプロセス起動処理で起動された
ESBプロセス(トリガーとなる受信ファイルを取り込むTransfer処理)が異常終了する場合が、稀にある /まれ rare,rarely
タイミング起因のエラーです。
ESBプロセス(トリガーとなる受信ファイルを取り込むTransfer処理)実行時にESBプロセス起動処理時に生成されるステータスファイルと業務データの両方が瞬間的に(ミリ秒単位)残存してしまう事によるファイル引き取りエラー
千手(せん じゅ) 登録シート ネット/ジョブ/カレンダー用
http://www.venture-support.biz/media/avoidance/step/3592.html
前受金
前受収益
入手/にゅう しゅ
捻挫(ねんざ)、または挫き(くじき)は、関節に関節の許容範囲を超えた動きが与えられた為におきる損傷の一つである。多くは患部に痛みと腫脹、熱感を伴う。手や足などの関節をくじくこと。関節に無理な力が加わって,はずれそうになるほど曲がり,関節包や靭帯(じんたい)が損傷された状態。/sprain, ligament rupture
永続化/えいぞくか
齟齬/そ ご:物事がくいちがって,意図した通りに進まないこと。また,そのくいちがい。/ discord, dissension
妄想/ぼう そう
思惟/し い
仕入先 しいれさき
creditor 貸方,貸し主,債権者
debtor 借方,借り主,債務者
頭18桁
Web サイトの復元の試みは、無限ループを避けるため 2 回試行した後停止します。
本番機についてもなるはやで対応いたします。
従業員別設定情報ワークテーブルのエンティティクラス
整形 せい けい
末尾 まつ び
嘱託 しょく たく
首題の件、NRIタワー13階男性用トイレにて拾得がありました。
カフス(円形部分が赤色)
お心当たりのある方はお手すきの際に
総務・リスク管理グループまでお越し下さい。
よろしくお願いします。
傘立てクリーンキャンペーンのリマインドです。
明日は放置された傘の撤去日になります。
傘のお持ち帰り、あるいは「所属部署、氏名」の記入、
貼り付けをお願いいたします。
老朽化 ろうきゅうか
実行証跡