How to read from a file array of numbers? I mean, how to read chars from a file?
sorry for bad eng.
upd: yes, i can :)
just: "1 2 3 4 5 6 7 8" and etc. I just do not know how to read chars from a file.
I started a new project and created a local git repo with "git init" and now I have a few branches and everything works great.
However, since my webhosting company offers git hosting (details if you're curious), I'd like to push my entire repo to their servers to have a backup in the cloud in case something bad happens to my local repo.
How can I make the remote repo the "origin" since the repo was started locally?
I have a job to develop a website. My client wants it so that there is a header, a menu and for the content a rectangle-like box in which you can scroll the text. So that header and menu don't move but the text in the box does.
It should look like this:
***********header image ***********
menu menu menu menu
--------------
| you ||
| can ||
| scroll in ||
| this box ||
|_____________
Is my only option to implement this an iframe?
Would it be bad practice to use an iframe for this?
What application, language, or other software product name makes you cringe every time you hear it; or was just an astoundingly bad choice from a marketing perspective?
One name per answer, vote up the worst.
Hello,
Any ideas on how to retain a good quality on converting SWF to FLV?
I use the publish method in CS3, the quality of the movie goes terrible bad when converted to flv.
Can anyone please suggest me some way out?
Thank You
This is related to question: How to store unlimited characters in Oracle 11g?
If maximum I need is 8000 characters, can I just add 3 more varchar2 columns so that I will have 4 columns with 2000 char each to get 8000 chars. So when the first column is full, values would be spilled over to the next column and so on. Will this design have any bad side effects? Please suggest.
In c++ instance variables are private by default,in Python variables are public by default
i have two questions regarding the same:-
1: why Python have all the members are public by default?
2: People say you should your member data should be private
what if i make my data to be public?
what are the disadvantages of this approch?
why it is a bad design?
Does anyone know an easy way to hide hashtags in the user's address bar? I am using a image gallery plugin and the only way to control the start position is to use a hash tag.
The problem is the hash tag gives away the relative path of the images folder and it looks bad.
Without the hash tag it only loads thumbs and not start image so really it's unavoidable.
Thanks!
I'd like to know if listing a set of partner sites/blogs is useful for the pagerank growth.
Does Google see it as an incorrect act? I read somewhere that if people exchange links, google seeks it and marks as a bad technique.
If it doesn't matter, is the content of the linked site relevant?
Hi,
I would like to hear some opinions regarding working in small companies versus large corporations.
So far, my personal experience has been that esp. for junior programmers small companies have given a more solid background, as follow-up is with experienced workers.
In larger corporations on the other hand, the experienced have already worked they way way out of reach.
Is this a general feeling or just my bad experience?
hi,
I've set on imagecache a fixed scale for my images (230 x 150).
Upscaling option is unchecked.
Successively, I've uploaded new images (original size 230 x 150) but for some reason they are resized: 80 x 52
Instead, if I check the "Allow upscaling" option, the size is correct, but the quality is very bad.
So basically, it behaves like if my images are very small, but my original images have the correct size.
thanks
i have some knowledge of css,jQuery,Grails,django,servlets and jsp still i can't see me designing good professional looking websites .what am lacking ? should i start learning jQUery ui ,should i get into adobe products like flash i am pretty confused. i am pretty bad in the userinterface part,
I've almost finished my app and I'm thinking about integrating AdMob there. But, in my mind, ads create bad impressions. How much do you earn by adding AdMob to your app? Is adding ads worthy of it?
hi all,
I am new to HTML 4 validations, in that if I put HEAD runat="server" tag
I am getting this error - Error Line 6, Column 82: character data is not allowed here
…lesheet" type="text/css" media="all" /
In the head tag I have called css files.
So if any one know about thin can help me,how to solve this error?
Thanks in advance. and sorry for my bad english...
Hi, i have been looking for a javascript code which is like the facebook "like" widget to put in my blogger site.
The examples of the buttons are like in the following website,
http://textsfromlastnight.com/
Where people are able to flag the "Good Nights" or "Bad Nights".
I have no experienced in writing scripts neither do i have any script writing programs, so was wondering if any people can help with the scripts, or maybe tutorials would be of great help!
Thanks!
private void button5_Click(object sender, EventArgs e)
{
if (domainUpDown2.Text == "Battlefield: Bad Company 2")
{
Form2 form2 = new Form2();
form2.ShowDialog();
}
}
All that does is open a new blank form, but i need it to open a new form with a webbrowser in it so i can set it url dependent on the if statement..
So here's the deal I'm working on a project that requires me to have a 2 dimensional arraylist of 1 dimensional arrays. But every time I try to load in my data I get an error:
Can't do this opperation because of bad input
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
On some of the inputs. I've got no idea where I'm going wrong on this one. A little help please?
Source Code:
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
import javax.swing.JOptionPane;
import java.io.InputStream;
public class Facebull
{
public static void main (String[] args) {
if(args.length != 0){
load(args[0]);
}
else{
load("testFile");
}
}
public static void load(String fname) {
int costOfMach = 0;
ArrayList <Integer> finalMach = new ArrayList<Integer>();
ArrayList <ArrayList<int[]>>machines = new ArrayList<ArrayList<int[]>>();
Scanner inputFile = null;
File f = new File(fname);
if (f.exists ())
{
try
{
inputFile = new Scanner (f);
}
catch (FileNotFoundException e)
{
JOptionPane.showMessageDialog(null,"Can't find the file\n" + e);
}
int i = 0;
while (inputFile.hasNext ( ))
{
String str = inputFile.nextLine ( );
String [ ] fields = str.split ("[\t ]");
System.out.println(str);
if (!(fields[0].isEmpty() || fields[0].equals (""))){
fields[0] = fields[0].substring(1);
fields[1] = fields[1].substring(1);
fields[2] = fields[2].substring(1);
try
{
//data to be inputed is 0 and 3 location of data is 1 and 2
int[] item = new int[2];
item[1] = Integer.parseInt(fields[0]);
item[0] = Integer.parseInt(fields[3]);
if(machines.size() < Integer.parseInt(fields[1])){
ArrayList<int[]> column = new ArrayList<int[]>();
machines.add (Integer.parseInt(fields[1])-1, column);
System.out.println("we're in the if");
}
machines.get(Integer.parseInt(fields[1])-1).add(Integer.parseInt(fields[2])-1, item);
}
//catches any exception
catch (Exception e)
{
System.out.println("Can't do this opperation because of bad input \n" + e);
}
}
}
inputFile.close ( );
}
System.out.print(machines);
}//end load
}
in visual studio is the member dropdown, where you can select all members of the current type alphabetically ordered.
is there an option which allows grouping of the members? i.e. all constructors before all methods before all properties before all events before all fields?
if there is not, bad for me, i guess—it would really enhance productivity
I have a table row that has the error message in it.
...
Now if someone forgets to enter text or bad text in a textbox, I want this form field to be set to visible.
Can I use a asp.net validator for this or?
hi, i was working on the localhost and every thing was just fine, but when i upload to my site it get alot of errors
why is that ?
(sorry for my bad english)
I'm not sure what happened, but my installer is in a weird state--when I install my MSI, it doesn't seem to be running the current version of the code (I'm using Custom Actions). I verified it by placing some MessageBox.Shows and sure enough, they are not popping up.
It's possible I may have had a few unsuccessful installs previously which may have put the installer in a bad state...but how do I go about resolving this?
Thanks...
I have the following piece of code in my controller
def index
session[:previous_url] = URI(request.referer).path
if session[:previous_uri] != new_path
redirect_to registration_path(id: current_user.associate_username)
end
end
However this does not actually work and i get a bad URI error.
I just want to check if the request came from a particular page and if not redirect it to another page. I would also like to know if there is a better way for doing this?.Thank you
Hello,
I'm finding informations about this CSPNRG online. I founded only one article from you on the javamex site, which told about the implementation of this class. So I'm asking you to lead me to some documentation on this. I am expecting a kind of fiable source...
Thank you for eanswering me
Sorry for my bad english, I'm french and not used to write in english