Quantcast
Browsing all 15 articles
Browse latest View live

Delete a line from a block

I want to search a string and delete it from a block . I tried using sed and awk but I am not able to figure it out. Let the blocks be like this: [MAIN] one=[1] two=[2] three=[3] three=[4] three=[5]...

View Article


Capture text blocks with a regular expression

I have structured documents in the following format: 123456789|XXX|1234567|05/05/2012 00:00|81900153|Signed|LASTNAME,FIRSTNAME, M.S.|024813|XXX|3410080|DNR Order Verification:Scanned| xyz pqs 123...

View Article


Windows taskbar blocks bottom of wallpaper

I have a wallpaper with some text at the bottom, which is hidden by the taskbar in Windows 7. How do I get the wallpaper to fit the entire screen except behind the taskbar? (I want the entire wallpaper...

View Article

Rotating Block Tetris c# xna

So Im making Tetris game and right now I am struggling with the rotations because I dont know how to make it reasonable for the blocks to change their positions in the right way(It would be nice to...

View Article

How can I calculate a block number of where a word is located on disk?

I want to find out what block number the word “word” is using. I know blocks start at 0, so I thought that adding 2114+1 would be my answer, but it’s not… user@host:~$ strings -td dump.dd|grep "word"...

View Article


How to create more than one block with different .tpl file(theme) in single...

How to create more than one block with different .tpl file(theme) in single module in drupal 7 Suppose I have a module name “mymodule”, I want to create two blocks of this module name as “myblock1” and...

View Article

Building stairs in Java using asterisks

I am tasked with writing a program that prompts the user to input a positive number, and then it draws blocks of asterisks (*) to form stairs. The first block’s length and width should be the number...

View Article

Get result of Webservice Call as Block Callback with NSURLSession in Swift2

I want to get the result of a webservice call as a block callback so I have added the method fetchOpportunities below to my Opportunity model class now I want to call this method from my...

View Article


Select multiple values inside HTML tags with BeautifulSoup

I scraped a HTML page with multiple blocks of code like the following: <div data-pnref="all" class="clearfix _5qo4"> <a data-hovercard="/ajax/hovercard/user.php?id=671948073&...

View Article


Java: can you synchronize a variable without explicitly creating blocks?

Is it possible to synchronize a variable such that all references to that variable are implicitly assumed to be synchronized? I’m thinking something like the following: synchronized List l = new...

View Article

If loop code not executing when the statement is true in java [duplicate]

This question already has an answer here: How do I compare strings in Java? 23 answers I am so confused as to what is happening. I have a Java application for android and am having trouble with one if...

View Article

Need TCPIP client that blocks until a specific character sequence is received

I need a java 7 TCP/IP client that will block until it receives a user specified character sequence (in my case a message terminator/separator – this would automatically “chunk” the data into...

View Article

How do I place my main method into a try catch block?

I’m making a game and my try and catch blocks work inside the methods, but one of the criteria for my assignment is to place the main method into a try catch block as well. But whenever I wrap my main...

View Article


Block Collision Code Troubleshooting

I’m finishing up a coding assignment that requires me to set an array of blocks in motion, bouncing off of the window and each other, but unfortunately I’m totally lost as to where to go next. Any help...

View Article

WSO2 REST add.jag gets null pointer exception

I’m trying to add an API using REST add.jag. Tried it on both 1.9.1 and 1.10.0. In the dashboard UI it is added ok, but with the following message Status code: 200 { "message": " null", "error": true }...

View Article

Browsing all 15 articles
Browse latest View live