Keyhole SoftwareSeptember 24th, 2014Last Updated: September 24th, 2014 In my previous article covering Java Annotations, I outlined a recent use case and provided you with some examples of custom annotations and how they might be used. In this article, Iâm going to take that a step further and give you a few examples of custom annotations and how you would process these custom annotations using th
Dustin MarxDecember 6th, 2013Last Updated: December 6th, 2013 In the post Common Red Flags in Java Development I looked at some practices that are not necessarily wrong or incorrect in and of themselves, but can be indicative of potentially greater problems. These âred flagsâ are similar to the concept of âcode smellsâ and some of the particular âred flagsâ I cite in this post have been called âco
Iris ShoorDecember 6th, 2013Last Updated: December 6th, 2013 Java debugging is a complex space. There are many types of debuggers, and numerous tools to choose from. In this page, weâll cover the differences between 7 types of debuggers, and review the major tools in each category to help you choose the right tool for the right job. Here are the types of debuggers we cover: CLI debuggersIDE debugg
Baskaran ChinnusamyDecember 8th, 2013Last Updated: December 6th, 2013 Mostly nested transaction was implemented using EJB , now we try to implement the nested transaction on POJO. Here we have used the feature of ThreadLocal. Understanding Nested TransactionTransactions can be nested one inside another. So the inner transaction or outer transaction can be rollback or commit without affecting the
Attila Mihaly BalazsDecember 14th, 2013Last Updated: December 14th, 2013 A decompiler, simply put, attempts to reverse the transformation of source code to object code. But there are many interesting complexitiesâJava source code is structured; bytecode certainly isnât. Moreover, the transformation isnât one-to-one: two different Java programs may yield identical bytecode. We need to apply heurist
Peter LawreySeptember 22nd, 2014Last Updated: September 22nd, 2014 OverviewJava 8 has added features such as lambdas and type inference. This makes the language less verbose and cleaner, however it comes with more side effects as you donât have to be as explicit in what you are doing. The return type of a lambda mattersJava 8 infers the type of a closure. One way it does this is to look at the ret
Alex ZhitnitskySeptember 23rd, 2014Last Updated: September 30th, 2014 Raygun, Stack Hunter, Sentry, Takipi and Airbrake: Modern developer tools to help you crush bugs before bugs crush your app! With the Java ecosystem going forward, web applications serving growing numbers of requests and usersâ demand for high performance â comes a new breed of modern development tools. A fast paced environment
Nikita Salnikov TarnovskiSeptember 23rd, 2014Last Updated: September 23rd, 2014 The inspiration for this post came after stumbling upon âPig in the Pythonâ definition in the memory management glossary. Apparently, this term is used to explain the situation where GC repeatedly promotes large objects from generation to generation. The effect of doing so is supposedly similar to that of a python swal
Aldo ZiflajSeptember 26th, 2014Last Updated: September 22nd, 2014 In this example we will discuss about Inet4Address and its usage. Inet4Address represents an Internet Protocol version 4 (IPv4) address. Inet4Address is a subclass of InetAddress class, which represents either a 32-bit or 128-bit unsigned number used as an IP, the lower-level protocol on which protocols like UDP and TCP are built. T
In this article we will discuss about the Locale class from java.util package. The Locale is used to make the system relevant and usable for the users from different cultures. In other words, it is used to customize the system for different people of different region, culture and language. A Locale object represents a specific geographical, political, or cultural region. Letâs discuss about the Lo
EDITORIAL NOTE: In this post, we feature a comprehensive Java 8 Features Tutorial. Itâs been a while since Java 8 is out in the public and everything points to the fact that this is a really major release. We have provided an abundance of tutorials here at Java Code Geeks, like Playing with Java 8 â Lambdas and Concurrency, Java 8 Date Time API Tutorial : LocalDateTime and Abstract Class Versus I
ç°å¢å¤æ°ã«ä»è¾¼ã¾ããã³ã¼ããå®è¡ãã¦ãã¾ãBASHã®èå¼±æ§ã CGIã¹ã¯ãªããã«å½±é¿ãä¸ããã試ãã¦ã¿ããçµæã¯æ²æ¨ãªæãã« Tweet 2014å¹´9æ25æ¥ å¶ç°å¤§è²´ ãã®è¨äºã¯2014å¹´ã®ãã®ã§ã æãã Bash specially-crafted environment variables code injection attack ãªããã®ã§é¨ãã«ãªã£ã¦ããã®ã§ããã£ããæå ã® Apacheã§è©¦ãã¦ã¿ã¾ããã /hoge.cgiã¨ããURIã§å®è¡ãããããã«ãä¸è¡ã®ã¡ãã»ã¼ã¸ãåºåããã ãã® CGIã¹ã¯ãªãããè¨ç½®ãã¾ãããã£ããããªãã®å ¥åãã¯ã©ã¤ã¢ã³ãå´ããåãä»ãã¦ããªãããå±éºã®ããããããªãè¦ãã¾ãã #!/bin/sh echo "Content-type: text/plain" echo echo "Hi! I'm an ordinary CGI script w
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
In this article, we will discuss about the logging functionality in Java. Logging in simple words refers to the recording of an application activity. Logging is used to store exceptions, information, and warnings as messages that occur during the execution of a program. Logging helps a programmer in the debugging process of a program. Java provides logging facility in the java.util.logging package
In this example, we will show the range of functionality provided by the java.net.URL class. This class represents a Uniform Resource Locator, a pointer to a âresourceâ on the World Wide Web. An URL is a text string that identifies a resource, tells where to find it, and specifies a method for communicating with it or retrieving it from its source. URLs can have many forms. The most common form ha
2. 2 ã¯ãã㫠⢠ããã¹ã¬ããããå¤æ°aVariableã«å¤ãä»£å ¥ aVariable = 3; ⢠é常ãªãä»ã®ã¹ã¬ããã¯åé¡ãªã aVariable=3 ã¨ãã¦å¤ãè¦ããã â»ãã ããæ£ããåæåããã¦ããå ´åã®ã¿ã ⢠éã«åæåããã¦ããªãã¨æ¬¡ã®ãããªåé¡ãçºç 3. 3 ã¡ã¢ãªãããã»ããµã®åé¡ â¢ ã³ã³ãã¤ã©ãã½ã¼ã¹ã³ã¼ãã«æ¸ããã¦ãã常èçãªé åºã§ãªãé åºã§å½ä»¤ãä½ã ã ãã ⢠å¤æ°ãã¡ã¢ãªã§ã¯ãªãããã»ããµã®ã¬ã¸ã¹ã¿ã«ä¿åããã ⢠ããã»ããµãè¤æ°ã®å½ä»¤ãå¹³è¡ã«å®è¡ããããã³ã³ãã¤ã©ãä½ã£ãã³ã¼ãã¨ã¯é ãé åºã§å½ä»¤ãå®è¡ããã ⢠ãã£ãã·ã¥ã®ä»å¨ã«ãã£ã¦ãå¤æ°ã¸ã®æ¸ãè¾¼ã¿ã主è¨æ¶ã«ã³ããããããé åºã å¤ããã ⢠ããã»ããµãã¼ã«ã«ãªãã£ãã·ã¥ã«ä¿åãããå¤ãä»ã®ããã»ããµããè¦ããªã ãã¨ãããã 5. 5 ã¡ã¢ãªã¢ãã«ã®èª²é¡ â¢ å ±æã¡ã¢ãªã使ããã«ãã
è±èªã好ããªäººã§ãããªã¼ãã£ã³ã°ãè¦æã¨ãã人ãå¤ãã¯ãã ãªã¼ãã£ã³ã°åã¯ãè±æãéé²ã«èªãã§ä¸ãããã®ã§ã¯ãªããåå¼·ã®ã³ããç®çããã£ããç¥ã£ã¦ãããã¨ã大åã§ããã æ¬è¨äºã§ã¯ãä¸è¦é£ããããªãªã¼ãã£ã³ã°ã®åå¼·æ³ã«ã¤ãã¦ç´¹ä»ãã¦ãããã è±èªã®ããªã¼ãã£ã³ã°åããä¸ããã³ã è±èªã®ãªã¼ãã£ã³ã°åãä¸ããã«ã¯ãä¸ä½ä½ã«æ°ãã¤ããã°ããã®ã ãããã 以ä¸ã«3ã¤ã®ãªã¼ãã£ã³ã°ã®ã³ããç´¹ä»ãããã ãè±èªãªã¼ãã£ã³ã°ã®ã³ãâ ãæ¥æ¬èªã§èããªãããªã¼ãã£ã³ã°ã®åå¼·æ³ã¨ãã¦ãè±æãå ¨ã¦æ¥æ¬èªã«è¨³ããã¨ãããã®ããããããã®åå¼·æ³ã¯ããããããªãã ä½æ ãªããã¡ãã¡è±æãæ¥æ¬èªã§è¨³ãã¦ãã¦ã¯ãæéãããããç²ãã¦ãã¾ãããã ã æ¥æ¬èªã¨ãã¦ç解ããããã«è±æãææ«ããèªãã ãããã«ãè±èªè³ã«åãæ¿ãã¦ãæé ããèªããã¨ããå¿ããã¦ã»ããã è±èªãè±èªã§ç解ãããã¨ãã§ããã°ããªã¼ãã£ã³ã°åã¯æ ¼æ®µã«
C++11ã®æ¨æºã©ã¤ãã©ãª<thread>ã使ã£ã並åå 大éã®ãã¼ã¿ãåå²ããè¤æ°ã®ã¹ã¬ããã«åæ ããã¦å¦çæéã稼ããã¨ãèãã¾ããã¹ã¬ããã«é¢ããAPIã¯ãWindowsãªãCreateThreadãWaitForNltipleObjectãªã©ãLinuxãªãpthread_xxxxã¨ãOSã«ãã£ã¦ç°ãªãã®ã§ãããC++11ã§ã¯æ¨æºã©ã¤ãã©ãª<thread>ãOSãã¨ã®å·®ç°ãå¸åãã¦ããã¦ããã®ãå¬ããã¨ããã大éã®ãã¼ã¿ãè©°ãè¾¼ãã vectorã2ã¤ã®ã¹ã¬ããã§ã½ã¼ããã¦ã¿ã¾ãã #include <iostream> // cout, endl #include <thread> // thread #include <algorithm> // inplace_merge, etc. #include <chrono> // clock, time_point, duratio
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}