rent to own at renttown
Printable View
rent to own at renttown
You have the provide the tests to prove you're a disabled person by the doctors
does being annoyingly stupid count as a disability if so he might get more than $700
Steffies does, I dont believe hes disabled... Probably he has mental issues
steffies trained his whole life to abuse the system it's his family legacy
god java is a clusterfuck, I'm abandoning doing this in android studio I'm going to write it in c# and run it through xamerin maybe that'll be easier
the code I copy pasted was in a try catch, I figured ok I'll leave it, it seems like a good idea, but then it bitched about that, turns out a try catch can only be inside a method. so fine, I make a method, a public void method, and put everything in there. except now I can't figure out how to call the fucking thing. if I do myRealMethod(): iot bitches that it needs a return type, but myRealMethod doesn't return anything and void doesn't work and neither does null and accoding to my 10 minutes of googling you have to add an additional class and an additional entry in the manifest and maybe a new onStart sub and I'm like fuck this
also the emulator doesn't give you an option of enabling wifi so good luck testing an application designed for the LAN
I fucking hate this shit this is why I never became a programmer it's not fun for me
Java isn't easy to use until you have to install the libraries, then wrap with class syntax
I never liked Java, you could use web technology using Ionic where you can compile into android with this plugin https://forum.ionicframework.com/t/h...p-packet/32057 that sucks he is angular.
Are you learning Java or javascript
xamerin isn't any fucking easier, it's like they went out of their way to make android development cryptic and annoying. I can find classes that do everythign I want but I can't figure out how to fucking call them. fuck java, fuck c#, fuck xamerin, and fuck android.
know what I love about vb and powershell and bash you can put a function name right there on its own line like
myRealFunction()
AND IT WILL CALL THE FUCKING FUNCTION, EVEN IF IT DOESN'T RETURN ANY DATA
what the fuck is a class and why can't I call them directly and why does BroadcastReciever have to be a class if I can't fucking call it
seriously going to break something right now
I wrote clients in VB and python and they took like 10 minutes, and they're not any more complicated they're just written in sensible languages
Java is really old man it's like you're writing a program for Adobe flash or something
That's my python client, check it out I'll write the server application right now in vb it'll take 30 secondsCode:import os
while 1:
from socket import *
s=socket(AF_INET, SOCK_DGRAM)
s.bind(('',44126))
m=s.recvfrom(1024)
print m[0]
#Uncomment for Mac version
os.system("afplay ./ring.wav")
#Uncomment for Windows
#os.system("start .\ring.wav")
While 1 > 0
{
get phone state
if phone state = "RINGING"
{
create a udp socket
send my text to a particular port on the broadcast address
return nothing because there's nothing to fucking return
}
}
HOW FUCKING HARD IS THAT
Javascript is easy, a lot of people are confused between java and javascript what they think it's the same but it's not true.
btw, maks would you mind to use node.js to solve your problem with udp?
anyway:
Code:var udp = require('udp-request')
var socket = udp()
socket.on('request', function (request, peer) {
console.log('request:', request.toString())
socket.response('echo: ' + request.toString(), peer)
})
socket.listen(10000, function () {
socket.request('hello', {port: 10000, host: '127.0.0.1'}, function (err, response) {
console.log('response', response.toString())
socket.destroy()
})
})
before to execute this, you need to do npm install, I don't know about UDP, what do you really except?
the code you posted is the thing I was successfully able to do in 3 different languages.
I want a background service that sends a broadcast *when I receive a phone call*. As far as I know I can only do that in java or xamerin.
The same thing you wrote, in VB
and in pythonCode:Sub Main()
'Console.WriteLine("Receiver")
Do
Dim UDPClient As UdpClient = New UdpClient()
UDPClient.Client.SetSocketOption(SocketOptionLevel.Socket, _
SocketOptionName.ReuseAddress, True)
UDPClient.Client.Bind(New IPEndPoint(IPAddress.Any, 44126))
Try
Dim iepRemoteEndPoint As IPEndPoint = New _
IPEndPoint(IPAddress.Any, 44126)
Dim strMessage As String = String.Empty
Do
Dim bytRecieved As Byte() = _
UDPClient.Receive(iepRemoteEndPoint)
strMessage = Encoding.ASCII.GetString(bytRecieved)
Console.WriteLine("This is the message you received: " + strMessage)
My.Computer.Audio.Play("C:\Users\overwatch\Downloads\mario coin.wav", AudioPlayMode.WaitToComplete)
Loop While (strMessage <> "exit")
UDPClient.Close()
Catch e As Exception
Console.WriteLine(e.ToString())
End Try
Loop
and I had that part of it working in c# as well but I deleted it out of anger when I deleted my other 20 aborted projectsCode:import os
while 1:
from socket import *
s=socket(AF_INET, SOCK_DGRAM)
s.bind(('',44126))
m=s.recvfrom(1024)
print m[0]
#Uncomment for Mac version
os.system("afplay ./ring.wav")
#Uncomment for Windows
#os.system("start .\ring.wav")
No library needed to install UDP, except the audio "play" basically npm install playCode:var PORT = 44126;
var HOST = '127.1.1.1';
var client = dgram.createSocket('udp4');
var play = require('play');
client.on('listening', function () {
var address = client.address();
console.log('UDP Server listening on ' + address.address + ":" + address.port);
});
client.on('message', function (message, remote) {
console.log(remote.address + ':' + remote.port +' - ' + message);
play.sound('./sound-files/ring.wav');
});
//calling
client.send(message, 0, message.length, PORT, HOST, function(err, bytes) {
if (err) throw err;
console.log('UDP message sent to ' + HOST +':'+ PORT);
});
I simulated it, it looks like it's working.
https://i.imgur.com/mdHKEZi.png
Left window is which it calls eg. sending a broadcast, basically a function which is related to client.send to what's address and some stuff.
Right window is *when I receive a phone call* it outputs a log with some address info, it can do whatever like playing sound.
that's great now I have the same thing I already wrote in 5 languages
onyx-viper sounds like a deviantart fursona
dude I can make applications that send packets back and forth all day long, that part is easy. I could do it with telnet and netcat without writing a single line of code. writing an android application that does it when you recieve a phone call is a pain in the balls.
java, that's 6 langaugesCode:
public void myRealMethod(View view) {
String messageStr = "Fuck java";
int server_port = 44126;
try {
DatagramSocket s = new DatagramSocket();
InetAddress local = InetAddress.getByName("192.168.255.255");
int msg_length = messageStr.length();
byte[] message = messageStr.getBytes();
DatagramPacket p = new DatagramPacket(message, msg_length, local, server_port);
s.send(p);
} catch (Exception e) {
}
I'm p sure that one works but I can't figure out how to fucking call a fucking method that doesn't fucking return anything
Why don't you make a client version for android? running a server in the mobile it's tedious, however you need to create a separate backend server.
elzzz are u still a virgin? plz don't become a furry, qt mestiza hookers are so cheap in your country
powershell, 7 languages
Code:$port=44123
$endpoint = new-object System.Net.IPEndPoint ([IPAddress]::Any,$port)
$udpclient=new-Object System.Net.Sockets.UdpClient $port
$content=$udpclient.Receive([ref]$endpoint)
[Text.Encoding]::ASCII.GetString($content)
write-host $content
The client version can do REST to backend server in real time which is background service that client is listening everytime, then call a sound file, the backend server is the alarm that sends udp packet to notify every devices when the phone rings.
That's another possible design.
if I can't figure out how to read the phone state I can't do a goddamn thing
You need to use this service https://www.twilio.com to get phone state, also it's used to make outbound calls