Formatting code with lots of spaces
Every now and then (but very rarely gladly) dreamweaver is formatting my code and adding LOTS of spaces. 1 extra space between each line of code and sometimes more lines it seems.
I can use Apply Source formatting to get the CSS code fine but for the rest i dont know. Is there a way to prevent this from happening? or/and cleaning it up?
if ($(window).width() < 600) {
var divs = $("div#asd> div.asd");
for(var i = 0; i < divs.length; i+=1) {
divs.slice(i, i+1).wrapAll("<div class='asdd'></div>");
if ($(window).width() < 300) {
var divs = $("div#asd> div.asd");
for(var i = 0; i < divs.length; i+=1) {
divs.slice(i, i+1).wrapAll("<div class='asddd'></div>");
$('a.asdddd').click(function() {
$(this).addClass('visited');
$('.toggleContent').click(function() {
$('.content').fadeToggle("slow", "linear");
$("a.newslink").attr('title', '');
Similar Messages
-
How to display G/L Account code with separation symbol
Hi, there
I got a problem that I want to show formated account code in one column in grid, which formated with separation symbol, and i'd like to binding this column to one user defined field in UDT, user can input Acount code in this column. who knows if there is a simple way to show the formated Account code. I am using SBO 2004 and VB .Net.
I did not find any function about it in SBO 2004 SDK, the "FormatCode" property in ChartOfAcctounts object only show Account code with out separator, so am I need find out the segment and separator information and format using code?
Thanks for any help.
KathyHi Kathy
Not sure what you asking.
The one part you asking "how can I show the link button in the Account code column". The answer to this is if you are using the xml form made by the screen painter you must open the xml file outside of screen painter and make that column of type 116 instead of 16. Obviously you still need to do the usual like bind the column and set LinkedObject = APbouiCOM.BoLinkedObject.lf_GLAccounts
Then to the second part of your question
A linked button for a gl account with dashes which are "-" should pull the chart of accounts window open. The format code with the dashes is CORRECT! You must make sure there is no unwanted spaces or any funny characters. Also i did the linked button in Screen Painter. Make your arrow, link it to a edit box.Then set linkedObject value to 1.
Just for testing purposes make a edit text with the linked button linked to it. Type a gl account manualy in the box with dashes and then press the orange arrow. You'll see that it works with the dashes.
Hope this helps -
Display formatted code in html output
Howdy,
I'm looking for preferably a JSTL tag (library) that is capable of transforming a code fragment into neatly formatted code, with syntax highlighting, tab preservation, line numbers, stuff like that. I'm sure they should be out there somewhere, it's just that I can't find them anywhere using Google, or I'm just using the wrong terms :/.
So, if anyone happens to know about a code formatting tool for JSP / JSTL pages, I'd be much obliged.Here are some new keywords to Google on: 'java highlighter', 'java source highlighter', 'java2html', 'java2xml', etcetera.
-
i have code with lot of bapi called in it .
is there any why that they can be used for better performance.
in genral................................
thanks in advance0) Is it the BAPI calls that cause your performance problem?
1) Look for a BAPI created for mass-updates (if it is relevant in your case)
2) Don't commit each BAPI call if you can avoid it
You are not giving much information, so the answers can't be very specific either. -
Installation fails with "not enough space" message ...
Installing Application Server 8.1 on Solaris Sparc on network with lots of space but get this message in the log file of the failed installation:
ERROR - exception while updating command line utilities
Not enough space
ERROR - default domain creation returned following exception: /home/lm71165/SUNWappserver/bin/asadmin: not found
INFO - End core server configuration.
Any ideas on why this occurs?
Thanks."Not enough space" message is issued by J2SE due to lack of swap space and not disk space per se in this case.
To resolve this, first uninstall partial installation using provided uninstall utility (available in installation directory). Then, make sure that you free some additional swap space: delete all unnecessary content from /tmp partition and shut down all unnecessary processes running on the system. Once you do this, you can restart the installation. -
Formatting code and output with Courier font
Hi,
I have several problem in inserting code and output for SQL and PL/SQL.
I.e.:
If I insert the code below formatting usin Syntax highlight as SQL:
SELECT empno, sal
FROM emp
WHERE sal > ALL (2000, 3000, 4000);
Is there a way to have Courier as font to retain the correct indentation?
Another problem. Suppose that I run the query below:
SELECT *
FROM emp
WHERE deptno = 10;
and I want to paste the output as Courier:
If I copy and paste the output from SQL Plus:
EMPNO ENAME
JOB
MGR HIREDATE
SAL
COMM
DEPTNO
7782 CLARK
MANAGER
7839 09-JUN-81
2450
10
7839 KING
PRESIDENT
17-NOV-81
5000
10
7934 MILLER
CLERK
7782 23-JAN-82
1300
10
It is pasted as a table. Even changing the font is not helping to have a good formatted code (note the header not aligned with data columns).
I can use HTML code to paste it. I.e.:
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7839 KING PRESIDENT 17-NOV-81 5000 10
7934 MILLER CLERK 7782 23-JAN-82 1300 10
But it is taking quite a lot to paste the code.
Any suggestion?
Regards.
Al
Message was edited by: AlbertoFaenzaBluShadow wrote:
Well, I hope they get around to using fixed space fonts on the Syntax Highlighting options, as I quite like the fact it creates line numbers for the code, as that will be useful when discussing issues.
I agree Blu. The line number is useful. If they only can use a fixed space font would be perfect.
I also have the problem that randomly my output is pasted as a HTML table and still could not understand why it happens.
This one i.e.:
EMPNO ENAME
JOB
MGR HIREDATE
SAL
COMM
DEPTNO
7369 SMITH
CLERK
7902 17-DEC-80
800
20
7566 JONES
MANAGER
7839 02-APR-81
2975
20
7788 SCOTT
ANALYST
7566 19-APR-87
3000
20
7876 ADAMS
CLERK
7788 23-MAY-87
1100
20
7902 FORD
ANALYST
7566 03-DEC-81
3000
20
I notice that just adding a blank line as first line solve the issue.Regards.
Al -
OraRRP Error with "Unable to copy data file;Error code 2, check disk space"
Hi,
Some users get this message -"Unable to copy data file;Error code 2, check disk space" when run report with orarrp, but most users do not get it.
I check free space at both server and client side, they are very sufficient.
I also checked directory exists for REPORTXX_TMP variable.
My user call reports via URL (rwservlet) and it occur for all reports.
How I can solve this problem?
Thanks in advance.
Tawatchai R.Hi,
have the same problem now. One user has temporarily problems to download .rrpa files via URL (rwservlet) request. Error code: -"Unable to copy data file;Error code 2, check disk space". Did you get a solution??
Thanks in advance. Axel -
Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it. Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions and my sight is dropping ! Thx
Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it. Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions and my sight is dropping ! Thx
-
I often recieve emails with a lot of spaces between words in sentences
These problem letters mostly come from two friends
If I use html and text format as filling out (don't know the english word) when I send an email, It will look like it have lot of spaces for the receiver.
Maybe your friends has this pre-set. -
IView with a lot of space at the bottom
We have developed a component with JSPDynpage, the jsp file contains only html and the css reference:
<%String baseURLPathToCSS = componentRequest.getWebResourcePath()+"/css/";%>
<html>
<head>
<title>DeSevilla - Noticias</title>
<link rel="STYLESHEET" type="text/css" href="<%=baseURLPathToCSS%>main.css">
</head>
<body>
<div id="cuerpo_pagina_noticias">
<div id="cabecera">
<h3 class="texto2_1">Noticias</h3>
<h4 class="texto0_1">Corporativas</h4>
</div>
</div>
</body>
</html>
The problem is that when we create an iView based on this component at the bottom of the iView the portal adds a lot of space, we have tried to change the heigth to fixed but didn't work.
Anybody knows how adjust the border of the iView to the html.Hi Mercedes
Change the Isolation property of the iview to url and try to give height as fixed.
You can adjust the height of iview by adjustHeight method.
adjustHeight(document.getElementById(<id of ur iview>),<heightyouneeded>).May be this function has to be invoked from separate iview.
Use this link for reference.
Automatic Height of iView/Page & Footer in Framework page
Regards
Geogi
Message was edited by: Geogi Luke -
I am trying to figure out how to clear my massage backlog on Messages for Mavericks OS. I believe a lot of space is taken up by this running in the background keeping recent messages loaded. Especially with all the gif files I've been sending. Is there a way to select all and deleter? Please help! Can't find anyone who looks to do the same just lots of manuals for using the app on iphones and ipads.
ThanksI am trying to figure out how to clear my massage backlog on Messages for Mavericks OS. I believe a lot of space is taken up by this running in the background keeping recent messages loaded. Especially with all the gif files I've been sending. Is there a way to select all and deleter? Please help! Can't find anyone who looks to do the same just lots of manuals for using the app on iphones and ipads.
Thanks -
when round tripping with photoshop cc, i get a saved psd file with my original raw,the problem is these are high file sizes and taking a lot of space,can i stop this?
That's not the workflow that I use. I have my Lightroom preferences set to create TIF images when going to Photoshop. I keep the original raw file and the TIF image (usually reduced to an 8-bit image) and only export JPEG's when they are needed to send to a lab or to send to someone over the Internet. JPEG files are highly compressed. I only create them when they are needed, and they are discarded as soon as they have been used for their intended purpose. I keep the raw file and the Photoshop-created TIF in my library. This requires extra disk space. But I always have the highest quality files available.
-
Does the new command 2 binary format work with Apple Push Notification Service? I am sending 2 messages with the same payload to 2 different devices. None of the messages display on either of the devices. It seems that at least 3 should have been displayed. For my first device, I received a response with an invalid status code of 128 and the message identifier is 2 indicating that the first message was OK. However no message was displayed on the phone. For the second device, I did not receive any error response, but no message was displayed on the device.
Does ANS perform any validation on the message identifier? The Local and Push Notification Programmin Guide says the message identifier is:
An arbitrary, opaque value that identifies this notification. This identifier is used for reporting errors to your server.
I know that the device tokens are valid because the same tokens work when I use the legacy basic or enhanced formats. The phones display the messages correctly when I send to ANS using the old ANS message format.
Here is the data and the response:
Sent to ANS: 2 0 0 0 158 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 2 4 0 4 83 7 119 141 5 0 1 5 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 3 4 0 4 83 7 119 141 5 0 1 5
ANS returned an error: 8 128 0 0 0 2
Sent to ANS: 2 0 0 0 158 1 0 32 4 239 182 26 13 237 170 136 41 243 181 57 120 208 135 19 101 102 212 70 55 244 251 255 160 125 82 9 10 143 72 17 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 5 4 0 4 83 7 119 147 5 0 1 5 1 0 32 4 239 182 26 13 237 170 136 41 243 181 57 120 208 135 19 101 102 212 70 55 244 251 255 160 125 82 9 10 143 72 17 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 6 4 0 4 83 7 119 147 5 0 1 5
ANS did not return a response.Hello, can you please help me ?
You specified sample payload here:
TerrellFromLockhart wrote:
I finally got this to work. The picture in the Programming Guide is very confusing. The solution was to prefix every message's frame data with command 2 and that messsage's frame data length. Here is a sample:
ANS frame: 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 2 4 0 4 83 7 199 195 5 0 1 10 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 3 4 0 4 83 7 199 195 5 0 1 10 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 4 4 0 4 83 7 199 195 5 0 1 10
About to read response at Thu Feb 20 15:40:20 CST 2014
SocketTimeoutException
2 - is clearly command
0 0 0 77 - frame length
1 - item Id
what's 0 32 ? According to this page https://developer.apple.com/library/ios/documentation/NetworkingInternet/Concept ual/RemoteNotificationsPG/Chapters/Commu…
Item id should be followed by item length. But item length is obviously greater than 32 because device token's length is 32. Can you please explain why 0 32 were used? and do you have any insight on item id meaning ? -
Partition an Advanced Format drive with 4KB sector (for Linux OS only)
I got a brand new WD 1TB drive, model WD10EZEX, I'm upgrading from an old 500 GB drive with Arch running on it, and I'm going to make a fresh Arch install on it.
I suddenly learned about all this Advanced Format issue, with the first units "lying" about physical sector size and all that stuff, which started like 2 years ago and I was not aware of.
I couldn't find a step by step guide to perform the proper formatting for a fresh Linux OS install with 4KB-sector, despite the info is out there scattered in tons of blogs, forums, etc.
I figured out the steps for my simple setup, and I'd like to know if everything is all right. For the ones who already know the steps, can you please go to the bottom of the post, and tell me if the final setup is all right to start the fresh install ?? I reproduce all the steps hoping that this will help other people in the future.
I'll use the whole drive only for an Archlinux install, with one partition for the / and another for /home.
Seems the GPT modern method is the way to go, and the gdisk tool will do the trick. If we are booting from this drive, with GRUB2 in a BIOS system, we must also create a BIOS Boot Partition.
So, with the drive having no partitions at all, and sda being the device name
# gdisk /dev/sda
Command (? for help): p
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 6527769B-B4BC-408C-A45B-D2DAA4036620
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 1953525101 sectors (931.5 GiB)
Number Start (sector) End (sector) Size Code Name
we create the 2 MiB BIOS Boot Partition
Command (? for help): n
Partition number (1-128, default 1): 1
First sector (34-1953525134, default = 2048) or {+-}size{KMGTP}: 2048
Last sector (2048-1953525134, default = 1953525134) or {+-}size{KMGTP}: +2M
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): ef02
a 45GB partition to use as /
Command (? for help): n
Partition number (2-128, default 2):
First sector (34-1953525134, default = 6144) or {+-}size{KMGTP}:
Last sector (6144-1953525134, default = 1953525134) or {+-}size{KMGTP}: +45G
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): 8300
Changed type of partition to 'Linux filesystem'
and the rest to use as /home
Command (? for help): n
Partition number (3-128, default 3): 3
First sector (34-1953525134, default = 94377984) or {+-}size{KMGTP}:
Last sector (94377984-1953525134, default = 1953525134) or {+-}size{KMGTP}:
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): 8300
Changed type of partition to 'Linux filesystem'
we can check the setup
Command (? for help): p
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 6527769B-B4BC-408C-A45B-D2DAA4036620
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 6143 2.0 MiB EF02 BIOS boot partition
2 6144 94377983 45.0 GiB 8300 Linux filesystem
3 94377984 1953525134 886.5 GiB 8300 Linux filesystem
and everything looks fine, we have the multiples of 8 starting sectors, so we write the changes
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sda.
The operation has completed successfully.
now we need to give the / and /home partitions a format, I choose ext4 and ask for a 4096 block size just in case we have a "lying" unit (not my case but I prefer to write down the most general command)
# mkfs.ext4 -b 4096 /dev/sda2
mke2fs 1.42.6 (21-Sep-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
2949120 inodes, 11796480 blocks
589824 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
360 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
and the same thing for /dev/sda3 .
Check with gdisk and parted that everything is fine, is this all right to start the install ??
# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 6527769B-B4BC-408C-A45B-D2DAA4036620
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 6143 2.0 MiB EF02 BIOS boot partition
2 6144 94377983 45.0 GiB 8300 Linux filesystem
3 94377984 1953525134 886.5 GiB 8300 Linux filesystem
# parted /dev/sda
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA WDC WD10EZEX-00R (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 3146kB 2097kB BIOS boot partition bios_grub
2 3146kB 48.3GB 48.3GB ext4 Linux filesystem
3 48.3GB 1000GB 952GB ext4 Linux filesystem
Last edited by karamaz0v (2012-12-06 06:39:45)Your partitions look fine from an Advanced Format point of view. The test is simple: Are all your partitions' start points, as measured in sectors, divisible by 8? Yours are.
karamaz0v wrote:what confused me a bit, was that I saw a lot of setups with the BIOS boot partition, and also a 200 MB EFI one. Having a BIOS system, I think I don't need the EFI one.
Some people do this because they're unclear of their requirements. Others do it because they want to have the option of switching boot modes between BIOS/legacy and EFI. With both types of boot loader installed, you can choose on a boot-by-boot basis which way to start the computer, assuming it supports both boot modes. -
Lot of space in pdf when generate using iText
I am generating PDF from html content. for this i have used HTMLWorker. The code is like this
ArrayList list=HTMLWorker.parseToList(new StringReader(sb.toString()),style);
for(int i=0;i<list.size();i++)
document.add((Element)list.get(i));
where document is object of Document.
My generated PDF is fine, the only problem is if the content is too much, lot of space comes in PDF. It is like 1 page with content, next page with only header and then all space, then again the next with content, in random order.
please help.Why don't you look for a mailing list and/or forum of the iText folks? They can probably help you a lot more than we can.
Maybe you are looking for
-
Anyone use " Unity 3D " ? is it safe to install it on MacBook Pro ?
Hi , I intend to install " Unity 3D " on my MacBook Pro with retina display (15" , 2.6 GHz , 16 GB of RAM ) , is it OK to install this software ? Anyone tried this software ? , do I expect any performance issues ? Does "Unity 3D" require "Java Runtim
-
Iphone and at&t - the truth about at&t service for the iphone
i love my iphone. the only problem has been using at&t in southern california. in los angeles there are major holes in the service, and multiple hour delays on delivery of voicemails and emails. so ive been on the phone with technical and customer su
-
Processing of Image files in PI
Hi experts, I have a requirement where an input excel file will have an image name, and all images are in a particular folder. Is it possible to go to that folder and verify the properties..such as if image is more than 500 pixel, then throw error el
-
Hi there, I have a problem with spotlight indexing. It fails on me in a number of different ways. Sometimes, when I try to reindex, it will never finish (Estimating indexing time... appears forever). Sometimes, when I try to reindex, it will never fi
-
I am a technical consultant (ABAP) and want to know the use of hierarchies in BW. We have a requirement in which there are a certain G/L accounts which have to be categorized according to their type, i.e. , whether they are fixed or variable account.